/* ============================================================
   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");
}

/* ===== ТОКЕНЫ: ЦВЕТА ===== */
/* ============================================================
   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: "Plumb", "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-display: "Plumb", "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: 6px;
  --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%; }

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; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  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; }
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: 800;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1.0;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}
.page-sub {
  font-size: var(--text-md);
  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-6); }

/* ---------- Кнопки ---------- */
.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: 46px; background: currentColor;
  transition: width var(--dur-base) var(--ease-out);
}
.see svg { width: 18px; height: 18px; }
a:hover > .see::after, .see:hover::after { width: 64px; }
.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: 232px;
  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: 700; 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; }

/* размещение плиток */
.b-photo     { grid-column: 1 / 6;  grid-row: 1 / 3; }
.b-design    { grid-column: 6 / 9;  grid-row: 1; }
.b-where     { grid-column: 9 / 13; grid-row: 1; }
.b-install   { grid-column: 6 / 9;  grid-row: 2; }
.b-video     { grid-column: 9 / 13; grid-row: 2; }
.b-care      { grid-column: 1 / 7;  grid-row: 3; }
.b-transport { grid-column: 7 / 13; grid-row: 3; }
.b-photo .btile__title { font-size: var(--text-3xl); }

/* «Где купить» — оранжевая плитка */
.btile--orange { background: var(--action); }
.btile--orange::after { display: none; }
.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-radius: var(--radius-xs);
  background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.4);
  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: 16px; height: 16px; }

.play-badge {
  width: 56px; height: 56px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; background: #fff;
}
.play-badge svg { width: 22px; height: 22px; color: var(--ink); margin-left: 3px; }

/* ---------- 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: 800; 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-md); font-weight: var(--fw-light); 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); }

/* ---------- ПРОЕКТНЫЕ КАРТОЧКИ (фотогалерея) ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.proj { display: flex; flex-direction: column; gap: 10px; }
.proj__main { aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: clip; background: var(--surface-muted); cursor: pointer; }
.proj__main img, .proj__main image-slot { width: 100%; height: 100%; display: block; }
.proj__thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; cursor: pointer; }
.proj__thumbs > * { aspect-ratio: 3/2; border-radius: var(--radius-sm); overflow: clip; background: var(--surface-muted); }
.proj__thumbs img, .proj__thumbs image-slot { width: 100%; height: 100%; display: block; }
.proj__cap { font-size: var(--text-sm); color: var(--text-body); line-height: var(--leading-normal); margin-top: 4px; text-wrap: pretty; }

/* ---------- ВИДЕО-КАРТОЧКИ ---------- */
.vid-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.vid { display: flex; flex-direction: column; }
.vid__thumb { position: relative; aspect-ratio: 16/11; border-radius: var(--radius-sm); overflow: clip; background: var(--slate-700); }
.vid__thumb img, .vid__thumb image-slot { width: 100%; height: 100%; 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: 3px; }
.vid__title { font-size: var(--text-md); font-weight: var(--fw-medium); color: var(--ink); margin: 16px 0 6px; }
.vid__meta { font-size: var(--text-sm); color: var(--text-muted); }
.vid__text { font-size: var(--text-sm); color: var(--text-muted); margin-top: 8px; }
.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__cover { position: relative; aspect-ratio: 16/10; border-radius: var(--radius-sm); overflow: clip; background: var(--slate-700); box-shadow: var(--shadow-sm); display: flex; }
.pdf__left { position: relative; flex: 1 1 56%; 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%; }
.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 { flex: 1 1 44%; background: #f4f3f1; display: grid; place-items: center; padding: var(--space-3); }
.pdf__draw { width: 100%; height: 100%; opacity: 0.85; }
.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; }
.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(--action); }
.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: 18px; height: 18px; }
.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); }
.rule-head h2 { font-family: var(--font-serif); font-weight: 700; font-size: var(--text-xl); color: var(--ink); white-space: nowrap; }
.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 b { color: #fff; font-weight: var(--fw-medium); }

.contacts-page { display: grid; gap: var(--space-7); max-width: 42rem; }
.contacts-page__card { display: grid; gap: var(--space-4); font-size: var(--text-md); }
.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); }
.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-md); 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) {
  .bento { grid-auto-rows: auto; }
  .bento > .btile { grid-column: 1 / 13 !important; grid-row: auto !important; min-height: 220px; }
  .b-photo { min-height: 300px !important; }
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .vid-grid, .pdf-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .proj-grid, .vid-grid, .pdf-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .toggle { width: 100%; }
  .toggle a { flex: 1; justify-content: center; }
  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-md); }
.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 { position: relative; aspect-ratio: 16/9; border-radius: var(--radius-md); overflow: hidden; background: #000; margin-bottom: var(--space-6); box-shadow: var(--shadow-card); }
.uplast-embed iframe, .uplast-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.uplast-content { font-size: var(--text-md); 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); }
.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; }
.collection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.collection-card { background: #fff; border-radius: var(--radius-md); padding: var(--space-5); box-shadow: var(--shadow-card); }
.collection-card__title { margin: 0 0 var(--space-3); font-family: var(--font-serif); }
.collection-card__links { display: flex; flex-direction: column; gap: 8px; }
.collection-card__links a { color: var(--teal-600); text-decoration: none; }
@media (max-width: 920px) { .collection-grid { grid-template-columns: 1fr; } }

/* ---------- Преимущества ---------- */
.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__media {
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-4);
}
.advantage-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.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);
}
@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.12) 100%
  );
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  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: 100%;
  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;
}
.btile--orange .btile__title,
.btile--orange .btile__desc,
.btile--orange .where-actions {
  position: relative;
  z-index: 1;
}
body.page-home .b-care .btile__title,
body.page-home .b-transport .btile__title {
  max-width: 20ch;
}

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

/* ---------- Карта сайта (HTML) ---------- */
.sitemap-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.sitemap-list a { font-size: var(--text-md); 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); }
