/* ==========================================================================
   tgads.eu — Telegram Ads agency landing.
   Direction: native Telegram design language (telegram.org / ads.telegram.org):
   Telegram blue gradient, system font, rounded cards, soft shadows, chat mockup.
   Colours: white / light-blue surfaces · ink text · Telegram blue accent.
   ========================================================================== */

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/roboto-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #ffffff;
  --bg-soft: #f7f9fb;          /* light section band */
  --chat-bg: #e9f1f8;          /* telegram chat backdrop */
  --ink: #222222;              /* ads.telegram.org body text */
  --ink-2: #3a3a3a;
  --muted: #6b7177;            /* secondary text — AA on white */
  --hair: #e9ebee;
  --hair-2: #eef1f4;
  --tg: #119af5;               /* brand blue — decorative fills only (large/non-text) */
  --tg-2: #0e88dd;             /* legacy hover */
  --tg-ink: #146b9e;           /* accessible blue for text/links on white (AA) */
  --tg-grad: #119af5;          /* flat — Telegram Ads uses solid, not gradient */
  --tg-btn: #0c74c2;           /* CTA fill: white text = 4.89:1 (AA) */
  --tg-btn-h: #0a66aa;         /* CTA hover: white text = 6.01:1 */
  --tg-tint: #e8f3fd;          /* very light blue fill */

  --font: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;

  --label: .76rem;
  --base: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --lead: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  --h3: clamp(1.2rem, 1.05rem + 0.8vw, 1.55rem);
  --h2: clamp(1.75rem, 1.3rem + 2.2vw, 3.05rem);
  --hero: clamp(2.2rem, 1.4rem + 3.7vw, 4.5rem);
  --num: clamp(1.9rem, 1.4rem + 2.2vw, 3.1rem);

  --space: clamp(4rem, 3rem + 6vw, 8rem);
  --gutter: clamp(1.25rem, 0.6rem + 4vw, 5.5rem);
  --maxw: 78rem;

  --r: 10px;
  --r-lg: 14px;
  --r-pill: 8px;               /* Telegram Ads buttons are 6px, slightly softened */
  --sh-sm: 0 1px 4px rgba(34, 34, 34, .05);
  --sh: 0 4px 18px rgba(34, 34, 34, .07);
  --sh-lg: 0 22px 56px -20px rgba(14, 60, 100, .3);
  --sh-blue: none;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur: 400ms;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

html { overflow-x: hidden; }

body {
  font-family: var(--font);
  font-size: var(--base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* fine paper-grain overlay — barely-there tooth on the flat white */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .028;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 120px 120px;
}
@media (prefers-reduced-motion: reduce) { body::before { display: none; } }

/* soft blue ambient depth so the white never reads as dead-flat.
   Own layer (not the body background) so it can drift without repainting anything else. */
.glow {
  position: fixed;
  inset: -22%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(42% 34% at 20% 16%, rgba(17, 154, 245, .075), transparent 62%),
    radial-gradient(36% 32% at 88% 22%, rgba(17, 154, 245, .05), transparent 64%),
    radial-gradient(46% 38% at 50% 92%, rgba(17, 154, 245, .055), transparent 62%);
  animation: drift 96s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes drift {
  from { transform: translate3d(-1.6%, -1.2%, 0) scale(1); }
  to   { transform: translate3d(2.2%, 1.6%, 0) scale(1.09); }
}

/* faint dot field — tech texture at the viewport edges, masked away behind the copy */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(17, 154, 245, .22) 1px, transparent 0);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(62% 52% at 50% 40%, transparent 30%, #000 100%);
  mask-image: radial-gradient(62% 52% at 50% 40%, transparent 30%, #000 100%);
}

@media (prefers-reduced-motion: reduce) { .glow { animation: none; } }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
::selection { background: var(--tg); color: #fff; }
:focus-visible { outline: 2.5px solid var(--tg); outline-offset: 3px; border-radius: 4px; }
.btn, .link, .lang a, .lang button, summary, .hdr-nav a { touch-action: manipulation; }

/* ---------- layout ---------- */
.shell { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space); }
.section--soft { background: var(--bg-soft); border-block: 1px solid var(--hair-2); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 0; top: 0; z-index: 200; background: var(--tg); color: #fff; padding: .7rem 1rem; border-radius: 0 0 10px 0; }

/* ---------- type ---------- */
.overline { font-size: var(--label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--tg-ink); }
.idx { font-size: var(--label); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--tg-ink); }
h1, h2, h3 { font-family: var(--font); font-weight: 700; letter-spacing: -0.015em; line-height: 1.12; }
h1 { font-size: var(--hero); line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
.serif-i { font-style: normal; color: var(--tg-ink); }
.lead { font-size: var(--lead); line-height: 1.5; color: var(--muted); font-weight: 400; }
.muted { color: var(--muted); }
.tnum { font-variant-numeric: tabular-nums lining-nums; }

/* ---------- buttons / links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 1rem 1.8rem; font-weight: 600; font-size: 1rem; letter-spacing: .01em;
  color: #fff; background: var(--tg-btn); border-radius: var(--r-pill);
  box-shadow: var(--sh-blue);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), filter var(--dur) var(--ease);
}
.btn svg { width: 1.3em; height: .9em; transition: transform var(--dur) var(--ease); }
.btn:hover { background: var(--tg-btn-h); transform: translateY(-1px); }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost { color: var(--tg-ink); background: var(--tg-tint); box-shadow: none; }
.btn--ghost:hover { background: #dcebfa; background: #ddeefb; box-shadow: none; }

.link { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; font-size: .96rem; color: var(--tg-ink); transition: color var(--dur) var(--ease); }
.link svg { width: 1.3em; height: .9em; transition: transform var(--dur) var(--ease); }
.link:hover svg { transform: translateX(5px); }
.link--muted { color: var(--muted); }
.link--muted:hover { color: var(--tg-ink); }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 100; padding-block: 1rem; transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), padding var(--dur) var(--ease); }
.hdr.stuck { background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); box-shadow: 0 1px 0 var(--hair); padding-block: .7rem; }
.hdr .shell { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.wordmark { display: inline-flex; align-items: center; font-size: 1.3rem; font-weight: 750; letter-spacing: -0.02em; }
.wordmark::before { content: ""; width: 1.7rem; height: 1.7rem; margin-right: .5rem; border-radius: 50%; background: var(--tg-grad); box-shadow: var(--sh-blue); flex: none; }
.wordmark .dot { color: var(--tg-ink); }
.hdr-nav { display: flex; align-items: center; gap: 2rem; }
.hdr-nav a { font-size: .92rem; font-weight: 500; color: var(--ink-2); transition: color var(--dur) var(--ease); }
.hdr-nav a:hover { color: var(--tg-ink); }
.hdr-nav a.is-active { color: var(--tg-ink); }
.hdr-nav a.is-active::after { content: ""; display: block; height: 2px; margin-top: 2px; border-radius: 2px; background: var(--tg-btn); }
.hdr-right { display: flex; align-items: center; gap: 1.4rem; }
.lang { display: flex; align-items: center; gap: .25rem; }
.lang a, .lang button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 40px; font-size: .78rem; font-weight: 600; letter-spacing: .04em; padding: .35rem .5rem; color: var(--muted); border-radius: 8px; transition: color var(--dur) var(--ease), background var(--dur) var(--ease); }
.lang a[aria-current="true"], .lang button[aria-current="true"] { color: var(--tg-ink); background: var(--tg-tint); }
.lang a:hover, .lang button:hover { color: var(--tg-ink); }
.lang span { color: var(--hair); }
.hdr-right .btn { padding: .55rem 1.15rem; font-size: .9rem; }
@media (max-width: 900px) { .hdr-nav { display: none; } }
@media (max-width: 560px) { .hdr .shell { gap: .8rem; } .hdr-right { gap: .7rem; } .hdr-right > .btn { display: none; } .lang a, .lang a, .lang button { padding: .3rem .32rem; } }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(2rem, 1rem + 4vw, 4.5rem); padding-bottom: var(--space); overflow: hidden; }
.hero::before { content: ""; position: absolute; top: -20%; right: -10%; width: 60%; height: 80%; background: radial-gradient(circle, rgba(42, 171, 238, .14), transparent 65%); pointer-events: none; z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.hero-copy .overline { display: inline-block; margin-bottom: 1.2rem; }
.hero h1 { max-width: 15ch; }
.hero-copy .lead { margin-top: 1.5rem; max-width: 44ch; }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.hero-visual { position: relative; padding: clamp(1.2rem, 1rem + 1.5vw, 2.4rem); }
.hero-visual::before { content: ""; position: absolute; inset: 0; border-radius: calc(var(--r-lg) + 10px); background: linear-gradient(160deg, var(--chat-bg), var(--tg-tint) 70%); border: 1px solid var(--hair-2); }
.hero-visual::after { content: ""; position: absolute; right: -14px; top: -14px; width: 92px; height: 92px; border-radius: 50%; border: 2px dashed rgba(17, 154, 245, .35); pointer-events: none; }
.tgwin { position: relative; z-index: 1; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { order: -1; } .hero-visual::after { display: none; } }

/* ---------- Telegram chat mockup ---------- */
.tgwin { width: 100%; max-width: 390px; margin-inline: auto; background: var(--bg); border-radius: var(--r-lg); box-shadow: var(--sh-lg); overflow: hidden; border: 1px solid var(--hair-2); animation: floaty 6s var(--ease) infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .tgwin { animation: none; } }
.tgwin-head { display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; background: var(--bg); border-bottom: 1px solid var(--hair-2); }
.tgwin-av { width: 40px; height: 40px; border-radius: 50%; background: var(--tg-grad); color: #fff; display: grid; place-content: center; font-weight: 700; font-size: 1rem; flex: none; }
.tgwin-meta b { display: block; font-size: .95rem; font-weight: 600; }
.tgwin-meta span { font-size: .8rem; color: var(--muted); }
.tgwin-head .dots { margin-left: auto; color: var(--muted); font-size: 1.3rem; letter-spacing: .1em; }
.tgwin-body { background: var(--chat-bg); padding: 1rem; display: flex; flex-direction: column; gap: .6rem; min-height: 280px; }
.tgpost { align-self: flex-start; max-width: 82%; background: #fff; border-radius: 14px 14px 14px 4px; padding: .55rem .8rem; font-size: .88rem; line-height: 1.4; box-shadow: 0 1px 2px rgba(15, 22, 32, .08); color: var(--ink-2); }
.tgad { align-self: stretch; background: #fff; border-radius: 14px; padding: .85rem .9rem; box-shadow: 0 2px 10px rgba(15, 22, 32, .1); border: 1px solid var(--tg-tint); position: relative; }
.tgad::before { content: ""; position: absolute; left: 0; top: .9rem; bottom: .9rem; width: 3px; border-radius: 3px; background: var(--tg-grad); }
.tgad-label { font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tg-ink); padding-left: .6rem; margin-top: .7rem; }
.tgad-text { font-size: .88rem; color: var(--ink-2); padding-left: .6rem; line-height: 1.45; }
.tgad-text + .tgad-text { margin-top: .4rem; }

/* ---------- stat strip ---------- */
.strip { background: var(--bg-soft); border-block: 1px solid var(--hair); }
.strip-head { padding-top: clamp(2.5rem, 2rem + 2.4vw, 4.5rem); }
.strip-head h2 { max-width: 20ch; }
.strip-head .muted { margin-top: .8rem; max-width: 46ch; }
.strip .shell { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; }
.strip .cell { padding: clamp(1.8rem, 1.3rem + 1.8vw, 3rem) 1rem clamp(1.8rem, 1.3rem + 1.8vw, 3rem) 0; }
.strip .cell + .cell { padding-left: clamp(.8rem, 1.8vw, 1.7rem); border-left: 1px solid var(--hair); }
.strip .n { font-size: clamp(1.6rem, 1.1rem + 1.7vw, 2.6rem); font-weight: 750; line-height: 1; color: var(--ink); letter-spacing: -0.02em; }
.strip .n em { font-style: normal; color: var(--tg-ink); }
.strip .l { margin-top: .8rem; font-size: .82rem; color: var(--muted); max-width: 21ch; }
.strip .src { padding-bottom: clamp(1.2rem, 1rem + 1vw, 2rem); margin-top: 0; }
@media (max-width: 1080px) {
  .strip .shell { grid-template-columns: repeat(3, 1fr); }
  .strip .cell:nth-child(3n+1) { border-left: none; padding-left: 0; }
  .strip .cell:nth-child(n+4) { border-top: 1px solid var(--hair); }
}
@media (max-width: 720px) {
  .strip .shell { grid-template-columns: 1fr 1fr; }
  .strip .cell + .cell { border-left: 1px solid var(--hair); padding-left: clamp(1rem, 4vw, 2rem); }
  .strip .cell:nth-child(2n+1) { border-left: none; padding-left: 0; }
  .strip .cell:nth-child(n+3) { border-top: 1px solid var(--hair); }
}

/* ---------- section head ---------- */
.head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: end; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.head h2 { margin-top: .9rem; max-width: 18ch; }
.head .muted { max-width: 40ch; }
@media (max-width: 760px) { .head { grid-template-columns: 1fr; align-items: start; } }

/* ---------- problem rows ---------- */
.rows { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.row { background: var(--bg); border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 1.5rem; display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.row:hover { box-shadow: var(--sh); transform: translateY(-3px); border-color: var(--tg-tint); }
/* These five are independent ways a budget burns, not steps in a sequence, so
   01–05 was decoration reading as order. The mark says what the row is: a
   failure, against the ticks on the offer list below. */
.row .rn { width: 34px; height: 34px; border-radius: 50%; background: #fdecec; color: #b3261e; display: grid; place-content: center; font-weight: 700; font-size: .95rem; line-height: 1; flex: none; }
.row h3 { font-size: 1.1rem; font-weight: 650; letter-spacing: -0.01em; line-height: 1.3; }
.row p { grid-column: 2; color: var(--muted); font-size: .95rem; margin-top: .3rem; }
@media (max-width: 720px) { .rows { grid-template-columns: 1fr; } }

/* ---------- offer / value list ---------- */
.vlist { display: grid; gap: 1.05rem; list-style: none; padding: 0; margin: 0; }
.vlist li { position: relative; padding-left: 2.4rem; }
.vlist li::before { content: "✓"; position: absolute; left: 0; top: .05rem; width: 24px; height: 24px; border-radius: 50%; background: var(--tg-grad); color: #fff; display: grid; place-content: center; font-size: .72rem; font-weight: 700; box-shadow: var(--sh-blue); }
.vlist b { font-weight: 650; font-size: 1.05rem; }
.vlist p { color: var(--muted); font-size: .95rem; margin-top: .15rem; }
/* two-column value list — the offer card is gone, so the list carries the section */
.vlist--wide { grid-template-columns: 1fr 1fr; column-gap: clamp(1.5rem, 1rem + 3vw, 4rem); row-gap: 1.6rem; }
@media (max-width: 760px) { .vlist--wide { grid-template-columns: 1fr; row-gap: 1.05rem; } }

/* ---------- cabinet table ---------- */
.cmp { background: var(--bg); border: 1px solid var(--hair); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); }
.cmp-row { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(.8rem, 2.5vw, 2rem); padding: 1.05rem clamp(1rem, 2.5vw, 1.8rem); border-bottom: 1px solid var(--hair); align-items: baseline; }
.cmp-row:last-child { border-bottom: none; }
.cmp-row:not(.cmp-head):nth-child(odd) { background: var(--bg-soft); }
.cmp-head { background: var(--bg-soft); }
.cmp-head span { font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cmp-head span:nth-child(2) { color: var(--tg-ink); }
.cmp-row .rl { font-weight: 650; }
.cmp-row .rv { color: var(--ink-2); font-size: .96rem; }
@media (max-width: 640px) {
  .cmp-row { grid-template-columns: 1fr; gap: .3rem; }
  .cmp-head { display: none; }
}

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.step { background: var(--bg); border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 1.5rem; transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
.step:hover { box-shadow: var(--sh); transform: translateY(-3px); }
.step .t { font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--tg-ink); }
.step .sn { width: 40px; height: 40px; border-radius: 50%; background: var(--tg-tint); color: var(--tg-ink); display: grid; place-content: center; font-weight: 750; font-size: 1.05rem; margin-top: .7rem; }
.step h3 { font-size: 1.1rem; font-weight: 650; letter-spacing: -0.01em; margin-top: .8rem; }
.step p { color: var(--muted); font-size: .92rem; margin-top: .4rem; }
.step { position: relative; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -1.05rem; width: .9rem; height: 2px; background: linear-gradient(90deg, var(--tg), rgba(17, 154, 245, .25)); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } .step:nth-child(2)::after { display: none; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } .step::after { display: none !important; } }

/* ---------- benchmarks (cases) ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.case { position: relative; overflow: hidden; background: var(--bg); border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 1.8rem; box-shadow: var(--sh-sm); transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.case::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--tg), rgba(17, 154, 245, .15)); }
.case:hover { border-color: rgba(17, 154, 245, .35); }
.case:hover { box-shadow: var(--sh); transform: translateY(-3px); }
.case .ni { font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.case .mi { font-size: var(--num); font-weight: 700; line-height: 1; margin-top: .6rem; letter-spacing: -0.02em; color: var(--tg-ink); }
.case .mi.rng { font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.5rem); }
.case .de { color: var(--muted); font-size: .94rem; margin-top: .7rem; }
@media (max-width: 760px) { .cases { grid-template-columns: 1fr; } }

/* niche breakdown inside a benchmark card */
.nl { margin-top: 1rem; display: grid; }
.nl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed var(--hair); }
.nl > div:last-child { border-bottom: none; }
.nl dt { font-size: .92rem; color: var(--ink-2); }
.nl dd { margin: 0; font-size: .95rem; font-weight: 700; color: var(--tg-ink); font-variant-numeric: tabular-nums lining-nums; }

/* ---------- client cases ---------- */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; align-items: stretch; }
.wcase {
  display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--hair); border-radius: var(--r-lg);
  padding: clamp(1.4rem, 1rem + 1.2vw, 1.9rem); box-shadow: var(--sh-sm);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.wcase:hover { box-shadow: var(--sh); transform: translateY(-3px); border-color: rgba(17, 154, 245, .35); }
.wcase .ch { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tg-ink); }
.wcase h3 { font-size: 1.12rem; font-weight: 650; line-height: 1.3; margin-top: .45rem; }
.wcase .ni { margin-top: 1.5rem; font-size: .72rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.delta { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.delta .from { font-size: 1.05rem; color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.delta .from:empty { display: none; }
.delta .from:empty + .arw { display: none; }
.delta .arw { color: var(--muted); font-size: 1rem; }
.delta .to { font-size: clamp(1.7rem, 1.2rem + 1.3vw, 2.35rem); font-weight: 750; line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.delta .badge { margin-left: auto; font-size: .84rem; font-weight: 700; padding: .28rem .65rem; border-radius: 999px; background: var(--tg-tint); color: var(--tg-ink); }
.dnote { margin-top: .45rem; font-size: .84rem; color: var(--muted); }
.wd { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--hair-2); }
.wd dt { font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--tg-ink); margin-top: .9rem; }
.wd dt:first-of-type { margin-top: 0; }
.wd dd { margin: .15rem 0 0; font-size: .92rem; color: var(--muted); }
@media (max-width: 980px) { .works { grid-template-columns: 1fr 1fr; } }
@media (max-width: 660px) { .works { grid-template-columns: 1fr; } }

/* ---------- source caption ---------- */
.src { margin-top: 1.3rem; font-size: .78rem; color: var(--muted); }
.src a { color: var(--tg-ink); font-weight: 500; }
.src a:hover { text-decoration: underline; }

/* ---------- guarantee ---------- */
.guarantee { position: relative; overflow: hidden; background: radial-gradient(120% 160% at 8% -20%, #3db4ff, transparent 55%), radial-gradient(110% 150% at 100% 120%, #0b74c4, transparent 60%), var(--tg-grad); color: #fff; border-radius: var(--r-lg); padding: clamp(2.2rem, 1.5rem + 4vw, 4.5rem); text-align: center; box-shadow: var(--sh-lg); }
.guarantee::before { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .18); pointer-events: none; }
.guarantee::after { content: ""; position: absolute; left: -80px; bottom: -80px; width: 300px; height: 300px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .12); pointer-events: none; }
.guarantee .idx { color: rgba(255, 255, 255, .85); }
.guarantee h2 { color: #fff; max-width: 22ch; margin: 1.2rem auto 0; }
.guarantee .lead { color: rgba(255, 255, 255, .9); max-width: 52ch; margin: 1.4rem auto 0; }
.guarantee .g-terms { color: #fff; font-weight: 600; margin-top: 2rem; font-size: .95rem; }
.gts { list-style: none; padding: 0; margin: .9rem auto 0; max-width: 48ch; display: grid; gap: .55rem; text-align: left; }
.gts li { position: relative; padding-left: 1.5rem; color: rgba(255, 255, 255, .92); font-size: .95rem; }
.gts li::before { content: ""; position: absolute; left: .35rem; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .75); }

/* ---------- faq ---------- */
.faq { max-width: 56rem; display: grid; gap: .8rem; }
.faq details { background: var(--bg); border: 1px solid var(--hair); border-radius: var(--r); padding: 0 1.3rem; transition: box-shadow var(--dur) var(--ease); }
.faq details[open] { box-shadow: var(--sh-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; padding: 1.2rem 0; font-size: 1.05rem; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--tg-tint); position: relative; transition: background var(--dur) var(--ease); }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; inset: 0; margin: auto; background: var(--tg-ink); transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.faq summary .pm::before { width: 11px; height: 2px; }
.faq summary .pm::after { width: 2px; height: 11px; }
.faq details[open] summary .pm::after { transform: scaleY(0); opacity: 0; }
.faq .a { padding: 0 0 1.3rem; max-width: 60ch; color: var(--muted); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.contact-grid h2 { max-width: 16ch; }
.contact-grid .lead { margin-top: 1.3rem; }
.pts { margin-top: 1.6rem; display: grid; gap: .7rem; list-style: none; padding: 0; }
.pts li { display: flex; gap: .6rem; align-items: baseline; color: var(--ink-2); font-size: .96rem; }
.pts .d { width: 18px; height: 18px; border-radius: 50%; background: var(--tg-tint); color: var(--tg-ink); display: grid; place-content: center; font-size: .7rem; flex: none; transform: translateY(2px); }
form.brief { background: var(--bg); border: 1px solid var(--hair); border-radius: var(--r-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.2rem); box-shadow: var(--sh); display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select { font: inherit; font-size: .98rem; color: var(--ink); padding: .8rem 1rem; background: var(--bg-soft); border: 1px solid transparent; border-radius: 11px; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.field input::placeholder { color: var(--muted); }
.field input:focus, .field select:focus { outline: none; border-color: var(--tg); background: #fff; }
.check { display: flex; align-items: flex-start; gap: .65rem; }
.check input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--tg-btn); }
.check label { font-size: .84rem; line-height: 1.45; color: var(--muted); font-weight: 400; cursor: pointer; }
.check a { color: var(--tg-ink); text-decoration: underline; }
form.brief .btn { margin-top: .4rem; }
.fstatus { font-size: .9rem; color: var(--tg-ink); font-weight: 500; display: none; }
.fstatus.show { display: block; }
.fnote { font-size: .8rem; color: var(--muted); text-align: center; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.ftr { background: var(--bg-soft); padding-block: clamp(3rem, 2rem + 3vw, 5rem); border-top: 1px solid var(--hair); }
.ftr .shell { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.ftr .wordmark { margin-bottom: .6rem; }
.ftr-col { display: grid; gap: .55rem; font-size: .92rem; }
.ftr-col h3 { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: .3rem; }
.ftr-col a { color: var(--ink-2); }
.ftr-col a:hover { color: var(--tg-ink); }
.ftr-legal { width: 100%; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--hair); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }

/* ---------- long-form pages (privacy) ---------- */
.prose { max-width: 46rem; }
.prose h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.prose h2 { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); margin-top: 2.6rem; }
.prose p { margin-top: .85rem; color: var(--ink-2); }
.prose > .muted { margin-top: .6rem; font-size: .86rem; }
.prose .back { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--hair); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
