/* ===== Variables ===== */
:root {
  --color-primary: #e85d04;
  --color-primary-dark: #c44900;
  --color-accent: #1a1a2e;
  --color-dark: #0f0f1a;
  --color-gray-900: #1e1e2e;
  --color-gray-700: #3d3d52;
  --color-gray-500: #6b6b80;
  --color-gray-300: #b8b8c8;
  --color-gray-100: #f0f0f5;
  --color-white: #ffffff;
  --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --header-height: 72px;
  --transition: 0.25s ease;
}

/* ===== Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-gray-900);
  background: var(--color-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

main {
  flex: 1;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  height: var(--header-height);
}

.header__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  height: var(--header-height);
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-accent);
  flex-shrink: 0;
  min-width: 0;
}

.logo__icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0;
  flex-shrink: 0;
}

.logo__text {
  line-height: 1.15;
  min-width: 0;
}

.logo__text span {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--color-gray-500);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-top: 1px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex-wrap: nowrap;
  min-width: 0;
}

.nav__link {
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--color-gray-700);
  white-space: nowrap;
  transition: all var(--transition);
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-primary);
  background: rgba(232, 93, 4, 0.08);
}

.nav__dropdown {
  position: relative;
}

.nav__link--dropdown::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform var(--transition);
}

.nav__dropdown:hover .nav__link--dropdown::after,
.nav__dropdown--open .nav__link--dropdown::after {
  transform: rotate(180deg);
}

.nav__submenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 190px;
  padding: 8px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 1001;
}

.nav__dropdown:hover .nav__submenu,
.nav__dropdown--open .nav__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__sublink {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--color-gray-700);
  white-space: nowrap;
  transition: all var(--transition);
}

.nav__sublink:hover,
.nav__sublink--active {
  color: var(--color-primary);
  background: rgba(232, 93, 4, 0.08);
}

.header__phone {
  display: flex;
  align-items: center;
  padding: 9px 14px;
  background: var(--color-primary);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.82rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--transition), transform var(--transition);
  letter-spacing: -0.01em;
}

.header__phone-short {
  display: none;
}

.header__phone:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

/* Floating call button (mobile, appended to body via JS) */
.call-fab {
  display: none;
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  left: calc(16px + env(safe-area-inset-left, 0px));
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  z-index: 9998;
  box-shadow: 0 6px 24px rgba(232, 93, 4, 0.45), 0 2px 10px rgba(0, 0, 0, 0.18);
  transition: background var(--transition), transform var(--transition);
}

.call-fab:hover {
  background: var(--color-primary-dark);
  transform: scale(1.05);
}

.call-fab .header__phone-full,
.call-fab .header__phone-short {
  display: none !important;
}

.call-fab::after {
  content: '';
  width: 22px;
  height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  transition: transform var(--transition), opacity 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);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(15, 15, 26, 0.42);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-backdrop--visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.menu-open {
  overflow: hidden;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-accent) 50%, #16213e 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(232, 93, 4, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(232, 93, 4, 0.1) 0%, transparent 40%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--color-white), transparent);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 80px 0;
}

.hero__badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(232, 93, 4, 0.2);
  border: 1px solid rgba(232, 93, 4, 0.4);
  border-radius: 50px;
  color: #ffb380;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: white;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero__title em {
  font-style: normal;
  color: var(--color-primary);
}

.hero__text {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 36px;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn--primary {
  background: var(--color-primary);
  color: white;
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232, 93, 4, 0.4);
}

.btn--outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn--outline:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
}

.btn--lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.hero__stats {
  position: absolute;
  right: 5%;
  bottom: 15%;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
}

.stat-card__num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-primary);
}

.stat-card__label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

/* ===== Sections ===== */
.section {
  padding: 80px 0;
}

.section--gray {
  background: var(--color-gray-100);
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.section__desc {
  color: var(--color-gray-500);
  font-size: 1.05rem;
}

/* ===== Service Cards ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
  transform: scaleX(0);
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  background: rgba(232, 93, 4, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.service-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.service-card__text {
  color: var(--color-gray-500);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.service-card__link {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.9rem;
}

.service-card__link:hover {
  color: var(--color-primary-dark);
}

/* ===== Features ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.feature {
  text-align: center;
  padding: 24px;
}

.feature__icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 20px;
  color: white;
}

.feature__title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--color-accent);
}

.feature__text {
  color: var(--color-gray-500);
  font-size: 0.95rem;
}

/* ===== CTA ===== */
.cta {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  color: white;
}

.cta__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta__text {
  opacity: 0.9;
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.cta .btn--outline {
  border-color: white;
}

.cta .btn--outline:hover {
  background: white;
  color: var(--color-primary);
}

/* ===== Page Header ===== */
.page-header {
  background: linear-gradient(135deg, var(--color-dark), var(--color-accent));
  padding: 60px 0;
  text-align: center;
}

.page-header--photo {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-height) + 48px) 0 72px;
}

.page-header__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  transform: scale(1.05);
}

.page-header__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(15, 15, 26, 0.94) 0%, rgba(26, 26, 46, 0.9) 55%, rgba(15, 15, 26, 0.88) 100%);
}

.page-header--photo .container {
  position: relative;
  z-index: 1;
}

.page-header__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(232, 93, 4, 0.18);
  border: 1px solid rgba(232, 93, 4, 0.35);
  border-radius: 50px;
  color: #ffb380;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  margin-bottom: 16px;
}

.page-header__desc {
  max-width: 520px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  line-height: 1.6;
}

.page-header__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
}

.page-header__breadcrumb {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.page-header__breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}

.page-header__breadcrumb a:hover {
  color: var(--color-primary);
}

/* ===== Content ===== */
.content {
  padding: 60px 0;
}

.content__grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.content__text h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  margin: 32px 0 16px;
}

.content__text h2:first-child {
  margin-top: 0;
}

.content__text p {
  color: var(--color-gray-700);
  margin-bottom: 16px;
}

.content__text ul {
  margin: 16px 0;
  padding-left: 0;
}

.content__text ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--color-gray-700);
}

.content__text ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.sidebar-card {
  background: var(--color-gray-100);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.sidebar-card__title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--color-accent);
}

.sidebar-card__phone {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.sidebar-card__note {
  font-size: 0.85rem;
  color: var(--color-gray-500);
  margin-bottom: 20px;
}

/* ===== Price Table ===== */
.price-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin: 32px 0;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  min-width: 500px;
}

.price-table thead {
  background: var(--color-accent);
  color: white;
}

.price-table th {
  padding: 18px 24px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.price-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--color-gray-100);
  color: var(--color-gray-700);
}

.price-table tbody tr:hover {
  background: rgba(232, 93, 4, 0.04);
}

.price-table tbody tr:last-child td {
  border-bottom: none;
}

.price-table .price {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.05rem;
}

.price-note {
  background: rgba(232, 93, 4, 0.08);
  border-left: 4px solid var(--color-primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--color-gray-700);
}

/* ===== Contacts ===== */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.contact-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(232, 93, 4, 0.15);
}

.contact-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  color: white;
  box-shadow: 0 10px 28px rgba(232, 93, 4, 0.28);
}

.contact-card__title {
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-accent);
  font-size: 1.05rem;
}

.contact-card__value {
  color: var(--color-gray-700);
  font-size: 1rem;
  line-height: 1.65;
}

.contact-card__value a {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.contact-card__value a:hover {
  color: var(--color-primary-dark);
}

.contact-card__hint {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--color-gray-500);
}

.contacts-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: stretch;
  margin-top: 48px;
}

.contacts-map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
  box-shadow: var(--shadow-md);
}

.contacts-map__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.contacts-map__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(15, 15, 26, 0.92) 0%, rgba(15, 15, 26, 0.55) 100%);
}

.contacts-map__content {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 40px 32px;
  color: white;
}

.contacts-map__icon {
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: rgba(232, 93, 4, 0.2);
  border: 1px solid rgba(232, 93, 4, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  color: #ffb380;
}

.contacts-map__title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.contacts-map__text {
  color: rgba(255, 255, 255, 0.72);
  max-width: 320px;
  line-height: 1.6;
}

.contacts-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contacts-info__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: var(--shadow-sm);
}

.contacts-info__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(232, 93, 4, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  color: var(--color-primary);
}

.contacts-info__body {
  text-align: left;
}

.contacts-info__label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--color-gray-500);
  margin-bottom: 4px;
}

.contacts-info__value {
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1.5;
}

.contacts-info__value a {
  color: var(--color-primary);
}

.contacts-info__value a:hover {
  color: var(--color-primary-dark);
}

.contacts-cta {
  margin-top: 48px;
  padding: 48px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-dark), var(--color-accent));
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.contacts-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/kamaz-sunset.jpg') center/cover;
  opacity: 0.12;
}

.contacts-cta > * {
  position: relative;
  z-index: 1;
}

.contacts-cta__title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.contacts-cta__text {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.contacts-cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.map-placeholder {
  background: var(--color-gray-100);
  border-radius: var(--radius-lg);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-500);
  margin-top: 48px;
  border: 2px dashed var(--color-gray-300);
}

/* ===== Legal / Privacy ===== */
.legal {
  max-width: 760px;
  margin: 0 auto;
}

.legal__updated {
  color: var(--color-gray-500);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.legal h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-accent);
  margin: 32px 0 12px;
}

.legal h2:first-of-type {
  margin-top: 0;
}

.legal p,
.legal li {
  color: var(--color-gray-700);
  line-height: 1.75;
  font-size: 0.95rem;
}

.legal p {
  margin-bottom: 14px;
}

.legal ul {
  margin: 0 0 16px 20px;
}

.legal li {
  margin-bottom: 8px;
}

.legal a {
  color: var(--color-primary);
  font-weight: 600;
}

.legal a:hover {
  color: var(--color-primary-dark);
}

.legal h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 20px 0 8px;
}

.footer__legal {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== Footer ===== */
@keyframes footerShine {
  0%, 100% { background-position: 200% 0; }
  50% { background-position: -200% 0; }
}

@keyframes footerGlow {
  0% { transform: translate(0, 0) scale(1); opacity: 0.45; }
  100% { transform: translate(-30px, 24px) scale(1.12); opacity: 0.85; }
}

@keyframes footerFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(232, 93, 4, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(232, 93, 4, 0.08) 0%, transparent 50%),
    linear-gradient(165deg, #0c0c14 0%, var(--color-dark) 42%, #16102a 100%);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 0;
  margin-top: auto;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(232, 93, 4, 0.35) 20%,
    #ffb380 50%,
    rgba(232, 93, 4, 0.35) 80%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: footerShine 5s ease-in-out infinite;
}

.footer::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 93, 4, 0.16) 0%, transparent 68%);
  pointer-events: none;
  animation: footerGlow 7s ease-in-out infinite alternate;
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__grid::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 93, 4, 0.28), transparent);
  pointer-events: none;
}

.footer__grid > div {
  animation: footerFadeUp 0.65s ease backwards;
}

.footer__grid > div:nth-child(2) { animation-delay: 0.07s; }
.footer__grid > div:nth-child(3) { animation-delay: 0.14s; }
.footer__grid > div:nth-child(4) { animation-delay: 0.21s; }

.footer__brand {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #ffd4b8 55%, #ffb380 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer__desc {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.62);
}

.footer__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 8px 14px;
  margin-left: -14px;
  border-radius: 50px;
  transition: color 0.3s ease, transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.footer__phone:hover {
  color: #ffb380;
  background: rgba(232, 93, 4, 0.12);
  transform: translateX(4px);
  box-shadow: 0 0 24px rgba(232, 93, 4, 0.22);
}

.footer__title {
  position: relative;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  font-size: 0.95rem;
  padding-bottom: 10px;
}

.footer__title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-primary), transparent);
}

.footer__links li {
  margin-bottom: 10px;
}

.footer__links a {
  display: inline-block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.68);
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer__links a:hover {
  color: #ffb380;
  transform: translateX(5px);
}

.footer__bottom {
  width: 100%;
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: 0.85rem;
}

.footer__bottom a {
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
}

.footer__bottom a:hover {
  color: var(--color-primary);
}

.footer__legal a {
  position: relative;
}

.footer__legal a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--color-primary);
  transition: width 0.25s ease;
}

.footer__legal a:hover::after {
  width: 100%;
}

.footer__credit {
  width: 100%;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.22);
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

.footer__credit:hover {
  color: rgba(255, 255, 255, 0.4);
}

@media (prefers-reduced-motion: reduce) {
  .footer::before,
  .footer::after,
  .footer__grid > div {
    animation: none;
  }

  .footer__links a:hover,
  .footer__phone:hover {
    transform: none;
  }
}

/* ===== Cookie bar ===== */
.cookie-bar {
  position: fixed;
  z-index: 10000;
  left: 16px;
  right: 16px;
  bottom: 16px;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.cookie-bar--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-bar--hide {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.cookie-bar__box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(15, 15, 26, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.cookie-bar__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(232, 93, 4, 0.15);
  border: 1px solid rgba(232, 93, 4, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  color: #ffb380;
}

.cookie-bar__icon .icon {
  width: 18px;
  height: 18px;
  stroke: #ffb380;
}

.cookie-bar__content {
  flex: 1;
  min-width: 0;
}

.cookie-bar__text {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  line-height: 1.45;
}

.cookie-bar__text a {
  color: #ffb380;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-bar__text a:hover {
  color: var(--color-primary);
}

.cookie-bar__btn {
  flex-shrink: 0;
  padding: 10px 18px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.cookie-bar__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232, 93, 4, 0.35);
}

@media (min-width: 640px) {
  .cookie-bar {
    left: auto;
    right: 24px;
    bottom: 24px;
    max-width: 440px;
  }
}

@media (max-width: 639px) {
  .cookie-bar {
    left: 78px;
  }
}

@media (max-width: 480px) {
  .cookie-bar__box {
    flex-wrap: wrap;
  }

  .cookie-bar__btn {
    width: 100%;
    justify-content: center;
  }

  .footer {
    padding-top: 32px;
  }

  .footer__grid {
    gap: 22px 16px;
    padding-bottom: 24px;
  }

  .footer__desc {
    margin-bottom: 10px;
  }

  .footer__title {
    margin-bottom: 10px;
  }

  .footer__links li {
    margin-bottom: 5px;
  }

  .footer__bottom .container {
    padding: 14px 24px 16px;
  }
}

/* ===== Responsive ===== */
@media (max-width: 1280px) {
  .logo__text span {
    display: none;
  }

  .logo {
    font-size: 0.88rem;
  }
}

@media (max-width: 1120px) {
  .header__phone-full {
    display: none;
  }

  .header__phone-short {
    display: inline;
  }

  .header__phone {
    padding: 9px 12px;
  }
}

@media (max-width: 1024px) {
  .hero__stats {
    display: none;
  }

  .burger {
    display: flex;
    margin-left: auto;
    z-index: 2;
  }

  .header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .logo {
    position: static;
    left: auto;
    transform: none;
    z-index: 1;
    flex: 1;
    min-width: 0;
  }

  .logo__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header__phone {
    display: none !important;
  }

  .call-fab:not([hidden]) {
    display: flex;
  }

  .footer {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .nav {
    position: fixed;
    top: calc(var(--header-height) + 12px);
    right: 12px;
    left: auto;
    width: min(340px, calc(100vw - 24px));
    max-height: calc(100vh - var(--header-height) - 24px - env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;

    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px;

    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);

    transform: translateX(calc(100% + 20px));
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    z-index: 999;
  }

  .nav--open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: all;
  }

  .nav > .nav__link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 50px;
    padding: 12px 16px;
    border-radius: 14px;
    background: var(--color-gray-100);
    border: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
    line-height: 1.25;
    white-space: normal;
  }

  .nav > .nav__link:hover,
  .nav > .nav__link--active {
    color: var(--color-primary);
    background: rgba(232, 93, 4, 0.1);
    border-color: rgba(232, 93, 4, 0.18);
  }

  .nav__dropdown {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: auto;
  }

  .nav__dropdown .nav__link--dropdown {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 54px;
    padding: 12px 16px;
    border-radius: 14px;
    background: var(--color-gray-100);
    border: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
    font-weight: 600;
  }

  .nav__dropdown .nav__link--dropdown:hover,
  .nav__dropdown .nav__link--dropdown.nav__link--active {
    color: var(--color-primary);
    background: rgba(232, 93, 4, 0.1);
    border-color: rgba(232, 93, 4, 0.18);
  }

  .nav__submenu {
    position: static;
    min-width: 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__dropdown--open .nav__submenu {
    display: grid;
  }

  .nav__sublink {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 46px;
    padding: 10px 16px;
    border-radius: 12px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.07);
    font-size: 0.86rem;
    font-weight: 600;
    text-align: left;
    line-height: 1.25;
    white-space: normal;
  }

  .nav__sublink:hover,
  .nav__sublink--active {
    color: var(--color-primary);
    background: rgba(232, 93, 4, 0.08);
    border-color: rgba(232, 93, 4, 0.16);
  }

  .content__grid {
    grid-template-columns: 1fr;
  }

  .sidebar-card {
    position: static;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 28px;
    padding-bottom: 36px;
  }

  .footer__grid > div:first-child {
    grid-column: 1 / -1;
  }

  .footer__grid > div:last-child {
    display: none;
  }
}

@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .hero {
    min-height: 480px;
  }

  .hero__content {
    padding: 60px 0;
  }

  .section {
    padding: 56px 0;
  }

  .cta {
    padding: 40px 24px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
    padding-bottom: 32px;
  }

  .footer__grid > div:first-child {
    grid-column: 1 / -1;
  }

  .footer__grid > div:last-child {
    display: none;
  }

  .footer {
    padding-top: 40px;
  }

  .footer__brand {
    margin-bottom: 10px;
    font-size: 1.05rem;
  }

  .footer__desc {
    margin-bottom: 12px;
    font-size: 0.85rem;
    line-height: 1.55;
  }

  .footer__phone {
    font-size: 1rem;
  }

  .footer__title {
    margin-bottom: 12px;
    font-size: 0.88rem;
  }

  .footer__links li {
    margin-bottom: 6px;
  }

  .footer__links a,
  .footer__links li {
    font-size: 0.85rem;
  }

  .footer__bottom .container {
    padding: 16px 24px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8rem;
  }

  .footer__legal {
    gap: 12px;
  }

  .contacts-layout {
    grid-template-columns: 1fr;
  }

  .contacts-cta {
    padding: 36px 24px;
  }

  .page-header--photo {
    padding-bottom: 56px;
  }

  .nav {
    top: calc(var(--header-height) + 10px);
    right: max(10px, env(safe-area-inset-right, 0px));
    width: min(320px, calc(100vw - 20px));
    padding: 12px;
    gap: 8px;
    border-radius: 18px;
  }

  .nav > .nav__link,
  .nav__dropdown .nav__link--dropdown {
    min-height: 50px;
    font-size: 0.84rem;
  }

  .nav__sublink {
    min-height: 44px;
    font-size: 0.8rem;
  }
}

/* ===== Scroll reveal (global) ===== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
