/* ===== Шрифты — самостоятельный хостинг (152-ФЗ: не обращаемся к fonts.googleapis.com,
   т.к. это передача IP-адреса посетителя иностранному сервису без уведомления/согласия —
   см. аудит) ===== */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/PlusJakartaSans-500-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/PlusJakartaSans-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/PlusJakartaSans-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Roboto-400-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Roboto-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Roboto-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Roboto-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Roboto-500-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Roboto-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Roboto-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Roboto-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

/* ===== CRB Oil SPb — базовые токены ===== */
:root {
  --accent: #9D0117;
  --accent-dark: #7A0112;
  --dark: #051821;
  --text: #1A1A1A;
  --muted: #6B6B6B;
  --border: #E5E5E5;
  --bg-soft: #F7F5F3;
  --white: #FFFFFF;
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1180px;
  --font-head: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  --font-body: 'Roboto', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  margin: 0 0 16px;
  line-height: 1.15;
  color: var(--dark);
}
strong, b { font-weight: 500; }
p { margin: 0 0 14px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
.container {
  width: 100%; /* обязательно явно: без этого .container как flex/grid-item
                  (напр. внутри .hero) не тянется на всю ширину, а сжимается
                  по контенту и центрируется через margin:auto — из-за этого
                  и были "лишние" отступы слева И справа одновременно */
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 64px 0; }
@media (max-width: 768px) {
  .section { padding: 40px 0; }
}

/* ===== Badge (красная пилюля-лейбл) ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* ===== Кнопки ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--dark);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ===== Header — floating capsule (паттерн baron-neon.ru) ===== */
:root { --header-h: 110px; }
body { padding-top: var(--header-h); }
body.home,
body.has-photo-hero { padding-top: 0; } /* hero/page-hero сам с фото на всю ширину, header лежит поверх прозрачным */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-top: 16px;
  transition: padding-top .4s ease;
}
/* .header-inner переиспользует класс .container (max-width/margin/padding-inline
   ровно те же, что у hero и всех секций) — здесь только визуал капсулы */
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 68px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(5,24,33,.06);
  transition: border-radius .4s ease, height .4s ease, background-color .4s ease,
              border-color .4s ease, box-shadow .4s ease;
}
/* При скролле — капсула чуть ниже и компактнее, но остаётся в ширине контейнера */
.site-header.is-scrolled { padding-top: 10px; }
.site-header.is-scrolled .header-inner {
  height: 64px;
  box-shadow: 0 4px 20px rgba(5,24,33,.06);
}

.logo img { height: 40px; width: auto; transition: filter .3s ease; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  color: var(--dark);
  transition: color .2s ease, background-color .2s ease;
}
.main-nav a:hover,
.main-nav a.active { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone {
  font-weight: 500;
  font-size: 15px;
  color: var(--dark);
  white-space: nowrap;
  transition: color .2s ease;
}
.header-phone:hover { color: var(--accent); }
.site-header.header-transparent .header-phone { color: var(--white); }
.site-header.header-transparent.is-scrolled .header-phone { color: var(--dark); }
@media (max-width: 640px) {
  .header-phone { display: none; }
}
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; display: block; width: 18px; height: 2px; background: var(--dark);
  position: relative; transition: transform .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 860px) {
  .main-nav { display: none; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--white); box-shadow: 0 20px 40px rgba(0,0,0,.12); border-radius: 16px; padding: 10px; }
  .main-nav.open { display: flex; }
  .main-nav a { text-align: center; padding: 12px; }
  .nav-toggle { display: flex; }
}

/* --- Прозрачная модификация (только главный экран на главной) --- */
.site-header.header-transparent .header-inner {
  background: rgba(5,24,33,.32);
  border-color: rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: none;
}
.site-header.header-transparent .main-nav a { color: rgba(255,255,255,.82); }
.site-header.header-transparent .main-nav a:hover,
.site-header.header-transparent .main-nav a.active { color: var(--white); }
.site-header.header-transparent .logo img { filter: brightness(0) invert(1); }
.site-header.header-transparent .nav-toggle { border-color: rgba(255,255,255,.35); }
.site-header.header-transparent .nav-toggle span,
.site-header.header-transparent .nav-toggle span::before,
.site-header.header-transparent .nav-toggle span::after { background: var(--white); }

/* Как только проскроллили — header снова белый и на всю ширину */
.site-header.header-transparent.is-scrolled .header-inner {
  background: var(--white);
  border-color: transparent;
  border-bottom-color: var(--border);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.site-header.header-transparent.is-scrolled .main-nav a { color: var(--dark); }
.site-header.header-transparent.is-scrolled .main-nav a:hover,
.site-header.header-transparent.is-scrolled .main-nav a.active { color: var(--accent); }
.site-header.header-transparent.is-scrolled .logo img { filter: none; }
.site-header.header-transparent.is-scrolled .nav-toggle { border-color: var(--border); }
.site-header.header-transparent.is-scrolled .nav-toggle span,
.site-header.header-transparent.is-scrolled .nav-toggle span::before,
.site-header.header-transparent.is-scrolled .nav-toggle span::after { background: var(--dark); }

/* ===== Hero (паттерн baron-neon.ru: фон+overlay, контент внизу, статы справа) ===== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding-bottom: 64px; /* вертикальный отступ до низа экрана — задан здесь,
                           НЕ на .container, чтобы .container всегда был
                           идентичен по left/right всем остальным секциям */
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg,
    rgba(5,24,33,.55) 0%,
    rgba(5,24,33,.12) 32%,
    rgba(5,24,33,.55) 70%,
    rgba(5,24,33,.92) 100%);
}
.hero-bar { position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: rgba(255,255,255,.14); z-index: 10; }

/* .hero .container ничего не переопределяет из box-модели (max-width/margin/
   padding) — это ровно тот же .container, что и во всех остальных секциях
   сайта. Только display/gap, чтобы разложить hero-left и hero-stats. */
.hero .container {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}
.hero-left { max-width: 620px; }

.hero-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.hero-eyebrow-line { width: 30px; height: 1px; background: var(--accent-2, #ff6b6b); flex-shrink: 0; }
.hero-eyebrow-text { font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: #ff8080; }

.hero-title {
  color: var(--white);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.hero-title em { color: #ff5a5a; font-style: normal; }

.hero-lead {
  color: rgba(255,255,255,.82);
  max-width: 42ch;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 34px;
}
.hero-cta { display: flex; align-items: center; gap: 26px; margin: 0; }
.hero-btn-ghost {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,.7);
}
.hero-btn-ghost:hover { color: var(--white); }
.hero-btn-arrow {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s ease, transform .2s ease;
}
.hero-btn-ghost:hover .hero-btn-arrow { border-color: rgba(255,255,255,.6); transform: translateX(3px); }
.hero-btn-arrow svg { width: 13px; height: 13px; }

.hero-stats { display: flex; flex-direction: column; gap: 22px; padding-bottom: 4px; }
.hero-stat { text-align: right; }
.hero-stat-num { font-family: var(--font-head); font-size: 24px; font-weight: 500; color: var(--white); letter-spacing: -.02em; line-height: 1; margin-bottom: 3px; }
.hero-stat-num em { color: #ff5a5a; font-style: normal; }
.hero-stat-label { font-size: 11px; color: rgba(255,255,255,.55); letter-spacing: .05em; text-transform: uppercase; }
.hero-stat + .hero-stat { padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }

.hero-scroll {
  position: absolute;
  right: 28px; top: 50%; transform: translateY(-50%);
  z-index: 10;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero-scroll-text {
  font-size: 10px; letter-spacing: .18em; color: rgba(255,255,255,.4);
  text-transform: uppercase; writing-mode: vertical-rl;
}
.hero-scroll-line { width: 1px; height: 52px; background: rgba(255,255,255,.14); position: relative; overflow: hidden; }
.hero-scroll-line::after {
  content: ''; position: absolute; top: -100%; left: 0; width: 1px; height: 100%;
  background: #ff5a5a; animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine { 0% { top: -100%; } 60%, 100% { top: 100%; } }

@media (max-width: 860px) {
  .hero { padding-bottom: 44px; }
  .hero .container { flex-direction: column; align-items: flex-start; gap: 24px; }
  .hero-stats { flex-direction: row; gap: 16px; flex-wrap: wrap; }
  .hero-stat { text-align: left; }
  .hero-stat + .hero-stat { padding-top: 0; padding-left: 16px; border-top: none; border-left: 1px solid rgba(255,255,255,.12); }
  .hero-scroll { display: none; }
}
@media (max-width: 560px) {
  .hero-cta { flex-wrap: wrap; row-gap: 14px; }
}

/* ===== Intro (Надёжная поставка) ===== */
.intro-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  margin-bottom: 28px;
}
.intro-head h2 { font-size: 30px; max-width: 20ch; margin: 0; }
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: center;
}
.intro-media { border-radius: var(--radius); overflow: hidden; }
.intro-media img { width: 100%; height: 100%; object-fit: cover; }
.intro-cards { display: flex; flex-direction: column; gap: 18px; }
.intro-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
}
.intro-card h4 { font-size: 17px; margin-bottom: 6px; }
.intro-card p { color: var(--muted); font-size: 14px; margin: 0; }
@media (max-width: 860px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-head { flex-direction: column; }
}

/* ===== Stats ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}
.stat { text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 500;
  color: var(--dark);
}
.stat-label { color: var(--muted); font-size: 13px; margin-top: 4px; }
@media (max-width: 700px) {
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .stat:nth-child(2n) { border-right: none; }
  .stat-num { font-size: 30px; }
}

/* ===== Услуги (карточки с фото) ===== */
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head h2 {
  font-size: 34px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.section-head p { color: var(--muted); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}
.service-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.service-card::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(5,24,33,0) 40%, rgba(5,24,33,.88) 100%);
}
.service-card-body { position: relative; z-index: 2; }
.service-card h4 { color: var(--white); font-size: 18px; margin-bottom: 12px; }
.service-card .btn { padding: 8px 16px; font-size: 12px; }
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ===== Развёрнутый список услуг (О компании) ===== */
.services-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-list-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px 20px;
}
.service-list-item .icon { font-size: 30px; margin-bottom: 14px; display: block; }
.service-list-item h4 { font-size: 16px; margin-bottom: 8px; }
.service-list-item p { color: var(--muted); font-size: 13px; margin: 0; }
@media (max-width: 960px) {
  .services-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .services-list { grid-template-columns: 1fr; }
}

/* ===== FAQ / accordion ===== */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-item.is-open { border-color: var(--accent); background: var(--accent); color: var(--white); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15px;
  color: inherit;
  cursor: pointer;
}
.faq-q .chev { flex: none; transition: transform .2s ease; }
.faq-item.is-open .faq-q .chev { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  font-size: 14px;
  color: var(--muted);
}
.faq-item.is-open .faq-a { color: rgba(255,255,255,.9); }
.faq-a-inner { padding: 0 20px 18px; }
@media (max-width: 800px) {
  .faq-grid { grid-template-columns: 1fr; }
}

/* ===== Свяжитесь с нами (контактный блок) ===== */
.contact-box {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 44px;
  text-align: center;
}
.contact-box h2 { font-size: 28px; }
.contact-box > p { color: var(--muted); max-width: 46ch; margin: 0 auto 28px; }
.contact-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px 40px;
  max-width: 640px;
  margin: 0 auto 30px;
  text-align: left;
}
.contact-row { border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.contact-row .label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; display: block; margin-bottom: 3px; }
.contact-row .value { font-weight: 500; }
.contact-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 640px) {
  .contact-box { padding: 28px 20px; }
  .contact-table { grid-template-columns: 1fr; }
}

/* ===== Map ===== */
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/7;
  border: 1px solid var(--border);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.map-embed--placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; text-align: center; padding: 24px;
  background: var(--bg-soft);
}
.map-embed--placeholder p { max-width: 44ch; color: var(--muted); font-size: 13.5px; margin: 0; }

/* ===== Footer ===== */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.72);
  padding: 56px 0 24px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 32px;
  padding-bottom: 32px;
}
.footer-col h5 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}
.footer-col a, .footer-col p { display: block; color: rgba(255,255,255,.72); margin-bottom: 10px; }
.footer-col a:hover { color: var(--white); }
.footer-logo img { height: 40px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px;
  color: rgba(255,255,255,.5);
  font-size: 13px;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== Внутренний page-hero (тёмный, фото-фон, короче главного) — Контакты ===== */
.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
}
.page-hero-bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(5,24,33,.72) 0%, rgba(5,24,33,.5) 55%, rgba(5,24,33,.9) 100%);
}
.page-hero .container { position: relative; z-index: 2; padding: 56px 24px 44px; }
.page-hero h1 { color: var(--white); font-size: 40px; text-transform: uppercase; margin-bottom: 12px; }
.page-hero .hero-lead { color: rgba(255,255,255,.82); margin-bottom: 26px; }
.page-hero-quick { display: flex; gap: 14px; flex-wrap: wrap; }
.quick-chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  transition: background-color .2s ease, border-color .2s ease;
}
.quick-chip:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.4); }
.quick-chip svg { width: 16px; height: 16px; flex-shrink: 0; }
@media (max-width: 640px) {
  .page-hero h1 { font-size: 30px; }
}

/* ===== Контакты — способы связи карточками ===== */
.contact-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.method-card {
  position: relative;
  display: flex; flex-direction: column; gap: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.method-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(157,1,23,.08); }
.method-card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.method-card__icon svg { width: 24px; height: 24px; }
.method-card__label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.method-card__value { font-family: var(--font-head); font-size: 20px; color: var(--dark); }
.method-card__hint { font-size: 13px; color: var(--muted); margin: 0; }
.method-card__arrow {
  position: absolute; top: 28px; right: 28px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.method-card:hover .method-card__arrow { background: var(--accent); border-color: var(--accent); transform: rotate(45deg); }
.method-card:hover .method-card__arrow svg path { stroke: var(--white); }
@media (max-width: 860px) {
  .contact-methods { grid-template-columns: 1fr; }
}

/* Строка доверия (переиспользуем реальные цифры сайта) */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.trust-bar .stat { text-align: center; border-right: 1px solid var(--border); }
.trust-bar .stat:last-child { border-right: none; }
.trust-bar .stat-num { font-family: var(--font-head); font-size: 28px; color: var(--dark); }
.trust-bar .stat-label { color: var(--muted); font-size: 12px; margin-top: 4px; }
@media (max-width: 700px) {
  .trust-bar { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .trust-bar .stat:nth-child(2n) { border-right: none; }
}

/* ===== Услуги — динамичные карточки ===== */
.services-grid.services-grid--rich .service-card { aspect-ratio: 3/4.4; }
.services-grid.services-grid--rich .service-card img { transition: transform .5s cubic-bezier(.22,1,.36,1); }
.services-grid.services-grid--rich .service-card:hover img { transform: scale(1.08); }
.services-grid.services-grid--rich .service-card-num {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  font-family: var(--font-head); font-size: 13px; color: rgba(255,255,255,.65);
  border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 5px 12px;
}
.services-grid.services-grid--rich .service-card p {
  color: rgba(255,255,255,.78); font-size: 13px; margin: 0 0 14px;
}
.services-grid.services-grid--rich .service-card .btn {
  transition: background-color .2s ease, transform .2s ease;
}
.services-grid.services-grid--rich .service-card:hover .btn { background: var(--white); color: var(--dark); }

/* ===== О компании — интро в две колонки (текст + фото) ===== */
.about-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.about-intro-media { border-radius: var(--radius); overflow: hidden; }
.about-intro-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .about-intro { grid-template-columns: 1fr; }
}

/* ===== Простые текстовые страницы (Реквизиты / Политика) ===== */
.page-header { padding: 40px 0 10px; }
.page-header h1 { font-size: 36px; text-transform: uppercase; }
.legal-content h2 { font-size: 20px; margin-top: 32px; }
.legal-content p { color: var(--text); }
.details-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.details-table tr { border-bottom: 1px solid var(--border); }
.details-table td { padding: 14px 4px; vertical-align: top; }
.details-table td:first-child { color: var(--muted); width: 260px; }
.details-table td:last-child { font-weight: 500; }
@media (max-width: 640px) {
  .details-table, .details-table tbody, .details-table tr, .details-table td { display: block; width: auto; }
  .details-table tr { padding: 10px 0; }
  .details-table td:first-child { padding-bottom: 2px; }
}

/* ===== Cookie-уведомление (152-ФЗ: карта Яндекса на /contact ставит cookie —
   уведомляем и даём выбор новым посетителям, хранится в localStorage) ===== */
.cookie-banner {
  position: fixed;
  left: 24px; right: 24px; bottom: 24px;
  z-index: 200;
  max-width: 460px;
  margin: 0 0 0 auto; /* прижат к правому краю — не перекрывает CTA hero слева */
  background: var(--dark);
  color: rgba(255,255,255,.88);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: 0 20px 50px rgba(5,24,33,.35);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  transform: translateY(140%);
  opacity: 0;
  transition: transform .4s cubic-bezier(.22,1,.36,1), opacity .4s ease;
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; }
.cookie-banner p { margin: 0; font-size: 13.5px; line-height: 1.55; flex: 1 1 320px; color: rgba(255,255,255,.82); }
.cookie-banner a { color: var(--white); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner .btn-primary { white-space: nowrap; }
.cookie-banner .btn-cookie-decline {
  background: transparent;
  border-color: rgba(255,255,255,.25);
  color: rgba(255,255,255,.75);
}
.cookie-banner .btn-cookie-decline:hover { border-color: rgba(255,255,255,.5); color: var(--white); }
@media (max-width: 640px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 18px; }
}
