@charset "UTF-8";
/* ==========================================================================
   CityCar — стили блоков главной (шаблон template-front.php)
   Перенесено из финального макета design-mockups/variant-d2-seo.html.

   Область видимости — только .ccf (обёртка блоков). Переменные макета
   переименованы в --ccf-*: в теме уже заняты --bg/--text/--accent, а
   совпадение имён давало бы непредсказуемый порядок перекрытия.
   Шапка и подвал темы (светлые, из landing.css) подкрашиваются отдельно
   через body.cc-front-page, потому что landing.css на этой странице
   не подключается: is_front_page() отдаёт front-page.php, а не лендинг.

   Брейкпоинты: 1440 (база), 1024, 768, 390.
   ========================================================================== */

.ccf {
  --ccf-bg: #12211C;
  --ccf-bg2: #172A23;
  --ccf-card: #1D332A;
  --ccf-text: #F5F5F7;
  --ccf-dim: #9A9AA5;
  --ccf-accent: #B1D182;
  --ccf-accent-ink: #12211C;
  --ccf-line: rgba(255, 255, 255, .10);
  --ccf-r: 20px;
  --ccf-fh: 'Montserrat', sans-serif;
  --ccf-fb: 'Open Sans', sans-serif;

  background: var(--ccf-bg);
  color: var(--ccf-text);
  font-family: var(--ccf-fb);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Тёмный фон на всю страницу: светлые отступы вокруг блоков выглядят как разрыв. */
body.cc-front-page {
  background: #12211C;
  color: #F5F5F7;
}

.ccf *,
.ccf *::before,
.ccf *::after { box-sizing: border-box; }

.ccf img { display: block; max-width: 100%; }
.ccf a { text-decoration: none; color: inherit; }
.ccf h1,
.ccf h2,
.ccf h3 {
  font-family: var(--ccf-fh);
  margin: 0;
  font-weight: 900;
  letter-spacing: -.02em;
}
.ccf h2 { font-size: clamp(26px, 3.2vw, 42px); line-height: 1.08; }

.ccf-wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }

.ccf-micro {
  font-family: var(--ccf-fh);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ccf-dim);
}

.ccf-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

/* ── кнопки: высота не меньше 44 px, на телефоне кегль не ниже 15 px ── */
.ccf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--ccf-fh);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
  padding: 16px 26px;
  min-height: 44px;
  border-radius: 999px;
  transition: border-color .25s, background .25s, color .25s, transform .25s;
}
.ccf-btn--a,
.ccf a.ccf-btn--a { background: var(--ccf-accent); color: var(--ccf-accent-ink); }
.ccf-btn--a:hover,
.ccf a.ccf-btn--a:hover { transform: translateY(-2px); }
.ccf-btn--b,
.ccf a.ccf-btn--b { border: 1.5px solid var(--ccf-line); color: var(--ccf-text); }
.ccf-btn--b:hover,
.ccf a.ccf-btn--b:hover { border-color: var(--ccf-accent); color: var(--ccf-accent); }

/* ── первый экран ── */
.ccf-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ccf-bg2);
}
.ccf-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}
.ccf-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 33, 28, .55) 0%, rgba(18, 33, 28, .15) 38%, rgba(18, 33, 28, .92) 100%);
}
.ccf-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 64px;
}
.ccf-hero-h1 {
  /* text-wrap: balance — строки по смыслу, без сирот; ширина не заезжает на коллаж */
  max-width: 820px;
  margin: 18px 0 20px;
  font-size: clamp(28px, 3.3vw, 46px);
  line-height: 1.04;
  text-wrap: balance;
}
.ccf-lead {
  font-size: 17.5px;
  color: #D7D7DE;
  max-width: 44ch;
  margin: 0 0 30px;
}
.ccf-hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.ccf-hero-foot {
  display: flex;
  gap: 34px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--ccf-line);
  flex-wrap: wrap;
}
.ccf-hero-foot b {
  display: block;
  font-family: var(--ccf-fh);
  font-size: 22px;
  font-weight: 900;
}
.ccf-hero-foot span { font-size: 12.5px; color: var(--ccf-dim); }

.ccf-hero-collage {
  position: absolute;
  top: 140px;
  right: 40px;
  z-index: 2;
  display: flex;
  gap: 10px;
}
.ccf-hero-collage figure { margin: 0; position: relative; }
.ccf-hero-collage img {
  width: 130px;
  height: 86px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .2);
}
.ccf-hero-collage figcaption {
  position: absolute;
  left: 8px;
  bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(18, 33, 28, .66);
  padding: 2px 7px;
  border-radius: 6px;
}

/* ── мозаика работ ── */
.ccf-mosaic { padding: 84px 0 70px; }
.ccf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.ccf-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--ccf-r);
  background: var(--ccf-card);
  margin: 0;
}
.ccf-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.ccf-tile:hover img { transform: scale(1.06); }
.ccf-tile--normal { aspect-ratio: 1 / 1; }
.ccf-tile--tall { grid-row: span 2; aspect-ratio: 1 / 2; }
.ccf-tile--wide { grid-column: span 2; aspect-ratio: 2 / 1; }
.ccf-cap {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  font-family: var(--ccf-fh);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .02em;
  background: rgba(18, 33, 28, .62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 6px 12px;
  border-radius: 999px;
}

/* ── услуги ── */
.ccf-services { padding: 26px 0 80px; }
.ccf-svc-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.ccf-svc {
  position: relative;
  display: block;
  background: var(--ccf-card);
  border: 1px solid var(--ccf-line);
  border-radius: var(--ccf-r);
  overflow: hidden;
  transition: border-color .25s, transform .25s;
}
.ccf-svc:hover { border-color: rgba(200, 241, 105, .5); transform: translateY(-3px); }
.ccf-svc img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; opacity: .92; }
.ccf-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(18, 33, 28, .74);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--ccf-accent);
  font-family: var(--ccf-fh);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}
.ccf-svc-txt {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px 8px;
}
.ccf-svc-nm { font-family: var(--ccf-fh); font-weight: 800; font-size: 15.5px; }
.ccf-svc-pr {
  font-family: var(--ccf-fh);
  font-weight: 800;
  font-size: 14px;
  color: var(--ccf-accent);
  white-space: nowrap;
}
.ccf-svc-ds {
  display: block;
  font-size: 13px;
  color: var(--ccf-dim);
  padding: 0 18px 18px;
}

/* ── до и после ── */
.ccf-ba { padding: 20px 0 84px; }
.ccf-ba-case + .ccf-ba-case { margin-top: 40px; }
.ccf-ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ccf-ba-card {
  position: relative;
  border-radius: var(--ccf-r);
  overflow: hidden;
  background: var(--ccf-card);
}
.ccf-ba-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.ccf-ba-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  font-family: var(--ccf-fh);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: 999px;
}
.ccf-ba-card--before .ccf-ba-tag { background: rgba(18, 33, 28, .7); color: #fff; }
.ccf-ba-card--after .ccf-ba-tag { background: var(--ccf-accent); color: var(--ccf-accent-ink); }
.ccf-ba-note {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.ccf-ba-t {
  margin: 0 0 10px;
  font-size: 14.5px;
  color: #D7D7DE;
  max-width: 62ch;
}
/* Тап-зона не меньше 44px по высоте: ссылка была 22px и на телефоне
   промахивалась (замечание приёмки 18.11.2026). Внешний вид не меняется —
   паддинг только увеличивает область нажатия. */
.ccf-ba-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--ccf-fh);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ccf-accent);
}

/* ── частые вопросы ── */
.ccf-faq { padding: 10px 0 70px; }
.ccf-faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ccf-faq-list details {
  background: var(--ccf-card);
  border: 1px solid var(--ccf-line);
  border-radius: var(--ccf-r);
  padding: 18px 22px;
}
.ccf-faq-list details[open] { border-color: rgba(200, 241, 105, .35); }
.ccf-faq-list summary {
  font-family: var(--ccf-fh);
  font-weight: 700;
  font-size: 15.5px;
  cursor: pointer;
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ccf-faq-list summary::-webkit-details-marker { display: none; }
.ccf-faq-list summary::marker { content: ''; }
.ccf-faq-list summary::after { content: '+'; color: var(--ccf-accent); font-weight: 900; }
.ccf-faq-list details[open] summary::after { content: '–'; }
.ccf-faq-a { color: var(--ccf-dim); font-size: 14px; }
.ccf-faq-a p { margin: 12px 0 0; }

/* ── о студии ── */
.ccf-about { padding: 10px 0 60px; }
.ccf-about h2 { margin-bottom: 16px; }
.ccf-about p {
  color: #CFCFD6;
  font-size: 16px;
  line-height: 1.65;
  max-width: 78ch;
  margin: 0 0 12px;
}

/* ── цифры ── */
.ccf-nums {
  border-top: 1px solid var(--ccf-line);
  border-bottom: 1px solid var(--ccf-line);
  padding: 38px 0;
}
.ccf-nums-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.ccf-nums b {
  display: block;
  font-family: var(--ccf-fh);
  font-weight: 900;
  font-size: 32px;
  color: var(--ccf-accent);
}
.ccf-nums span { font-size: 12.5px; color: var(--ccf-dim); }

/* ── финальный блок ── */
.ccf-final { padding: 86px 0 96px; text-align: center; }
.ccf-final h2 { margin-bottom: 14px; }
.ccf-final-p { color: var(--ccf-dim); font-size: 16.5px; margin: 0 0 30px; }
.ccf-final-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ccf-addr { margin-top: 34px; font-size: 13.5px; color: var(--ccf-dim); }
.ccf-addr a { display: inline-block; padding: 10px 0; color: var(--ccf-accent); }

/* ── шапка темы на тёмной странице: держим читаемость без правки header.php ──
   ВАЖНО: цвет кнопки-телефона и её ховер здесь НЕ задаём. Пока главная не
   получала класс cc-service-dark, акцентной плашки у телефона не было, и белый
   текст лежал на тёмной шапке. С включённым тёмным фреймом фон кнопки приходит
   из landing-dark-frame.css (акцент + тёмные чернила), а правило
   body.cc-front-page #header .header-phone { color:#F5F5F7 } имеет ту же
   специфичность (1,2,1) и, идя позже, перебивало его: выходило белым по
   светло-зелёному — контраст 1.57, а на ховере 1.13 (замечание приёмки
   18.11.2026). Владелец этой кнопки — landing-dark-frame.css. */
body.cc-front-page #header {
  background: rgba(18, 33, 28, .72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ccf-line);
}
body.cc-front-page #header .nav-menu > li > a { color: #F5F5F7; }
body.cc-front-page #header .nav-menu > li > a:hover,
body.cc-front-page #header .nav-menu > li:hover > a { color: #C8F169; }
body.cc-front-page #header .nav-menu .sub-menu { background: #1D332A; }
body.cc-front-page #header .nav-menu .sub-menu li a { color: #F5F5F7; }
body.cc-front-page #header .nav-menu .sub-menu li a:hover { color: #C8F169; }
body.cc-front-page #header .burger span { background: #F5F5F7; }
/* В шапке кегль ссылок мелкий: без этого ховер и активное состояние не читаются. */
body.cc-front-page #header .nav-menu > li > a { font-size: 14px; }

@media (max-width: 1240px) {
  .ccf-hero-collage { display: none; }
}

@media (max-width: 1024px) {
  .ccf-grid { grid-template-columns: repeat(3, 1fr); }
  .ccf-svc-row { grid-template-columns: repeat(3, 1fr); }
  .ccf-hero-h1 { max-width: 100%; }
}

@media (max-width: 900px) {
  .ccf-wrap { padding: 0 22px; }
  .ccf-hero { min-height: auto; }
  .ccf-hero-inner { padding: 120px 0 44px; }
  .ccf-hero-foot { gap: 18px 26px; }
  .ccf-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ccf-tile--tall { grid-row: span 1; aspect-ratio: 1 / 1; }
  .ccf-tile--wide { grid-column: span 2; aspect-ratio: 16 / 9; }
  .ccf-svc-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ccf-svc-txt { flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 14px 6px; }
  .ccf-svc-ds { font-size: 12.5px; padding: 0 14px 16px; }
  .ccf-nums-row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .ccf-micro { font-size: 12.5px; letter-spacing: .12em; }
  .ccf-faq-list { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .ccf-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ccf-hero-h1 { font-size: clamp(28px, 6.6vw, 40px); }
  .ccf-ba-grid { gap: 10px; }
}

@media (max-width: 560px) {
  .ccf-wrap { padding: 0 16px; }
  .ccf h2 { font-size: 24px; }
  .ccf-hero-inner { padding: 104px 0 36px; }
  .ccf-lead { font-size: 15.5px; }
  .ccf-btn { padding: 14px 20px; min-height: 46px; }
  .ccf-hero-cta { gap: 10px; }
  .ccf-hero-cta .ccf-btn { width: 100%; }
  .ccf-hero-foot { gap: 16px 22px; }
  .ccf-hero-foot b { font-size: 19px; }
  .ccf-mosaic { padding: 56px 0 46px; }
  .ccf-grid { gap: 8px; }
  .ccf-services { padding: 16px 0 54px; }
  .ccf-svc-nm { font-size: 13.5px; }
  .ccf-svc-pr { font-size: 13px; }
  .ccf-svc-ds { display: none; }
  .ccf-ba { padding: 12px 0 56px; }
  .ccf-ba-grid { gap: 8px; }
  .ccf-faq-list summary { font-size: 15px; }
  .ccf-about p { font-size: 15px; }
  .ccf-nums { padding: 28px 0; }
  .ccf-nums b { font-size: 26px; }
  .ccf-final { padding: 60px 0 68px; }
  .ccf-final-p { font-size: 15px; }
  .ccf-final-row { gap: 10px; }
  .ccf-final-row .ccf-btn { width: 100%; }
}

/* 390 px: одна плитка услуг в строку, крупный кегль кнопок не мельче 15 px */
@media (max-width: 430px) {
  .ccf-wrap { padding: 0 14px; }
  /* Плитки услуг в одну колонку НЕ переводим: в утверждённом макете
     (design-mockups/variant-d2-seo.html, @media 560px: .svc-row 1fr 1fr)
     на 390px их две, и секция вдвое короче. Одноколоночный вариант давал
     11 карточек подряд высотой ~3670px (замечание приёмки 18.11.2026).
     Две колонки приходят из правила @media (max-width: 900px). */
  .ccf-btn { font-size: 15px; }
  .ccf-hero-h1 { font-size: 28px; }
  .ccf-nums-row { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .ccf-nums b { font-size: 24px; }
}

/* ── Карта в блоке контактов ───────────────────────────────────────────────
   Раньше эти стили стояли инлайном в разметке; вынесены сюда, чтобы блок
   выглядел одинаково и при живом API, и когда карта не поднялась. Плагин
   лендингов рисует контейнер по тому же контракту классов, поэтому оформление
   подхватывается и там. */
.ccf-map { position: relative; border-radius: 12px; overflow: hidden; }
.ccf-map-canvas {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  /* Пока тайлы не загрузились — тёмная подложка вместо светлой: светлое пятно
     на тёмной странице выглядит как ошибка загрузки. */
  background: var(--ccf-bg2);
}
/* Запасная ссылка видна всегда, даже если JS-карта заняла контейнер. */
.ccf-map-open {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  color: var(--ccf-text);
  background: rgba(18, 33, 28, .74);
  text-decoration: none;
}
.ccf-map-open:hover { color: var(--ccf-accent); }
.ccf-map-open:focus-visible { outline: 2px solid var(--ccf-accent); outline-offset: 2px; }
@media (max-width: 560px) {
  .ccf-map-canvas { height: 300px; }
}

/* ==========================================================================
   Прокрутка по якорям из контента: цель не должна прятаться под липкой шапкой.
   Ссылки в блоках ведут на #services, #prices, #works, #faq, #about, #contacts —
   без scroll-margin-top браузер ставит верх секции ровно под шапку.
   --header-h — высота липкой шапки темы; +24px воздуха над заголовком блока.
   ========================================================================== */

.ccf {
  --header-h: 86px;
  --ccf-anchor-air: 24px;
}

/* Любой якорь внутри блоков главной. */
.ccf [id] {
  scroll-margin-top: calc(var(--header-h) + var(--ccf-anchor-air));
}

/* #services — пустой span перед секцией услуг (id="prices" занят целью Метрики):
   блок нулевой высоты, чтобы прокрутка шла ровно к началу секции. */
#services {
  display: block;
  height: 0;
}

/* Высота шапки одна на всех ширинах: landing.css задаёт header{height:80px}
   без медиазапросов (проверено и в живом файле, и замером в браузере —
   check_front_anchors.mjs). 86px — с запасом на будущие правки шапки. */

