/* =========================================================
   1. BASE — минимальный reset (вместо Bootstrap 5)
   ========================================================= */

@media (prefers-reduced-motion: no-preference) {
  :root { scroll-behavior: smooth; }
}

body { -webkit-text-size-adjust: 100%; }

hr { margin: 1rem 0; color: inherit; border: 0; border-top: 1px solid; opacity: .25; }

h1, h2, h3, h4, h5, h6 { margin-top: 0; margin-bottom: .5rem; font-weight: 500; line-height: 1.2; }
h1 { font-size: calc(1.375rem + 1.5vw); }
h2 { font-size: calc(1.325rem + .9vw); }
h3 { font-size: calc(1.3rem + .6vw); }
h4 { font-size: calc(1.275rem + .3vw); }
@media (min-width: 1200px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }
  h4 { font-size: 1.5rem; }
}

p { margin-top: 0; margin-bottom: 1rem; }
ul { padding-left: 2rem; margin-top: 0; margin-bottom: 1rem; }
ul ul { margin-bottom: 0; }
strong { font-weight: bolder; }
a:not([href]):not([class]) { color: inherit; text-decoration: none; }
img, svg { vertical-align: middle; }
label { display: inline-block; }
button, input, select, textarea { margin: 0; font-family: inherit; font-size: inherit; line-height: inherit; }
button, select { text-transform: none; }
button, [type="submit"] { -webkit-appearance: button; }
button:not(:disabled), [type="submit"]:not(:disabled) { cursor: pointer; }
textarea { resize: vertical; }
[hidden] { display: none !important; }

/* =========================================================
   2. ТЕМА И КОМПОНЕНТЫ (бывший style.css)
   ========================================================= */
/* =========================================================
   Antra — Architecture & Interior Design
   Single-page recreation (homepage only).
   Palette and typography derived from the original
   Antra template CSS variables.
   ========================================================= */

:root {
  /* Brand palette */   /* warm gold — primary accent */   /* page background */   /* beige tint (blockquote) */   /* dark sections, footer */

  /* Type */
  --ff-heading: "Cal Sans", "Inter", system-ui, sans-serif;
  --ff-body:    "Golos Text", "Inter", system-ui, sans-serif;

  /* Layout */
  --container:        1320px;
  --container-2:      1180px;
  --section-pad:      120px;
  --section-pad-sm:   90px;
  --radius:           24px;
  --radius-sm:        12px;
  --radius-pill:      100px;
  --transition:       .35s cubic-bezier(.4, 0, .2, 1);
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
body {
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.625;
  color: var(--color-text);
  background: var(--color-bg);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent); }
ul { list-style: none; padding: 0; margin: 0; }
button { border-radius: 0; font-family: inherit; cursor: pointer; border: 0; background: transparent; }
h1, h2, h3, h4 {
  font-family: var(--ff-heading);
  color: var(--color-heading);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}

/* =========================================================
   Reusable bits
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.sub-heading {
  padding: 8px 18px;
  border: 1px solid rgba(114,114,114,.18);
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
  background: var(--color-white);
}

.section-title {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.section-title .accent { color: var(--color-accent); font-style: italic; }

.section-desc {
  font-size: 17px;
  color: var(--color-text);
  margin-bottom: 32px;
  max-width: 540px;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 70px;
}
.section-head .section-title { margin-bottom: 16px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  user-select: none;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  transition: all var(--transition);
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn i { transition: transform var(--transition); }
.btn:hover i { transform: translateX(4px); }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(202,160,92,.5);
}

.btn-ghost {
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--color-accent);
}

.btn-sm { padding: 12px 22px; font-size: 14px; }

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal[data-reveal="left"]  { transform: translateX(-32px); }
.reveal[data-reveal="right"] { transform: translateX(32px); }
.reveal[data-reveal="left"].is-visible,
.reveal[data-reveal="right"].is-visible { transform: none; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px 0;
  border-bottom: 1px solid transparent;
  transition: padding var(--transition), border-color var(--transition), background var(--transition);
}
.site-header.is-stuck {
  padding: 12px 0;
  border-bottom-color: var(--color-border);
  background: rgba(255,255,255,.95);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  font-family: var(--ff-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-heading);
  letter-spacing: -0.02em;
}
.logo-mark {
  place-items: center;
  color: var(--color-white);
  border-radius: 8px;
  font-size: 18px;
  margin-right: 4px;
  line-height: 1;
}
.logo .dot { color: var(--color-accent); }
.logo:hover { color: var(--color-heading); }

.main-nav { flex: 1; }
.main-nav ul {
  display: flex;
  justify-content: center;
  gap: 36px;
}
.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-heading);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  position: relative;
}
.main-nav a i { font-size: 10px; opacity: .55; }
.main-nav a::after {
  content: "";
  position: absolute;
  inset: auto 50% -2px 50%;
  height: 2px;
  background: var(--color-accent);
  transition: inset var(--transition);
}
.main-nav li:hover a::after,
.main-nav li.active a::after { inset: auto 0 -2px 0; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-phone {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-heading);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.header-phone i {
  width: 32px; height: 32px;
  display: inline-grid;
  place-items: center;
  background: var(--color-bg-warm);
  border-radius: 50%;
  color: var(--color-accent);
  font-size: 12px;
}
.mobile-toggle { display: none; }

/* =========================================================
   Hero
   ========================================================= */
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-title {
  margin-bottom: 26px;
}
.hero-desc {
  font-size: 18px;
  color: var(--color-text);
  max-width: 520px;
  margin-bottom: 38px;
}
.hero-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.play-circle {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 12px;
  margin-right: 4px;
}

.hero-visual { position: relative; }

/* =========================================================
   Sections (generic)
   ========================================================= */
section { position: relative; }
.services-section { padding: var(--section-pad) 0; }
.blog-section     { padding: var(--section-pad) 0; background: var(--color-white); }

/* =========================================================
   Page header (used by inner pages)
   ========================================================= */
.page-header {
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(202,160,92,.18), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(202,160,92,.12), transparent 50%);
  z-index: 0;
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 {
  color: var(--color-white);
  font-size: clamp(40px, 5.5vw, 72px);
  margin-bottom: 14px;
}
.page-header .breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,.7);
  margin: 0;
}
.page-header .breadcrumb a {
  color: rgba(255,255,255,.7);
  transition: color var(--transition);
}
.page-header .breadcrumb a:hover { color: var(--color-accent); }
.page-header .breadcrumb i { font-size: 10px; opacity: .6; }
@media (max-width: 640px) {
  .page-header { padding: 160px 0 80px; }
}

/* =========================================================
   Services grid
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-icon {
  place-items: center;
  transition: all var(--transition);
}
.service-card:hover .service-icon {
  background: var(--color-accent);
  color: var(--color-white);
}
.service-desc {
  margin-bottom: 20px;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* =========================================================
   About
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 32px;
  margin: 0 0 36px;
}
.about-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--color-heading);
  font-size: 15px;
}
.about-features i {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-bg-warm);
  color: var(--color-accent);
  display: inline-grid;
  place-items: center;
  font-size: 13px;
}
.about-visual { position: relative; }
.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 30px 80px -30px rgba(28,28,29,.35);
}
.about-bg-text {
  right: -40px;
  top: -60px;
  letter-spacing: -0.04em;
  line-height: 1;
  user-select: none;
}

/* =========================================================
   Feature list (left list + right photo)
   ========================================================= */

/* =========================================================
   Counters
   ========================================================= */
.counter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.counter-card {
  padding: 30px 20px;
  border-radius: var(--radius);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
}
.counter-num {
  display: inline-block;
}
.counter-plus {
  font-family: var(--ff-heading);
  font-size: clamp(36px, 4vw, 48px);
  color: var(--color-accent);
  font-weight: 600;
  margin-left: 4px;
}

/* =========================================================
   Process
   ========================================================= */

/* =========================================================
   Projects
   ========================================================= */

/* =========================================================
   Testimonial
   ========================================================= */

/* =========================================================
   Gallery marquee
   ========================================================= */

/* =========================================================
   Team
   ========================================================= */

/* =========================================================
   Video section
   ========================================================= */

/* =========================================================
   Blog
   ========================================================= */

/* =========================================================
   Newsletter
   ========================================================= */

/* =========================================================
   Contact
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

/* =========================================================
   Footer
   ========================================================= */
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  position: relative;
  z-index: 2;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  display: inline-grid;
  place-items: center;
  color: rgba(255,255,255,.75);
  transition: all var(--transition);
}
.footer-social a:hover {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 14px;
  position: relative;
  z-index: 2;
}
.footer-bottom p { margin: 0; }

/* =========================================================
   Scroll progress
   ========================================================= */

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  :root { --section-pad: 90px; }
  .hero-grid, .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .counter-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav, .header-phone { display: none; }
  .mobile-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }
  .header-actions .btn { padding: 12px 20px; font-size: 13px; }
  .about-bg-text { font-size: 100px; top: -30px; right: 0; }
}

@media (max-width: 640px) {
  :root { --section-pad: 70px; --section-pad-sm: 60px; }
  .container { padding: 0 20px; }
  .services-grid, .counter-grid, .footer-grid { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
}
/* =========================================================
   3. STUGNUM — бренд-оверрайды (бывший stugnum.css)
   ========================================================= */
/* =========================================================
   STUGNUM — color override on top of base Antra template
   Brand colors: forest green / black / beige
   This file loads AFTER style.css and rewrites the CSS vars.
   ========================================================= */

:root {
  /* brand greens — взяты из логотипа STUGNUM (тёмно-лесной зелёный ~#2D4A2B) */
  --color-accent:         #2D4A2B;   /* основной зелёный — CTA, акценты */
  --color-accent-hover:   #1F3620;   /* тёмнее при наведении */

  /* backgrounds — бежевые/тёплые, как у Antra, но теплее */
  --color-bg:             #F5EFE3;   /* основной фон страницы — бежевый */
  --color-bg-warm:        #EDE6D6;   /* тёплый бежевый для цитат/блоков */
  --color-bg-soft:        #F9F4E8;   /* совсем светлый бежевый */

  /* darks — вместо угольно-чёрного берём тёмно-зелёный/чёрный */
  --color-dark:           #161814;   /* тёмные секции (футер, about) */
  --color-heading:        #14140F;   /* цвет заголовков — почти чёрный */

  /* text — нейтральный, читаемый */
  --color-text:           #3D3D38;
  --color-text-muted:     #6B6B62;
  --color-meta:           #8A8A80;

  --color-border:         #D8D2C2;
  --color-white:          #FFFFFF;
  --color-black:          #0A0A0A;
}

/* =========================================================
   Дополнительные брендовые элементы STUGNUM
   ========================================================= */

/* Шапка — лёгкий эффект «деревянной доски» */
.site-header {
  background: rgba(245, 239, 227, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Логотип в шапке — олень + STUGNUM рядом */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  background: transparent !important;
  padding: 0 !important;
  width: auto !important;
  height: 44px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-deer-only {
  height: 44px;
  width: auto;
  display: block;
}

.logo-text-stugnum {
  display: inline-flex;
  align-items: center;
  height: 44px;
}

.logo-word-only {
  height: 22px;
  width: auto;
  display: block;
}

/* В футере — чуть крупнее */
.footer .logo-mark { height: 56px !important; }
.footer .logo-deer-only { height: 56px; }
.footer .logo-text-stugnum { height: 56px; }
.footer .logo-word-only { height: 28px; }

/* Hero — больше воздуха, лесной vibe */
.hero-section {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top right, rgba(45, 74, 43, 0.08), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(45, 74, 43, 0.05), transparent 50%),
    var(--color-bg);
}

/* Hero badge — «5+ лет опыта» */

/* Слоган — крупно, по центру. Курсивный акцент — «лесом» */
.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-title .accent {
  font-style: italic;
  color: var(--color-accent);
  position: relative;
  display: inline-block;
}

/* Eyebrow-надпись */
.sub-heading {
  letter-spacing: 0.12em;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sub-heading .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  display: inline-block;
}

/* Услуги — иконки в зелёном круге */
.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: all .3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-card .service-image {
  margin-top: auto;
}
.service-card .service-link {
  margin-top: 12px;
  align-self: flex-start;
}

.service-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(45, 74, 43, 0.08);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(45, 74, 43, 0.08);
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}

.service-title {
  font-family: 'Cal Sans', system-ui, sans-serif;
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--color-heading);
}

.service-desc {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.service-link {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.service-image {
  margin: 18px 0;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-bg-soft);
  display: block;
}

.service-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

/* About-блок — фото слева/справа */
.about-section {
  background: var(--color-bg-soft);
  padding: 100px 0;
}

.about-image img {
  border-radius: 18px;
}

.about-bg-text {
  position: absolute;
  font-family: 'Cal Sans', system-ui, sans-serif;
  font-size: 140px;
  font-weight: 800;
  color: rgba(45, 74, 43, 0.06);
  bottom: -20px;
  left: -10px;
  pointer-events: none;
  text-transform: uppercase;
  z-index: 0;
}

/* Список преимуществ — иконки в зелёных кружочках */
.about-features li i {
  color: var(--color-accent);
}

/* Feature list — нумерация в зелёном */

/* Счётчики — на светлом фоне с зелёными цифрами */
.counter-section {
  background: var(--color-bg-soft);
  color: var(--color-heading);
  padding: 80px 0;
}

/* Счётчики показываем сразу (даже до JS) — чтобы секция не была невидимой в скриншоте и без JS */
.counter-section .reveal {
  opacity: 1 !important;
  transform: none !important;
}

.counter-card {
  text-align: center;
}

.counter-num {
  font-family: 'Cal Sans', system-ui, sans-serif;
  font-size: 72px;
  font-weight: 800;
  color: #2D4A2B !important;
  line-height: 1;
}

.counter-label {
  color: #2D4A2B !important;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 8px;
  display: block;
  font-weight: 600;
}

/* Process — нумерация, карточки */

/* Projects — фото с эффектом при наведении */

/* Testimonial */

/* Footer */
.footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.7);
}

.footer a { color: rgba(255,255,255,0.7); }
.footer a:hover { color: var(--color-accent); }

/* Кнопки */
.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-white);
}

.btn-ghost {
  border-color: var(--color-heading);
  color: var(--color-heading);
}

.btn-ghost:hover {
  background: var(--color-heading);
  color: var(--color-white);
}

/* =========================================================
   STUGNUM: новые элементы (карусель, метрики, CTA-блок)
   ========================================================= */

/* Hero-meta — три мини-блока под кнопками */
.hero-meta {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
}

.hero-meta-item .num {
  font-family: 'Cal Sans', system-ui, sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #000000;
  line-height: 1;
}

.hero-meta-item .lbl {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #000000;
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 600;
}

/* Hero-carousel — простая карусель с тремя фото */
.hero-carousel {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--color-bg-warm);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
}

.hero-slide.active { opacity: 1; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
  transition: all .25s ease;
}

.hero-dot.active {
  background: var(--color-white);
  width: 28px;
  border-radius: 5px;
}

/* CTA-блок перед футером — всегда по центру */
.cta-section {
  text-align: center;
}

.cta-block {
  position: relative;
  text-align: center !important;
  max-width: 720px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-block .section-title,
.cta-block .section-desc,
.cta-block .sub-heading,
.cta-block a {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.cta-block .section-desc {
  max-width: 540px;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.cta-block .section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  text-transform: none !important;
}

/* =========================================================
   Page header (для всех внутренних страниц)
   ========================================================= */

.page-header {
  background:
    radial-gradient(ellipse at top right, rgba(45, 74, 43, 0.06), transparent 60%),
    var(--color-bg);
  padding: 160px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.page-title {
  font-family: 'Cal Sans', system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-heading);
  margin: 16px 0;
}

.page-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  max-width: 640px;
  margin: 0 auto;
}

.page-content {
  padding: 80px 0;
}

/* Хлебные крошки */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  justify-content: center;
}

.breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.bc-sep {
  color: var(--color-text-muted);
  opacity: 0.5;
}

.bc-current {
  color: var(--color-heading);
  font-weight: 500;
}

/* HERO-блок для внутренних страниц услуг */
.page-hero {
  background:
    radial-gradient(ellipse at top right, rgba(45, 74, 43, 0.06), transparent 60%),
    var(--color-bg);
  padding: 140px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.page-hero .page-title {
  margin-top: 8px;
}

.page-hero .hero-cta {
  margin-top: 28px;
  justify-content: center;
}

/* Галерея услуги */
.service-gallery-section {
  padding: 60px 0;
  background: var(--color-bg);
}

.gallery-title {
  text-align: center;
  margin-bottom: 40px;
}

.service-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.gallery-item {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-bg-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(45, 74, 43, 0.12);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Детальная страница услуги */
.service-detail-section {
  padding: 60px 0 100px;
  background: var(--color-white);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 60px;
  align-items: start;
}

.service-detail-content .section-title {
  margin-bottom: 24px;
}

.service-detail-content .section-desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 40px;
}

.service-h3 {
  font-family: 'Cal Sans', system-ui, sans-serif;
  font-size: 24px;
  color: var(--color-heading);
  margin: 40px 0 24px;
}

.steps-grid {
  display: grid;
  gap: 20px;
}

.step-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
  padding: 20px;
  background: var(--color-bg);
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cal Sans', sans-serif;
  font-size: 22px;
  flex-shrink: 0;
}

.step-content h4 {
  font-family: 'Cal Sans', sans-serif;
  font-size: 18px;
  color: var(--color-heading);
  margin-bottom: 6px;
}

.step-content p {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Сайдбар */
.service-sidebar {
  position: sticky;
  top: 100px;
}

.benefits-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 28px;
}

.benefits-card h4 {
  font-family: 'Cal Sans', sans-serif;
  font-size: 22px;
  color: var(--color-heading);
  margin-bottom: 20px;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.benefits-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text);
  font-size: 15px;
}

.benefits-list li:last-child {
  border-bottom: none;
}

.benefits-list li i {
  color: var(--color-accent);
  flex-shrink: 0;
}

.btn-block {
  display: flex;
  width: 100%;
  justify-content: center;
}

@media (max-width: 900px) {
  .service-detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-sidebar {
    position: static;
  }
}

/* =========================================================
   Страница услуг — расширенные карточки
   ========================================================= */

.services-detailed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.service-detailed {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-detailed:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(45, 74, 43, 0.08);
}

.service-detailed .icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: rgba(45, 74, 43, 0.1);
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.service-detailed h2 {
  font-family: 'Cal Sans', system-ui, sans-serif;
  font-size: 24px;
  margin: 0 0 12px;
  color: var(--color-heading);
}

.service-detailed p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  margin: 0 0 20px;
  flex: 1;
}
.service-detailed .service-link {
  margin-top: auto;
  align-self: flex-start;
}

/* Cookie-баннер */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 480px;
  margin: 0 auto;
  background: var(--color-dark);
  color: #fff;
  padding: 16px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 999;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.cookie-banner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  flex: 1;
}

.cookie-banner button {
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
}

.cookie-banner button:hover {
  background: var(--color-accent-hover);
}

/* =========================================================
   Страница портфолио: сетка и фильтр
   ========================================================= */

.portfolio-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.portfolio-filter button {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-heading);
  padding: 10px 20px;
  border-radius: 100px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.portfolio-filter button:hover,
.portfolio-filter button.active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.portfolio-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  aspect-ratio: 4/5;
  transition: all 0.3s ease;
}

.portfolio-item:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(45, 74, 43, 0.12);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .overlay {
  opacity: 1;
}

.portfolio-item .overlay .cat {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 4px;
}

.portfolio-item .overlay .title {
  font-size: 18px;
  font-weight: 700;
  font-family: 'Cal Sans', system-ui, sans-serif;
}

.portfolio-item .overlay .price {
  font-size: 14px;
  opacity: 0.9;
  margin-top: 6px;
}

/* Счётчик фото в галерее объекта (правый верхний угол карточки) */
.portfolio-item .gallery-count {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 2;
}

.portfolio-item:hover .gallery-count,
.portfolio-item .overlay .gallery-count {
  opacity: 1;
}

.portfolio-item .gallery-count i {
  font-size: 11px;
}

/* Контейнер для подписи и счётчика в lightbox */
.lb-meta {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #fff;
}

.lb-count {
  font-size: 13px;
  opacity: 0.6;
}

/* =========================================================
   FAQ — аккордеон
   ========================================================= */

.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 24px 0;
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-heading);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: inherit;
}

.faq-question::after {
  content: '+';
  font-size: 24px;
  color: var(--color-accent);
  font-weight: 300;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--color-text);
  line-height: 1.6;
  font-size: 16px;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 0 24px;
}

/* =========================================================
   Форма заявки
   ========================================================= */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.form-field input,
.form-field select,
.form-field textarea {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--color-heading);
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-field input[type="file"] {
  padding: 8px;
}

.form-consent a {
  color: var(--color-accent);
  text-decoration: underline;
}

.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(45, 74, 43, 0.08);
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.form-status.error {
  display: block;
  background: rgba(220, 53, 69, 0.08);
  color: #c0392b;
  border: 1px solid #c0392b;
}

/* =========================================================
   Страница документов и FAQ-list
   ========================================================= */

.docs-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.doc-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.2s ease;
}

.doc-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45, 74, 43, 0.08);
}

.doc-card .doc-icon {
  font-size: 32px;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.doc-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--color-heading);
  font-family: 'Cal Sans', system-ui, sans-serif;
}

.doc-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0 0 16px;
}

.doc-card .doc-actions {
  display: flex;
  gap: 8px;
}

.doc-card .doc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: var(--color-accent);
  color: #fff;
}

.doc-card .doc-link.ghost {
  background: transparent;
  color: var(--color-heading);
  border: 1px solid var(--color-border);
}

.doc-card .doc-link:hover {
  opacity: 0.9;
}

/* Article (для страниц документов) */
.article {
  max-width: 760px;
  margin: 0 auto;
}

.article > h2 {
  font-family: 'Cal Sans', system-ui, sans-serif;
  font-size: 30px;
  color: var(--color-heading);
  margin: 56px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-accent);
}

.article > h2:first-child {
  margin-top: 0;
}

.article > h3 {
  font-family: 'Cal Sans', system-ui, sans-serif;
  font-size: 22px;
  color: var(--color-heading);
  margin: 32px 0 12px;
}

.article > p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
  margin: 0 0 16px;
}

.article > ul, .article > ol {
  padding-left: 0;
  margin: 0 0 24px;
  list-style: none;
}

.article > ul > li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
}

.article > ul > li::before {
  content: "•";
  position: absolute;
  left: 8px;
  top: 0;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.5;
}

.article > ol {
  counter-reset: care-counter;
  list-style: none;
}

.article > ol > li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 10px;
  counter-increment: care-counter;
}

.article > ol > li::before {
  content: counter(care-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* =========================================================
   /* =========================================================
   Hero brand label (логотип-олень + название)
   ========================================================= */

@media (max-width: 768px) {
  .hero-meta-item .num { font-size: 22px; }
  .hero-carousel { aspect-ratio: 1/1; }
  .footer-grid { grid-template-columns: 1fr !important; }
}

/* =========================================================
   Карусель фотографий — бесконечная лента под счётчиками
   Один трек с 20 элементами (10 уникальных + 10 копий),
   анимация сдвигает на 50% (= ширина 10 фото) — пользователь видит непрерывный поток
   ========================================================= */

.carousel-section {
  background: var(--color-bg);
  padding: 60px 0;
  overflow: hidden;
}

.carousel-track-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  width: max-content;
  /* 30 секунд — плавная скорость прокрутки */
  animation: carousel-scroll 30s linear infinite;
}

.carousel-track-wrapper:hover .carousel-track {
  animation-play-state: paused;
}

/* Сдвигаем на половину трека (10 фото из 20) — вторая половина = первая,
   пользователь не замечает jump при перезапуске анимации */
@keyframes carousel-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.carousel-item {
  display: block;
  width: 320px;
  height: 220px;
  flex: 0 0 320px;
  margin-right: 20px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.carousel-item:hover {
  border-color: var(--color-accent);
  transform: scale(1.03);
  box-shadow: 0 12px 28px rgba(45, 74, 43, 0.15);
}

.carousel-item img {
  display: block;
  width: 320px;
  height: 220px;
  object-fit: cover;
}

/* уважаем prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    animation-duration: 0s;
    animation-iteration-count: 1;
  }
}

/* =========================================================
   Магазин (shop.html, product.html) — стили готовы, не публикуются
   ========================================================= */

/* Страница товара */

/* =========================================================
   Lightbox — модальное окно для просмотра фото
   ========================================================= */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lightbox.open {
  display: flex;
  opacity: 1;
}

.lb-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
}

.lb-img {
  display: block;
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 60px rgba(0, 0, 0, 0.5);
  background: #000;
}

.lb-caption {
  margin-top: 16px;
  color: #fff;
  font-size: 16px;
  text-align: center;
  opacity: 0.85;
  max-width: 90vw;
}

.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10001;
}

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.lb-close {
  top: 24px;
  right: 24px;
  font-size: 32px;
  line-height: 1;
}

.lb-prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lb-prev:hover {
  transform: translateY(-50%) scale(1.05);
}

.lb-next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lb-next:hover {
  transform: translateY(-50%) scale(1.05);
}

/* Курсор на фото в портфолио */
.portfolio-item {
  cursor: pointer;
}

@media (max-width: 768px) {
  .lightbox {
    padding: 16px;
  }

  .lb-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 26px;
  }

  .lb-prev,
  .lb-next {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

/* Hero-tagline — два слогана под кнопками */
.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(45, 74, 43, 0.12);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.hero-tagline .tagline-dot {
  color: var(--color-accent);
  opacity: 0.5;
}

/* =========================================================
   4. MOBILE (бывший mobile.css)
   ========================================================= */
/* =========================================================
   STUGNUM — Mobile Optimisation
   Подключается ПОСЛЕ stugnum.css на всех страницах.
   Делает сайт удобным на телефонах (≤ 768px) и планшетах.
   ========================================================= */

/* =========================================================
   БАЗОВЫЕ НАСТРОЙКИ ДЛЯ ВСЕХ
   ========================================================= */
html { scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;          /* не даём горизонтальному скроллу */
  -webkit-tap-highlight-color: rgba(45, 74, 43, 0.1); /* подсветка тапа */
}

/* Тач-таргеты — минимум 44x44px (Apple HIG) для всех кликабельных */
button, a.btn, .mobile-toggle, .file-upload-btn, input[type="submit"], input[type="button"] {
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}

/* Изображения не должны вылезать */
img {
  max-width: 100%;
  height: auto;
}

/* =========================================================
   ПЛАНШЕТЫ (≤ 1024px) — небольшая адаптация
   ========================================================= */
@media (max-width: 1024px) {
  /* Главная: hero-meta в 3 колонки уже влезает — сжимаем */
  .hero-meta {
    gap: 18px;
  }

  /* Footer: 3 колонки → можно в 2 или 1 */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  /* Контакты: форма + сайдбар в 1 колонку */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* =========================================================
   ТЕЛЕФОНЫ (≤ 768px) — основные правки
   ========================================================= */
@media (max-width: 768px) {
  /* Контейнер: меньше боковых отступов */
  .container {
    padding: 0 16px;
  }

  /* Типографика: меньше заголовки */
  h1, .page-title, .hero-title {
    font-size: 36px !important;
    line-height: 1.1 !important;
  }
  h2, .section-title {
    font-size: 24px !important;
    line-height: 1.2 !important;
  }
  h3 {
    font-size: 20px !important;
  }
  p, li {
    font-size: 15px;
  }

  /* ===== ШАПКА ===== */
  .site-header {
    height: 64px !important;
  }
  .header-inner {
    padding: 0 16px;
  }
  .header-actions {
    gap: 8px;
  }
  .header-actions .header-phone {
    /* Скрываем телефон в шапке на мобильном — экономит место */
    display: none !important;
  }
  /* Логотип: чуть меньше, чтобы влезало */
  .logo-deer-only {
    height: 30px !important;
  }
  .logo-word-only {
    height: 16px !important;
  }
  /* Кнопка "Оставить заявку" в шапке: только иконка */
  .header-actions .btn span,
  .header-actions .btn {
    /* keep link — but smaller */
    padding: 8px 12px;
    font-size: 13px;
  }

  /* Меню — открывается по бургеру */
  .main-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
  }
  .main-nav.open {
    max-height: calc(100vh - 64px);
    padding: 12px 0;
    overflow-y: auto;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }
  .main-nav li {
    width: 100%;
  }
  .main-nav a {
    display: block;
    padding: 14px 24px;
    font-size: 17px;
    border-bottom: 1px solid var(--color-border);
  }
  .main-nav li:last-child a {
    border-bottom: none;
  }
  /* Бургер виден */
  .mobile-toggle {
    display: inline-flex !important;
  }

  /* ===== HERO (главная) ===== */
  .hero-section {
    padding: 80px 0 40px;
    min-height: auto;
  }
  .hero-content {
    text-align: center;
  }
  .hero-title {
    font-size: 36px !important;
  }
  .hero-title br {
    display: none;
  }
  .hero-desc {
    font-size: 16px;
  }
  .hero-cta {
    justify-content: center;
    gap: 12px;
  }
  .hero-cta .btn {
    flex: 1;
    min-width: 140px;
    padding: 14px 18px;
    font-size: 14px;
  }
  .hero-meta {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-top: 32px;
    padding-top: 24px;
  }
  .hero-meta-item {
    flex: 0 0 auto;
    text-align: center;
  }
  .hero-tagline {
    justify-content: center;
    font-size: 11px;
    letter-spacing: 0.12em;
    gap: 8px;
  }

  /* Hero-карусель: меньше фото */
  .carousel-section {
    padding: 40px 0 20px;
  }
  .carousel-item,
  .carousel-item img {
    width: 240px;
    height: 160px;
  }
  /* Карусель не авто-крутится на мобильном (раздражает при тапе) */
  .carousel-track {
    gap: 12px;
    animation: none !important;
  }
  /* Можно скроллить пальцем */
  .carousel-item {
    scroll-snap-align: start;
  }

  /* ===== О НАС ===== */
  .about-section {
    padding: 60px 0 40px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-visual {
    order: -1;            /* фото над текстом */
  }
  .about-image {
    aspect-ratio: 4/3;
  }
  .about-bg-text {
    font-size: 80px;
    bottom: 20px;
  }

  /* ===== УСЛУГИ (карточки на главной) ===== */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .service-card {
    padding: 24px;
  }
  .service-image {
    aspect-ratio: 16/10;
  }
  /* Скрываем иконку на мобильном — экономит место */
  .service-icon {
    width: 48px !important;
    height: 48px !important;
    font-size: 20px !important;
    margin-bottom: 14px !important;
  }

  /* ===== СЧЁТЧИКИ ===== */
  .counter-section {
    padding: 40px 0;
  }
  .counter-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .counter-card {
    padding: 24px 16px;
  }
  .counter-num {
    font-size: 48px !important;
  }
  .counter-label {
    font-size: 13px;
  }

  /* ===== БЛОГ (главная) ===== */
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .blog-card-title {
    font-size: 18px;
  }

  /* ===== CTA (главная) ===== */
  .cta-section {
    padding: 60px 0 !important;
  }
  .cta-block h2 {
    font-size: 28px !important;
  }
  .cta-block p {
    font-size: 16px;
  }

  /* ===== УСЛУГИ (services.html) ===== */
  .services-detailed {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .service-detailed {
    padding: 24px;
  }

  /* ===== ПОРТФОЛИО ===== */
  .portfolio-filter {
    flex-wrap: wrap;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
  .portfolio-filter button {
    padding: 8px 14px;
    font-size: 13px;
    white-space: nowrap;
  }
  .portfolio-grid {
    grid-template-columns: 1fr 1fr !important;   /* 2 колонки на телефоне */
    gap: 12px;
  }

  /* ===== КОНТАКТЫ ===== */
  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .form-field label {
    font-size: 14px;
  }
  .form-field input,
  .form-field select,
  .form-field textarea {
    padding: 14px 16px;
    font-size: 16px;            /* iOS не зумит, если ≥16px */
    border-radius: 8px;
  }
  .file-upload {
    flex-direction: column;
    align-items: stretch;
  }
  .file-upload-btn {
    justify-content: center;
  }

  /* ===== ДОКУМЕНТЫ ===== */
  .doc-card {
    padding: 24px;
  }
  .doc-icon {
    width: 48px;
    height: 48px;
  }

  /* ===== СТРАНИЦЫ УСЛУГ (детальные) ===== */
  .service-detail-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .service-detail-content {
    padding: 0;
  }
  .service-sidebar {
    position: static;
    margin-top: 16px;
  }
  .benefits-card {
    padding: 20px;
  }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .step-item {
    padding: 20px;
  }
  .step-num {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  /* Галерея в странице услуги */
  .service-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  /* ===== DOCS HUB ===== */
  .page-subtitle {
    font-size: 15px;
  }
  .article {
    padding: 24px 0;
  }
  .article h2 {
    font-size: 22px;
  }
  .article p {
    font-size: 15px;
  }

  /* ===== ХЛЕБНЫЕ КРОШКИ ===== */
  .breadcrumb {
    font-size: 13px;
    flex-wrap: wrap;
  }

  /* ===== ПОДВАЛ ===== */
  .footer {
    padding: 40px 0 20px !important;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .footer .logo {
    justify-content: center;
  }
  .footer-list {
    align-items: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* ===== FAQ ===== */
  .faq-item {
    padding: 18px 20px;
  }
  .faq-question {
    font-size: 15px;
  }
}

/* =========================================================
   МАЛЕНЬКИЕ ТЕЛЕФОНЫ (≤ 480px) — ещё компактнее
   ========================================================= */
@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }
  h1, .page-title, .hero-title {
    font-size: 30px !important;
  }
  h2, .section-title {
    font-size: 22px !important;
  }
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta .btn {
    width: 100%;
  }
  /* Счётчики: чуть меньше */
  .counter-num {
    font-size: 40px !important;
  }
  /* Портфолио: 2 колонки уже нормально */
  .portfolio-grid {
    gap: 8px;
  }
  /* Шапка: только лого + бургер */
  .header-actions .btn {
    display: none !important;
  }
}

/* =========================================================
   LANDSCAPE (телефон горизонтально) — компактнее по высоте
   ========================================================= */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    min-height: auto;
    padding: 60px 0 30px;
  }
  .main-nav {
    top: 64px;
  }
}

/* =========================================================
   КНОПКА "НАВЕРХ"
   ========================================================= */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 999;
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}
.scroll-top:active {
  transform: scale(0.92);
}
@media (min-width: 769px) {
  .scroll-top {
    bottom: 32px;
    right: 32px;
  }
}
@media (max-width: 768px) {
  .scroll-top {
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
  }
}

/* =========================================================
   COOKIE/CONSENT BANNER (если есть)
   ========================================================= */
@media (max-width: 768px) {
  .cookie-banner {
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    border-radius: 16px 16px 0 0 !important;
    padding: 16px !important;
  }
}

/* =========================================================
   Скрытие декоративных элементов (hero decor) на мобильном
   Они висят с right:-120 и left:-100 — вылезают за viewport
   ========================================================= */
@media (max-width: 768px) {
  
  .about-bg-text,
  [class*="bg-text"] {
    display: none !important;
  }
}

/* Hero brand label (логотип-олень) — на мобильном компактнее */

/* =========================================================
   5. Страница: Блог
   ========================================================= */
/* === Блог STUGNUM — стили === */
.blog-hero {
  background: linear-gradient(135deg, #f5ede0 0%, #e8dcc4 100%);
  color: var(--color-heading);
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background-image: url('../img/logo-deer.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.06;
  pointer-events: none;
}
.blog-hero h1 {
  font-family: 'Cal Sans', system-ui, sans-serif;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 400;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}
.blog-hero p {
  font-size: 18px;
  opacity: 0.8;
  max-width: 640px;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
}
.blog-hero .badge-new {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(45, 74, 43, 0.1);
  border: 1px solid rgba(45, 74, 43, 0.2);
  color: var(--color-accent);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  position: relative;
  z-index: 1;
}
.blog-hero-logo {
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.blog-hero-logo img {
  height: 64px;
  width: auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  padding: 60px 0;
}

.blog-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
  border-color: var(--color-accent);
}
.blog-card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--color-bg-soft);
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}
.blog-card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-accent);
  color: white;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.blog-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}
.blog-card-meta i { color: var(--color-accent); margin-right: 4px; }
.blog-card-title {
  font-family: 'Cal Sans', system-ui, sans-serif;
  font-size: 22px;
  color: var(--color-heading);
  margin: 0 0 12px;
  line-height: 1.3;
  font-weight: 400;
}
.blog-card-excerpt {
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 20px;
  flex: 1;
}
.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  transition: gap 0.2s;
}
.blog-card-link:hover { gap: 12px; }

.blog-empty {
  text-align: center;
  padding: 80px 20px;
  background: var(--color-bg-soft);
  border-radius: 16px;
  border: 1px dashed var(--color-border);
}
.blog-empty > i {
  font-size: 48px;
  color: var(--color-accent);
  opacity: 0.5;
  margin-bottom: 16px;
}
.blog-empty h2 {
  font-family: 'Cal Sans', system-ui, sans-serif;
  color: var(--color-heading);
  margin: 0 0 12px;
}
.blog-empty p {
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto 24px;
}
/* =========================================================
   6. Страница: Контакты
   ========================================================= */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr !important;
  }
}
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0 24px;
  padding: 14px 16px;
  background: rgba(45, 74, 43, 0.04);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text);
}
.form-consent input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent);
  cursor: pointer;
  flex-shrink: 0;
}
.form-consent:has(input:invalid:not(:checked)) {
  border-left: 3px solid #c97c2b;
}

/* Кастомная кнопка загрузки файлов (заменяет нативный «Файл не выбран» браузера) */
.file-upload {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.file-upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.file-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  user-select: none;
}
/* .form-field label красит подписи формы в тёмный — кнопке нужен белый текст на зелёном */
.form-field .file-upload-btn,
.form-field .file-upload-btn i {
  color: #fff;
}
.file-upload-btn:hover {
  background: #1f3520;
}
.file-upload-btn:active {
  transform: scale(0.97);
}
.file-upload-status {
  font-size: 14px;
  color: var(--color-text-muted);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* =========================================================
   7. Компоненты, вынесенные из inline style="..."
   ========================================================= */
.link-plain {
  color: inherit;
  text-decoration: none;
}
.doc-download {
  margin-top: 48px;
  padding: 24px;
  background: var(--color-bg-soft);
  border-radius: 12px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.doc-download-icon {
  font-size: 32px;
  color: var(--color-accent);
}
.doc-download-text {
  flex: 1;
  min-width: 200px;
}
.doc-download-title {
  font-weight: 600;
  color: var(--color-heading);
}
.doc-download-meta {
  font-size: 14px;
  color: var(--color-text-muted);
}
.doc-back {
  margin-top: 32px;
  text-align: center;
}
.cta-dark {
  padding: 100px 0;
  background: var(--color-dark);
  color: #fff;
}
.cta-inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.cta-title {
  margin: 16px 0 20px;
  color: #fff;
}
.cta-desc {
  margin-bottom: 32px;
  opacity: 0.85;
}
.meta-icon {
  color: var(--color-accent);
  margin-right: 4px;
}
.info-caption {
  font-size: 12px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.shop-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 24px;
}
.shop-card-icon {
  color: var(--color-accent);
  font-size: 24px;
}
.shop-card-title {
  font-family: 'Cal Sans', system-ui, sans-serif;
  color: var(--color-heading);
  margin: 12px 0 6px;
  font-size: 18px;
}
.shop-card-text {
  color: var(--color-text-muted);
  margin: 0;
  font-size: 14px;
}
.post-media {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--color-bg-soft);
  position: relative;
}
.post-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-accent);
  color: white;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.post-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.post-body {
  padding: 24px;
}
.post-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}
.post-title {
  font-family: 'Cal Sans', system-ui, sans-serif;
  color: var(--color-heading);
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 400;
}
.post-text {
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 20px;
}
.post-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}
.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 24px 0;
}
.note-box {
  text-align: center;
  margin-top: 60px;
  padding: 40px;
  background: var(--color-bg-soft);
  border-radius: 16px;
}
.note-box-title {
  font-family: 'Cal Sans', system-ui, sans-serif;
  color: var(--color-heading);
  font-size: 24px;
  margin: 0 0 12px;
}
.note-box-text {
  color: var(--color-text);
  margin: 0 0 20px;
}
.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.12);
}
.footer-compact { padding: 60px 0 30px; }
.footer-logo { margin-bottom: 16px; }
.footer-note { opacity: 0.7; margin-top: 14px; line-height: 1.6; }
.portfolio-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--color-text-muted);
}
.post-link:hover { gap: 12px; }

/* =========================================================
   Правки 2026-10: подвал по центру, шапка и меню на телефоне
   ========================================================= */

/* Подвал: три колонки поровну, всё по центру */
.footer-compact .footer-grid {
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}
.footer-compact .logo { justify-content: center; }
.footer-compact .footer-list { list-style: none; padding: 0; margin: 0; }
.footer-compact .footer-social { justify-content: center; }
.footer-compact h4 { color: #fff; }
.footer-compact .footer-bottom {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  text-align: center;
}

/* Переключатель языков RU | ET | EN */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
}
.lang-switch button {
  min-height: 36px;
  min-width: 36px;
  padding: 0 8px;
  background: transparent;
  border: 0;
  color: var(--color-heading);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-switch button + button { border-left: 1px solid var(--color-border); }
.lang-switch button:hover { background: var(--color-bg-warm); }
.lang-switch button.active { background: var(--color-accent); color: #fff; cursor: default; }

/* Шапка: кнопки прижаты к правому краю, переключатель и бургер одной высоты */
@media (max-width: 1100px) {
  .header-actions { margin-left: auto; }
  .lang-switch button { min-height: 44px; }
  .mobile-toggle {
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  /* Меню по бургеру: раньше оставалось display:none и не открывалось.
     Шапка с backdrop-filter — точка отсчёта для fixed, поэтому top: 100% = сразу под шапкой */
  .main-nav {
    display: block;
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    flex: none;
    background: var(--color-bg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }
  .main-nav.open {
    max-height: calc(100vh - 64px);
    padding: 12px 0;
    overflow-y: auto;
  }
  .main-nav ul { flex-direction: column; gap: 0; align-items: stretch; }
  .main-nav li { width: 100%; }
  .main-nav a {
    display: block;
    padding: 14px 24px;
    font-size: 17px;
    border-bottom: 1px solid var(--color-border);
  }
  .main-nav a::after { display: none; }
  .main-nav li:last-child a { border-bottom: none; }
}

@media (max-width: 768px) {
  .footer-compact .footer-grid { grid-template-columns: 1fr; }
}

/* Заголовки внутренних страниц: старое правило .page-header h1 красило их в белый,
   а фон шапки страницы бежевый — заголовок почти не был виден */
.page-header { color: var(--color-text); }
.page-header h1,
.page-header .page-title { color: var(--color-heading); }
.page-header .breadcrumb,
.page-header .breadcrumb a { color: var(--color-text-muted); }

/* =========================================================
   Общие компоненты (раньше эти стили были вписаны прямо в HTML)
   ========================================================= */

/* Фон секции «мягкий бежевый» */
.section-soft { background: var(--color-bg-soft); }

/* Кнопка по центру под блоком */
.section-cta { text-align: center; margin-top: 40px; }

/* Подзаголовок под заголовком секции */
.section-head .section-subtitle { color: var(--color-text-muted); font-size: 17px; margin-top: 12px; }

/* Сетка карточек статей на главной */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* Светлый акцент в тёмном блоке CTA (сильнее, чем .section-title .accent) */
.section-title .accent-light { color: #8FCB94; }

/* Иконка вместо цифры в счётчиках hero */
.counter-icon { font-size: 24px; }

/* Заголовок и вводная строка внутри страниц (контакты, магазин) */
.block-title {
  font-family: 'Cal Sans', system-ui, sans-serif;
  color: var(--color-heading);
  font-size: 28px;
  margin: 0 0 24px;
}
.block-title:has(+ .block-lead) { margin-bottom: 8px; }
.block-lead { color: var(--color-text-muted); margin: 0 0 24px; }

/* Плашка-подсказка с зелёной полосой слева: контакты, магазин, нормы строительства */
.tip-box {
  background: rgba(45, 74, 43, 0.06);
  border-left: 3px solid var(--color-accent);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 0 0 32px;
}
.tip-box-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-family: 'Cal Sans', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-heading);
}
.tip-box-title i { color: var(--color-accent); }
.tip-box .tip-box-text { margin: 0; color: var(--color-text); font-size: 14px; line-height: 1.6; }

/* Сетка карточек магазина */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

/* Дата в начале документа */
.article .doc-date, .doc-date { color: var(--color-text-muted); font-size: 14px; }

/* Ловушка для ботов в форме — человек её не видит */
.hp-field { position: absolute; left: -9999px; }

/* Страница контактов: форма + карточка контактов */
@media (min-width: 1025px) {
  .contact-grid--form { grid-template-columns: 1fr 360px; gap: 48px; }
}
.contact-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 40px;
}
.contact-aside { background: var(--color-bg-soft); border-radius: 16px; padding: 32px; }
.contact-aside-title {
  font-family: 'Cal Sans', system-ui, sans-serif;
  color: var(--color-heading);
  font-size: 20px;
  margin: 0 0 20px;
}
.contact-item { margin-bottom: 12px; }
.contact-group-end { margin-bottom: 24px; }
.contact-phone {
  font-family: 'Cal Sans', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-heading);
}
.contact-email { font-size: 16px; color: var(--color-heading); }
.contact-value { color: var(--color-heading); line-height: 1.6; }
.social-row { display: flex; gap: 12px; }
.social-round {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Телефон в шапке не переносится на две строки (с тремя кнопками языков в шапке стало теснее) */
.header-phone { white-space: nowrap; }
@media (max-width: 1280px) {
  .header-inner { gap: 20px; }
  .main-nav ul { gap: 22px; }
}

/* Декоративное слово «stugnum» в «О нас» висит с right: -40px и на ширине 1100–1250 px
   делало страницу шире экрана — обрезаем по краю секции */
.about-section { overflow-x: clip; }

/* Нижняя карусель фото на телефоне: раньше авто-прокрутка была выключена, а пальцем
   ленту было не прокрутить (обёртка с overflow: hidden) — карусель стояла на месте.
   Теперь крутится, как на компьютере; пока палец на фото — пауза (home.js, .is-paused).
   Отступ между фото — margin, а не gap: так половина ленты ровно равна первой и шов не виден */
@media (max-width: 768px) and (prefers-reduced-motion: no-preference) {
  .carousel-track {
    gap: 0;
    animation: carousel-scroll 30s linear infinite !important;
  }
  .carousel-item { flex: 0 0 240px; margin-right: 12px; }
  /* !important — иначе перебивает animation: … !important выше */
  .carousel-track-wrapper.is-paused .carousel-track { animation-play-state: paused !important; }
}

/* Описание услуги из нескольких абзацев — обычный отступ между ними */
.service-detail-content .section-desc:has(+ .section-desc) { margin-bottom: 16px; }

/* Статья блога (blog/*.html): обложка, дата, таблица, чек-лист, ссылки */
.article-meta { display: flex; justify-content: center; gap: 20px; margin-top: 16px; color: var(--color-text-muted); font-size: 14px; }
.article-meta i { margin-right: 4px; color: var(--color-accent); }
.article-cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; margin: 0 0 40px; }
.article a:not(.btn) { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; }
.article strong { color: var(--color-heading); font-weight: 600; }
.article .table-wrap { overflow-x: auto; margin: 8px 0 24px; border: 1px solid var(--color-border); border-radius: 12px; }
.article table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.article th, .article td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-border); }
.article th { background: var(--color-bg-soft); color: var(--color-heading); font-weight: 600; }
.article tbody tr:last-child td { border-bottom: 0; }
.article tbody td:first-child { font-weight: 600; color: var(--color-heading); }
@media (max-width: 640px) { .article table { min-width: 560px; } }
.article > ul.checklist { background: var(--color-bg-soft); border-radius: 12px; padding: 20px 24px; }
.article > ul.checklist > li { padding-left: 32px; }
.article > ul.checklist > li::before { content: ""; left: 0; top: 4px; width: 18px; height: 18px; border: 2px solid var(--color-accent); border-radius: 4px; }
.article > p.article-note { font-size: 14px; color: var(--color-text-muted); border-top: 1px solid var(--color-border); padding-top: 16px; margin-top: 32px; }
.article .doc-back { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.blog-card-title a { color: inherit; text-decoration: none; }
.blog-card-title a:hover { color: var(--color-accent); }
.blog-card-image > a { display: block; height: 100%; }
