/* ============================================================
   СТЕКЛО LAB — v3 styles
   светлая, минималистичная, премиальная подача
   mobile-first
   ============================================================ */

:root {
  --bg: #f5f5f3;
  --bg-soft: #ffffff;
  --bg-card: #ffffff;
  --bg-dark: #161616;
  --bg-dark-2: #1f1f1f;

  --text: #111111;
  --text-2: #3a3a3a;
  --text-muted: #7a7a7a;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: #b9b9b9;

  --line: #e6e6e2;
  --line-strong: #d4d4cf;
  --line-dark: rgba(255, 255, 255, 0.12);

  --accent: #111111;
  --accent-hover: #2a2a2a;
  --accent-light: #ffffff;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 8px 28px rgba(15, 15, 15, 0.06);
  --shadow-lg: 0 18px 60px rgba(15, 15, 15, 0.08);

  --container: 1520px;
  --gutter: 16px;

  --font: "Golos Text", "Manrope", "Inter", "Helvetica Neue", system-ui, -apple-system, Arial, sans-serif;

  --t-fast: 160ms ease;
  --t: 240ms ease;
}

* { box-sizing: border-box; }
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
  /* Низ страницы не должен прятаться за floating mobile-bar */
  padding-bottom: 92px;
}
@media (min-width: 960px) { body { padding-bottom: 0; } }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
section { scroll-margin-top: 92px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================================
   COMMON ELEMENTS
   ============================================================ */

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.section__head {
  margin-bottom: 36px;
  max-width: 760px;
}
.section__head--row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.section__title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--text);
}
.section__lead {
  margin-top: 14px;
  font-size: 16px;
  color: var(--text-2);
  max-width: 560px;
}
.section__head--row .section__lead { margin-top: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t-fast);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { background: #fff; border-color: var(--accent); }
.btn--light { background: #fff; color: var(--text); }
.btn--light:hover { background: #f0f0ec; }
.btn--full { width: 100%; }
.btn:active { transform: translateY(1px); }


/* ============================================================
   LOGO
   ============================================================ */

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  text-decoration: none;
  color: var(--text);
  user-select: none;
}
.logo__row {
  display: inline-flex;
  align-items: baseline;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 22px;
  line-height: 1;
}
.logo__main { color: var(--text); }
.logo__divider {
  display: inline-block;
  width: 1px;
  height: 0.95em;
  background: var(--text);
  margin: 0 8px;
  align-self: center;
}
.logo__lab { color: var(--text); }
.logo__rule {
  display: block;
  height: 1px;
  background: var(--text);
  width: 100%;
  margin-top: 4px;
}
.logo__sub {
  display: block;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.28em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
  text-align: center;
}
.logo--footer .logo__main,
.logo--footer .logo__lab { color: #fff; }
.logo--footer .logo__divider { background: #fff; }
.logo--footer .logo__rule { background: #fff; }
.logo--footer .logo__sub { color: rgba(255,255,255,0.55); }

/* Растровый логотип в футере — инвертируем тёмные пиксели в белые,
   прозрачные пиксели остаются прозрачными */
.logo--footer-img {
  display: block;
  width: auto;
  height: 50px;
  filter: brightness(0) invert(1);
  margin-bottom: 14px;
}

.logo--svg {
  flex-direction: row;
  align-items: center;
}
.logo__svg {
  height: 48px;
  width: auto;
  display: block;
}


/* ============================================================
   HEADER
   ============================================================ */

.header {
  position: fixed;
  left: 0; right: 0;
  top: 0;
  z-index: 50;
  background: rgba(245, 245, 243, 0.92);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background var(--t), border-color var(--t), color var(--t);
}

/* Прозрачная над hero — светлая версия (тёмный текст и логотип на белом hero) */
.header.header--over-hero {
  background: transparent;
  border-bottom-color: transparent;
}
.header.header--over-hero-light .nav a,
.header.header--over-hero-light .header__phone { color: var(--text-2); }
.header.header--over-hero-light .nav a:hover,
.header.header--over-hero-light .header__phone:hover { color: var(--text); }
.header.header--over-hero-light .msg {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line);
  color: var(--text);
}
.header.header--over-hero-light .msg:hover {
  background: #fff;
  border-color: var(--accent);
}
.header.header--over-hero-light .header__cta {
  background: var(--accent);
  color: #fff;
}
.header.header--over-hero-light .header__cta:hover { background: var(--accent-hover); }
.header.header--over-hero-light .logo__main,
.header.header--over-hero-light .logo__lab { color: var(--text); }
.header.header--over-hero-light .logo__divider,
.header.header--over-hero-light .logo__rule { background: var(--text); }
.header.header--over-hero-light .logo__sub { color: var(--text-muted); }
.header.header--over-hero-light .burger {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line);
}
.header.header--over-hero-light .burger span { background: var(--text); }
.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.nav {
  display: none;
  gap: 28px;
  margin-left: auto;
  font-size: 15px;
  color: var(--text-2);
}
.nav a:hover { color: var(--text); }
.header__right {
  display: none;
  align-items: center;
  gap: 18px;
  margin-left: 0;
}
.header__phone {
  font-weight: 500;
  font-size: 15.5px;
  white-space: nowrap;
}
.header__messengers {
  display: inline-flex;
  gap: 6px;
}
.msg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
  transition: border-color var(--t), background var(--t);
}
.msg:hover { border-color: var(--accent); }
.msg svg { width: 18px; height: 18px; fill: currentColor; }
.msg img { width: 20px; height: 20px; object-fit: contain; display: block; }
.msg--max img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}
.msg--max span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.header__cta { padding: 11px 20px; font-size: 14px; }

/* burger */
.burger {
  margin-left: auto;
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform var(--t), opacity var(--t);
}
.burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

[hidden] { display: none !important; }
.drawer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px var(--gutter) 22px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
}
.drawer a {
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}
.drawer a:last-child { border-bottom: 0; }
.drawer__phone {
  margin-top: 10px;
  font-weight: 600;
  color: var(--text);
}


/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: clamp(560px, 80vh, 820px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
  color: var(--text);
  background: var(--bg);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
/* Светлый hero: белый горизонтальный градиент слева, чёрный текст.
   На мобиле — плотнее, чтобы текст был читаем над любой частью фото. */
.hero__scrim--light {
  background:
    linear-gradient(90deg,
      rgba(245, 245, 243, 0.96) 0%,
      rgba(245, 245, 243, 0.92) 55%,
      rgba(245, 245, 243, 0.6) 80%,
      rgba(245, 245, 243, 0) 100%);
}
@media (min-width: 640px) {
  .hero__scrim--light {
    background:
      linear-gradient(90deg,
        rgba(245, 245, 243, 0.98) 0%,
        rgba(245, 245, 243, 0.95) 38%,
        rgba(245, 245, 243, 0.7) 58%,
        rgba(245, 245, 243, 0) 80%);
  }
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 80px 0 24px;
  width: 100%;
  text-align: center;
}
@media (min-width: 640px) {
  .hero__content { text-align: left; }
}
@media (min-width: 960px) {
  /* === HERO ОТСТУПЫ — поменять здесь ===
     hero-left   — отступ текста от ЛЕВОГО края (px). Сейчас 36.
     hero-top    — отступ сверху (после хедера). Сейчас 32.
     ====================================== */
  .hero .container { padding-left: 1px; padding-right: 0; }
  .hero__content { padding: 160px 0 80px; }
}
.hero__title {
  font-size: clamp(24px, 3vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--text);
  max-width: min(900px, 100%);
  min-width: 0;
  margin: 0 auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
@media (min-width: 640px) {
  .hero__title { margin: 0; }
}
.hero__title-line {
  display: block;
  max-width: 100%;
}
.hero__title-line + .hero__title-line {
  margin-top: 4px;
}
.hero__title-line--muted {
  color: #5a5a55;
  font-weight: 500;
}
.hero__title-line--accent {
  color: #4a4a45;
  font-weight: 500;
  font-size: 0.44em;
  line-height: 1.4;
  letter-spacing: 0;
  max-width: none;
  white-space: nowrap;
}
.hero__title-line + .hero__title-line--accent {
  margin-top: 20px;
}
.br-mobile { display: none; }
@media (max-width: 767px) {
  .hero__title-line--accent { white-space: normal; }
  .br-mobile { display: inline; }
}
.hero__phone {
  display: inline-block;
  margin: 18px 0 0;
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
  border-bottom: 1px solid rgba(17, 17, 17, 0.18);
  padding-bottom: 2px;
  transition: border-color var(--t), color var(--t);
}
.hero__phone:hover { border-color: var(--text); }
.hero__lead {
  margin: 18px auto 0;
  max-width: 560px;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.5;
}
@media (min-width: 640px) { .hero__lead { font-size: 16px; margin: 24px 0 0; line-height: 1.55; } }
.hero__ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}
.hero__ctas .btn { width: auto; }
@media (min-width: 640px) {
  .hero__ctas { flex-direction: row; align-items: flex-start; gap: 12px; }
}
.btn--ghost-dark {
  background: transparent;
  color: var(--text);
  border-color: rgba(17, 17, 17, 0.45);
}
.btn--ghost-dark:hover {
  background: rgba(255, 255, 255, 0.55);
  border-color: var(--accent);
}
.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(17, 17, 17, 0.4);
  border-radius: 999px;
  display: none;
}
.hero__scroll span {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 6px;
  background: var(--text);
  border-radius: 2px;
  animation: heroScroll 1.6s ease-in-out infinite;
}
@keyframes heroScroll {
  0%, 100% { transform: translate(-50%, 0); opacity: 1; }
  50% { transform: translate(-50%, 8px); opacity: 0.4; }
}
@media (min-width: 960px) {
  .hero__scroll { display: none; }
}


/* ============================================================
   USP STRIP
   ============================================================ */

.usp {
  padding: 24px 0 48px;
}
.usp__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.usp__item {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 22px 24px;
  transition: background var(--t);
}
.usp__item:first-child { border-top: 0; }
.usp__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  margin-bottom: 14px;
}
.usp__icon svg { width: 18px; height: 18px; }
.usp__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 6px;
}
.usp__text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}


/* ============================================================
   AUDIENCE TABS
   ============================================================ */

.audience {
  padding: 36px 0;
}
.tabs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  margin-bottom: 24px;
  width: 100%;
  max-width: 1120px;
}
.tab {
  min-width: 0;
  min-height: 52px;
  padding: 12px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
  transition: background var(--t), color var(--t), border-color var(--t), box-shadow var(--t);
}
.tab + .tab {
  margin-left: -1px;
}
.tab:hover { color: var(--text); }
.tab.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 10px 26px rgba(17, 17, 17, 0.12);
  z-index: 1;
}

.tab__panels { position: relative; }
.tab__panel {
  display: none;
  grid-template-columns: 1fr;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  overflow: hidden;
}
.tab__panel.is-active { display: grid; }
.tab__text .tab__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 13px;
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.tab__text h3 {
  font-size: 22px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}
.tab__text p {
  color: var(--text-2);
  font-size: 15px;
  margin: 0 0 22px;
}
.tab__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
}
.tab__list li {
  list-style: none;
  min-width: 0;
}
.work-tag {
  min-height: 78px;
  height: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 0 rgba(17, 17, 17, 0.02);
  transition: border-color var(--t), box-shadow var(--t), transform var(--t-fast), background var(--t);
}
.work-tag::after {
  content: "→";
  justify-self: end;
  font-size: 24px;
  line-height: 1;
  font-weight: 300;
  color: var(--text);
  transform: translateY(-1px);
  transition: transform var(--t-fast);
}
.work-tag:hover {
  border-color: var(--line-strong);
  box-shadow: 0 10px 24px rgba(15, 15, 15, 0.07);
  transform: translateY(-1px);
}
.work-tag:hover::after {
  transform: translate(4px, -1px);
}
.work-tag:active {
  transform: translateY(0);
}
.work-tag__icon {
  width: 34px;
  height: 34px;
  color: var(--text);
}
.work-tag span {
  min-width: 0;
  font-size: 15px;
  line-height: 1.22;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.tab__list li:nth-child(5) {
  grid-column: 1 / -1;
}

.tab__cta {
  display: block;
  width: fit-content;
  margin: 0 auto;
}
.tab__cta--desktop {
  display: none;
}
.tab__cta--mobile {
  display: block;
}
.tab__photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #ddd;
}
.tab__photo img { width: 100%; height: 100%; object-fit: cover; }


/* ============================================================
   SOLUTIONS
   ============================================================ */

.solutions { padding: 36px 0; }
.solutions__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  color: var(--text);
  text-decoration: none;
  transition: transform var(--t-fast), box-shadow var(--t);
  isolation: isolate;
}
.card:hover { box-shadow: var(--shadow-lg); }
.card__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 700ms ease;
}
.card:hover .card__media { transform: scale(1.05); }

/* Белый фейд снизу + чёрный текст поверх */
.card__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 50%,
    rgba(255, 255, 255, 0.85) 78%,
    #ffffff 100%
  );
  pointer-events: none;
}

.card__caption {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
  align-items: end;
  color: var(--text);
}
.card__title {
  grid-column: 1 / 2;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}
.card__text {
  grid-column: 1 / 2;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}
.card__arrow {
  grid-row: 1 / 3;
  grid-column: 2 / 3;
  align-self: end;
  font-size: 22px;
  line-height: 1;
  color: var(--text);
  transition: transform var(--t);
}
.card:hover .card__arrow { transform: translateX(4px); }


/* ============================================================
   MATERIALS
   ============================================================ */

.materials { padding: 36px 0; }
.materials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.material-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.material-card__sample {
  display: block;
  width: 100%;
  height: 72px;
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.material-card--clear .material-card__sample {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(230,238,238,0.42)),
    repeating-linear-gradient(90deg, rgba(17,17,17,0.08) 0 1px, transparent 1px 28px);
}
.material-card--matte .material-card__sample {
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(215,218,214,0.78));
  backdrop-filter: blur(6px);
}
.material-card--lowiron .material-card__sample {
  background: linear-gradient(135deg, #ffffff, #eaf5f2 52%, #ffffff);
}
.material-card--smoked .material-card__sample {
  background: linear-gradient(135deg, #272927, #7b817b 48%, #191a19);
}
.material-card--mirror .material-card__sample {
  background:
    linear-gradient(120deg, rgba(255,255,255,0.95) 0 18%, rgba(200,205,205,0.35) 18% 38%, rgba(255,255,255,0.7) 38% 58%, rgba(120,128,128,0.28) 58% 100%);
}
.material-card--decor .material-card__sample {
  position: relative;
  background:
    radial-gradient(circle at 18% 24%, rgba(255,255,255,0.95) 0 8%, transparent 9%),
    radial-gradient(circle at 76% 68%, rgba(255,255,255,0.7) 0 9%, transparent 10%),
    linear-gradient(135deg, #fbfaf5 0%, #e8f0ed 44%, #d8c19a 100%);
}
.material-card--decor .material-card__sample::before {
  content: "";
  position: absolute;
  inset: 8px 12px;
  border-radius: 10px;
  background:
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(17,17,17,0.12) 18px 19px),
    repeating-linear-gradient(45deg, transparent 0 22px, rgba(188,146,72,0.42) 22px 23px);
  opacity: 0.9;
}
.material-card--decor .material-card__sample::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, transparent 0 18%, rgba(255,255,255,0.78) 19% 28%, transparent 29% 100%);
}
.material-card h3 {
  font-size: 19px;
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.material-card p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
}
.material-card__meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.material-card__meta span {
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 9px;
  background: var(--bg);
}


/* ============================================================
   DARK CTA
   ============================================================ */

.cta-dark {
  margin: 36px 0;
  padding: 0;
}
.cta-dark__inner {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 56px 28px;
  color: #fff;
  display: grid;
  gap: 22px;
  overflow: hidden;
  isolation: isolate;
  background: #131313;
  min-height: 280px;
}
.cta-dark__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.7) saturate(0.95);
}
.cta-dark__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}
.cta-dark__content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 22px;
  justify-items: center;
  text-align: center;
}
.cta-dark__text {
  width: 100%;
  text-align: center;
}
.cta-dark__text h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 14px;
  color: #fff;
}
.cta-dark__text p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  max-width: 620px;
  line-height: 1.55;
  margin-left: auto;
  margin-right: auto;
}
.cta-dark__content .btn--light {
  align-self: start;
  justify-self: center;
  min-width: 260px;
  width: fit-content;
  padding-left: 34px;
  padding-right: 34px;
}


/* ============================================================
   PRICING FACTORS
   ============================================================ */

.pricing-factors { padding: 36px 0; }
.pricing-factors__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}
.pricing-factors__copy {
  max-width: 720px;
}
.factor-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.factor-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  align-items: start;
}
.factor-item span {
  grid-row: 1 / 3;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding-top: 2px;
}
.factor-item h3 {
  font-size: 17px;
  line-height: 1.2;
  font-weight: 600;
}
.factor-item p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.5;
}


/* ============================================================
   PORTFOLIO
   ============================================================ */

.portfolio { padding: 36px 0; }
.portfolio__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.portfolio__item {
  margin: 0;
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  isolation: isolate;
  min-width: 0;
  min-height: 0;
  scroll-margin-top: 108px;
}
.portfolio__item--tall { aspect-ratio: 3 / 4; }
.portfolio__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 600ms ease;
}
.portfolio__item:hover img { transform: scale(1.03); }
/* По умолчанию — чистое фото без фейда. На hover проявляется тёмный градиент снизу + подпись. */
.portfolio__item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 45%,
    rgba(0, 0, 0, 0.5) 75%,
    rgba(0, 0, 0, 0.85) 100%
  );
  opacity: 0;
  transition: opacity var(--t);
  pointer-events: none;
}
.portfolio__item:hover::after { opacity: 1; }
/* На тач-устройствах hover нет — показываем градиент всегда */
@media (hover: none), (max-width: 639px) {
  .portfolio__item::after { opacity: 1; }
}
.portfolio__item figcaption {
  position: absolute;
  z-index: 2;
  inset: auto 18px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12.5px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t), transform var(--t);
}
.portfolio__item:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}
@media (hover: none), (max-width: 639px) {
  .portfolio__item figcaption {
    opacity: 1;
    transform: translateY(0);
  }
}
.portfolio__item figcaption span {
  font-weight: 600;
  color: #fff;
  font-size: 14px;
  line-height: 1.2;
}
.portfolio__item figcaption em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12.5px;
  line-height: 1.4;
}


/* ============================================================
   OBJECTIONS
   ============================================================ */

.objections { padding: 36px 0; }
.objections__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.objection-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
}
.objection-item > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  padding-top: 2px;
}
.objection-item h3 {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 8px;
}
.objection-item p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
}


/* ============================================================
   CLIENTS
   ============================================================ */

.clients { padding: 36px 0; }
.clients__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}
.client {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 14px;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--t), transform var(--t);
}
.client:hover { border-color: var(--line-strong); }
.client img {
  max-width: 80%;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(0.78);
  transition: filter var(--t);
}
.client:hover img { filter: grayscale(0) opacity(1); }
.client--letoile img { transform: scale(1.18); }
.client--transneft img { transform: scale(1.12); }
.client--loccitane img { transform: scale(1.12); }
.client--rosatom img { transform: scale(0.92); }
.client--aton img { transform: scale(0.82); }
.client--rosatom img,
.client--aton img {
  max-width: 64%;
  max-height: 34px;
}
.client--transneft img,
.client--loccitane img,
.client--letoile img {
  max-width: 88%;
  max-height: 48px;
}
.client--x5 img,
.client--gazprom img,
.client--anex img {
  max-width: 76%;
  max-height: 42px;
}
/* Скрываем 9-й (Yappy) лого на мобиле — чтобы 8 = 4 ряда по 2, симметрично */
@media (max-width: 767px) {
  .client--mobile-hide { display: none; }
}
.clients__note {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 760px;
}


/* ============================================================
   FAQ
   ============================================================ */

.faq { padding: 36px 0; }
.faq__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.faq__copy {
  max-width: 720px;
}
.faq__list {
  display: grid;
  gap: 10px;
}
.faq__item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 18px;
}
.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 28px 18px 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 18px;
  font-size: 20px;
  line-height: 1;
  color: var(--text-muted);
}
.faq__item[open] summary::after { content: "−"; }
.faq__item p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
  padding: 0 0 18px;
  max-width: 760px;
}


/* ============================================================
   PROCESS
   ============================================================ */

.process { padding: 36px 0; }
.process__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  counter-reset: step;
}
.process__step {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  position: relative;
}
.process__num {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.process__step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}
.process__step p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
}


/* ============================================================
   CONTACT
   ============================================================ */

.contact { padding: 36px 0 80px; }
.contact__head { margin-bottom: 24px; }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.contact__form-wrap { min-width: 0; }
.form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field__label { font-size: 12px; color: var(--text-muted); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 500; }
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 13px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  transition: border-color var(--t), background var(--t);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--accent);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 110px; }

/* Поле «Ваш ник в Telegram» — скрыто, пока не выбран канал Telegram */
.field--reveal { display: none; }
.field--reveal.is-visible { display: flex; animation: fieldReveal var(--t) ease; }
@keyframes fieldReveal {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%23111' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 40px; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.check input { width: 16px; height: 16px; margin-top: 2px; }
.check__link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--t);
}
.check__link:hover { color: var(--text); }
.form__status { margin: 0; font-size: 13px; min-height: 1em; }
.form__status.is-ok { color: #1f7f3a; }
.form__status.is-err { color: #b03020; }

.contact__info { display: flex; flex-direction: column; gap: 22px; }
.contact__block { display: flex; flex-direction: column; gap: 8px; }
.contact__phone {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.contact__email {
  font-size: 16px;
  color: var(--text-2);
  border-bottom: 1px solid var(--line-strong);
  align-self: flex-start;
  padding-bottom: 1px;
}
.contact__msgs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.contact__msgs a {
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: var(--bg-card);
  transition: border-color var(--t);
}
.contact__msgs a:hover { border-color: var(--accent); }
.contact__block p { font-size: 14px; color: var(--text-2); }


/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: #131313;
  color: #fff;
  padding: 44px 0 24px;
  margin-top: 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-dark);
}
.footer__brand p {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--text-on-dark-muted);
  max-width: 420px;
  line-height: 1.55;
}
.footer__nav, .footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__nav h4, .footer__contacts h4 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  margin-bottom: 6px;
}
.footer__nav a, .footer__contacts a, .footer__contacts span {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}
.footer__nav a:hover, .footer__contacts a:hover { color: #fff; }
.footer__legal {
  padding-top: 18px;
  padding-bottom: 14px;
}
.footer__legal p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,0.55);
}
.footer__legal a {
  color: rgba(255,255,255,0.92);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--t);
}
.footer__legal a:hover { color: #fff; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  padding-top: 16px;
  border-top: 1px solid var(--line-dark);
}


/* ============================================================
   MOBILE STICKY BAR
   ============================================================ */

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
  padding: 0 12px;
}
.mobile-bar > * { pointer-events: auto; }
/* Floating liquid-glass pill */
.mobile-bar__pill {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
  backdrop-filter: saturate(180%) blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.10),
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 -1px 0 rgba(0, 0, 0, 0.04) inset;
}
.mobile-bar__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text);
  background: transparent;
  transition: background var(--t);
  -webkit-tap-highlight-color: transparent;
}
.mobile-bar__btn:active {
  background: rgba(15, 15, 15, 0.06);
}
.mobile-bar__btn svg { width: 20px; height: 20px; color: var(--text); }
.mobile-bar__btn img { width: 20px; height: 20px; object-fit: contain; display: block; }
.mobile-bar__btn span { line-height: 1; }
/* Separate circular call button */
.mobile-bar__call {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
  backdrop-filter: saturate(180%) blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.10),
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 -1px 0 rgba(0, 0, 0, 0.04) inset;
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--t);
}
.mobile-bar__call:active { transform: scale(0.94); }
.mobile-bar__call svg { width: 22px; height: 22px; }


/* ============================================================
   BACK ANCHOR BUTTON
   ============================================================ */

.back-anchor {
  position: fixed;
  right: 16px;
  bottom: 100px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 12px;
  font-size: 11px;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
.back-anchor.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-anchor svg { width: 18px; height: 18px; }
.back-anchor:hover { background: var(--bg); }
.back-anchor:active { transform: scale(0.96); }
@media (min-width: 960px) {
  .back-anchor { bottom: 28px; right: 28px; }
}


/* ============================================================
   MOBILE COMPACT PASS
   ============================================================ */

@media (max-width: 767px) {
  :root {
    --gutter: 16px;
    --radius: 14px;
    --radius-lg: 18px;
    --radius-xl: 22px;
  }

  body {
    font-size: 15px;
    line-height: 1.45;
    padding-bottom: 66px;
  }

  section { scroll-margin-top: 72px; }

  .header__inner {
    min-height: 66px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .logo__svg { height: 40px; }
  .burger {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }
  .drawer {
    padding-top: 8px;
    padding-bottom: 14px;
    font-size: 15px;
  }
  .drawer a { padding: 10px 4px; }

  .eyebrow {
    font-size: 11px;
    letter-spacing: 0.12em;
    margin-bottom: 10px;
  }
  .section__head {
    margin-bottom: 22px;
  }
  .section__head--row {
    gap: 12px;
  }
  .section__title {
    font-size: clamp(26px, 7.2vw, 30px);
    line-height: 1.08;
  }
  .section__lead {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.45;
  }

  .btn {
    min-height: 44px;
    padding: 11px 18px;
    font-size: 14px;
  }

  .hero {
    min-height: max(720px, 100svh);
    align-items: flex-start;
  }
  .hero__content {
    padding: 198px 0 24px;
  }
  .hero__title {
    font-size: clamp(24px, 6.2vw, 30px);
    line-height: 1.14;
    letter-spacing: -0.015em;
  }
  .hero__title-line + .hero__title-line {
    margin-top: 4px;
  }
  .hero__title-line--muted {
    font-size: 0.83em;
  }
  .hero__title-line--accent {
    font-size: 0.6em;
    line-height: 1.4;
  }
  .hero__title-line + .hero__title-line--accent {
    margin-top: 14px;
  }
  .hero__phone {
    margin-top: 14px;
    font-size: 16px;
  }
  .hero__ctas {
    gap: 8px;
    margin-top: 22px;
  }
  .hero__ctas .btn {
    min-width: 0;
    padding-inline: 18px;
  }

  .usp,
  .audience,
  .solutions,
  .materials,
  .pricing-factors,
  .portfolio,
  .objections,
  .clients,
  .faq,
  .process {
    padding: 26px 0;
  }

  .usp {
    padding-top: 22px;
    padding-bottom: 18px;
  }
  .audience {
    padding-top: 18px;
  }
  .usp__item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 5px 12px;
    align-items: center;
    position: relative;
    padding: 15px 16px;
  }
  .usp__icon {
    position: static;
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    width: 34px;
    height: 34px;
    margin-bottom: 0;
  }
  .usp__icon svg {
    width: 17px;
    height: 17px;
  }
  .usp__title {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin-bottom: 0;
    font-size: 15.5px;
    line-height: 1.14;
  }
  .usp__text {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    margin-top: 0;
    font-size: 13px;
    line-height: 1.38;
  }

  .tabs {
    margin-bottom: 16px;
  }
  .tab {
    min-height: 44px;
    padding: 9px 6px;
    font-size: 13px;
  }
  .tab__panel {
    gap: 12px;
    padding: 16px;
  }
  .tab__text .tab__badge {
    min-height: 24px;
    padding: 3px 11px;
    margin-bottom: 10px;
    font-size: 12px;
  }
  .tab__text h3 {
    font-size: 22px;
    margin-bottom: 14px;
  }
  .tab__text p {
    font-size: 14.5px;
    line-height: 1.45;
    margin-bottom: 14px;
  }
  .tab__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
  }
  .work-tag {
    min-height: 58px;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 8px;
    padding: 10px 10px;
    border-radius: 12px;
  }
  .work-tag__icon {
    width: 24px;
    height: 24px;
  }
  .work-tag span {
    font-size: 13px;
    line-height: 1.16;
  }
  .work-tag::after {
    display: none;
  }
  .tab__cta--mobile {
    margin-top: -4px;
  }

  .solutions__grid,
  .materials__grid,
  .factor-list,
  .objections__list,
  .faq__list,
  .process__list {
    gap: 10px;
  }
  .card {
    aspect-ratio: 16 / 10;
    border-radius: 14px;
  }
  .card__caption {
    left: 16px;
    right: 16px;
    bottom: 15px;
    gap: 4px 12px;
  }
  .card__title {
    font-size: 18px;
  }
  .card__text {
    font-size: 12.5px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .material-card {
    min-height: 0;
    padding: 16px;
    gap: 10px;
  }
  .material-card__sample {
    height: 54px;
    border-radius: 10px;
  }
  .material-card h3 {
    font-size: 18px;
  }
  .material-card p {
    font-size: 13.5px;
    line-height: 1.42;
  }
  .material-card__meta {
    gap: 5px;
  }
  .material-card__meta span {
    padding: 5px 8px;
    font-size: 11.5px;
  }

  .cta-dark {
    margin: 26px 0;
  }
  .cta-dark__inner {
    min-height: 220px;
    padding: 34px 20px;
    gap: 16px;
  }
  .cta-dark__content {
    gap: 16px;
  }
  .cta-dark__text h2 {
    font-size: 26px;
    margin-bottom: 10px;
    text-align: center;
  }
  .cta-dark__text p {
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .cta-dark__content .btn--light {
    min-height: 40px;
    padding: 9px 22px;
    font-size: 13.5px;
    width: fit-content;
    min-width: 190px;
    justify-self: center;
  }

  .factor-item {
    padding: 14px 15px;
    gap: 4px 12px;
  }
  .factor-item h3 {
    font-size: 16px;
  }
  .factor-item p {
    font-size: 13.5px;
    line-height: 1.4;
  }

  .portfolio__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .portfolio__item,
  .portfolio__item--tall {
    aspect-ratio: 4 / 5;
    border-radius: 12px;
    scroll-margin-top: 78px;
  }
  .portfolio__item figcaption {
    inset: auto 10px 10px 10px;
    gap: 1px;
  }
  .portfolio__item figcaption span {
    font-size: 12px;
  }
  .portfolio__item figcaption em {
    font-size: 11px;
    line-height: 1.25;
  }

  .objection-item {
    padding: 15px;
    gap: 10px;
  }
  .objection-item h3 {
    font-size: 16px;
    margin-bottom: 5px;
  }
  .objection-item p {
    font-size: 13.5px;
    line-height: 1.42;
  }

  .client {
    min-height: 70px;
    padding: 12px 10px;
  }
  .client img {
    max-height: 38px;
  }
  .client--rosatom img,
  .client--aton img {
    max-width: 62%;
    max-height: 32px;
  }
  .client--aton img {
    max-width: 58%;
    transform: scale(0.78);
  }
  .client--rosatom img {
    transform: scale(0.9);
  }
  .client--letoile img {
    transform: scale(1.24);
  }
  .client--transneft img,
  .client--loccitane img {
    transform: scale(1.16);
  }
  .client--transneft img,
  .client--loccitane img,
  .client--letoile img {
    max-width: 92%;
    max-height: 42px;
  }
  .client--x5 img,
  .client--gazprom img,
  .client--anex img {
    max-width: 78%;
    max-height: 38px;
  }
  .clients__grid {
    gap: 8px;
    margin-bottom: 16px;
  }
  .clients__note {
    font-size: 13px;
    line-height: 1.42;
  }

  .faq__item {
    border-radius: 14px;
    padding: 0 15px;
  }
  .faq__item summary {
    padding: 14px 26px 14px 0;
    font-size: 15px;
  }
  .faq__item summary::after {
    top: 14px;
  }
  .faq__item p {
    padding-bottom: 14px;
    font-size: 13.5px;
    line-height: 1.42;
  }

  .process__step {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 4px 12px;
    padding: 15px;
  }
  .process__num {
    grid-row: 1 / 3;
    margin-bottom: 0;
    padding-top: 2px;
  }
  .process__step h3 {
    font-size: 16px;
    margin-bottom: 0;
  }
  .process__step p {
    font-size: 13.5px;
    line-height: 1.42;
  }

  .contact {
    padding: 24px 0 62px;
  }
  .contact__head {
    margin-bottom: 14px;
  }
  .contact__grid {
    gap: 18px;
  }
  .form {
    border-radius: 18px;
    padding: 12px 14px 10px;
    gap: 8px;
  }
  .form__row {
    gap: 8px;
  }
  .field {
    gap: 4px;
  }
  .field__label {
    font-size: 11px;
    letter-spacing: 0.035em;
  }
  .field input,
  .field select,
  .field textarea {
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 14px;
  }
  .field textarea {
    min-height: 58px;
    max-height: 62px;
  }
  .check {
    gap: 8px;
    font-size: 12.5px;
    line-height: 1.35;
  }
  .check input {
    width: 15px;
    height: 15px;
    margin-top: 1px;
  }
  .form .btn {
    min-height: 42px;
    padding: 10px 18px;
    margin-top: 0;
  }
  .form__status {
    min-height: 0;
    font-size: 12px;
  }
  .contact__info {
    gap: 16px;
  }
  .contact__phone {
    font-size: 22px;
  }
  .contact__msgs a {
    padding: 8px 12px;
    font-size: 13px;
  }

  .footer {
    padding: 36px 0 22px;
  }
  .footer__inner {
    gap: 24px;
  }

  .mobile-bar {
    bottom: calc(10px + env(safe-area-inset-bottom));
    gap: 6px;
    padding: 0 10px;
  }
  .mobile-bar__pill {
    padding: 4px 5px;
  }
  .mobile-bar__btn {
    padding: 6px 12px;
    gap: 4px;
    font-size: 10px;
  }
  .mobile-bar__btn svg,
  .mobile-bar__btn img {
    width: 19px;
    height: 19px;
  }
  .mobile-bar__call {
    width: 48px;
    height: 48px;
  }
  .mobile-bar__call svg { width: 20px; height: 20px; }
  .back-anchor {
    right: 12px;
    bottom: 84px;
    padding: 7px 10px;
  }
}


/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */

@media (min-width: 640px) {
  :root { --gutter: 22px; }

  .usp__grid { grid-template-columns: 1fr 1fr; gap: 0; }
  .usp__item {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 6px 12px;
    align-items: center;
    padding: 22px 22px;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }
  .usp__item:nth-child(odd) { border-left: 0; }
  .usp__item:nth-child(-n+2) { border-top: 0; }
  .usp__icon {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0;
  }
  .usp__title {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 0;
  }
  .usp__text {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .tab__list { grid-template-columns: 1fr 1fr; }
  .solutions__grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .materials__grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .objections__list { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .clients__grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .process__list { grid-template-columns: repeat(2, 1fr); gap: 18px; }

  .form__row { grid-template-columns: 1fr 1fr; }
  .form { padding: 28px; }

  .footer__inner { grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
}


/* ============================================================
   RESPONSIVE — DESKTOP
   ============================================================ */

@media (min-width: 960px) {
  :root { --gutter: 20px; }

  .header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 36px;
  }
  .nav {
    display: inline-flex;
    margin-left: 0;
    justify-self: center;
    gap: 32px;
  }
  .header__right { display: inline-flex; }
  .burger { display: none; }
  .drawer { display: none !important; }
  .mobile-bar { display: none; }

  .hero { padding: 36px 0 56px; }
  .hero__grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 56px;
  }
  .hero__photo { aspect-ratio: 4 / 5; }
  .hero__caption { right: 20px; top: 20px; max-width: 240px; padding: 12px 16px; }

  .usp {
    position: relative;
    z-index: 3;
    margin-top: -40px;
    padding: 0 0 48px;
  }
  .usp__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    box-shadow: 0 18px 45px rgba(17, 17, 17, 0.10);
    background: #ffffff;
  }
  .usp__item {
    padding: 24px 20px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
  .usp__item:nth-child(odd) { border-left: 1px solid var(--line); }
  .usp__item:first-child { border-left: 0; }
  .usp__item:nth-child(-n+2) { border-top: 0; }

  .audience { padding: 56px 0; }
  .tabs { max-width: none; }
  .tab__panel { grid-template-columns: 1fr 1fr; padding: 32px; gap: 36px; align-items: start; }
  .tab__photo { aspect-ratio: 5 / 4; align-self: start; }
  .tab__cta--desktop {
    display: flex;
    width: fit-content;
    min-height: 48px;
    padding: 13px 30px;
    margin: 16px auto 0;
    font-size: 15px;
  }
  .tab__cta--mobile {
    display: none;
  }

  .solutions { padding: 56px 0; }
  .solutions__grid { grid-template-columns: repeat(4, 1fr); }

  .materials { padding: 56px 0; }
  .materials__grid { grid-template-columns: repeat(3, 1fr); }

  .cta-dark { margin: 56px 0; }
  .cta-dark__inner {
    grid-template-columns: 1fr;
    align-items: center;
    padding: 56px;
  }

  .portfolio { padding: 56px 0; }
  .portfolio__grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 230px;
    grid-auto-flow: dense;
    gap: 16px;
  }
  .portfolio__item { aspect-ratio: auto; height: 100%; }
  /* мозаика: 1(2×2) + 3(1×2 верт.) + 5(1×1) = 15 ячеек в 4×4 (1 пустая снизу справа) */
  .portfolio__item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
  }
  .portfolio__item--tall { grid-row: span 2; }

  .pricing-factors { padding: 56px 0; }
  .pricing-factors__grid { grid-template-columns: 0.85fr 1.15fr; gap: 56px; }
  .factor-list { gap: 12px; }

  .objections { padding: 56px 0; }
  .objections__list { grid-template-columns: repeat(4, 1fr); }
  .objection-item { grid-template-columns: 1fr; gap: 12px; }

  .clients { padding: 56px 0; }
  .clients__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .client { min-height: 140px; padding: 24px 28px; }
  .client img { max-height: 76px; max-width: 75%; }
  /* Квадратные / компактные лого — позволяем расти выше для визуального паритета */
  .client--compact img { max-height: 100px; max-width: 70%; }
  .client--rosatom img,
  .client--aton img { max-height: 62px; max-width: 60%; }
  .client--transneft img,
  .client--loccitane img,
  .client--letoile img { max-height: 86px; max-width: 86%; }
  .client--x5 img,
  .client--gazprom img,
  .client--anex img { max-height: 74px; max-width: 74%; }

  .process { padding: 56px 0; }
  .process__list { grid-template-columns: repeat(4, 1fr); }
  .process__step { padding: 26px; }

  .faq { padding: 56px 0; }
  .faq__grid { grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }

  .contact { padding: 56px 0; }
  .contact__head { margin-bottom: 36px; }
  .contact__grid { grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
  .contact__info { padding-top: 0; }

  .footer { padding: 64px 0 28px; }
  .footer__inner { grid-template-columns: 2fr 1fr 1fr; }
}


/* ============================================================
   RESPONSIVE — LARGE DESKTOP
   ============================================================ */

@media (min-width: 1200px) {
  .hero__photo { aspect-ratio: 5 / 6; }
}


/* ============================================================
   COOKIE BANNER
   ============================================================ */

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 55;
  width: max-content;
  max-width: calc(100% - 32px);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.06);
  padding: 10px 16px;
  animation: cookieFadeIn 0.35s ease both;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-banner__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-2);
}
.cookie-banner__text a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner__btn {
  flex-shrink: 0;
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--t);
}
.cookie-banner__btn:hover { background: var(--accent-hover); }

@media (max-width: 959px) {
  .cookie-banner {
    bottom: calc(80px + env(safe-area-inset-bottom));
    max-width: calc(100% - 52px);
    padding: 10px 10px;
  }
  .cookie-banner__inner { gap: 20px; }
  .cookie-banner__text { font-size: 12px; max-width: 200px; }
  .cookie-banner__btn { padding: 8px 12px; font-size: 12.5px; }
}

@keyframes cookieFadeIn {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}


/* ============================================================
   LEGAL PAGES — policy.html / agreement.html
   ============================================================ */

.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
}
.legal-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}
.legal-header__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-2);
  text-decoration: none;
  transition: color var(--t);
}
.legal-header__back:hover { color: var(--text); }
.legal-header__logo img { display: block; height: 32px; width: auto; }

.legal-page {
  padding: 32px 0 56px;
  color: var(--text);
}
.legal-page__inner {
  max-width: 820px;
  margin: 0 auto;
}
.legal-page .eyebrow { color: var(--text-muted); margin-bottom: 12px; }
.legal-page__title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.legal-page__meta {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 28px;
}
.legal-page__draft {
  background: #fff4d6;
  border: 1px solid #e9c97a;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13.5px;
  color: #5a4400;
  line-height: 1.55;
  margin: 0 0 28px;
}
.legal-page h2 {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 600;
  margin: 32px 0 12px;
  line-height: 1.3;
}
.legal-page h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 22px 0 8px;
  line-height: 1.35;
}
.legal-page p,
.legal-page ul,
.legal-page ol {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-2);
  margin: 0 0 12px;
}
.legal-page ul,
.legal-page ol { padding-left: 22px; }
.legal-page li { margin-bottom: 6px; }
.legal-page a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-page strong { color: var(--text); font-weight: 600; }

.legal-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 28px;
  font-size: 13px;
  color: var(--text-muted);
}
.legal-footer__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.legal-footer a {
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 639px) {
  .legal-page { padding: 22px 0 40px; }
  .legal-page p, .legal-page ul, .legal-page ol { font-size: 14.5px; }
}

@media print {
  body { background: #fff; color: #000; }
  .legal-header { display: none; }
  .legal-footer { display: none; }
  .legal-page__draft { display: none; }
  .legal-page .eyebrow { display: none; }
  .legal-page__meta { display: none; }
  .legal-page { padding: 0; }
  .legal-page__inner { max-width: 100%; }
  .legal-page__title {
    font-size: 26pt;
    font-weight: 700;
    color: #000;
    margin: 0 0 24px;
    page-break-after: avoid;
  }
  .legal-page h2 {
    font-size: 14pt;
    font-weight: 700;
    color: #000;
    margin: 22px 0 10px;
    page-break-after: avoid;
  }
  .legal-page h3 {
    font-size: 11pt;
    font-weight: 700;
    color: #000;
    margin: 14px 0 6px;
    page-break-after: avoid;
  }
  .legal-page p, .legal-page ul, .legal-page ol {
    font-size: 10.5pt;
    line-height: 1.5;
    color: #000;
    margin: 0 0 8px;
  }
  .legal-page li { margin-bottom: 4px; page-break-inside: avoid; }
  .legal-page a { color: #000; text-decoration: underline; }
  @page { margin: 18mm 16mm 18mm 16mm; }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .card:hover .card__photo img,
  .portfolio__item:hover img { transform: none; }
}
