/* ===== 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);
}

.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);
}

.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: var(--transition);
}

/* ===== 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);
}

.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__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(280px, 1fr));
  gap: 24px;
}

.contact-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
  text-align: center;
}

.contact-card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.contact-card__title {
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-accent);
}

.contact-card__value {
  color: var(--color-gray-700);
  font-size: 1.05rem;
}

.contact-card__value a {
  color: var(--color-primary);
  font-weight: 600;
}

.contact-card__value a:hover {
  color: var(--color-primary-dark);
}

.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);
}

/* ===== Footer ===== */
.footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 0;
  margin-top: auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.footer__desc {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.footer__phone:hover {
  color: #ffb380;
}

.footer__title {
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.footer__links li {
  margin-bottom: 10px;
}

.footer__links a {
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--color-primary);
}

.footer__bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== 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;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
    pointer-events: none;
    z-index: 999;
  }

  .nav--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav__link {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
  }

  .header__phone-full,
  .header__phone-short {
    display: none !important;
  }

  .header__phone {
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    font-size: 0;
  }

  .header__phone::after {
    content: '';
    width: 18px;
    height: 18px;
    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;
  }

  .content__grid {
    grid-template-columns: 1fr;
  }

  .sidebar-card {
    position: static;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@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;
    gap: 32px;
  }
}

/* ===== 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; }
