/* ============================================
   АВТО МЕХАНИК — main.css
   Дочерняя тема Hello Elementor
   Палитра: белый / красный #DC2626 / чёрный
   ============================================ */

/* ============================================================
   HELLO ELEMENTOR / ELEMENTOR OVERRIDES
   Перебиваем ограничения ширины и розовые акценты родителя.
   ============================================================ */

/* 1. Снимаем max-width у всех контейнеров parent-темы и сбрасываем их фон. */
html,
body,
.site,
.site-header,
.site-content,
.site-footer,
.site-main,
.entry-content,
.entry-summary,
.page-content,
#page,
#content,
#primary {
	max-width: 100% !important;
	width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	background: transparent !important;
	float: none !important;
}

/* Боковые padding убираем — но padding-top / padding-bottom оставляем
   на усмотрение наших классов (.am-page и т.п.). */
.site-main,
.entry-content,
.page-content,
.site-content {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

html, body {
	overflow-x: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* 2. Перебиваем CSS-переменные Hello Elementor и Elementor Kit. */
:root,
[class*="elementor-kit-"] {
	--page-width: 100% !important;
	--container-width: 100% !important;
	--color-primary: #DC2626 !important;
	--color-secondary: #0A0A0A !important;
	--color-text: #3F3F46 !important;
	--color-accent: #DC2626 !important;
	--color-link: #DC2626 !important;
	--color-link-hover: #B91C1C !important;
	--e-global-color-primary: #DC2626 !important;
	--e-global-color-secondary: #0A0A0A !important;
	--e-global-color-text: #3F3F46 !important;
	--e-global-color-accent: #DC2626 !important;
	--button-background-color: #DC2626 !important;
	--button-background-color-hover: #B91C1C !important;
	--button-text-color: #FFFFFF !important;
}

/* 3. Сбрасываем «розовый» цвет ссылок Hello Elementor.
   Наши специальные классы (.btn, иконки и т.д.) имеют свой цвет
   и обрабатываются ниже своими правилами. */
a,
a:visited {
	color: inherit;
}

/* 4. Hello Elementor стилизует header / footer / навигацию parent-темы.
   Убираем — нам нужно своё. */
.site-header,
.site-footer {
	border: none !important;
	box-shadow: none !important;
}

.site-header .site-branding,
.site-header .site-navigation {
	display: revert;
}

/* 5. Убираем placeholder-стили form Hello Elementor */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="url"],
textarea {
	border-radius: 0 !important;
}

/* ============================================ */

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  --accent: #DC2626;
  --accent-hover: #B91C1C;
  --accent-dark: #991B1B;
  --accent-soft: #FEE2E2;
  --accent-glow: rgba(220, 38, 38, 0.3);

  --ink: #0A0A0A;
  --dark: #18181B;
  --dark-2: #232327;
  --gray-700: #3F3F46;
  --gray-500: #71717A;
  --gray-400: #A1A1AA;
  --gray-300: #D4D4D8;
  --gray-200: #E4E4E7;
  --gray-100: #F4F4F5;
  --gray-50: #FAFAFA;
  --white: #FFFFFF;
  --border: #E5E5E5;
  --border-dark: #27272A;

  --container-max: 1280px;
  --container-px: 32px;
  --section-py: 120px;
  --section-py-sm: 80px;
  --header-height: 96px;

  --radius-sm: 2px;
  --radius: 4px;
  --radius-md: 6px;

  --font-display: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.2s;
  --t: 0.35s;
  --t-slow: 0.6s;

  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.06);
  --shadow: 0 8px 24px rgba(10, 10, 10, 0.08);
  --shadow-lg: 0 24px 48px rgba(10, 10, 10, 0.12);
}

/* ============================================
   RESET / BASE — переопределение Hello Elementor
   ============================================ */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

h1, h2, h3,
h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img, svg { display: block; max-width: 100%; height: auto; }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0; }

/* a11y */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 12px 24px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
}
.skip-link:focus { left: 16px; top: 16px; }

.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; width: 1px; word-wrap: normal !important;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

.section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
  position: relative;
}
.section--tight {
  padding-top: var(--section-py-sm);
  padding-bottom: var(--section-py-sm);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.h-section {
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.12;
}

.h-card {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
}

.lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--gray-700);
}

.meta {
  font-size: 14px;
  color: var(--gray-500);
}

.stripes {
  display: inline-flex;
  gap: 6px;
  margin-top: 24px;
}
.stripes span {
  width: 32px;
  height: 6px;
  background: var(--accent);
  transform: skewX(-25deg);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 56px;
  padding: 0 32px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--accent);
  border-radius: var(--radius-sm);
  transition: background var(--t) var(--ease), transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
  white-space: nowrap;
  border: none;
  cursor: pointer;
}
.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px var(--accent-glow);
  color: var(--white);
}
.btn:active { transform: translateY(0); }

.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn--outline:hover {
  background: var(--ink);
  color: var(--white);
  box-shadow: none;
}

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn--outline-light:hover {
  background: var(--white);
  color: var(--ink);
  box-shadow: none;
}

.btn-arrow {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  transition: transform var(--t) var(--ease);
}
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t) var(--ease), height var(--t) var(--ease);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
}

.header.is-scrolled {
  box-shadow: 0 1px 0 var(--border), 0 8px 24px rgba(10, 10, 10, 0.06);
  height: 80px;
  border-bottom-color: transparent;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  min-width: 0;
}
.logo-svg, .custom-logo, .logo-image {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  object-fit: contain;
}
.custom-logo, .logo-image {
  width: auto;
  max-height: 56px;
  max-width: 220px;
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.logo-text span {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-top: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link {
  position: relative;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: color var(--t-fast) var(--ease);
  white-space: nowrap;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 18px; right: 18px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t) var(--ease);
}
.nav__link:hover::after,
.nav__link.is-active::after,
.nav__link.current-menu-item::after {
  transform: scaleX(1);
}

.header-info {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  margin-left: auto;
}
.header-info__item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.header-info__icon {
  width: 48px;
  height: 48px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.header-info__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2;
}
.header-info__text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}
.header-info__label {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 500;
  white-space: nowrap;
}
.header-info__value {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
/* Состояние при белой шапке (всегда) — не зависит от .is-scrolled */

.burger {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}
.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: var(--header-height);
  left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 32px var(--container-px) 48px;
  transform: translateY(-120%);
  transition: transform var(--t-slow) var(--ease);
  z-index: 99;
  box-shadow: 0 24px 48px rgba(10, 10, 10, 0.1);
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu__nav { display: flex; flex-direction: column; }
.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.mobile-menu__link::after {
  content: '→';
  color: var(--gray-400);
  transition: color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.mobile-menu__link:hover::after {
  color: var(--accent);
  transform: translateX(4px);
}
.mobile-menu__contacts {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-menu__contact {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--gray-700);
}
.mobile-menu__contact strong { color: var(--ink); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--ink);
  overflow: hidden;
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 100px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(220, 38, 38, 0.06) 0%, transparent 60%),
    linear-gradient(135deg, #FFFFFF 0%, #F4F4F5 55%, #E8E8EB 100%);
}
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(10,10,10,0.05) 1px, transparent 0);
  background-size: 32px 32px;
}
.hero__bg::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.10) 0%, transparent 65%);
  filter: blur(50px);
  pointer-events: none;
}

/* Hero с изображением через Customizer — светлый overlay */
.hero__bg--image {
  background: #E8E8EB;
}
.hero__bg--image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.78) 45%, rgba(255,255,255,0.35) 100%);
  background-size: auto;
  z-index: 1;
}
.hero__bg--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.hero__bottom-shape {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  z-index: 2;
  pointer-events: none;
}
.hero__bottom-shape svg { width: 100%; height: 100%; display: block; }
.hero__bottom-shape svg path { fill: var(--white) !important; }
.hero__content {
  position: relative;
  z-index: 3;
  max-width: 760px;
}
.hero__title {
  font-size: clamp(36px, 4.2vw, 60px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 28px;
  max-width: 720px;
}
.hero__title span { color: var(--accent); }
.hero__subtitle {
  font-size: 17px;
  line-height: 1.65;
  color: var(--gray-700);
  max-width: 520px;
  margin-bottom: 40px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.hero__phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  padding: 0 16px;
  height: 56px;
}
.hero__phone svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
}
.hero__phone:hover { color: var(--accent); }

/* ============================================
   ABOUT
   ============================================ */
.about {
  background: var(--white);
  position: relative;
}
.about__triangles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}
.about__triangles svg { width: 100%; height: 100%; display: block; }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.about__heading { max-width: 480px; }
.about__body { padding-top: 8px; }
.about__text {
  font-size: 17px;
  line-height: 1.65;
  color: var(--gray-700);
  margin-bottom: 28px;
}

.about__cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-top: 72px;
  position: relative;
  z-index: 1;
  align-items: stretch;
}

/* Все три блока внутри (CTA + 2 фото) — одной высоты.
   !important нужен, чтобы перебить min-height у .cta-card / .img-ph ниже. */
.about__cards > * {
  min-height: 420px !important;
  height: 100% !important;
  align-self: stretch !important;
}

/* CTA-карточка вместо Андрея */
.cta-card {
  background: var(--ink);
  color: var(--white);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.cta-card__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
}
.cta-card__text {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 28px;
  position: relative;
}
.cta-card__btn {
  align-self: flex-start;
  position: relative;
}
.cta-card__meta {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  position: relative;
}

/* IMAGE PLACEHOLDERS — для фото */
.img-ph {
  position: relative;
  background: linear-gradient(135deg, #2a2a2e 0%, #1a1a1d 100%);
  overflow: hidden;
  min-height: 320px;
}
.img-ph::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 24px 24px;
}
.img-ph::after {
  content: attr(data-label);
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
}
.img-ph__icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  opacity: 0.18;
}
.img-ph__icon svg {
  width: 100%; height: 100%;
  stroke: var(--white);
  fill: none;
  stroke-width: 1.5;
}
/* Реальное изображение поверх плейсхолдера */
.img-ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.img-ph--with-image::before,
.img-ph--with-image::after,
.img-ph--with-image .img-ph__icon {
  display: none;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  background: var(--gray-50);
  position: relative;
}
.services__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 64px;
}
.services__head-left { max-width: 600px; }
.services__lead {
  max-width: 420px;
  color: var(--gray-700);
  font-size: 16px;
  line-height: 1.6;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 40px 32px;
  position: relative;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0;
  height: 4px;
  background: var(--accent);
  transition: width var(--t-slow) var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { width: 100%; }

/* Плейсхолдер для иконки услуги — 64×64 PNG */
.service-card__icon-ph {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  background: var(--gray-100);
  border: 1.5px dashed var(--gray-300);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
}
.service-card:hover .service-card__icon-ph {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* Если есть реальная иконка */
.service-card__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}
.service-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-card__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink);
}
.service-card__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-500);
  margin-bottom: 24px;
}
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.service-card__link svg {
  width: 14px; height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  transition: transform var(--t) var(--ease);
}
.service-card:hover .service-card__link svg { transform: translateX(4px); }

/* ============================================
   WHY US
   ============================================ */
.why { background: var(--white); }
.why__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 80px;
  align-items: stretch;
}
.why__image { min-height: 600px; }
.why__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* Отступ под заголовком Why */
.why__title {
  margin-bottom: 24px;
}
.why__lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--gray-700);
  margin-bottom: 48px;
  max-width: 600px;
}
.why__items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
.why-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  align-items: start;
}
.why-item__icon {
  width: 56px;
  height: 56px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.why-item__icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2;
}
.why-item__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ink);
}
.why-item__text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
}

/* ============================================
   REVIEWS
   ============================================ */
.reviews { background: var(--gray-50); position: relative; }
.reviews__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.reviews__lead {
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray-700);
  margin-top: 20px;
}
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.review:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.review__stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}
.review__stars svg {
  width: 16px;
  height: 16px;
  fill: var(--accent);
}
.review__text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray-700);
  margin-bottom: 32px;
  flex: 1;
}
.review__author {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.review__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.review__name {
  font-weight: 700;
  color: var(--ink);
  font-size: 15px;
}
.review__car {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 2px;
}

/* ============================================
   PROMO
   ============================================ */
.promo {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}
.promo__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(220, 38, 38, 0.2) 0%, transparent 50%),
    linear-gradient(135deg, #0a0a0a 0%, #1a1a1d 100%);
}
.promo__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
  background-size: 32px 32px;
}

.promo__bg--image {
  background: #0a0a0a;
}
.promo__bg--image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.78) 0%, rgba(10,10,10,0.55) 100%);
  z-index: 1;
}
.promo__bg--image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.promo__content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding: 80px var(--container-px);
}
.promo__title {
  font-size: clamp(30px, 3.6vw, 48px);
  color: var(--white);
  margin-bottom: 28px;
  line-height: 1.15;
}
.promo__title strong {
  color: var(--accent);
  font-weight: 800;
}
.promo__text {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   CTA BAR
   ============================================ */
.cta-bar {
  background: var(--accent);
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}
.cta-bar::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 240px;
  height: 100%;
  background: var(--ink);
  clip-path: polygon(80px 0, 100% 0, 100% 100%, 0 100%);
}
.cta-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.cta-bar__title {
  font-size: clamp(24px, 2.6vw, 36px);
  color: var(--white);
  max-width: 700px;
  line-height: 1.2;
}
.cta-bar__btn {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  height: 64px;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}
.cta-bar__btn:hover {
  background: var(--white);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 96px 0 40px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1fr;
  gap: 64px;
  margin-bottom: 72px;
}
.footer__brand .logo-text {
  color: var(--white);
  font-size: 22px;
}
.footer__desc {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  margin: 32px 0 32px;
  max-width: 360px;
}
.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer-contact {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}
.footer-contact svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 2px;
}
.footer-contact a:hover { color: var(--accent); }

.footer__socials {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}
.footer__social {
  width: 44px;
  height: 44px;
  background: var(--dark-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t) var(--ease), transform var(--t) var(--ease);
}
.footer__social:hover {
  background: var(--accent);
  transform: translateY(-3px);
}
.footer__social svg {
  width: 18px;
  height: 18px;
  fill: var(--white);
}

/* Карта */
.footer__map {
  position: relative;
  min-height: 280px;
}
.footer__map-ph {
  width: 100%;
  height: 100%;
  min-height: 280px;
  background: var(--dark-2);
  position: relative;
  overflow: hidden;
}
.footer__map-ph::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.footer__map-pin {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px var(--accent-glow);
  animation: pinPulse 2s var(--ease) infinite;
}
@keyframes pinPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.08); }
}
.footer__map-pin svg {
  width: 24px;
  height: 24px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2.2;
}
.footer__map-label {
  position: absolute;
  bottom: 16px; left: 16px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Embed карты Yandex/Google */
.footer__map-embed {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
  overflow: hidden;
}
.footer__map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ============================================
   ФОРМА ЗАЯВКИ В FOOTER
   ============================================ */
.footer__lead h3 {
  font-size: 22px;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.25;
}
.footer__lead p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
}
.am-lead-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.am-field { position: relative; }
.am-field__input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  background: var(--white);
  border: 1px solid transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  transition: border-color var(--t-fast) var(--ease);
  border-radius: 0;
}
.am-field__input:focus {
  outline: none;
  border-color: var(--accent);
}
.am-field__input::placeholder { color: var(--gray-400); }
textarea.am-field__input {
  height: auto;
  min-height: 96px;
  padding: 14px 18px;
  resize: vertical;
  line-height: 1.5;
}
.am-form__submit {
  width: 100%;
  height: 52px;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background var(--t) var(--ease), opacity var(--t) var(--ease);
  border: none;
  cursor: pointer;
}
.am-form__submit:hover { background: var(--accent-hover); }
.am-form__submit:disabled { opacity: 0.6; cursor: not-allowed; }

.am-form__status {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.4;
  min-height: 18px;
}
.am-form__status.is-success { color: #34D399; }
.am-form__status.is-error { color: #FCA5A5; }

.am-form__legal {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.45);
}
.am-form__legal a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
}
.am-form__legal a:hover { color: var(--accent); }

/* Honeypot скрыт */
.am-honeypot {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ============================================
   FOOTER BOTTOM
   ============================================ */
.footer__bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}
.footer__bottom a:hover { color: var(--accent); }
.footer__bottom-links {
  display: flex;
  gap: 24px;
}
.footer__legal {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 8px;
}

/* ============================================
   MODAL — попап с формой
   ============================================ */
.am-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.am-modal.is-open {
  display: flex;
}
.am-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.am-modal__content {
  position: relative;
  background: var(--white);
  width: 100%;
  max-width: 480px;
  padding: 40px 32px 32px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  animation: amModalIn 0.35s var(--ease-out);
}
@keyframes amModalIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.am-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--gray-500);
  font-size: 20px;
  line-height: 1;
  border-radius: 4px;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.am-modal__close:hover {
  background: var(--gray-100);
  color: var(--ink);
}
.am-modal__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.25;
}
.am-modal__subtitle {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.5;
  margin-bottom: 24px;
}
.am-modal .am-field__input {
  background: var(--gray-50);
  border: 1px solid var(--border);
}
.am-modal .am-field__input:focus {
  background: var(--white);
  border-color: var(--accent);
}
.am-modal .am-form__legal {
  color: var(--gray-500);
}
.am-modal .am-form__legal a {
  color: var(--gray-700);
}
.am-modal .am-form__status.is-error {
  color: var(--accent);
}
.am-modal .am-form__status.is-success {
  color: #047857;
}

body.am-modal-open {
  overflow: hidden;
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }

/* ============================================
   WP-СТАНДАРТНЫЕ КЛАССЫ
   ============================================ */
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 8px 24px 8px 0; }
.alignright { float: right; margin: 8px 0 8px 24px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--gray-500); text-align: center; margin-top: 8px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.gallery-item { margin: 0; }
blockquote, .wp-block-quote {
  border-left: 3px solid var(--accent);
  padding: 12px 24px;
  margin: 24px 0;
  font-style: italic;
  color: var(--gray-700);
}

/* Стандартные страницы — контент */
.am-page {
  padding-top: calc(var(--header-height) + 80px);
  padding-bottom: 96px;
}
.am-page .container { max-width: 880px; }
.am-page__title {
  font-size: clamp(32px, 4vw, 52px);
  margin-bottom: 32px;
}
.am-page__content { font-size: 17px; line-height: 1.75; color: var(--gray-700); }
.am-page__content h2 { font-size: 28px; margin: 48px 0 16px; }
.am-page__content h3 { font-size: 22px; margin: 36px 0 12px; }
.am-page__content p { margin-bottom: 16px; }
.am-page__content ul, .am-page__content ol { margin: 16px 0 16px 24px; }
.am-page__content ul { list-style: disc; }
.am-page__content ol { list-style: decimal; }
.am-page__content li { margin-bottom: 8px; }
.am-page__content a { color: var(--accent); text-decoration: underline; }
.am-page__content a:hover { color: var(--accent-hover); }

/* Форма поиска */
.search-form {
  display: flex;
  gap: 12px;
  margin: 32px 0;
}
.search-form input[type="search"] {
  flex: 1;
  height: 52px;
  padding: 0 18px;
  border: 1px solid var(--border);
  font-size: 15px;
  font-family: inherit;
}
.search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--accent);
}
.search-form button {
  height: 52px;
  padding: 0 24px;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.search-form button:hover { background: var(--accent-hover); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1320px) {
  .header__inner { gap: 24px; }
  .nav__link { padding: 10px 12px; font-size: 14px; }
  .header-info { gap: 12px; }
  .header-info__value { font-size: 14px; max-width: 160px; }
  .header-info__icon { width: 44px; height: 44px; }
  .header-info__icon svg { width: 20px; height: 20px; }
}

@media (max-width: 1180px) {
  /* На этой ширине скрываем второй блок (адрес), оставляем только телефон */
  .header-info__item:nth-child(2) { display: none; }
}

@media (max-width: 1100px) {
  :root { --section-py: 96px; }
  .nav { display: none; }
  .header-info__item { display: none; }
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__cards { grid-template-columns: 1fr; margin-top: 56px; }
  .about__cards > * { min-height: 280px !important; height: auto !important; }
  .why__grid { grid-template-columns: 1fr; gap: 48px; }
  .why__image { min-height: 400px; }
  .reviews__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__lead { grid-column: 1 / -1; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .burger { display: flex; }
}

@media (max-width: 860px) {
  :root {
    --container-px: 20px;
    --section-py: 72px;
    --section-py-sm: 56px;
    --header-height: 72px;
  }
  .header.is-scrolled { height: 64px; }
  .burger { display: flex; }
  .header-info { display: none; }
  .logo-svg, .custom-logo { width: 40px; height: 40px; }
  .logo-text { font-size: 16px; }
  .logo-text span { font-size: 9px; }
  .hero { min-height: auto; padding-top: calc(var(--header-height) + 60px); padding-bottom: 100px; }
  .hero__title { font-size: clamp(32px, 8vw, 44px); }
  .hero__subtitle { font-size: 15px; margin-bottom: 32px; }
  .services__grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card { padding: 32px 24px; }
  .cta-bar::after { display: none; }
  .footer { padding: 64px 0 32px; }
  .footer__grid { grid-template-columns: 1fr; gap: 48px; margin-bottom: 48px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .promo__content { padding: 64px var(--container-px); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__phone { justify-content: center; }
  .btn { width: 100%; }
  .services__head { flex-direction: column; align-items: flex-start; }
  .cta-bar__inner { flex-direction: column; align-items: flex-start; }
  .gallery { grid-template-columns: 1fr; }
  .am-modal__content { padding: 32px 20px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
