/* ============================================
   ПОЛИГОН77 — Главная таблица стилей
   Чистый CSS без Tilda. Легко редактировать.
   ============================================ */

/* --- Переменные (цвета, шрифты) --- */
:root {
  --color-green: #72A153;
  --color-green-dark: #5a8840;
  --color-dark: #1a1a1a;
  --color-dark-bg: #222222;
  --color-dark-card: #2a2a2a;
  --color-light: #ffffff;
  --color-gray: #999999;
  --color-gray-light: #f5f5f5;
  --color-text: #e0e0e0;
  --color-text-muted: #aaaaaa;
  --font-main: 'TildaSans', 'Segoe UI', Arial, sans-serif;
  --max-width: 1200px;
  --radius: 12px;
  --transition: 0.3s ease;
}

/* --- Сброс стилей --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background: var(--color-dark);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-green);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-green-dark);
}

ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   ШАПКА (Header)
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.header__logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.header__logo span {
  color: var(--color-green);
}

.header__nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.header__nav a {
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}

.header__nav a:hover {
  color: var(--color-light);
}

.header__phone {
  color: var(--color-light) !important;
  font-weight: 600;
  font-size: 15px;
}

.header__cta {
  background: var(--color-green);
  color: var(--color-light) !important;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: background var(--transition);
}

.header__cta:hover {
  background: var(--color-green-dark);
  color: var(--color-light) !important;
}

/* Мобильное меню */
.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-light);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   ГЕРОЙ-СЕКЦИЯ (Hero)
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,26,0.85) 0%, rgba(26,26,26,0.6) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 60px 24px;
}

.hero__title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-light);
  margin-bottom: 20px;
}

.hero__title span {
  color: var(--color-green);
}

.hero__subtitle {
  font-size: 18px;
  color: var(--color-text-muted);
  margin-bottom: 36px;
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__badges {
  display: flex;
  gap: 24px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.badge__icon {
  width: 28px;
  height: 28px;
  background: var(--color-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-light);
}

/* ============================================
   КНОПКИ (Buttons)
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--color-green);
  color: var(--color-light);
}

.btn--primary:hover {
  background: var(--color-green-dark);
  color: var(--color-light);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--color-light);
  border: 1px solid rgba(255,255,255,0.2);
}

.btn--outline:hover {
  border-color: var(--color-green);
  color: var(--color-green);
}

.btn--white {
  background: var(--color-light);
  color: var(--color-dark);
}

.btn--white:hover {
  background: var(--color-gray-light);
  color: var(--color-dark);
  transform: translateY(-2px);
}

/* ============================================
   СЕКЦИИ
   ============================================ */
.section {
  padding: 100px 0;
}

.section--dark {
  background: var(--color-dark);
}

.section--darker {
  background: var(--color-dark-bg);
}

.section__header {
  text-align: center;
  margin-bottom: 60px;
}

.section__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-green);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section__title {
  font-size: 36px;
  font-weight: 800;
  color: var(--color-light);
  margin-bottom: 16px;
}

.section__subtitle {
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   КАРТОЧКИ УСЛУГ (Services Grid)
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--color-dark-card);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(255,255,255,0.05);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.service-card__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-light);
  margin-bottom: 12px;
}

.service-card__desc {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.service-card__price {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-green);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-green);
  font-size: 14px;
  font-weight: 600;
  margin-top: 16px;
}

.service-card__link:hover {
  gap: 10px;
}

/* ============================================
   ПРЕИМУЩЕСТВА (Features)
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature {
  background: var(--color-dark-card);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid rgba(255,255,255,0.05);
}

.feature__icon {
  width: 48px;
  height: 48px;
  background: rgba(114, 161, 83, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 22px;
}

.feature__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-light);
  margin-bottom: 10px;
}

.feature__text {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================
   ЭТАПЫ РАБОТЫ (Steps)
   ============================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step {
  background: var(--color-dark-card);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  border: 1px solid rgba(255,255,255,0.05);
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-green);
  border-radius: 50%;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-light);
  margin-bottom: 16px;
}

.step__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-light);
  margin-bottom: 10px;
}

.step__text {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================
   О КОМПАНИИ (About)
   ============================================ */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-section__image {
  border-radius: var(--radius);
  overflow: hidden;
}

.about-section__image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-section__text h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-light);
  margin-bottom: 16px;
}

.about-section__text p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* ============================================
   АДРЕСА ОБЪЕКТОВ (Locations)
   ============================================ */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.location-card {
  background: var(--color-dark-card);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid rgba(255,255,255,0.05);
}

.location-card__name {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-green);
  margin-bottom: 10px;
}

.location-card__address {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  line-height: 1.5;
}

.location-card__coords {
  font-size: 13px;
  color: var(--color-gray);
  font-family: monospace;
}

/* Карта */
.map-container {
  margin-top: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  height: 500px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================
   ФОРМА ЗАЯВКИ (Contact Form)
   ============================================ */
.form-section {
  background: var(--color-dark-card);
  border-radius: var(--radius);
  padding: 48px;
  max-width: 640px;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,0.05);
}

.form-section__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-light);
  margin-bottom: 8px;
  text-align: center;
}

.form-section__subtitle {
  font-size: 15px;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 32px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form__input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--color-light);
  font-family: var(--font-main);
  font-size: 15px;
  transition: border-color var(--transition);
}

.form__input::placeholder {
  color: var(--color-gray);
}

.form__input:focus {
  outline: none;
  border-color: var(--color-green);
}

.form__submit {
  width: 100%;
}

/* ============================================
   ПОДВАЛ (Footer)
   ============================================ */
.footer {
  background: var(--color-dark-bg);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 60px 0 30px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer__brand h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-light);
  margin-bottom: 8px;
}

.footer__brand p {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-bottom: 4px;
}

.footer__links h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer__links a {
  display: block;
  color: var(--color-text-muted);
  font-size: 14px;
  padding: 4px 0;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--color-green);
}

.footer__contact a {
  display: block;
  color: var(--color-text-muted);
  font-size: 14px;
  padding: 4px 0;
}

.footer__contact a.footer__phone {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-light);
  margin-bottom: 8px;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--color-gray);
}

/* ============================================
   СТРАНИЦА УСЛУГИ — Герой
   ============================================ */
.page-hero {
  position: relative;
  padding: 160px 0 80px;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,26,0.9) 0%, rgba(26,26,26,0.7) 100%);
  z-index: 1;
}

.page-hero__content {
  position: relative;
  z-index: 2;
}

.page-hero__title {
  font-size: 42px;
  font-weight: 800;
  color: var(--color-light);
  margin-bottom: 12px;
}

.page-hero__subtitle {
  font-size: 18px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  max-width: 600px;
}

.page-hero__price {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-green);
  margin-bottom: 28px;
}

.page-hero__badges {
  display: flex;
  gap: 20px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* ============================================
   FAQ (Аккордеон)
   ============================================ */
.faq-item {
  background: var(--color-dark-card);
  border-radius: var(--radius);
  margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
}

.faq-item__question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--color-light);
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 600;
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--transition);
}

.faq-item__question:hover {
  color: var(--color-green);
}

.faq-item__question::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  transition: transform var(--transition);
}

.faq-item.active .faq-item__question::after {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-item__answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

.faq-item__answer p {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ============================================
   ДВУХКОЛОНОЧНЫЙ БЛОК
   ============================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.two-col--reverse {
  direction: rtl;
}

.two-col--reverse > * {
  direction: ltr;
}

/* ============================================
   СПИСОК-СЕТКА ПУНКТОВ
   ============================================ */
.checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.checklist__item {
  background: var(--color-dark-card);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: 15px;
  color: var(--color-light);
  border: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  gap: 12px;
}

.checklist__item::before {
  content: '✓';
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: rgba(114, 161, 83, 0.2);
  color: var(--color-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  .header__nav {
    display: none;
  }

  .header__burger {
    display: flex;
  }

  /* Мобильное меню (открытое) */
  .header__nav.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-dark);
    padding: 24px;
    gap: 16px;
    z-index: 999;
  }

  .header__nav.active a {
    font-size: 18px;
    padding: 12px 0;
  }

  .hero__title {
    font-size: 32px;
  }

  .hero__subtitle {
    font-size: 16px;
  }

  .section__title {
    font-size: 28px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-section {
    grid-template-columns: 1fr;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .page-hero__title {
    font-size: 30px;
  }

  .form-section {
    padding: 32px 20px;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 26px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__badges {
    flex-direction: column;
    gap: 12px;
  }

  .locations-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0;
  }
}
