/* ─────────────────────────────────────────────
   vadim.tewris.com — личный лендинг
   Стиль: Tewris Design System (dark grid, cyan accent)
   Mobile-first
───────────────────────────────────────────── */

:root {
  /* surfaces */
  --bg:         rgb(19, 22, 43);
  --bg-deep:    rgb(13, 15, 32);
  --surface-1:  rgb(32, 36, 68);
  --surface-2:  rgb(38, 44, 73);
  --surface-3:  rgb(50, 63, 97);
  --hairline:   rgba(255, 255, 255, 0.10);
  --hairline-2: rgba(255, 255, 255, 0.05);
  --border:     rgb(55, 62, 110);

  /* text */
  --text:       rgb(255, 255, 255);
  --text-muted: rgb(136, 143, 171);
  --text-faint: rgba(255, 255, 255, 0.45);

  /* единственный акцент */
  --cyan:       rgb(46, 253, 241);
  --cyan-soft:  rgb(90, 234, 217);
  --glow-cyan:  0 0 4px var(--cyan);

  /* radii */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-pill: 999px;

  --font-sans: "Raleway", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.025em;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(46, 154, 253, 0.08), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(136, 108, 200, 0.07), transparent 55%),
    radial-gradient(800px 400px at 50% 110%, rgba(46, 253, 241, 0.05), transparent 60%);
  background-attachment: fixed;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ───────── типографика ───────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
h1, h2, h3 { margin: 0; text-wrap: balance; }

.h-section {
  font-weight: 300;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: 0.03em;
}

/* ───────── кнопки ───────── */
.btn {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.035em;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  transition: opacity .15s ease, transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }

.btn-big { font-size: 18px; padding: 20px 40px; border-radius: var(--r-lg); }
.btn-md  { font-size: 16px; padding: 16px 32px; border-radius: var(--r-md); }

.btn-cyan { background: var(--cyan); color: var(--bg-deep); }
.btn-cyan:hover { box-shadow: 0 0 24px -2px var(--cyan); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--text);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.03); }

/* ───────── шапка ───────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--hairline);
  background: rgba(255,255,255,0.03);
  border-radius: var(--r-sm);
  flex-shrink: 0;
}
.brand-name { font-weight: 300; font-size: 18px; letter-spacing: 0.06em; white-space: nowrap; }
.brand-name b { font-weight: 700; }
.topbar .btn-md { font-size: 14px; padding: 12px 22px; }

/* ───────── hero ───────── */
.hero {
  padding: 36px 0 56px;
  border-bottom: 1px solid var(--hairline-2);
}
.hero-grid { display: flex; flex-direction: column; gap: 36px; }

.hero-photo {
  width: min(300px, 72vw);
  margin: 0 auto;
}
.hero-photo .portrait-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 28%;
  display: block;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
}
.hero-photo .photo-cap {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  margin-top: 12px;
}

.hero h1 {
  font-weight: 300;
  font-size: clamp(44px, 11vw, 92px);
  line-height: 1.04;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}
.hero-sub {
  font-weight: 300;
  font-size: clamp(22px, 5vw, 32px);
  line-height: 1.35;
  letter-spacing: 0.03em;
  margin: 0 0 22px;
  max-width: 560px;
}
.hero-sub em { font-style: normal; font-weight: 700; color: var(--cyan); }

.hero-facts {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 580px;
  margin: 0 0 32px;
}
.hero-facts b { color: var(--text); font-weight: 600; }

/* факты */
.fact-list {
  list-style: none;
  margin: 0 0 34px;
  padding: 0;
  max-width: 620px;
}
.fact-list li {
  padding: 12px 0;
  border-top: 1px solid var(--hairline-2);
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}
.fact-list li:last-child { border-bottom: 1px solid var(--hairline-2); }
.fact-list b { color: var(--text); font-weight: 600; }

/* лого-бар: монохромные плитки-слоты */
.logobar { margin-top: 56px; }
.logobar .legend {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.logo-tile {
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-sm);
  background: rgba(32, 36, 68, 0.35);
  height: 64px;
  padding: 10px;
  display: grid;
  place-items: center;
  transition: border-color .2s ease;
}
.logo-tile:hover { border-color: var(--hairline); }
.logo-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity .2s ease;
}
.logo-svg {
  width: 100%;
  height: auto;
  opacity: 0.65;
  transition: opacity .2s ease;
}
.logo-tile:hover .logo-img,
.logo-tile:hover .logo-svg { opacity: 1; }
/* Pincher: вписать целиком в плитку и приподнять (в PNG много пустого места сверху) */
.logo-img-pincher {
  max-height: 64%;
  max-width: 82%;
  transform: translateY(-12%);
}

/* ───────── секции ───────── */
section { padding: 64px 0; border-bottom: 1px solid var(--hairline-2); }
section:last-of-type { border-bottom: 0; }

.section-head { margin-bottom: 36px; }
.sec-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.2em;
  margin-bottom: 10px;
}

/* ───────── statement ───────── */
.statement {
  font-weight: 300;
  font-size: clamp(28px, 6vw, 56px);
  line-height: 1.25;
  letter-spacing: 0.02em;
  max-width: 980px;
}
.statement em { font-style: normal; font-weight: 700; color: var(--cyan); }
.statement-sm { font-size: clamp(24px, 5vw, 44px); line-height: 1.35; }

/* ───────── карточки продуктов ───────── */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.card {
  background: rgba(32, 36, 68, 0.55);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card .card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card .card-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.card .card-logo {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.03);
  padding: 7px;
  display: grid;
  place-items: center;
}
.card .card-logo.card-logo-img {
  padding: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--hairline-2);
  overflow: hidden;
}
.card .card-logo.card-logo-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.card .card-logo image-slot {
  width: 100%; height: 100%;
  display: block;
  filter: grayscale(1) brightness(1.5);
  opacity: 0.85;
}
.card h3 { font-weight: 700; font-size: 24px; letter-spacing: 0.035em; }
.card .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.card p { margin: 0; color: var(--text-muted); font-size: 15px; line-height: 1.65; }
.card p b { color: var(--text); font-weight: 600; }

.card .metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline-2);
}
.metric .m-num {
  font-weight: 300;
  font-size: 28px;
  line-height: 1.15;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}
.metric .m-cap {
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

/* NDA-плитки */
.cards.nda .card { background: rgba(32, 36, 68, 0.3); }
.cards.nda .card-top { align-items: flex-start; flex-direction: column; gap: 10px; }
.nda-name { font-weight: 600; font-size: 19px; line-height: 1.35; letter-spacing: 0.02em; }
.tag-nda {
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  padding: 4px 12px;
}

/* подблоки: NDA и Tewris */
.subblock { margin-top: 52px; }
.subblock .subhead {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.subblock .subnote { color: var(--text-muted); font-size: 14px; margin: 0 0 18px; }

.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li {
  padding: 14px 0;
  border-top: 1px solid var(--hairline-2);
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}
.plain-list li:last-child { border-bottom: 1px solid var(--hairline-2); }
.plain-list li b { color: var(--text); font-weight: 600; }

.duo-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.duo-list .who { color: var(--text); font-weight: 600; font-size: 15px; }
.duo-list .what { color: var(--text-muted); font-size: 14px; }

/* акцентная плашка */
.accent-plate {
  margin-top: 52px;
  border: 1px solid rgba(46, 253, 241, 0.35);
  border-radius: var(--r-lg);
  background: rgba(46, 253, 241, 0.04);
  padding: 30px 26px;
  font-weight: 300;
  font-size: clamp(20px, 3.4vw, 28px);
  line-height: 1.45;
  letter-spacing: 0.02em;
}
.accent-plate em { font-style: normal; font-weight: 700; color: var(--cyan); }

/* ───────── «как это работает» ───────── */
.howto { max-width: 720px; }
.howto p { margin: 0 0 20px; color: var(--text-muted); font-size: 17px; line-height: 1.75; }
.howto p b { color: var(--text); font-weight: 600; }
.howto .key {
  color: var(--text);
  font-weight: 300;
  font-size: clamp(20px, 3.2vw, 26px);
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.howto .key em { font-style: normal; font-weight: 700; color: var(--cyan); }

/* ───────── тарифы ───────── */
.pricing {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
}
.price-card {
  background: rgba(32, 36, 68, 0.55);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.price-card.is-featured {
  border-color: rgba(46, 253, 241, 0.45);
  background: rgba(46, 253, 241, 0.04);
}
.price-card .p-name { font-weight: 600; font-size: 15px; color: var(--text-muted); letter-spacing: 0.05em; }
.price-card .p-price {
  font-weight: 300;
  font-size: clamp(32px, 6vw, 44px);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.price-card.is-featured .p-price { color: var(--cyan); }
.price-card p { margin: 0; color: var(--text-muted); font-size: 15px; line-height: 1.65; flex-grow: 1; }
.price-card .p-note { font-style: italic; color: var(--text-faint); font-size: 14px; flex-grow: 0; }
.price-card .btn { align-self: flex-start; }
.pricing-fineprint {
  margin-top: 24px;
  color: var(--text-faint);
  font-size: 13px;
  line-height: 1.6;
}

/* ───────── финальный CTA ───────── */
.cta-final { text-align: left; }
.cta-sub {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 620px;
  margin: 18px 0 0;
}
.cta-sub b { color: var(--text); font-weight: 600; }

.booking-card {
  margin-top: 40px;
  border: 1px solid rgba(46, 253, 241, 0.3);
  border-radius: var(--r-lg);
  background: rgba(38, 44, 73, 0.3);
  padding: 28px 22px;
  max-width: 720px;
}
.booking-form { display: flex; flex-direction: column; gap: 12px; }
.booking-form .field {
  background: rgba(38, 44, 73, 0.15);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 17px 22px;
  color: white;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.035em;
  outline: none;
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.booking-form .field::placeholder { color: var(--text-faint); font-weight: 500; }
.booking-form .field:focus { border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.booking-form .btn { margin-top: 6px; align-self: stretch; }
.bw-note {
  margin: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* каналы */
.channels { margin-top: 44px; }
.channels .legend {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.channel-row { display: flex; gap: 14px; flex-wrap: wrap; }
.channel {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  padding: 12px 22px 12px 14px;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  transition: border-color .2s ease, background .2s ease;
}
.channel:hover { border-color: var(--cyan); background: rgba(46, 253, 241, 0.05); }

.channel .ch-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  color: var(--text);
  flex-shrink: 0;
}

/* ───────── футер ───────── */
footer {
  padding: 36px 0 110px;
  border-top: 1px solid var(--hairline-2);
  color: var(--text-faint);
  font-size: 13px;
  line-height: 1.8;
}
footer .foot-row { display: flex; flex-direction: column; gap: 6px; }
footer a { color: var(--text-muted); text-decoration: none; border-bottom: 1px solid rgba(46,253,241,0.35); }
footer a:hover { color: var(--cyan); }

/* ───────── чат-виджет (placeholder) ───────── */
.chat-fab {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 50;
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 0;
  background: var(--cyan);
  color: var(--bg-deep);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 28px -6px rgba(46, 253, 241, 0.55);
  transition: transform .15s ease, box-shadow .2s ease;
}
.chat-fab:hover { transform: translateY(-2px); box-shadow: 0 0 28px -2px var(--cyan); }
.chat-fab .fab-hint {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.chat-fab:hover .fab-hint { opacity: 1; }

/* ─────────────────────────────────────────────
   ≥ 760px — планшет
───────────────────────────────────────────── */
@media (min-width: 760px) {
  .wrap { padding: 0 40px; }
  .topbar { padding: 28px 0; }
  .brand-name { font-size: 20px; }

  .hero { padding: 56px 0 72px; }
  .hero-grid {
    flex-direction: row-reverse;
    align-items: flex-start;
    justify-content: space-between;
    gap: 48px;
  }
  .hero-photo { width: 300px; margin: 0; flex-shrink: 0; }
  .hero-copy { flex: 1; min-width: 0; }

  section { padding: 88px 0; }
  .h-section { font-size: 42px; }

  .cards { grid-template-columns: 1fr 1fr; gap: 20px; }
  .cards.nda { grid-template-columns: repeat(3, 1fr); }
  .card { padding: 30px 28px; }

  .logo-grid { grid-template-columns: repeat(5, 1fr); }
  .logo-tile { height: 72px; }

  .duo-list li { flex-direction: row; gap: 24px; align-items: baseline; }
  .duo-list .who { width: 300px; flex-shrink: 0; }

  .accent-plate { padding: 40px 44px; }

  .booking-card { padding: 36px 32px; }
  .booking-form .btn { align-self: flex-start; }

  footer .foot-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px 24px;
  }
  .chat-fab { right: 28px; bottom: 28px; }
}

/* ─────────────────────────────────────────────
   ≥ 1080px — десктоп
───────────────────────────────────────────── */
@media (min-width: 1080px) {
  .hero { padding: 72px 0 96px; }
  .hero-photo { width: 360px; }
  .hero-grid { gap: 72px; }
  section { padding: 110px 0; }
  .h-section { font-size: 48px; }
  .logobar li { font-size: 16px; }
}

/* ─────────────────────────────────────────────
   Согласие на cookie / обработку ПДн (152-ФЗ)
───────────────────────────────────────────── */
.form-consent {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-faint);
}
.form-consent a { color: var(--text-muted); border-bottom: 1px solid rgba(46,253,241,0.35); text-decoration: none; }
.form-consent a:hover { color: var(--cyan); }

.cookie-consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 130;
  display: none;
  padding: 18px 20px;
  background: rgba(19, 22, 43, 0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--hairline);
  box-shadow: 0 -14px 40px rgba(0,0,0,0.45);
}
.cookie-consent[aria-hidden="false"] { display: block; }
.cookie-consent-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 4px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}
.cookie-consent-text h3 {
  margin: 0 0 6px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--text);
}
.cookie-consent-text p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 760px;
}
.cookie-consent-text p a { color: var(--text); border-bottom: 1px solid rgba(46,253,241,0.4); text-decoration: none; }
.cookie-consent-text p a:hover { color: var(--cyan); }

.cookie-consent-cats { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.cookie-consent-cats[hidden] { display: none; }
.cookie-consent-cats li {
  padding: 12px 14px;
  background: rgba(32, 36, 68, 0.5);
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-sm);
}
.cookie-consent-cat { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; cursor: pointer; align-items: start; }
.cookie-consent-cat input { margin-top: 3px; accent-color: var(--cyan); }
.cookie-consent-cat .ttl { font-weight: 600; font-size: 14px; color: var(--text); grid-column: 2; }
.cookie-consent-cat .ttl em { font-style: normal; font-size: 12px; color: var(--text-faint); font-weight: 500; margin-left: 8px; }
.cookie-consent-cat .dsc { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; grid-column: 2; }

.cookie-consent-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cookie-consent-actions .btn { padding: 12px 22px; font-size: 14px; border-radius: var(--r-md); white-space: nowrap; }
.cookie-consent-actions .btn[hidden] { display: none; }

/* пока открыт баннер согласия — прячем плавающую кнопку бота, чтобы не перекрывала */
body.consent-open .chat-fab { display: none; }

@media (max-width: 860px) {
  .cookie-consent-inner { grid-template-columns: 1fr; gap: 16px; }
  .cookie-consent-actions { gap: 8px; }
  .cookie-consent-actions .btn { flex: 1 1 calc(50% - 4px); min-width: 0; }
}
@media (max-width: 520px) {
  .cookie-consent { padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
  .cookie-consent-actions .btn { flex: 0 0 auto; width: 100%; }
}
