/* ============ TOKENS ============ */
:root {
  --bg: #0a0e15;
  --bg-2: #101622;
  --surface: #141b29;
  --line: #22304a;
  --text: #e6eef8;
  --muted: #8b98ad;
  --accent: #f2b33d;
  --accent-ink: #0a0e15;
  --ice: #9cc3e6;
  --glow-a: rgba(242, 179, 61, .16);
  --glow-b: rgba(120, 165, 220, .18);
  --photo-filter: none;

  --f-display: 'Anton', Impact, sans-serif;
  --f-script: 'Kaushan Script', cursive;
  --f-body: 'Poppins', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --pad: clamp(16px, 5vw, 72px);
  --radius: 18px;
}

/* ============ BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  transition: background .4s, color .4s;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0 0 1em; }
::selection { background: var(--accent); color: var(--accent-ink); }

.grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ LOADER ============ */
.loader {
  position: fixed; inset: 0; z-index: 1000; display: none; place-items: center; align-content: center; gap: 18px;
  background: radial-gradient(circle at 50% 45%, var(--glow-a), transparent 45%), var(--bg);
  transition: opacity .35s ease, visibility .35s;
}
html.js .loader { display: grid; }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__logo { position: relative; font-family: var(--f-display); font-size: 104px; line-height: 1; letter-spacing: .02em; color: var(--text); }
.loader__logo span { position: absolute; left: 80%; top: 30%; font-family: var(--f-script); font-size: 56px; color: var(--accent); transform: rotate(-8deg); }
.loader__bar { width: min(320px, 70vw); height: 6px; border-radius: 9px; background: var(--line); overflow: hidden; margin-top: 10px; }
.loader__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); }
.loader__pct { font-family: var(--f-mono); font-size: 15px; color: var(--muted); text-align: center; }
/* hold the hero intro until the loader is gone */
html.is-loading .hero__card, html.is-loading .hero__big, html.is-loading .hero__script,
html.is-loading .hero__lead, html.is-loading .hero__cta { animation-play-state: paused; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--pad);
  transition: background .3s, padding .3s, backdrop-filter .3s;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; flex-direction: column; line-height: 1.25; }
.brand__name { font-weight: 600; font-size: 15px; letter-spacing: .02em; }
.brand__sub { font-size: 12px; color: var(--muted); }
.nav__links { display: flex; gap: clamp(24px, 6vw, 96px); font-size: 15px; }
.nav__links a { position: relative; padding: 4px 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .3s;
}
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__right { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  position: relative; display: flex; padding: 3px; border-radius: 99px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); font: 600 13px var(--f-body);
}
.lang-switch span { position: relative; z-index: 1; padding: 5px 11px; border-radius: 99px; color: var(--muted); transition: color .3s, background .3s; }
html[lang="pl"] .lang-switch [data-l="pl"],
html[lang="en"] .lang-switch [data-l="en"] { background: var(--accent); color: var(--accent-ink); }

.burger { display: none; width: 36px; height: 36px; border: 0; background: none; cursor: pointer; position: relative; }
.burger i { position: absolute; left: 7px; right: 7px; height: 2px; background: var(--text); transition: transform .3s, top .3s; }
.burger i:first-child { top: 13px; }
.burger i:last-child { top: 21px; }
.burger[aria-expanded="true"] i:first-child { top: 17px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { top: 17px; transform: rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px var(--pad) 130px;
  background:
    radial-gradient(60% 70% at 78% 55%, var(--glow-b), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.hero__glow {
  position: absolute; width: 46vw; aspect-ratio: 1; right: 4vw; top: 22%;
  border-radius: 50%; background: radial-gradient(circle, var(--glow-a), transparent 65%);
  filter: blur(20px);
}
.hero__inner { position: relative; z-index: 3; max-width: 1400px; }
.hero__title { position: relative; display: inline-block; }
.hero__big {
  display: block; font-family: var(--f-display); font-weight: 400;
  font-size: clamp(3.4rem, 11.5vw, 11.5rem); line-height: .86; letter-spacing: .005em;
  color: var(--text);
  text-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.hero__script {
  position: absolute; z-index: 3; left: 4.1em; top: -0.15em;
  font-family: var(--f-script); font-weight: 400; color: var(--accent);
  font-size: clamp(2.4rem, 7.2vw, 7rem); transform: rotate(-9deg);
  text-shadow: 0 6px 24px rgba(0,0,0,.35);
}
html[lang="en"] .hero__script { left: 2.3em; }
.hero__lead { margin: 30px 0 0 6px; font-size: clamp(15px, 1.4vw, 19px); color: var(--muted); letter-spacing: .02em; max-width: 36ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 0 6px; }
.btn {
  display: inline-flex; align-items: center; padding: 13px 26px; border-radius: 99px;
  font-weight: 500; font-size: 15px; transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--ghost { border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero__stack {
  position: absolute; z-index: 2; right: var(--pad); top: 50%; transform: translateY(-46%);
  width: min(31vw, 560px); aspect-ratio: 1 / .92; pointer-events: none;
}
.hero__card { position: absolute; filter: drop-shadow(0 30px 50px rgba(0,0,0,.5)); }
.hero__card .browser { box-shadow: none; }
.hero__card--stay { width: 72%; right: 0; top: 0; transform: rotate(4deg); }
.hero__card--fix { width: 62%; left: 0; bottom: 4%; transform: rotate(-4deg); }
.hero__card--cafe { width: 30%; right: 6%; bottom: 0; transform: rotate(6deg); }
.hero__card { animation: card-in 1.1s cubic-bezier(.2,.7,.2,1) both; }
.hero__card--fix { animation-delay: .15s; }
.hero__card--cafe { animation-delay: .3s; }

/* hero mockups: guesthouse, renovation company, café (phone) */
.hm-stay { background: linear-gradient(180deg, #8fb7d9 0%, #d9e6ef 55%, #e9efe6 100%); color: #13304a; padding: 10px 14px; }
.hm-stay__nav { position: relative; z-index: 1; display: flex; align-items: center; gap: 7px; }
.hm-stay__nav b { font-size: 10px; margin-right: auto; }
.hm-stay__nav span { width: 16px; height: 3px; border-radius: 2px; background: rgba(19,48,74,.4); }
.hm-stay__mtn { position: absolute; inset: 30% 0 0 0;
  background: linear-gradient(160deg, #3d6b4f, #1f3d2c);
  clip-path: polygon(0 55%, 18% 25%, 32% 48%, 50% 8%, 66% 40%, 80% 22%, 100% 50%, 100% 100%, 0 100%); }
.hm-stay strong { position: relative; z-index: 1; display: block; margin-top: 8%; font-family: 'Playfair Display', Georgia, serif; font-weight: 500; font-size: 22px; }
.hm-stay__book { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px;
  background: #fff; border-radius: 8px; padding: 6px; font-size: 8px; color: #5a6b78; }
.hm-stay__book span { border: 1px solid #dde3e8; border-radius: 5px; padding: 4px 6px; }
.hm-stay__book em { background: #e07a2e; color: #fff; font-weight: 600; border-radius: 5px; padding: 4px 9px; }

.hm-fix { background: #fff; color: #0f2a4a; padding: 0 0 12px; }
.hm-fix__top { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: #1d5fd1; color: #fff; }
.hm-fix__top b { font-size: 10px; letter-spacing: .12em; }
.hm-fix__top em { font-size: 8px; font-weight: 600; background: #ffd23f; color: #0f2a4a; padding: 3px 8px; border-radius: 99px; }
.hm-fix strong { display: block; margin: 10% 12px 4px; font-size: 18px; font-weight: 700; line-height: 1.1; }
.hm-fix small { display: block; margin: 0 12px; font-size: 8px; color: #e0a100; }
.hm-fix__tiles { position: absolute; left: 12px; right: 12px; bottom: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.hm-fix__tiles i { height: 30px; border-radius: 6px; background: #eef3fb; border-top: 3px solid #1d5fd1; }

.hm-phone { background: #fbf6ef; color: #3b2a1e; border-radius: 22px; border: 5px solid #1b1f2b; padding: 0 0 10px; overflow: hidden; font-size: 9px; }
.hm-phone__img { height: 74px; display: grid; align-content: end; padding: 8px 10px; color: #fff;
  background: radial-gradient(circle at 70% 30%, rgba(255,214,160,.7), transparent 45%), linear-gradient(160deg, #a8653a, #4a2a17); }
.hm-phone__img b { font-family: 'Playfair Display', Georgia, serif; font-size: 16px; font-weight: 500; }
.hm-phone__img small { font-size: 7px; opacity: .85; }
.hm-phone__row { display: flex; justify-content: space-between; padding: 6px 10px; border-bottom: 1px solid #efe4d5; }
.hm-phone__row em { font-style: normal; color: #a8653a; font-weight: 600; }
.hm-phone__btn { margin: 9px 10px 0; text-align: center; background: #3b2a1e; color: #fbf6ef; border-radius: 99px; padding: 5px; font-weight: 600; }
@keyframes card-in { from { opacity: 0; translate: 0 40px; } }

.hero__bottom {
  position: absolute; z-index: 3; left: var(--pad); right: var(--pad); bottom: 34px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px;
}
.hero__icons { display: flex; gap: 10px; }
.hero__icons a {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); transition: transform .2s;
}
.hero__icons a:hover { transform: scale(1.12) rotate(-6deg); }
.hero__icons svg { width: 17px; height: 17px; fill: var(--accent-ink); }
.hero__url { margin: 0; color: var(--muted); text-align: right; }

/* ============ SECTIONS ============ */
.section { padding: clamp(80px, 11vw, 150px) var(--pad); position: relative; }
.section--alt { background: var(--bg-2); }
.section__head { display: flex; align-items: baseline; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); }
.section__title {
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.6rem, 7vw, 6rem); letter-spacing: .01em;
}
.subhead {
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.6rem, 3vw, 2.4rem); margin: clamp(56px, 8vw, 100px) 0 28px;
}

/* ABOUT */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.about__lead { font-size: clamp(19px, 2vw, 25px); line-height: 1.5; font-weight: 300; }
.about__lead em { font-style: normal; color: var(--accent); font-weight: 500; }
.about__text p:not(.about__lead) { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 12px; margin-top: 36px; }
.stat { border-top: 2px solid var(--accent); padding-top: 12px; }
.stat b { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1; }
.stat span { font-size: 13px; color: var(--muted); }

/* SKILLS */
.skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.skill {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; transition: transform .3s, border-color .3s;
}
.skill:hover { transform: translateY(-4px); border-color: var(--accent); }
.skill__ico { display: flex; gap: 10px; margin-bottom: 12px; color: var(--accent); }
.skill__ico i {
  width: 28px; height: 28px; background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat;
          mask: var(--i) center / contain no-repeat;
}
.skill h4 { font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.skill p { color: var(--muted); font-size: 13.5px; margin: 0; }

.about__me { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.about__photo {
  flex: none; width: 128px; height: 128px; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%), var(--surface);
  border: 2px solid var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 15%, transparent);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__me b { display: block; font-size: 20px; font-weight: 600; }
.about__me span { color: var(--muted); font-size: 14px; }
.about__contact { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.about__contact .btn { word-break: break-all; }
.btn--icon { gap: 8px; }
.btn--icon svg { width: 17px; height: 17px; fill: currentColor; flex: none; }

.certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.cert {
  position: relative; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface), transparent);
  overflow: hidden;
}
.cert::after {
  content: "✓"; position: absolute; right: -6px; bottom: -34px; font-size: 120px; line-height: 1;
  color: var(--accent); opacity: .08; font-weight: 700;
}
.cert__org { font-family: var(--f-mono); font-size: 12px; color: var(--ice); }
.cert__top { display: flex; align-items: center; gap: 10px; }
.cert__logo {
  display: flex; gap: 6px; align-items: center; justify-content: center; flex: none;
  min-width: 44px; height: 44px; padding: 0 9px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--line); color: var(--text);
}
.cert__logo i {
  width: 26px; height: 26px; background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat;
          mask: var(--i) center / contain no-repeat;
}
.cert:hover .cert__logo { color: var(--accent); }
.cert__date { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.cert h4 { margin-top: 14px !important; }
.cert h4 { font-size: 16px; font-weight: 600; margin: 8px 0 8px; }
.cert p { color: var(--muted); font-size: 14px; margin: 0; }

/* WEBSITES */
.sites { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.site h3 { font-size: 18px; font-weight: 600; margin: 16px 0 4px; }
.site p { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.browser { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); transition: transform .35s; box-shadow: 0 20px 40px rgba(0,0,0,.18); }
.site:hover .browser { transform: translateY(-6px) rotate(-1deg); }
.browser__bar { display: flex; align-items: center; gap: 5px; padding: 9px 12px; background: var(--bg); border-bottom: 1px solid var(--line); }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff6159; }
.browser__bar i:nth-child(2) { background: #ffbd2e; }
.browser__bar i:nth-child(3) { background: #28c941; }
.browser__bar span { margin-left: 10px; flex: 1; font-family: var(--f-mono); font-size: 11px; color: var(--muted); background: var(--surface); border-radius: 6px; padding: 2px 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.browser__view { aspect-ratio: 4/3; display: grid; place-items: center; text-align: center; position: relative; overflow: hidden; }
.site__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.site__tags li { font-size: 12px; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }

.section__title { position: relative; }
.section__tag {
  display: inline-block; margin-left: .35em; vertical-align: top; transform: rotate(-6deg) translateY(-.15em);
  font-family: var(--f-script); text-transform: none; color: var(--accent);
  font-size: .38em; letter-spacing: 0;
}
.section__intro { color: var(--muted); max-width: 560px; margin: calc(-1 * clamp(18px, 3vw, 40px)) 0 clamp(32px, 4vw, 48px); font-size: 16px; }

/* template mockups */
.tpl { display: block; place-items: stretch; text-align: left; font-family: var(--f-body); }
.tpl em { font-style: normal; }

.tpl--min { background: #f7f6f2; color: #1b1b1b; padding: 12px 16px; }
.tm-nav { display: flex; align-items: center; gap: 8px; }
.tm-nav b { font-size: 10px; letter-spacing: .1em; margin-right: auto; }
.tm-nav span { width: 18px; height: 3px; border-radius: 2px; background: #c9c6bd; }
.tm-hero { display: grid; justify-items: center; gap: 5px; margin-top: 8%; text-align: center; }
.tm-avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #d8d4ca, #a9a49a); }
.tm-hero strong { font-size: 15px; font-weight: 600; letter-spacing: .01em; }
.tm-hero small { font-size: 9px; color: #8a867c; text-transform: uppercase; letter-spacing: .14em; }
.tm-hero em { margin-top: 6px; font-size: 9px; padding: 4px 12px; border: 1px solid #1b1b1b; border-radius: 99px; }

.tpl--mod { background: radial-gradient(circle at 85% 20%, rgba(124,92,255,.55), transparent 45%), radial-gradient(circle at 10% 90%, rgba(0,200,255,.35), transparent 45%), #0b1023; color: #fff; padding: 12px 14px; }
.tmo-nav { display: flex; align-items: center; gap: 7px; }
.tmo-nav b { font-size: 10px; margin-right: auto; }
.tmo-nav span { width: 16px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); }
.tmo-nav em { font-size: 8px; padding: 3px 8px; border-radius: 99px; background: #fff; color: #0b1023; font-weight: 600; }
.tmo-hero { margin-top: 9%; display: grid; gap: 5px; justify-items: start; }
.tmo-hero strong { font-size: 17px; line-height: 1.1; font-weight: 600; }
.tmo-hero span { width: 70%; height: 3px; border-radius: 2px; background: rgba(255,255,255,.3); }
.tmo-hero span.short { width: 50%; }
.tmo-hero em { margin-top: 4px; font-size: 8px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: linear-gradient(90deg, #7c5cff, #00c8ff); }
.tmo-cards { position: absolute; left: 14px; right: 14px; bottom: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tmo-cards i { height: 28px; border-radius: 6px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); }

.tpl--ele { background: #f1e9dd; color: #3a2e25; display: grid; grid-template-columns: 1fr 1fr; }
.te-photo { background: radial-gradient(circle at 40% 35%, rgba(255,230,200,.6), transparent 40%), linear-gradient(160deg, #b98d6b, #6e4b36 70%, #3d2a1f); }
.te-text { display: grid; align-content: center; justify-items: start; gap: 5px; padding: 0 12px; }
.te-text small { font-size: 7px; letter-spacing: .2em; color: #a08a76; }
.te-text strong { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; font-size: 19px; line-height: 1.05; }
.te-text strong i { color: #b07a5a; }
.te-text span { width: 85%; height: 2px; background: #d6c8b6; }
.te-text em { margin-top: 5px; font-size: 8px; letter-spacing: .14em; text-transform: uppercase; padding: 4px 9px; background: #3a2e25; color: #f1e9dd; }

.tpl--bold { background: #f2b33d; color: #0a0a0a; padding: 12px 14px; }
.tb-nav { display: flex; justify-content: space-between; font-family: var(--f-display); font-size: 10px; letter-spacing: .06em; }
.tpl--bold strong { display: block; position: relative; z-index: 1; margin-top: 6%; font-family: var(--f-display); font-weight: 400; font-size: 42px; line-height: .88; letter-spacing: -.01em; }
.tb-blob { position: absolute; right: -14px; top: 26%; width: 92px; height: 92px; border-radius: 50%; background: #ff4d6d; mix-blend-mode: multiply; }
.tb-strip { position: absolute; left: 0; right: 0; bottom: 12px; background: #0a0a0a; color: #f2b33d; font-family: var(--f-display); font-size: 10px; letter-spacing: .1em; padding: 5px 0; white-space: nowrap; overflow: hidden; transform: rotate(-3deg) scale(1.05); }
.tb-strip span { display: inline-block; white-space: pre; animation: tb-scroll 9s linear infinite; }
@keyframes tb-scroll { to { transform: translateX(-50%); } }

/* retro */
.tpl--retro { background: #f4e3c3; color: #5a2a12; padding: 12px 14px; }
.tr-nav { position: relative; z-index: 2; display: flex; align-items: center; gap: 7px; font-family: var(--f-display); font-size: 10px; letter-spacing: .08em; }
.tr-nav b { margin-right: auto; font-weight: 400; }
.tr-nav span { width: 16px; height: 3px; border-radius: 2px; background: #c9784a; }
.tr-sun { position: absolute; right: 18%; top: 22%; width: 74px; height: 74px; border-radius: 50%; background: #f2b33d; }
.tr-waves { position: absolute; left: -10%; right: -10%; bottom: -46%; height: 90%; }
.tr-waves i { position: absolute; inset: 0; border-radius: 50% 50% 0 0; }
.tr-waves i:nth-child(1) { background: #e8743b; }
.tr-waves i:nth-child(2) { inset: 14% 8% 0; background: #f2b33d; }
.tr-waves i:nth-child(3) { inset: 28% 16% 0; background: #7a3b1d; }
.tpl--retro strong { position: relative; z-index: 2; display: block; margin-top: 7%; font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 500; font-size: 26px; line-height: .95; }
.tpl--retro em { position: absolute; z-index: 2; left: 14px; bottom: 14px; font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: #f4e3c3; color: #5a2a12; border: 2px solid #5a2a12; }

/* eco */
.tpl--eco { background: #eef3e8; color: #2f5d3a; padding: 12px 14px; }
.te2-blob { position: absolute; border-radius: 58% 42% 55% 45% / 45% 55% 45% 55%; }
.te2-blob--a { width: 120px; height: 110px; right: -20px; top: 18px; background: #b9d7a8; }
.te2-blob--b { width: 70px; height: 64px; right: 70px; bottom: -14px; background: #d9e9c9; }
.te2-nav { position: relative; display: flex; align-items: center; gap: 7px; }
.te2-nav b { font-size: 9px; font-weight: 600; margin-right: auto; }
.te2-nav span { width: 16px; height: 3px; border-radius: 2px; background: #9fbf8f; }
.tpl--eco strong { position: relative; display: block; margin-top: 9%; font-size: 17px; font-weight: 600; line-height: 1.15; }
.tpl--eco em { position: relative; display: inline-block; margin-top: 8px; font-size: 8px; font-weight: 600; padding: 4px 11px; border-radius: 99px; background: #2f5d3a; color: #eef3e8; }
.te2-cards { position: absolute; left: 14px; bottom: 12px; display: flex; gap: 6px; }
.te2-cards i { width: 52px; height: 30px; border-radius: 10px; background: #fff; box-shadow: 0 4px 10px rgba(47,93,58,.12); }

/* professional */
.tpl--law { background: #0f1f3a; color: #f3eee2; display: grid; grid-template-columns: 1.6fr 1fr; }
.tl2-main { display: grid; align-content: center; justify-items: start; gap: 6px; padding: 0 14px; }
.tl2-main small { font-size: 7px; letter-spacing: .2em; color: #c8a45a; }
.tl2-main strong { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; font-size: 19px; line-height: 1.05; }
.tl2-main span { width: 40px; height: 2px; background: #c8a45a; }
.tl2-main em { margin-top: 4px; font-size: 8px; padding: 4px 9px; border: 1px solid #c8a45a; color: #c8a45a; }
.tl2-side { display: grid; align-content: center; gap: 10px; padding: 0 12px; background: #142a4d; border-left: 1px solid rgba(200,164,90,.3); }
.tl2-side b { display: block; font-family: 'Playfair Display', Georgia, serif; font-weight: 500; font-size: 18px; color: #c8a45a; }
.tl2-side small { font-size: 8px; color: #b9c3d6; }

/* shop */
.tpl--shop { background: #fff; color: #1b1b1b; padding: 10px 12px; }
.ts-nav { display: flex; align-items: center; gap: 7px; }
.ts-nav b { font-size: 12px; font-weight: 700; margin-right: auto; }
.ts-nav span { width: 16px; height: 3px; border-radius: 2px; background: #ddd; }
.ts-nav em { font-size: 8px; font-weight: 600; padding: 2px 7px; border-radius: 99px; background: #111; color: #fff; }
.ts-banner { margin-top: 8px; padding: 6px 8px; border-radius: 6px; background: #ff5a5f; color: #fff; font-size: 9px; font-weight: 600; }
.ts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 8px; }
.ts-grid i { display: block; aspect-ratio: 1; border-radius: 6px; background: var(--c); }
.ts-grid span { display: block; height: 3px; width: 80%; margin: 5px 0 3px; border-radius: 2px; background: #e3e3e3; }
.ts-grid b { font-size: 9px; }

/* HOW IT WORKS */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step {
  position: relative; padding: 26px 24px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.step:not(:last-child)::after {
  content: "→"; position: absolute; right: -14px; top: 30px; z-index: 1;
  color: var(--accent); font-size: 18px;
}
.step__n {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; margin-bottom: 16px;
}
.step h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14.5px; margin: 0; }

.price {
  margin-top: 18px; display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center; gap: clamp(18px, 3vw, 40px);
  padding: 22px clamp(20px, 3vw, 32px); border-radius: var(--radius);
  border: 1px dashed color-mix(in srgb, var(--accent) 60%, var(--line)); background: var(--bg-2);
}
.price__amount small { display: block; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.price__amount b { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1.05; white-space: nowrap; }
.price p { color: var(--muted); margin: 0; max-width: 560px; }

/* ABOUT (collapsible, under FAQ) */
.about-sec { padding-top: clamp(40px, 6vw, 70px); padding-bottom: clamp(40px, 6vw, 70px); }
.about-box { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-box__sum { list-style: none; cursor: pointer; display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); flex-wrap: wrap; padding: clamp(22px, 3vw, 34px) 0; }
.about-box__sum::-webkit-details-marker { display: none; }
.about-box__sum .section__title { font-size: clamp(2.2rem, 5vw, 4rem); transition: color .2s; }
.about-box__sum:hover .section__title { color: var(--accent); }
.about-box__who { display: flex; flex-direction: column; font-weight: 600; font-size: 15px; }
.about-box__who small { font-weight: 400; font-size: 13px; color: var(--muted); }
.about-box__sum::after {
  content: "+"; margin-left: auto; flex: none; display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 50%; border: 1px solid var(--line); color: var(--accent); font-size: 26px; transition: transform .3s, border-color .3s;
}
.about-box[open] .about-box__sum::after { transform: rotate(45deg); border-color: var(--accent); }
.about-box__body { padding: clamp(16px, 3vw, 32px) 0 clamp(40px, 6vw, 70px); }
.about-box[open] .about-box__body { animation: faq-in .45s ease; }

.certs-wrap { margin-top: clamp(48px, 7vw, 80px); }
.certs-title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 2rem); text-transform: uppercase; }
.certs-title small { font-family: var(--f-mono); font-size: 12px; text-transform: none; color: var(--muted); }

/* FREE DEMO */
.demo {
  position: relative; overflow: hidden; margin-top: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(20px, 4vw, 48px);
  padding: clamp(24px, 4vw, 40px); border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line));
  background: radial-gradient(circle at 0% 50%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 55%), var(--surface);
}
.demo__price { position: relative; line-height: 1; justify-self: start; }
.demo__price b { font-family: var(--f-display); font-weight: 400; font-size: clamp(3.6rem, 8vw, 6rem); color: var(--text); white-space: nowrap; }
.demo__script { position: absolute; right: -.6em; top: -.35em; font-family: var(--f-script); color: var(--accent); font-size: clamp(1.4rem, 2.6vw, 2rem); transform: rotate(-10deg); }
.demo h3 { font-size: clamp(19px, 2vw, 24px); font-weight: 600; margin-bottom: 8px; }
.demo p { color: var(--muted); margin: 0; max-width: 620px; }
.demo__btn { white-space: nowrap; }

/* CONTACT */
.contact { position: relative; padding: clamp(100px, 13vw, 180px) var(--pad); overflow: hidden; text-align: center; color: #e6eef8; }
.contact__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.6); }
.contact::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8,11,18,.92), rgba(8,11,18,.75) 50%, rgba(8,11,18,.95)); }
.contact__inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.contact__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(4rem, 14vw, 11rem); line-height: .9; }
.contact__inner > p b { color: #f2b33d; font-weight: 600; }
.contact__inner > p { color: #a9b5c8; margin: 18px auto 40px; max-width: 520px; }
.contact__grid { display: grid; grid-template-columns: 1.5fr 1.1fr 1fr .8fr; gap: 12px; text-align: left; }
.contact__grid > * {
  padding: 18px; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04);
  backdrop-filter: blur(6px); font-size: 14px; word-break: break-word; transition: border-color .2s, transform .2s;
}
.contact__grid a:hover { border-color: #f2b33d; transform: translateY(-3px); }
.contact__grid small { display: block; color: #f2b33d; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }

.footer { text-align: center; font-size: 13px; color: var(--muted); padding: 26px var(--pad); }
.footer code { font-family: var(--f-mono); color: var(--accent); }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 18px;
  padding: 22px 0; font-size: clamp(16px, 1.6vw, 18px); font-weight: 600; transition: color .2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; margin-left: auto; flex: none; display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; border: 1px solid var(--line); color: var(--accent); font-weight: 400; font-size: 20px; transition: transform .3s, border-color .3s;
}
.faq__item summary:hover { color: var(--accent); }
.faq__item[open] summary::after { transform: rotate(45deg); border-color: var(--accent); }
.faq__item p { color: var(--muted); margin: -6px 0 22px; padding-right: 50px; max-width: 70ch; }
.faq__item[open] p { animation: faq-in .35s ease; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

/* contact form */
.cform { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: left; margin-bottom: 12px; scroll-margin-top: 110px; }
.cform__hp { display: none; }
.cform__field { display: block; padding: 14px 18px 12px; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); backdrop-filter: blur(6px); transition: border-color .2s; }
.cform__field:focus-within { border-color: #f2b33d; }
.cform__field--wide { grid-column: 1 / -1; }
.cform__field small { display: block; color: #f2b33d; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.cform input, .cform textarea, .cform select {
  width: 100%; border: 0; outline: 0; background: transparent; color: #e6eef8; font: 15px/1.5 var(--f-body); padding: 2px 0; resize: vertical;
}
.cform select { cursor: pointer; }
.cform option { background: #10151f; color: #e6eef8; }
.cform ::placeholder { color: #6b7890; }
.cform__field.is-invalid { border-color: #ff7a7a; }
.cform__foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.cform__foot .btn { border: 0; cursor: pointer; font: 600 15px var(--f-body); }
.cform__foot .btn:disabled { opacity: .6; cursor: wait; }
.cform__status { margin: 0; font-size: 14px; color: #a9b5c8; }
.cform__status.is-ok { color: #8ee06f; }
.cform__status.is-err { color: #ff7a7a; }

/* ============ TECH STRIP ============ */
.techbar {
  overflow: hidden; padding: 22px 0; background: var(--bg-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.techbar__items { display: flex; width: max-content; animation: scroll var(--dur, 40s) linear infinite; }
.techbar:hover .techbar__items { animation-play-state: paused; }
.tech {
  display: inline-flex; align-items: center; gap: 10px; margin-right: 44px;
  font-size: 15px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: color .25s;
}
.tech i {
  width: 26px; height: 26px; flex: none; background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat;
          mask: var(--i) center / contain no-repeat;
}
.tech:hover { color: var(--accent); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.hero__big, .hero__script, .hero__lead, .hero__cta { animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
.hero__script { animation-name: rise-script; animation-delay: .35s; }
.hero__lead { animation-delay: .15s; }
.hero__cta { animation-delay: .25s; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }
@keyframes rise-script { from { opacity: 0; transform: rotate(-9deg) translateY(20px) scale(.9); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .sites, .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .demo { grid-template-columns: auto 1fr; }
  .demo__btn { grid-column: 1 / -1; justify-self: start; }
  .contact__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__grid > * { grid-column: auto !important; }
  .contact__grid > :first-child { grid-column: span 2 !important; }
}
@media (max-width: 860px) {
  .nav__links {
    position: fixed; inset: 0 0 auto 0; top: 0; flex-direction: column; gap: 0; padding: 90px var(--pad) 30px;
    background: var(--bg); border-bottom: 1px solid var(--line); transform: translateY(-100%); transition: transform .4s; z-index: -1;
  }
  .nav__links.is-open { transform: none; }
  .nav__links a { font-family: var(--f-display); font-size: 34px; text-transform: uppercase; padding: 8px 0; }
  .burger { display: block; }

  .hero { justify-content: flex-start; padding-top: 130px; min-height: 100svh; }
  .hero { min-height: auto; padding-bottom: 110px; }
  .hero__stack { position: relative; right: auto; top: auto; transform: none; width: 100%; max-width: 460px; margin: 44px auto 0; }
  .hero__inner { z-index: 3; }
  .hero__url { font-size: 12px; }

  .about { grid-template-columns: 1fr; }
  .skills { grid-template-columns: repeat(2, 1fr); }


}
@media (max-width: 560px) {
  .sites, .steps, .contact__grid { grid-template-columns: 1fr; }
  .cform { grid-template-columns: 1fr; }
  .faq__item p { padding-right: 0; }
  .price { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .demo { grid-template-columns: 1fr; }
  .contact__grid > :first-child { grid-column: auto !important; }
  .tech { font-size: 13px; margin-right: 32px; }
  .tech i { width: 22px; height: 22px; }
}
