/* ============================================================
   U-PLAST WordPress Theme — собранные стили
   Токены дизайн-системы U-Plast + стили сайта (по референсам).
   Не редактируйте напрямую — это сборка. Источник: тема U-Plast.
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700;800;900&display=swap");

/* ===== ШРИФТЫ (Plumb) ===== */
/* ============================================================
   U-PLAST — Webfonts
   "Plumb" — geometric humanist sans with full Cyrillic support.
   This is the family used in the U-Plast logo and Дизайн-экспресс UI.
   Three weights are shipped: Light (300), Medium (500), Bold (700).
   ============================================================ */

@font-face {
  font-family: "Plumb";
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/plumblightc-Ea-7Dpj.otf") format("opentype");
}

@font-face {
  font-family: "Plumb";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/plumbmediumc--V0yZrk.otf") format("opentype");
}

@font-face {
  font-family: "Plumb";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/plumbboldc-Hnt91hn.otf") format("opentype");
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope/Manrope-VariableFont_wght-ywMpMgc.ttf") format("truetype");
  font-display: swap;
}


/* ===== ТОКЕНЫ: ЦВЕТА ===== */
/* ============================================================
   U-PLAST — Color tokens
   Brand palette sampled from the U-Plast logo and the
   Дизайн-экспресс (Design Express) facade visualizer UI.
   ------------------------------------------------------------
   Teal     #009CA0  — primary brand mark (roof, dot, "express")
   Orange   #EC691F  — action / accent (CTAs, outlines, steps)
   Charcoal #2B2A29  — wordmark, body text on light
   Slate    #3F414B  — dark UI canvas of the visualizer
   ============================================================ */

:root {
  /* ---- Brand: Teal (primary) ---- */
  --teal-700: #0a6f72;
  --teal-600: #088184;
  --teal-500: #009ca0;   /* core brand teal */
  --teal-400: #2cb3b6;
  --teal-300: #6fcccd;
  --teal-200: #aee2e3;
  --teal-100: #dcf2f2;
  --teal-050: #eef9f9;

  /* ---- Brand: Orange (accent / action) ---- */
  --orange-700: #b84d12;
  --orange-600: #d65a18;
  --orange-500: #ec691f;   /* core action orange */
  --orange-400: #f3853f;
  --orange-300: #f7a772;
  --orange-200: #fbcaa8;
  --orange-100: #fde4d4;
  --orange-050: #fef3ec;

  /* ---- Charcoal (ink) ---- */
  --charcoal: #2b2a29;     /* wordmark + primary ink */
  --charcoal-soft: #3a3936;

  /* ---- Slate (dark UI canvas / neutrals, blue-grey) ---- */
  --slate-900: #25272d;
  --slate-800: #2e3037;   /* card on dark canvas */
  --slate-700: #34373f;   /* raised card on dark */
  --slate-600: #3f414b;   /* visualizer canvas */
  --slate-500: #565963;
  --slate-400: #777b86;
  --slate-300: #9a9da6;
  --slate-200: #c2c4cb;
  --slate-150: #d8dadf;
  --slate-100: #e8e9ec;
  --slate-050: #f4f5f6;

  --white: #ffffff;
  --black: #000000;

  /* ---- Semantic: surfaces ---- */
  --surface-canvas: var(--slate-600);     /* dark visualizer background */
  --surface-page: var(--slate-050);       /* light marketing page */
  --surface-card: var(--white);           /* card on light */
  --surface-card-dark: var(--slate-800);  /* card on dark canvas */
  --surface-raised-dark: var(--slate-700);
  --surface-muted: var(--slate-100);

  /* ---- Semantic: text ---- */
  --text-strong: var(--charcoal);         /* headings on light */
  --text-body: var(--charcoal-soft);      /* body on light */
  --text-muted: var(--slate-400);         /* captions on light */
  --text-on-dark: var(--white);           /* text on slate canvas */
  --text-on-dark-muted: var(--slate-300);
  --text-on-teal: var(--white);
  --text-on-orange: var(--white);

  /* ---- Semantic: brand roles ---- */
  --brand: var(--teal-500);
  --brand-strong: var(--teal-600);
  --brand-soft: var(--teal-100);
  --action: var(--orange-500);            /* primary CTA color */
  --action-hover: var(--orange-600);
  --action-soft: var(--orange-050);

  /* ---- Semantic: lines / borders ---- */
  --border-light: var(--slate-150);
  --border-strong: var(--slate-300);
  --border-on-dark: rgba(255, 255, 255, 0.14);
  --focus-ring: var(--teal-400);

  /* ---- Status ---- */
  --success: #2faa6a;
  --warning: #e8a626;
  --danger: #d8442e;
  --info: var(--teal-500);

  /* ---- Decor / material accent colours (Ю-Пласт Декор) ---- */
  --decor-white: #f3f3f1;
  --decor-brown: #5b4636;
  --decor-graphite: #3c3f44;
}

/* ===== ТОКЕНЫ: ТИПОГРАФИКА ===== */
/* ============================================================
   U-PLAST — Typography tokens
   Single family: "Plumb" (Light 300 / Medium 500 / Bold 700).
   The brand voice is confident and architectural: tight, bold
   headlines; calm light body. Cyrillic-first.
   ============================================================ */

:root {
  --font-sans: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-display: "Manrope", system-ui, sans-serif;

  /* weights */
  --fw-light: 300;   /* @kind other */
  --fw-medium: 500;  /* @kind other */
  --fw-bold: 700;    /* @kind other */

  /* Type scale (1.250 major-third-ish, tuned for UI) */
  --text-2xs: 0.6875rem;  /* 11px — micro labels */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px — body */
  --text-md: 1.125rem;    /* 18px */
  --text-lg: 1.375rem;    /* 22px */
  --text-xl: 1.75rem;     /* 28px */
  --text-2xl: 2.25rem;    /* 36px */
  --text-3xl: 3rem;       /* 48px */
  --text-4xl: 4rem;       /* 64px — hero */

  /* line-heights */
  --leading-tight: 1.05;
  --leading-snug: 1.2;
  --leading-normal: 1.45;
  --leading-relaxed: 1.65;

  /* letter-spacing */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.04em;
  --tracking-caps: 0.12em;  /* uppercase eyebrows / section labels */
}

/* ===== ТОКЕНЫ: ОТСТУПЫ/РАДИУСЫ/ТЕНИ ===== */
/* ============================================================
   U-PLAST — Spacing, radius, shadow, motion tokens
   ============================================================ */

:root {
  /* ---- Spacing (4px base grid) ---- */
  --space-0: 0;
  --space-1: 0.25rem;   /* 4 */
  --space-2: 0.5rem;    /* 8 */
  --space-3: 0.75rem;   /* 12 */
  --space-4: 1rem;      /* 16 */
  --space-5: 1.5rem;    /* 24 */
  --space-6: 2rem;      /* 32 */
  --space-7: 3rem;      /* 48 */
  --space-8: 4rem;      /* 64 */
  --space-9: 6rem;      /* 96 */

  /* ---- Radius ---- */
  /* The visualizer uses generous, friendly rounding: pill CTAs,
     soft 16–24px cards, ~10px on inputs/chips. */
  --radius-xs: 4px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* ---- Shadows ---- */
  /* Soft, neutral elevation — cards float on the slate canvas. */
  --shadow-sm: 0 1px 2px rgba(20, 22, 28, 0.08);
  --shadow-md: 0 6px 18px rgba(20, 22, 28, 0.12);
  --shadow-lg: 0 18px 48px rgba(20, 22, 28, 0.18);
  --shadow-card: 0 10px 30px rgba(20, 22, 28, 0.10);
  /* glow used on the active teal CTA */
  --shadow-action: 0 10px 24px rgba(236, 105, 31, 0.30);
  --shadow-brand: 0 10px 24px rgba(0, 156, 160, 0.28);

  /* ---- Motion ---- */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);   /* @kind other */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);        /* @kind other */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1); /* @kind other */
  --dur-fast: 120ms;   /* @kind other */
  --dur-base: 200ms;   /* @kind other */
  --dur-slow: 340ms;   /* @kind other */

  /* ---- Layout ---- */
  --container-narrow: 480px;   /* visualizer panel width */
  --container-md: 880px;
  --container-lg: 1200px;
}

/* ===== БАЗОВЫЙ СЛОЙ ===== */
/* ============================================================
   U-PLAST — Base layer + signature surfaces
   Resets, body defaults, and the diamond-texture canvas used
   across the Дизайн-экспресс visualizer.
   ============================================================ */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
}
html.has-contact-notice {
  overflow: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: var(--fw-light);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--text-strong);
  margin: 0;
}

/* ---- Signature diamond texture (dark canvas) ----
   A faint cross-hatched diamond grid on the slate background.
   Apply .up-canvas to any dark surface to get it. */
.up-canvas {
  background-color: var(--slate-600);
  background-image:
    repeating-linear-gradient(45deg,
      rgba(255,255,255,0.022) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(-45deg,
      rgba(255,255,255,0.022) 0 1px, transparent 1px 14px);
  background-position: center;
  color: var(--text-on-dark);
}

/* slightly deeper vignette variant for full-screen frames */
.up-canvas--deep {
  background-color: var(--slate-600);
  background-image:
    radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,0.04), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.022) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.022) 0 1px, transparent 1px 14px);
}

/* ---- Uppercase eyebrow / section label ---- */
.up-eyebrow {
  font-weight: var(--fw-medium);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--brand);
}

/* ===== СТИЛИ САЙТА ===== */
/* ============================================================
   U-PLAST — Сайт для покупателей (по референсам)
   Серифный дисплей (Playfair) на тёплом кремовом фоне,
   чёрная шапка с соцсетями, тёмный футер. Цвета/спейсинг —
   из дизайн-системы U-Plast.
   ============================================================ */


:root {
  --font-serif: "Playfair Display", "PT Serif", Georgia, "Times New Roman", serif;

  /* тёплый кремовый фон страницы (дериватив нейтрали под референс) */
  --page-bg: #ebe7e0;
  --page-bg-soft: #f1eee8;
  --ink: var(--charcoal);
  --header-bg: #211f1d;
  --footer-bg: #1b1a18;

  --header-h: 84px;
  --maxw: 1200px;
}

/* ---------- Базовое ---------- */
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  min-width: 0;
  overflow-x: clip;
  font-family: var(--font-sans);
  font-weight: var(--fw-light);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-body);
  background: var(--page-bg);
}
main { flex: 1 0 auto; min-width: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--teal-200); color: var(--charcoal); }

/* ---------- Утилиты ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--space-5); }
.section { padding-block: clamp(var(--space-7), 6vw, var(--space-9)); }
.section--tight { padding-block: var(--space-7); }
.center { text-align: center; }
.muted { color: var(--text-muted); }

/* ---------- Типографика ---------- */
.serif { font-family: var(--font-serif); }

.page-title {
  font-family: var(--font-serif);
  font-weight: 100;
  font-size: clamp(1.5rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-wrap: balance;
  hyphens: auto;
}
.page-sub {
  font-size: var(--text-base);
  font-weight: var(--fw-light);
  color: var(--text-body);
  line-height: var(--leading-normal);
  max-width: 52ch;
  margin: var(--space-4) 0 0;
  text-wrap: pretty;
}
.serif-h {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  line-height: 1.1;
}
.eyebrow {
  display: inline-block;
  font-weight: var(--fw-medium);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--brand);
}

/* page header (заголовок раздела) */
.page-head {
  padding-top: var(--space-8);
  padding-bottom: var(--space-4);
  min-width: 0;
}
.page-head--with-back { padding-top: var(--space-8); }
.page-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-body);
  transition: color var(--dur-fast) var(--ease-standard);
}
.page-back:hover { color: var(--ink); }
.page-back__icon { display: grid; place-items: center; }
.page-back__icon svg { width: 18px; height: 14px; }

/* ---------- СТРАНИЦЫ ОШИБОК ---------- */
.error-page__section {
  display: flex;
  align-items: center;
  min-height: clamp(420px, 58vh, 640px);
  padding-block: var(--space-8);
}
.error-page__card {
  width: min(100%, 34rem);
  margin-inline: auto;
  padding: clamp(var(--space-6), 5vw, var(--space-8));
  border-radius: var(--radius-md);
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
  text-align: center;
}
.error-page__code {
  margin: 0 0 var(--space-4);
  font-family: var(--font-serif);
  font-weight: 100;
  font-size: clamp(4.5rem, 16vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--teal-500);
}
.error-page__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 100;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
  text-wrap: balance;
}
.error-page__text {
  margin: var(--space-4) auto 0;
  max-width: 34ch;
  font-size: var(--text-base);
  font-weight: var(--fw-light);
  line-height: var(--leading-relaxed);
  color: var(--text-body);
  text-wrap: pretty;
}
.error-page__actions {
  justify-content: center;
  margin-top: var(--space-6);
}

.page-body { padding-top: var(--space-4); padding-bottom: var(--space-7); }
.page-hero {
  aspect-ratio: 1980 / 620;
  border-radius: var(--radius-md);
  overflow: clip;
  background: var(--surface-muted);
  margin-bottom: var(--space-6);
}
.page-hero img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.page-content > :first-child { margin-top: 0; }

/* ---------- Кнопки ---------- */
.btn {
  --btn-bg: var(--charcoal); --btn-fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-sans); font-weight: var(--fw-medium); font-size: var(--text-base);
  line-height: 1; padding: 15px 26px; border-radius: var(--radius-pill);
  background: var(--btn-bg); color: var(--btn-fg); border: 2px solid transparent; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-standard), background var(--dur-base) var(--ease-standard);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--action { --btn-bg: var(--action); --btn-fg: var(--text-on-orange); box-shadow: var(--shadow-action); }
.btn--action:hover { --btn-bg: var(--action-hover); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--charcoal); background: rgba(0,0,0,0.04); }
.btn--sm { padding: 10px 18px; font-size: var(--text-sm); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

/* «СМОТРЕТЬ →» в стиле референса: подчёркнутая ссылка с линией под текстом */
.see {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: var(--text-sm); font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  color: #fff;
}
.see::after {
  content: ""; height: 1px; width: 110px; background: currentColor;
  transition: width var(--dur-base) var(--ease-out);
  position: absolute; bottom: 20px;
}
.see svg { width: 22px; height: 16px; }
a:hover > .see::after, .see:hover::after { width: 130px; }
.see--ink { color: var(--ink); }

/* ---------- ШАПКА (чёрная) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: var(--header-bg);
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: var(--space-6); }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 48px; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 30px); margin: 0 auto; }
.nav a {
  font-size: var(--text-sm); font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  color: rgba(255,255,255,0.82); white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-standard);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal-300); }

.social-row { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.social-row a { color: rgba(255,255,255,0.8); transition: color var(--dur-fast) var(--ease-standard); }
.social-row a:hover { color: var(--teal-300); }
.social-row svg { width: 22px; height: 22px; display: block; }

.burger { display: none; }

/* ---------- BENTO (главная) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 320px;
  gap: var(--space-4);
}
.btile {
  position: relative; overflow: clip; border-radius: var(--radius-sm);
  display: flex; flex-direction: column;
  padding: clamp(24px, 2.4vw, 32px); color: #fff; isolation: isolate;
  background: var(--slate-700);
}
.btile__body {
  margin-top: auto;
  flex-shrink: 0;
  min-height: 0;
}
.btile__media { position: absolute; inset: 0; z-index: -2; }
.btile__media img, .btile__media image-slot { width: 100%; height: 100%; object-fit: cover; display: block; }
.btile::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,20,22,0.05) 0%, rgba(20,20,22,0.30) 45%, rgba(15,15,17,0.86) 100%);
}
.btile__title { font-family: var(--font-serif); font-weight: 100; font-size: var(--text-2xl); line-height: 1.05; color: #fff; margin: 0; }
.btile__desc { font-size: var(--text-2xs); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: rgba(255,255,255,0.78); margin: 10px 0 0; max-width: 32ch; line-height: 1.5; }
.btile .see { margin-top: var(--space-4); flex-shrink: 0; }
.btile--play .btile__title { display: inline-flex; align-items: center; gap: 18px; }

/* Ячейки сетки по порядку (position); координаты задаёт BentoLayoutResolver */
.bento-slot--hero .btile__title { font-size: var(--text-3xl); }
.bento-slot--sm .btile__title,
.bento-slot--md .btile__title { font-size: var(--text-xl); }
body.page-home .bento-slot--wide .btile__title { max-width: 20ch; }

/* «Где купить» — оранжевая плитка */
.btile--orange { background: var(--action); }
.btile--orange::after { display: none; }
.btile--orange.btile--has-media::after {
  display: block;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20, 20, 22, 0.08) 0%, rgba(20, 20, 22, 0.35) 45%, rgba(15, 15, 17, 0.82) 100%);
}
.btile--orange .btile__map { position: absolute; inset: 0; z-index: -1; opacity: 0.5; mix-blend-mode: soft-light; object-fit: cover; }
.btile--orange .btile__title { font-size: var(--text-2xl); }
.btile--orange .btile__desc { color: rgba(255,255,255,0.9); margin-top: 10px; }
.btile--orange .where-actions { margin-top: var(--space-4); flex-shrink: 0; }
.where-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.where-btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 16px;
  min-width: 168px; padding: 11px 16px; border: 1px solid rgba(255,255,255,0.28); border-radius: var(--radius-xs);
  background: transparent;
  color: #fff; font-size: var(--text-sm); font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  transition: background var(--dur-fast) var(--ease-standard);
}
.where-btn:hover { background: rgba(255,255,255,0.28); }
.where-btn svg { width: 20px; height: 14px; }

.play-badge {
  width: 56px; height: 56px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; background: #fff;
  transition: background var(--dur-fast) var(--ease-standard);
}
.play-badge:hover { background: rgba(255,255,255,0.9); }
.play-badge svg { width: 22px; height: 22px; color: var(--ink); margin-left: -1px; }

/* ---------- HERO (главная) ---------- */
.home-hero { position: relative; min-height: 460px; display: flex; align-items: center; overflow: clip; }
.home-hero__media { position: absolute; inset: 0; z-index: 0; }
.home-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.home-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(15,14,13,0.78) 0%, rgba(15,14,13,0.55) 38%, rgba(15,14,13,0.12) 70%, rgba(15,14,13,0.3) 100%); }
.home-hero__inner { position: relative; z-index: 2; padding-block: clamp(var(--space-7), 7vw, 110px); }
.home-hero .eyebrow { color: var(--teal-300); }
.home-hero__title { font-family: var(--font-serif); font-weight: 100; font-size: clamp(2.8rem, 6.5vw, 5rem); line-height: 1.0; color: #fff; margin: 14px 0 18px; }
.home-hero__sub { font-size: var(--text-base); font-weight: var(--fw-light); letter-spacing: 0.3px; color: rgba(255,255,255,0.86); max-width: 34ch; line-height: var(--leading-normal); }

/* ---------- ЧИПЫ-ФИЛЬТР ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  padding: 11px 22px; border-radius: var(--radius-pill);
  font-size: var(--text-sm); font-weight: var(--fw-medium);
  background: transparent; color: var(--charcoal-soft);
  border: 1px solid var(--border-strong); cursor: pointer;
  transition: all var(--dur-fast) var(--ease-standard); white-space: nowrap;
}
.chip:hover { border-color: var(--charcoal); }
.chip[aria-pressed="true"] { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }

.gallery-filters { margin-bottom: var(--space-2); position: relative; }
.gallery-filters__dropdown { display: none; }
.filter-dropdown { position: relative; width: 100%; min-width: 0; }
.filter-dropdown__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  min-width: 0;
  padding: 12px 18px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-strong);
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  line-height: var(--leading-normal);
  color: var(--charcoal);
  background: #ebe7e0;
  cursor: pointer;
  list-style: none;
  transition: border-color var(--dur-fast) var(--ease-standard);
}
.filter-dropdown__toggle::-webkit-details-marker { display: none; }
.filter-dropdown__toggle::marker { content: ""; }
.filter-dropdown[open] .filter-dropdown__toggle {
  border-color: var(--teal-500);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.filter-dropdown__value {
  flex: 1;
  min-width: 0;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.filter-dropdown__chevron {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23212121' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform var(--dur-fast) var(--ease-standard);
}
.filter-dropdown[open] .filter-dropdown__chevron { transform: rotate(180deg); }
.filter-dropdown__toggle:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
.filter-dropdown__menu {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  max-height: min(60vh, 360px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--border-strong);
  border-top: 0;
  border-radius: 0 0 var(--radius-xs) var(--radius-xs);
  background: #ebe7e0;
  box-shadow: var(--shadow-lg);
}
.filter-dropdown__option {
  display: block;
  padding: 12px 18px;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  line-height: var(--leading-normal);
  color: var(--charcoal);
  text-wrap: pretty;
  overflow-wrap: anywhere;
  word-break: break-word;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard);
}
.filter-dropdown__option:last-child { border-bottom: 0; }
.filter-dropdown__option:hover { background: rgba(45, 125, 111, 0.08); }
.filter-dropdown__option.is-active {
  background: var(--teal-500);
  color: #fff;
}
.filter-dropdown__option.is-active:hover { background: var(--teal-600, #2d7d6f); }
.gallery-section .container { min-width: 0; overflow-x: clip; }

/* ---------- ПРОЕКТНЫЕ КАРТОЧКИ (фотогалерея) ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); align-items: stretch; min-width: 0; }
.proj { display: flex; flex-direction: column; gap: 10px; min-width: 0; max-width: 100%; height: 100%; }
.proj__photos {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.proj__main {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: clip;
  background: var(--surface-muted);
  cursor: pointer;
  width: 100%;
  min-width: 0;
  min-height: 0;
  flex-shrink: 0;
}
.proj__main img, .proj__main image-slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.proj__thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  cursor: pointer;
  min-width: 0;
  flex-shrink: 0;
}
.proj__photos--no-main .proj__thumbs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.proj__thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: clip;
  background: transparent;
  min-width: 0;
  min-height: 0;
}
.proj__thumb:empty {
  background: rgba(0, 0, 0, 0.04);
}
.proj__thumb img, .proj__thumb image-slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.proj__cap {
  font-size: var(--text-sm);
  color: var(--text-body);
  line-height: var(--leading-normal);
  margin: 4px 0 0;
  text-wrap: pretty;
  white-space: pre-line;
  max-height: calc(4 * var(--leading-normal) * 1em);
  overflow: hidden;
}

/* ---------- ВИДЕО-КАРТОЧКИ ---------- */
.vid-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); align-items: start; }
.vid { display: flex; flex-direction: column; min-width: 0; }
.vid:focus { outline: none; }
.vid:focus-visible .vid__thumb {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
.vid__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  min-height: 0;
  border-radius: var(--radius-sm);
  overflow: clip;
  background: var(--slate-700);
}
.vid__thumb--player { background: #000; }
.vid__thumb img, .vid__thumb image-slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.vid__thumb--player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.vid__play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.95); transition: transform var(--dur-base) var(--ease-spring); }
.vid:hover .vid__play { transform: scale(1.08); }
.vid__play svg { width: 24px; height: 24px; color: var(--ink); margin-left: -1px; }
.vid__title {
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
  color: var(--ink);
  margin: 16px 0 6px;
  min-height: 2.5em;
  line-height: 1.25;
}
.vid__meta {
  font-size: var(--text-sm);
  color: var(--text-muted);
  min-height: 1.35em;
  line-height: 1.35;
}
.vid__text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: 8px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
.vid__text img {
  display: none;
}
.vid__text > :first-child { margin-top: 0; }
.vid__text > :last-child { margin-bottom: 0; }

/* ---------- PDF-КАРТОЧКИ (инструкции) ---------- */
.pdf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.pdf { display: flex; flex-direction: column; }
.pdf:focus { outline: none; }
.pdf:focus-visible .pdf__cover {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
.pdf__cover { position: relative; aspect-ratio: 16/10; border-radius: var(--radius-xs); overflow: clip; background: var(--slate-700); box-shadow: var(--shadow-card); display: flex; }
.pdf__left { position: relative; flex: 1 1 68%; overflow: clip; color: #fff; padding: var(--space-4); display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.pdf__left img, .pdf__left image-slot { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.pdf__left::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,15,17,0.45), rgba(15,15,17,0.78)); }
.pdf__logo { position: absolute; top: var(--space-4); left: var(--space-4); height: 22px; z-index: 1; }
.pdf__coverttl { font-size: var(--text-sm); font-weight: var(--fw-bold); line-height: 1.2; text-transform: uppercase; letter-spacing: 0.02em; }
.pdf__right {
  position: relative;
  flex: 1 1 32%;
  min-width: 0;
  min-height: 0;
  overflow: clip;
  background: #f4f3f1;
}
.pdf__draw,
.pdf__scheme { width: 100%; height: 100%; opacity: 0.85; }
.pdf__scheme {
  position: absolute;
  inset: 0;
  display: block;
  object-fit: cover;
  object-position: center;
}
.pdf__draw {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.pdf__title { font-size: var(--text-base); font-weight: var(--fw-medium); color: var(--ink); margin: 16px 0 6px; }
.pdf__excerpt { font-size: var(--text-sm); color: var(--text-muted); margin: 0 0 8px; line-height: 1.4; }
.pdf__text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: 8px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
.pdf__text > :first-child { margin-top: 0; }
.pdf__text > :last-child { margin-bottom: 0; }
.pdf__meta { display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-sm); color: var(--text-muted); }
.pdf__meta svg { width: 16px; height: 16px; color: var(--slate-400); }
.pdf__meta a { color: var(--text-muted); }
.pdf__meta a:hover { color: var(--action); }

/* ---------- ПЕРЕКЛЮЧАТЕЛЬ (инструкции) ---------- */
.toggle { display: inline-flex; gap: 14px; }
.toggle a {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: var(--radius-xs);
  font-size: var(--text-sm); font-weight: var(--fw-medium);
  border: 1px solid var(--border-strong); color: var(--charcoal-soft);
  transition: all var(--dur-fast) var(--ease-standard);
}
.toggle a svg { width: 22px; height: 22px; flex-shrink: 0; }
.toggle a:hover { border-color: var(--charcoal); }
.toggle a.is-active { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }

/* заголовок секции с линией */
.rule-head { display: flex; align-items: center; gap: var(--space-5); margin-bottom: var(--space-6); min-width: 0; }
.rule-head h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--ink);
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-wrap: balance;
}
.rule-head::after { content: ""; flex: 1; height: 1px; background: var(--border-strong); }

/* ---------- ПАГИНАЦИЯ ---------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: var(--space-7); }
.pager a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font-size: var(--text-sm); font-weight: var(--fw-medium); color: var(--charcoal-soft);
  border: 1px solid var(--border-strong); transition: all var(--dur-fast) var(--ease-standard);
}
.pager a:hover { border-color: var(--charcoal); }
.pager a[aria-current="page"] { background: var(--teal-500); color: #fff; border-color: var(--teal-500); }
.pager .dots { border: none; }

/* ---------- ФУТЕР ---------- */
.site-footer { background: var(--footer-bg); color: #fff; }
.site-footer .container { padding-block: var(--space-8) var(--space-6); }
.footer-top { display: grid; grid-template-columns: 1.1fr 1.2fr 1.4fr auto; gap: var(--space-6); align-items: start; }
.footer-brand img { height: 56px; }
.footer-col h4 { font-size: var(--text-2xs); font-weight: var(--fw-medium); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--teal-300); margin: 0 0 var(--space-4); }
.footer-contact { display: grid; gap: 12px; font-size: var(--text-base); color: rgba(255,255,255,0.82); }
.footer-contact a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-standard);
}
.footer-contact a:hover { color: var(--teal-300); }
.footer-contact b { color: #fff; font-weight: var(--fw-medium); transition: color var(--dur-fast) var(--ease-standard); }
.footer-contact a:hover b { color: var(--teal-300); }

.contacts-page { display: grid; gap: var(--space-7); max-width: 42rem; }
.contacts-page__card { display: grid; gap: var(--space-4); font-size: var(--text-base); }
.contacts-page__phone { font-family: var(--font-serif); font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: var(--fw-medium); margin: 0; }
.contacts-page__phone a { color: inherit; text-decoration: none; }
.contacts-page__phone a:hover { color: var(--teal-600); }
.contacts-page__meta { margin: 0; color: var(--text-muted); line-height: var(--leading-normal); }
.contacts-page__meta a { color: var(--teal-600); text-decoration: none; }
.contacts-page__meta a:hover { text-decoration: underline; }
.contacts-page__extra { margin-top: var(--space-2); }

/* ---------- Контакты ---------- */
.contacts-split {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(var(--space-5), 4vw, var(--space-8));
  align-items: start;
}
.contacts-info__title {
  margin: 0 0 var(--space-4);
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  font-weight: 100;
  line-height: 1.05;
  color: var(--ink);
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-wrap: balance;
  hyphens: auto;
}
.contacts-info__intro {
  margin: 0 0 var(--space-6);
  max-width: 38ch;
  color: var(--text-body);
  line-height: var(--leading-relaxed);
}
.contacts-list { display: grid; gap: var(--space-5); }
.contacts-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
}
.contacts-row__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--charcoal);
  color: #fff;
  display: grid;
  place-items: center;
}
.contacts-row__icon svg { width: 22px; height: 22px; }
.contacts-row__body { display: grid; gap: 4px; padding-top: 2px; }
.contacts-row__label {
  margin: 0;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-muted);
}
.contacts-row__value {
  margin: 0;
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--ink);
}
.contacts-row__value--phone {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  font-weight: var(--fw-medium);
  text-decoration: none;
}
.contacts-row__value--phone:hover { color: var(--teal-600); }
a.contacts-row__value { color: var(--teal-600); text-decoration: none; }
a.contacts-row__value:hover { text-decoration: underline; }
.contacts-row__hint {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.contacts-requisites {
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
}
.contacts-requisites__title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 100;
  color: var(--ink);
}
.contacts-requisites__body {
  margin: 0;
  color: var(--text-body);
  line-height: var(--leading-relaxed);
  white-space: pre-line;
}
.contacts-map {
  min-height: 520px;
  border-radius: var(--radius-md);
  overflow: clip;
  background: var(--surface-muted);
  box-shadow: var(--shadow-card);
}
.contacts-map iframe {
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 0;
  display: block;
}
.contacts-map__fallback {
  min-height: 520px;
  display: grid;
  place-content: center;
  gap: var(--space-3);
  color: var(--teal-600);
  text-decoration: none;
  font-size: var(--text-lg);
}
.contacts-map__fallback svg { width: 32px; height: 32px; margin-inline: auto; }
.contacts-bottom { padding-top: 0; }
.contacts-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: 1px solid rgba(33, 31, 29, 0.1);
  border-radius: 14px;
  overflow: hidden;
}
.contacts-panel__col {
  padding: clamp(28px, 4vw, 44px);
}
.contacts-panel__col--form {
  position: relative;
}
.contacts-panel__col--form::after {
  content: "";
  position: absolute;
  top: clamp(28px, 4vw, 44px);
  bottom: clamp(28px, 4vw, 44px);
  right: 0;
  width: 1px;
  background: rgba(33, 31, 29, 0.1);
  pointer-events: none;
}
.contacts-panel__title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}
.contacts-panel__intro {
  margin: 0 0 var(--space-5);
  max-width: 36ch;
  color: var(--text-body);
  line-height: var(--leading-relaxed);
}
.contact-notice {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: var(--space-5);
}
.contact-notice[hidden] { display: none !important; }
.contact-notice__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(20, 20, 22, 0);
  cursor: pointer;
  transition: background 280ms var(--ease-standard);
}
.contact-notice.is-open .contact-notice__backdrop {
  background: rgba(20, 20, 22, 0.52);
}
.contact-notice__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  padding: var(--space-6) var(--space-5) var(--space-5);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition:
    opacity 280ms var(--ease-standard),
    transform 280ms var(--ease-spring);
}
.contact-notice.is-open .contact-notice__dialog {
  opacity: 1;
  transform: none;
}
.contact-notice__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(33, 31, 29, 0.06);
  color: var(--ink);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-standard);
}
.contact-notice__close:hover { background: rgba(33, 31, 29, 0.12); }
.contact-notice__close svg { width: 18px; height: 18px; }
.contact-notice__message {
  margin: 0;
  padding-right: var(--space-6);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--ink);
}
.contact-notice--error .contact-notice__dialog {
  border-top: 4px solid #b42318;
}
.contact-notice--success .contact-notice__dialog {
  border-top: 4px solid var(--teal-500);
}
@media (prefers-reduced-motion: reduce) {
  .contact-notice__backdrop,
  .contact-notice__dialog {
    transition: none;
  }
}
.contacts-form { display: grid; gap: 14px; }
.contacts-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  align-items: start;
}
.contacts-form__field {
  display: grid;
  grid-template-rows: auto minmax(1.35em, auto);
  gap: 6px;
  align-content: start;
  min-width: 0;
}
.contacts-form__field--full { grid-column: 1 / -1; }
.contacts-form__error {
  margin: 0;
  min-height: 1.35em;
  font-size: var(--text-sm);
  color: #b42318;
  line-height: 1.35;
}
.contacts-form__error:empty {
  visibility: hidden;
}
.contacts-input.is-invalid {
  border-color: #b42318;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.08);
}
.contacts-input {
  width: 100%;
  border: 1px solid rgba(33, 31, 29, 0.14);
  border-radius: 6px;
  padding: 15px 16px;
  font: inherit;
  font-size: var(--text-base);
  color: var(--ink);
  background: #fff;
  transition: border-color var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard);
}
.contacts-input::placeholder {
  color: rgba(33, 31, 29, 0.55);
}
.contacts-input:focus {
  outline: none;
  border-color: rgba(33, 31, 29, 0.28);
  box-shadow: 0 0 0 3px rgba(33, 31, 29, 0.06);
}
.contacts-input--area {
  min-height: 132px;
  resize: vertical;
}
.contacts-form__submit {
  justify-self: start;
  margin-top: var(--space-3);
  padding: 15px 28px;
  border: 0;
  border-radius: 6px;
  background: var(--charcoal);
  color: #fff;
  font: inherit;
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-standard), transform var(--dur-fast) var(--ease-standard);
}
.contacts-form__submit:hover {
  background: #000;
  transform: translateY(-1px);
}
.contacts-form__submit.is-loading {
  opacity: 0.72;
  pointer-events: none;
  transform: none;
}
.contacts-social-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.contacts-social-list li {
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(33, 31, 29, 0.1);
}
.contacts-social-list li:last-child { border-bottom: 0; }
.contacts-social-link {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(33, 31, 29, 0.1);
  color: var(--ink);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-standard);
}
.contacts-social-link:first-child { padding-top: 0; }
.contacts-social-link:last-child { border-bottom: 0; padding-bottom: 0; }
.contacts-social-link:hover { color: var(--teal-600); }
.contacts-social-link__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--charcoal);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.contacts-social-link__icon svg { width: 18px; height: 18px; }
.contacts-social-link__label {
  font-size: var(--text-base);
  line-height: 1.3;
}
.contacts-social-link__arrow {
  font-size: 1.1rem;
  line-height: 1;
  color: var(--ink);
  opacity: 0.72;
}
@media (max-width: 920px) {
  .contacts-split,
  .contacts-panel,
  .contacts-form__grid { grid-template-columns: 1fr; }
  .contacts-panel__col--form::after { display: none; }
  .contacts-panel__col--form { border-bottom: 1px solid rgba(33, 31, 29, 0.1); }
  .contacts-map { min-height: 360px; }
  .contacts-map iframe,
  .contacts-map__fallback { min-height: 360px; }
}
.footer-nav { columns: 2; column-gap: var(--space-5); }
.footer-nav a { display: block; font-size: var(--text-sm); color: rgba(255,255,255,0.72); margin-bottom: 11px; transition: color var(--dur-fast) var(--ease-standard); }
.footer-nav a:hover { color: var(--teal-300); }
.footer-soc { display: flex; gap: 16px; }
.footer-soc a { color: rgba(255,255,255,0.8); transition: color var(--dur-fast) var(--ease-standard); }
.footer-soc a:hover { color: var(--teal-300); }
.footer-soc svg { width: 24px; height: 24px; }
.footer-bottom { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; font-size: var(--text-sm); color: rgba(255,255,255,0.55); }
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--teal-300); }
.footer-bottom__links { display: flex; gap: var(--space-5); }

/* ---------- Мобильное меню ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 150; background: rgba(20,20,22,0.6); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity var(--dur-base) var(--ease-standard); }
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu__panel { position: absolute; top: 0; right: 0; width: min(86vw, 360px); height: 100%; background: var(--header-bg); padding: var(--space-6) var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); transform: translateX(100%); transition: transform var(--dur-slow) var(--ease-out); }
.mobile-menu.open .mobile-menu__panel { transform: none; }
.mobile-menu__panel a { padding: 13px 14px; border-radius: var(--radius-xs); font-size: var(--text-base); font-weight: var(--fw-medium); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: rgba(255,255,255,0.85); }
.mobile-menu__panel a:hover { background: rgba(255,255,255,0.08); color: var(--teal-300); }
.mobile-menu__close { align-self: flex-end; width: 44px; height: 44px; border: none; background: rgba(255,255,255,0.1); border-radius: 50%; cursor: pointer; margin-bottom: var(--space-3); display: grid; place-items: center; color: #fff; }
.mobile-menu__close svg { width: 22px; height: 22px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--radius-xs); border: 1px solid rgba(255,255,255,0.25); background: transparent; color: #fff; margin-left: auto; cursor: pointer; }
  .burger svg { width: 24px; height: 24px; }
  .social-row { display: none; }
}
@media (max-width: 920px) {
  .page-head--with-back { padding-top: var(--space-5); }
  .gallery-filters__chips { display: none; }
  .gallery-filters__dropdown { display: block; }
  .proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
  .lightbox { padding: var(--space-5); }
  .lightbox__image { max-width: 100%; width: 100%; }
  .lightbox__nav--prev { left: var(--space-3); }
  .lightbox__nav--next { right: var(--space-3); }
  .lightbox__close { top: var(--space-3); right: var(--space-3); }
  .vid-grid, .pdf-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .bento { grid-auto-rows: auto; }
  .bento > .btile { grid-column: 1 / 13 !important; grid-row: auto !important; min-height: 220px; }
  /* На мобилке все блоки в колонку, размеры/шрифты должны не зависеть от desktop-слотов */
  .bento-slot--hero,
  .bento-slot--sm,
  .bento-slot--md,
  .bento-slot--wide { min-height: 220px !important; }
  .bento-slot--hero .btile__title,
  .bento-slot--sm .btile__title,
  .bento-slot--md .btile__title,
  .bento-slot--wide .btile__title { font-size: var(--text-2xl); }
  body.page-home .bento-slot--wide .btile__title { max-width: none; }
}
@media (max-width: 600px) {
  .proj-grid, .vid-grid, .pdf-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .toggle { width: 100%; }
  .toggle a {
    flex: 1;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 12px;
    text-align: left;
    line-height: 1.35;
  }
  .toggle a svg { width: 28px; height: 28px; margin-top: 1px; }
  body.page-home .home-hero::after {
    background: linear-gradient(180deg, rgba(15,14,13,0.55) 0%, rgba(15,14,13,0.72) 45%, rgba(15,14,13,0.55) 100%);
  }
  body.page-home .home-hero__inner {
    text-align: center;
    margin-inline: auto;
  }
  body.page-home .home-hero__sub {
    margin-inline: auto;
  }
}

/* ============================================================
   WordPress-специфичные дополнения
   ============================================================ */
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.wp-empty-note { text-align: center; color: var(--text-muted); padding: var(--space-7) 0; font-size: var(--text-base); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px){ .admin-bar .site-header { top: 46px; } }
/* выпадающее подменю верхней навигации */
.nav .menu-item { position: relative; }
.nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--header-bg); padding: 10px 0; border-radius: var(--radius-xs); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: all var(--dur-base) var(--ease-out); z-index: 120; }
.nav .menu-item:hover > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav .sub-menu a { display: block; padding: 9px 18px; }


/* ===== Видео-эмбеды и контент записей ===== */
.uplast-embed,
.uplast-content .youtube-embed-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  margin: var(--space-6) 0;
  box-shadow: var(--shadow-card);
}
.uplast-content .youtube-embed-wrapper {
  padding: 0 !important;
  height: auto !important;
}
.uplast-embed iframe,
.uplast-embed video,
.uplast-content .youtube-embed-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}
.uplast-content iframe,
.uplast-content video {
  display: block;
  width: 100% !important;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto !important;
  margin: var(--space-6) 0;
  border: 0;
  border-radius: var(--radius-md);
  background: #000;
  box-shadow: var(--shadow-card);
}
.uplast-content .youtube-embed-wrapper iframe,
.uplast-content .uplast-embed iframe {
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  aspect-ratio: auto;
}
.uplast-content figure:has(iframe),
.uplast-content figure:has(video) {
  width: 100%;
  margin: var(--space-6) 0;
}
.uplast-content p:has(> iframe:only-child),
.uplast-content p:has(> .youtube-embed-wrapper:only-child),
.uplast-content p:has(> .uplast-embed:only-child) {
  margin: var(--space-6) 0;
}
.uplast-content { font-size: var(--text-base); line-height: var(--leading-relaxed); color: var(--text-body); }
.uplast-content h2 { font-family: var(--font-serif); font-size: var(--text-xl); color: var(--ink); margin: var(--space-6) 0 var(--space-3); }
.uplast-content h3 { font-size: var(--text-lg); color: var(--ink); margin: var(--space-5) 0 var(--space-2); }
.uplast-content p { margin: 0 0 var(--space-4); }
.uplast-content a { color: var(--teal-600); text-decoration: underline; }
.uplast-content img { border-radius: var(--radius-sm); }
.uplast-content ul, .uplast-content ol { padding-left: 1.3em; margin: 0 0 var(--space-4); }
.uplast-content li { margin-bottom: 8px; }
.crumbs a:hover { color: var(--teal-600); }

/* Пагинация */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: var(--space-7); flex-wrap: wrap; }
.pagination__link { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--radius-xs); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.pagination__link.is-active { background: var(--teal-600); border-color: var(--teal-600); color: #fff; }
.lightbox, .video-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.88); display: grid; place-items: center; padding: 24px; }
.lightbox[hidden], .video-modal[hidden] { display: none !important; }
.lightbox__image { max-width: min(1200px, 100%); max-height: 85vh; object-fit: contain; border-radius: var(--radius-sm); touch-action: pan-y pinch-zoom; }
.lightbox__close, .video-modal__close { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; cursor: pointer; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 28px; cursor: pointer; }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
.video-modal__frame { width: min(960px, 100%); aspect-ratio: 16/9; background: #000; border-radius: var(--radius-md); overflow: hidden; }
.video-modal__frame iframe { width: 100%; height: 100%; border: 0; }
button.vid { width: 100%; text-align: left; border: 0; background: transparent; padding: 0; cursor: pointer; font: inherit; color: inherit; }
article.vid { width: 100%; margin: 0; }
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  align-items: stretch;
}
.collection-card {
  display: flex;
  flex-direction: column;
  min-height: 168px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: var(--space-6) var(--space-5);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.collection-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.collection-card__title {
  margin: 0 0 var(--space-5);
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: var(--fw-medium);
  line-height: var(--leading-snug);
  color: var(--ink);
}
.collection-card__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: auto;
}
.collection-card__link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--teal-600);
  text-decoration: none;
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
  line-height: var(--leading-normal);
  transition: color var(--dur-fast) var(--ease-standard);
}
.collection-card__link:hover {
  color: var(--teal-500);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.collection-card__link:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 2px;
}
.collection-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-base);
}
@media (max-width: 1100px) {
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .collection-grid { grid-template-columns: 1fr; }
  .collection-card { min-height: 0; }
}

.page-section + .page-section {
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-light);
}
.page-section__title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 100;
  color: var(--ink);
}
.page-section__sub {
  margin: 0 0 var(--space-5);
  color: var(--text-muted);
  max-width: 62ch;
  line-height: var(--leading-normal);
}

.page-section--advantages { margin-bottom: var(--space-5); }

.page-section--about .page-hero { margin-bottom: var(--space-5); }

/* ---------- Преимущества ---------- */
.advantage-intro { margin-bottom: var(--space-6); max-width: 62ch; }
.page-intro { margin-bottom: var(--space-6); max-width: 62ch; }
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.advantage-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-card);
}
.advantage-card__title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  color: var(--ink);
}
.advantage-card__desc {
  margin: 0;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--text-body);
}
.advantage-card--photo {
  position: relative;
  overflow: clip;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: clamp(24px, 2.4vw, 32px);
  color: #fff;
  background: var(--slate-700);
}
.advantage-card--photo .advantage-card__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.advantage-card--photo .advantage-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.advantage-card--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20,20,22,0.05) 0%, rgba(20,20,22,0.30) 45%, rgba(15,15,17,0.86) 100%);
}
.advantage-card--photo .advantage-card__body {
  margin-top: auto;
}
.advantage-card--photo .advantage-card__title {
  font-weight: 100;
  font-size: var(--text-2xl);
  line-height: 1.05;
  color: #fff;
}
.advantage-card--photo .advantage-card__desc {
  margin-top: 10px;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.78);
  max-width: 32ch;
  line-height: 1.5;
}
@media (max-width: 920px) {
  .advantage-grid { grid-template-columns: 1fr; }
}
@media (min-width: 921px) and (max-width: 1100px) {
  .advantage-grid { grid-template-columns: repeat(2, 1fr); }
}



/* Custom */

body.page-home .site-header {
  margin-bottom: calc(-1 * var(--header-h));
  background: linear-gradient(
      180deg,
      rgba(33, 31, 29, 0.92) 0%,
      rgba(33, 31, 29, 0.58) 55%,
      rgba(33, 31, 29, 0.01) 100%
  );
  transition: background var(--dur-base) var(--ease-standard);
}
body.page-home .site-header.is-solid {
  background: var(--header-bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.page-home .home-hero {
  min-height: clamp(520px, 72vh, 760px);
}
body.page-home .home-hero__inner {
  padding-top: calc(var(--header-h) + clamp(var(--space-6), 5vw, var(--space-8)));
  padding-bottom: clamp(var(--space-7), 8vw, 120px);
}
.btile--orange .btile__map {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: auto;
  opacity: 0.78;
  mix-blend-mode: screen;
  object-fit: cover;
  filter: drop-shadow(0 0 28px rgba(255, 255, 255, 0.22));
  pointer-events: none;
  top: -11%;
  left: 20%;
}
.btile--orange .btile__title,
.btile--orange .btile__desc,
.btile--orange .where-actions {
  position: relative;
  z-index: 1;
}

@media (max-width: 920px) {
  body.page-home .bento {
    grid-auto-rows: auto;
  }
  body.page-home .btile:not(.is-first) {
    min-height: 248px;
  }
}

/* ---------- Карта сайта (HTML) ---------- */
.sitemap-section + .sitemap-section { margin-top: var(--space-7); }
.sitemap-section__title {
  margin: 0 0 var(--space-4);
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 100;
  color: var(--ink);
}
.sitemap-nav {
  columns: 2;
  column-gap: var(--space-5);
}
.sitemap-nav a {
  display: block;
  margin-bottom: 11px;
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
  color: var(--ink);
  text-decoration: none;
  break-inside: avoid;
}
.sitemap-nav a:hover { color: var(--teal-600); }
@media (max-width: 640px) {
  .sitemap-nav { columns: 1; }
}
.sitemap-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.sitemap-list a { font-size: var(--text-base); font-weight: var(--fw-medium); color: var(--ink); text-decoration: none; }
.sitemap-list a:hover { color: var(--teal-600); }
.sitemap-list__meta { font-size: var(--text-sm); color: var(--text-muted); margin-left: 10px; }
.sitemap-xml { margin-top: var(--space-7); font-size: var(--text-sm); }
.sitemap-xml a { color: var(--text-muted); text-decoration: underline; }
.sitemap-xml a:hover { color: var(--teal-600); }
