/* ============================================================
   SF CARS — Design System & Styles
   Premium technical car expertise center
   ============================================================ */

/* --- Design Tokens --- */
:root {
  /* Colors */
  --color-red: #A61919;
  --color-red-hover: #C42121;
  --color-red-soft: #FFF1F1;
  --color-dark: #202124;
  --color-graphite: #2B2D31;
  --color-text: #333333;
  --color-muted: #6E737A;
  --color-border: #E2E5E9;
  --color-bg: #F5F6F8;
  --color-white: #FFFFFF;

  /* Typography */
  --font: 'Inter', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  /* Spacing */
  --section-padding: 100px;
  --section-padding-mobile: 56px;
  --container: 1240px;

  /* Radius */
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(32, 33, 36, 0.04);
  --shadow-md: 0 8px 30px rgba(32, 33, 36, 0.08);
  --shadow-lg: 0 20px 60px rgba(32, 33, 36, 0.10);
  --shadow-card: 0 4px 20px rgba(32, 33, 36, 0.06);

  /* Transitions */
  --transition: 0.2s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
ul, ol { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: 1.15; }

/* --- Container --- */
.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* --- Typography --- */
h1 {
  font-size: clamp(34px, 4.5vw, 60px);
  color: var(--color-graphite);
  letter-spacing: -0.03em;
  line-height: 1.08;
}
h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  color: var(--color-graphite);
  letter-spacing: -0.025em;
}
h3 {
  font-size: clamp(20px, 2vw, 26px);
  color: var(--color-graphite);
  letter-spacing: -0.015em;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-red);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.section-label::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-red);
}
.section-desc {
  color: var(--color-muted);
  font-size: 17px;
  max-width: 600px;
  margin-top: 14px;
}

/* --- Section --- */
.section {
  padding: var(--section-padding) 0;
}
.section--gray {
  background: var(--color-bg);
}
.section--dark {
  background: var(--color-dark);
  color: #fff;
}
.section--dark h2 { color: #fff; }
.section--dark h3 { color: #fff; }
.section--dark .section-desc { color: #9CA0A8; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
}
.section-head .section-desc { margin: 0; }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  font-size: 13px;
  color: var(--color-muted);
}
.topbar__inner {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.topbar__items {
  display: flex;
  gap: 24px;
  align-items: center;
}
.topbar__items b {
  color: var(--color-graphite);
  font-weight: 600;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 229, 233, 0.7);
}
.header__inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo img {
  height: 38px;
  width: auto;
}
.logo__text {
  font-size: 11px;
  color: var(--color-muted);
  line-height: 1.25;
  border-left: 1px solid var(--color-border);
  padding-left: 12px;
  max-width: 150px;
}

/* --- Navigation --- */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  white-space: nowrap;
}
.nav a:hover,
.nav a.active {
  color: var(--color-red);
  background: var(--color-red-soft);
}

/* --- Mega Menu --- */
.nav-item {
  position: relative;
}
.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 600px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  z-index: 200;
  margin-top: 0;
}
.nav-item:hover .mega-menu,
.nav-item:focus-within .mega-menu {
  display: block;
}
.mega-menu__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.mega-menu__group-title {
  grid-column: 1 / -1;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  padding: 8px 12px 4px;
  margin-top: 8px;
}
.mega-menu__group-title:first-child {
  margin-top: 0;
}
.mega-menu__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
}
.mega-menu__link:hover {
  background: var(--color-red-soft);
  color: var(--color-red);
}
.mega-menu__link-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* --- Header Actions --- */
.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.header__phone {
  font-weight: 700;
  color: var(--color-graphite);
  font-size: 15px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* --- Burger --- */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  border-radius: var(--radius-md);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-graphite);
  border-radius: 2px;
  transition: var(--transition);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Mobile Menu --- */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: 112px;
  background: var(--color-white);
  z-index: 90;
  padding: 24px 24px 112px;
  overflow-y: auto;
}
.mobile-menu.open {
  display: block;
}
.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-graphite);
}
.mobile-menu__link:last-child { border-bottom: 0; }
.mobile-menu__cta {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--color-red);
  color: #fff;
  font-weight: 650;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover {
  background: var(--color-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(166, 25, 25, 0.2);
}
.btn--secondary {
  background: var(--color-graphite);
  color: #fff;
}
.btn--secondary:hover {
  background: var(--color-dark);
  box-shadow: 0 8px 25px rgba(43, 45, 49, 0.2);
}
.btn--outline {
  background: transparent;
  color: var(--color-graphite);
  border: 1px solid var(--color-border);
}
.btn--outline:hover {
  background: var(--color-bg);
  box-shadow: none;
}
.btn--text {
  background: none;
  color: var(--color-red);
  padding: 0;
  min-height: auto;
}
.btn--text:hover {
  background: none;
  box-shadow: none;
  text-decoration: underline;
}
.btn--sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fff 0%, var(--color-bg) 100%);
  padding: 80px 0 90px;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(166, 25, 25, 0.06), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  min-height: 520px;
  position: relative;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(166, 25, 25, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--color-red);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-red);
}
.hero h1 {
  margin-bottom: 18px;
}
.hero__lead {
  font-size: 18px;
  color: var(--color-muted);
  max-width: 540px;
  margin-bottom: 32px;
  line-height: 1.6;
}
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hero__feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}
.hero__feature-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-red-soft);
  color: var(--color-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

/* --- Hero Visual --- */
.hero__visual {
  position: relative;
}
.hero__visual-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  padding: 28px;
}
.hero__visual-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-red), var(--color-red-hover));
}
.hero__form-title {
  font-size: 18px;
  margin-bottom: 18px;
  color: var(--color-graphite);
}
.hero__form {
  display: grid;
  gap: 12px;
}

/* ============================================================
   FORMS
   ============================================================ */
.field {
  width: 100%;
  height: 50px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  padding: 0 16px;
  color: var(--color-graphite);
  font-size: 15px;
  outline: none;
  transition: var(--transition);
}
.field:focus {
  border-color: rgba(166, 25, 25, 0.4);
  box-shadow: 0 0 0 3px rgba(166, 25, 25, 0.08);
}
.field::placeholder {
  color: var(--color-muted);
}
textarea.field {
  height: auto;
  min-height: 100px;
  padding: 14px 16px;
  resize: vertical;
}
select.field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236E737A' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--color-muted);
}
.agree label {
  cursor: pointer;
  display: inline;
}
.agree input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--color-red);
  flex-shrink: 0;
}
.agree a {
  color: var(--color-red);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.agree a:hover {
  color: var(--color-red-hover);
}
.form-success {
  display: none;
  padding: 14px;
  border-radius: var(--radius-md);
  background: #F0FDF4;
  color: #166534;
  font-weight: 600;
  font-size: 14px;
}
.form-success.show { display: block; }
.form-trap {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.service-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 28px;
  min-height: 240px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--color-red-soft);
  transition: var(--transition);
  opacity: 0;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(166, 25, 25, 0.15);
}
.service-card:hover::after {
  opacity: 1;
  transform: scale(1.4);
}
.service-card__icon {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-red-soft);
  color: var(--color-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 18px;
}
.service-card h3 {
  position: relative;
  z-index: 1;
  font-size: 18px;
  margin-bottom: 8px;
}
.service-card p {
  position: relative;
  z-index: 1;
  color: var(--color-muted);
  font-size: 14px;
  margin: 0;
  flex-grow: 1;
  line-height: 1.5;
}
.service-card__actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}
.service-card__link {
  color: var(--color-red);
  font-weight: 650;
  font-size: 14px;
}
.service-card__link::after { content: ' \2192'; }

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  counter-reset: step;
}
.process__step {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}
.process__step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-graphite);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.process__step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 44px;
  right: -16px;
  width: 32px;
  height: 2px;
  background: var(--color-red);
  z-index: 1;
}
.process__step h3 {
  font-size: 16px;
  margin-bottom: 6px;
}
.process__step p {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ============================================================
   STATS
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.stat-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.stat-card__number {
  display: block;
  font-size: 42px;
  font-weight: 800;
  color: var(--color-red);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.stat-card__label {
  display: block;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 600;
}

/* ============================================================
   ADVANTAGES
   ============================================================ */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.advantage-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.advantage-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.advantage-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-red-soft);
  color: var(--color-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.advantage-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.advantage-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.project {
  position: relative;
  display: block;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 280px;
  background: #ddd;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  color: inherit;
  text-decoration: none;
}
.project--link {
  cursor: pointer;
}
.project:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.4s ease;
}
.project:hover img { transform: scale(1.05); }
.project::after {
  content: '';
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  z-index: 1;
}
.project__content {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 22px;
  color: #fff;
}
.project__tag {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}
.project h3 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 4px;
}
.project p {
  margin: 0;
  color: #d9dce2;
  font-size: 14px;
}

/* ============================================================
   BLOG
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #d5d9df;
}
.blog-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eef0f3;
}
.blog-card__media picture,
.blog-card__media img,
.blog-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.blog-card:hover .blog-card__media img {
  transform: scale(1.04);
}
.blog-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f7f8fa 0%, #eceff3 100%);
  color: var(--color-red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.blog-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: 22px 24px 24px;
}
.blog-card__date {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-muted);
}
.blog-card__title {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--color-dark);
}
.blog-card__excerpt {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card__more {
  margin-top: auto;
  padding-top: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-red);
}
.blog-card__more span {
  display: inline-block;
  transition: transform var(--transition);
}
.blog-card:hover .blog-card__more span {
  transform: translateX(3px);
}

.blog-article {
  max-width: 820px;
  margin: 0 auto;
}
.blog-article__cover {
  margin-bottom: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
}
.blog-article__cover picture,
.blog-article__cover img,
.blog-article__image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}
.blog-article__body {
  max-width: none;
}
.blog-article__body img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}
.blog-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  display: grid;
  gap: 10px;
  max-width: 860px;
  margin: 0 auto;
}
.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq-item__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  padding: 20px 24px;
  cursor: pointer;
  text-align: left;
  font-weight: 650;
  font-size: 16px;
  color: var(--color-graphite);
}
.faq-item__q span {
  color: var(--color-red);
  font-size: 20px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item.open .faq-item__q span {
  transform: rotate(45deg);
}
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item__a p {
  margin: 0;
  padding: 0 24px 20px;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.6;
}
.faq-item.open .faq-item__a {
  max-height: 400px;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: var(--section-padding) 0;
  background: linear-gradient(135deg, #242529, #18191c);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(166, 25, 25, 0.12);
  filter: blur(60px);
}
.cta-card {
  position: relative;
  background: var(--color-white);
  color: var(--color-graphite);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}
.cta-card h2 {
  color: var(--color-graphite);
  font-size: clamp(22px, 2.5vw, 32px);
  margin-bottom: 10px;
}
.cta-card p {
  color: var(--color-muted);
  max-width: 500px;
  margin: 0;
}
.cta-card__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: min(100%, 360px);
}
.cta-card__actions .btn {
  flex: 1 1 180px;
  min-width: 180px;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, #fff, var(--color-bg));
  padding: 72px 0 68px;
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  right: -160px;
  top: -200px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: rgba(166, 25, 25, 0.06);
}
.breadcrumbs {
  color: var(--color-muted);
  font-size: 14px;
  margin-bottom: 16px;
}
.breadcrumbs a { color: var(--color-muted); }
.breadcrumbs a:hover { color: var(--color-red); }
.breadcrumbs span { margin: 0 6px; opacity: 0.5; }
.page-hero h1 {
  max-width: 800px;
  margin-top: 0;
  margin-bottom: 14px;
}
.page-hero p {
  max-width: 700px;
  font-size: 17px;
  color: var(--color-muted);
}

/* ============================================================
   PAGE CONTENT (CMS pages)
   ============================================================ */
.page-content {
  max-width: var(--container);
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text);
}
.page-content > * + * {
  margin-top: 1.25em;
}
.page-content h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.page-content h2:first-child {
  margin-top: 0;
}
.page-content p {
  margin: 0;
  color: var(--color-text);
}
.page-content a {
  color: var(--color-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-content a:hover {
  color: var(--color-red-hover);
}
.page-content ol {
  list-style: decimal;
  padding-left: 1.4em;
  display: grid;
  gap: 0.75em;
}
.page-content ul {
  list-style: disc;
  padding-left: 1.4em;
  display: grid;
  gap: 0.5em;
}
.page-content .page-table-scroll {
  margin: 2rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.page-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-width: 760px;
}
.page-content thead th {
  background: var(--color-bg);
  padding: 18px 22px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}
.page-content tbody td {
  padding: 20px 22px;
  border-top: 1px solid var(--color-border);
  vertical-align: top;
  line-height: 1.55;
}
.page-content tbody tr:first-child td {
  border-top: none;
}
.page-content tbody tr:hover td {
  background: #fafbfc;
}
.page-content tbody td:first-child {
  font-weight: 650;
  color: var(--color-dark);
}
.page-content tbody td:nth-child(3) {
  font-weight: 650;
  white-space: nowrap;
}
.page-content .cta-block {
  margin-top: 2.5rem;
  padding: 28px 32px;
  background: var(--color-red-soft);
  border: 1px solid rgba(166, 25, 25, 0.12);
  border-radius: var(--radius-lg);
  display: grid;
  gap: 1rem;
}
.page-content .cta-block p {
  margin: 0;
}
.page-content .cta-block .btn {
  display: inline-flex;
  margin-top: 0.25rem;
}
.page-content--prices > p:first-of-type,
.page-content--prices > p:nth-of-type(2) {
  font-size: 17px;
  color: var(--color-muted);
  max-width: 900px;
}
.page-content--prices h2:first-of-type {
  margin-top: 2rem;
}

.legal-document {
  max-width: 980px;
}
.legal-document h2 {
  color: var(--color-dark);
}
.legal-sections,
.legal-sections ol {
  list-style: none;
  padding-left: 0;
  counter-reset: item;
}
.legal-sections > li {
  counter-increment: item;
  margin-top: 2.25rem;
}
.legal-sections > li > h2 {
  display: flex;
  gap: 0.4em;
  margin-top: 0;
}
.legal-sections > li > h2::before {
  content: counter(item) ".";
  color: var(--color-red);
}
.legal-sections ol > li {
  counter-increment: item;
  position: relative;
  padding-left: 3.1em;
}
.legal-sections ol > li::before {
  content: counters(item, ".") ".";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--color-red);
}
.legal-sections ul {
  margin-top: 0.65em;
}
.legal-terms {
  display: grid;
  grid-template-columns: minmax(160px, 0.32fr) 1fr;
  gap: 10px 18px;
  margin: 1.25rem 0 1.75rem;
  padding: 20px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.legal-terms dt {
  font-weight: 700;
  color: var(--color-dark);
}
.legal-terms dd {
  margin: 0;
}

/* ============================================================
   FILTERS
   ============================================================ */
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter-btn {
  border: 1px solid var(--color-border);
  background: var(--color-white);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 650;
  font-size: 14px;
  color: var(--color-text);
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover {
  border-color: var(--color-red);
  color: var(--color-red);
}
.filter-btn.active {
  background: var(--color-red);
  color: #fff;
  border-color: var(--color-red);
}

/* ============================================================
   CONTACTS
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
}
.contact-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.contact-card h2 {
  font-size: 32px;
  margin-bottom: 6px;
}
.contact-list {
  display: grid;
  gap: 20px;
  margin: 28px 0;
}
.contact-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-row__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--color-red-soft);
  color: var(--color-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}
.contact-row b {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-graphite);
  margin-bottom: 2px;
}
.contact-row span,
.contact-row a {
  color: var(--color-muted);
  font-size: 15px;
}
.contact-row a:hover { color: var(--color-red); }
.contact-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.contact-map {
  min-height: 480px;
  border-radius: var(--radius-xl);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  position: relative;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  position: absolute;
  inset: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-dark);
  color: #fff;
  padding: 64px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer__logo {
  margin-bottom: 16px;
}
.footer__logo img {
  height: 36px;
  width: auto;
}
.footer__logo img.footer__logo-img--inverted {
  filter: brightness(0) invert(1);
}
.footer__about {
  color: #9CA0A8;
  font-size: 14px;
  max-width: 280px;
  line-height: 1.6;
}
.footer h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer ul { display: grid; gap: 10px; }
.footer a {
  color: #9CA0A8;
  font-size: 14px;
  transition: var(--transition);
}
.footer a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 48px;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: #6E737A;
  font-size: 13px;
}
.footer__socials {
  display: flex;
  gap: 8px;
}
.footer__socials a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}
.footer__socials a:hover {
  background: var(--color-red);
}

/* ============================================================
   MODAL
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 16, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.open { display: flex; }
.modal__card {
  width: min(520px, 100%);
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.3);
  position: relative;
}
.modal__close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
}
.modal__close:hover { background: var(--color-bg); }
.modal h2 {
  font-size: 28px;
  padding-right: 36px;
  margin-bottom: 8px;
}
.modal form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

/* ============================================================
   MOBILE FIXED BAR
   ============================================================ */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}
.mobile-bar__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.mobile-bar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 10px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.mobile-bar__btn--primary {
  background: var(--color-red);
  color: #fff;
}
.mobile-bar__btn--outline {
  background: var(--color-white);
  color: var(--color-graphite);
  border: 1px solid var(--color-border);
}

/* ============================================================
   SERVICE DETAIL PAGE
   ============================================================ */
.service-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.service-hero__badge {
  display: inline-flex;
  padding: 6px 14px;
  background: var(--color-red-soft);
  color: var(--color-red);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}
/* Portfolio detail page */
.portfolio-single__hero {
  margin: 0 0 40px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.portfolio-single__hero img {
  display: block;
  width: 100%;
  height: auto;
}
.portfolio-single__content {
  margin-bottom: 40px;
}
.portfolio-detail__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.portfolio-detail__badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--color-red-soft);
  color: var(--color-red);
  font-size: 14px;
  font-weight: 600;
}
.portfolio-detail__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.portfolio-detail__card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  height: 100%;
}
.portfolio-detail__card h3 {
  font-size: 20px;
  margin: 0 0 14px;
  color: var(--color-dark);
}
.portfolio-detail__body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
}
.portfolio-detail__body p {
  margin: 0 0 0.9em;
}
.portfolio-detail__body p:last-child {
  margin-bottom: 0;
}
.portfolio-detail__body a {
  color: var(--color-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.portfolio-detail__body b,
.portfolio-detail__body strong {
  color: var(--color-dark);
}
.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.portfolio-gallery__item {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #eee;
  box-shadow: var(--shadow-sm);
}
.portfolio-gallery__item img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.page-hero__meta {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-red);
}

.service-brief {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
}
.service-brief h2 {
  font-size: clamp(22px, 2.5vw, 28px);
  margin: 0 0 16px;
}
.service-brief__body ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.service-brief__body li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
}
.service-brief__body strong {
  color: var(--color-dark);
}

.service-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.service-detail__card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.service-detail__card h4 {
  font-size: 16px;
  margin-bottom: 12px;
}
.service-detail__card ul {
  display: grid;
  gap: 8px;
}
.service-detail__card li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--color-muted);
  font-size: 14px;
}
.service-detail__card li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-red);
  margin-top: 7px;
  flex-shrink: 0;
}

.osago-widget {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  min-height: 650px;
}
.osago-widget iframe {
  display: block;
  width: 100%;
  min-width: 320px;
  height: 650px;
  border: none;
  overflow: hidden;
}
.related-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.related-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
  text-decoration: none;
  display: block;
}
.related-card:hover {
  border-color: rgba(166, 25, 25, 0.2);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.related-card h4 {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--color-graphite);
}
.related-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
}

/* ============================================================
   TRUST SECTION
   ============================================================ */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.trust-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.trust-list {
  display: grid;
  gap: 16px;
}
.trust-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.trust-list__check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-red-soft);
  color: var(--color-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}
.trust-list strong {
  display: block;
  color: var(--color-graphite);
  font-size: 15px;
  margin-bottom: 2px;
}
.trust-list span {
  color: var(--color-muted);
  font-size: 14px;
}

/* ============================================================
   REGION BANNER
   ============================================================ */
.region-banner {
  text-align: center;
  padding: 40px;
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  margin-top: 48px;
}
.region-banner h3 {
  margin-bottom: 10px;
}
.region-banner p {
  color: var(--color-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process__step:not(:last-child)::after { display: none; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; min-height: auto; }
  .hero__visual { order: -1; }
  .hero__features { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-card { grid-template-columns: 1fr; }
  .cta-card__actions { justify-content: flex-start; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .service-hero { grid-template-columns: 1fr; }
  .service-detail__grid { grid-template-columns: 1fr; }
  .portfolio-detail__grid { grid-template-columns: 1fr; }
  .portfolio-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-services { grid-template-columns: 1fr; }
  .mega-menu { display: none !important; }
}

@media (max-width: 860px) {
  .topbar { display: none; }
  .header__inner { height: 64px; }
  .mobile-menu { top: 64px; }
  .logo__text { display: none; }
  .header__phone { display: none; }
  .nav { display: none; }
  .burger { display: flex; }
  .hero { padding: 48px 0 56px; }
  .section { padding: var(--section-padding-mobile) 0; }
  .section-head { display: block; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .page-hero { padding: 48px 0; }
  .page-content thead th,
  .page-content tbody td {
    padding: 14px 16px;
    font-size: 14px;
  }
  .page-content .cta-block {
    padding: 20px;
  }
  .mobile-bar { display: block; }
  body { padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 620px) {
  .container { width: min(100% - 24px, var(--container)); }
  .header__actions .btn { display: none; }
  h1 { font-size: clamp(28px, 7vw, 40px); }
  .hero { padding: 36px 0 44px; }
  .hero__lead { font-size: 16px; }
  .hero__features { grid-template-columns: 1fr; }
  .services-grid,
  .stats-grid,
  .process,
  .advantages-grid,
  .portfolio-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .portfolio-gallery { grid-template-columns: 1fr; }
  .portfolio-gallery__item img { height: 240px; }
  .process__step { min-height: auto; }
  .project { min-height: 240px; }
  .footer__bottom { display: block; }
  .topbar__inner { height: auto; }
  .cta-card { padding: 28px; }
  .modal__card { padding: 24px; }
  .contact-card { padding: 24px; }
  .section-head { margin-bottom: 32px; }
  .section-desc { font-size: 15px; }
  .hero__badge { font-size: 12px; }
  .page-hero h1 { font-size: clamp(26px, 6vw, 36px); }
}

/* ============================================================
   Cookie consent
   ============================================================ */
.cookie-consent {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 9999;
  padding: 16px;
}
.cookie-consent__card {
  background: #fff;
  border-radius: 12px;
  max-width: 920px;
  margin: 12px auto 0;
  padding: 18px 18px 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.cookie-consent__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cookie-consent__header h3 {
  margin: 0;
  font-size: 18px;
}
.cookie-consent__close {
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: var(--color-muted);
}
.cookie-consent__text {
  margin: 12px 0 14px;
  color: var(--color-muted);
}
.cookie-consent__options {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}
.cookie-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text);
}
.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.cookie-consent__links {
  margin-top: 10px;
}
.cookie-consent__links a {
  color: var(--color-primary);
  text-decoration: none;
}
.cookie-consent__links a:hover {
  text-decoration: underline;
}

/* ============================================================
   Certificates grid
   ============================================================ */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.about-services-list {
  list-style: disc;
  padding-left: 22px;
  margin-top: 12px;
  display: grid;
  gap: 6px;
}
.about-services-list li {
  padding-left: 4px;
}

.certificate-item {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  background: #fff;
  padding: 12px 12px 10px;
}
.certificate-item img {
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: contain;
  display: block;
}
.certificate-signature {
  margin-top: 10px;
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.3;
  min-height: 34px; /* чтобы карточки не прыгали из-за разной длины подписи */
}

@media (max-width: 1100px) {
  .certificates-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .certificates-grid { grid-template-columns: 1fr; }
}

/* Lightbox for certificates */
.cert-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.62);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.cert-lightbox.open {
  display: flex;
}
.cert-lightbox__card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  width: min(980px, 100%);
  max-height: 86vh;
  overflow: auto;
  padding: 14px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.35);
}
.cert-lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.10);
  background: #fff;
  color: #333;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.cert-lightbox__card img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}
.cert-lightbox__caption {
  margin-top: 10px;
  color: var(--color-muted);
  line-height: 1.4;
}

/* ============================================================
   YANDEX REVIEWS (about page)
   ============================================================ */
.yandex-reviews {
  display: grid;
  grid-template-columns: minmax(360px, 420px) 580px;
  gap: 20px;
  justify-content: center;
  align-items: stretch;
}

.yandex-reviews__summary {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg, 16px);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm, 0 8px 24px rgba(17, 24, 39, 0.06));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.yandex-reviews__badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff4f4;
  color: var(--color-red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.yandex-reviews__score {
  font-size: 56px;
  line-height: 1;
  font-weight: 800;
  color: var(--color-graphite);
  margin-bottom: 8px;
}

.yandex-reviews__stars {
  color: #f5b301;
  font-size: 22px;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.yandex-reviews__meta {
  margin: 0 0 14px;
  color: var(--color-muted);
  font-size: 15px;
}

.yandex-reviews__text {
  margin: 0 0 22px;
  color: var(--color-graphite);
  line-height: 1.55;
}

.yandex-reviews__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.yandex-reviews__widget {
  position: relative;
  width: 100%;
  max-width: 580px;
  min-height: 760px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  box-shadow: var(--shadow-sm, 0 8px 24px rgba(17, 24, 39, 0.06));
}

.yandex-reviews__widget iframe {
  display: block;
  width: 100%;
  height: 760px;
  border: 0;
  background: #fff;
}

.yandex-reviews__attribution {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 16px;
  text-align: center;
  font-size: 11px;
  color: #b3b3b3;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 45%);
}

.yandex-reviews__attribution:hover {
  color: var(--color-muted);
}

@media (max-width: 1100px) {
  .yandex-reviews {
    grid-template-columns: 1fr;
    max-width: 580px;
    margin: 0 auto;
  }
}

@media (max-width: 960px) {
  .yandex-reviews {
    grid-template-columns: 1fr;
  }

  .yandex-reviews__summary {
    text-align: center;
    align-items: center;
  }

  .yandex-reviews__actions {
    justify-content: center;
  }

  .yandex-reviews__widget {
    min-height: 700px;
  }

  .yandex-reviews__widget iframe {
    min-width: 100%;
    height: 700px;
  }
}
