:root {
  --bg-main: #0b0f17;
  --bg-card: #161e2e;
  --bg-input: #0f172a;
  --accent-orange: #d97706;
  --accent-hover: #b45309;
  --text-white: #ffffff;
  --text-gray: #94a3b8;
  --border-color: #273549;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
  background-color: var(--bg-main);
  color: var(--text-white);
  line-height: 1.5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-size: 14px;
}
.btn--primary {
  background-color: var(--accent-orange);
  color: #fff;
}
.btn--primary:hover {
  background-color: var(--accent-hover);
}
.btn--outline {
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-white);
}
.btn--outline:hover {
  border-color: var(--accent-orange);
  color: #fff;
}
.btn--full {
  width: 100%;
}

/* Шапка */
.header {
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
  background: rgba(11, 15, 23, 0.95);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}
.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-weight: bold;
  font-size: 18px;
  letter-spacing: 1px;
  text-decoration: none;
  color: #fff;
}
.logo span {
  color: var(--accent-orange);
}
.nav a {
  color: var(--text-gray);
  text-decoration: none;
  margin: 0 12px;
  font-size: 14px;
  transition: color 0.2s ease;
}
.nav a:hover,
.nav a.active {
  color: #fff;
}
.header__phone {
  display: flex;
  flex-direction: column;
  text-align: right;
}
.phone-link {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.2s ease;
}
.phone-link:hover {
  color: var(--accent-orange);
}
.work-hours {
  font-size: 11px;
  color: var(--text-gray);
}

/* Кнопка бургера для мобильных */
.burger-menu {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

/* Инпуты, селекты и доступность (Focus) */
input, select, button {
  outline: none;
}

input:focus-visible, 
select:focus-visible, 
button:focus-visible {
  outline: 2px solid var(--accent-orange);
  border-color: transparent !important;
}

/* Первый экран */
.hero {
  padding: 50px 0;
}
.hero__container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: center;
}
.tagline {
  font-size: 11px;
  color: var(--text-gray);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.hero__title {
  font-size: 42px;
  font-weight: 800;
  margin: 10px 0 15px;
  line-height: 1.2;
}
.hero__subtitle {
  color: var(--text-gray);
  max-width: 500px;
  margin-bottom: 25px;
}
.hero__buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 35px;
}
.hero__features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  font-size: 12px;
  color: var(--text-gray);
}
.hero__features strong {
  display: block;
  color: #fff;
}

/* Форма первого экрана */
.hero__form-card {
  background: var(--bg-card);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}
.hero__form-card h3 {
  margin-bottom: 20px;
  font-size: 18px;
}
.hero__form-card input, 
.hero__form-card select {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: #fff;
  transition: border-color 0.2s ease;
}
.privacy-note {
  display: block;
  font-size: 10px;
  color: var(--text-gray);
  margin-top: 10px;
  text-align: center;
}

/* Калькулятор */
.calculator-section {
  background: var(--bg-card);
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin: 40px 0;
}
.calc-header h2 {
  font-size: 24px;
}
.calc-header p {
  color: var(--text-gray);
  font-size: 13px;
  margin-bottom: 25px;
}
.calc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: var(--bg-input);
  padding: 25px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}
.calc-item {
  min-width: 0;
}
.calc-label {
  display: block;
  font-size: 12px;
  color: var(--text-gray);
  margin-bottom: 10px;
}
.btn-group {
  display: flex;
  background: var(--bg-card);
  padding: 3px;
  border-radius: 6px;
}
.btn-toggle {
  flex: 1;
  padding: 8px;
  background: transparent;
  border: none;
  color: var(--text-gray);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-toggle.active {
  background: var(--accent-orange);
  color: #fff;
}
.roof-types {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.roof-card {
  padding: 6px 10px;
  font-size: 11px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-gray);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.roof-card:hover {
  border-color: var(--accent-orange);
}
.roof-card.active {
  border-color: var(--accent-orange);
  background: var(--accent-orange);
  color: #fff;
}
.counter {
  display: flex;
  align-items: center;
}
.counter button {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}
.counter button:hover {
  background: var(--border-color);
}
.counter input {
  width: 100%;
  height: 40px;
  text-align: center;
  background: transparent;
  border: 1px solid var(--border-color);
  color: #fff;
}
.sub-label {
  font-size: 10px;
  color: var(--text-gray);
  margin-top: 5px;
  display: block;
}
.calc-result {
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.result-price {
  font-size: 26px;
  font-weight: bold;
  color: var(--accent-orange);
}

/* Общие стили секций */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
.link-more {
  color: var(--accent-orange);
  text-decoration: none;
  font-size: 13px;
  transition: opacity 0.2s ease;
}
.link-more:hover {
  opacity: 0.8;
}
.services-grid, 
.steps-grid, 
.reviews-grid,
.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}
.service-card, 
.step-card, 
.review-card,
.location-card {
  background: var(--bg-card);
  padding: 25px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}
.service-card h3,
.location-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
.service-card p,
.location-card p {
  color: var(--text-gray);
  font-size: 13px;
}

/* Портфолио */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}
.portfolio-img-box {
  height: 200px;
  background: #1e293b;
  border-radius: 6px;
  position: relative;
  margin-bottom: 12px;
  overflow: hidden;
}
.portfolio-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.badge {
  position: absolute;
  top: 10px;
  padding: 3px 8px;
  font-size: 10px;
  border-radius: 3px;
  font-weight: bold;
  z-index: 2;
}
.badge--before { left: 10px; background: rgba(0,0,0,0.6); }
.badge--after { right: 10px; background: var(--accent-orange); }

/* Шаги работы */
.steps-grid { grid-template-columns: repeat(4, 1fr); }
.step-num {
  font-size: 24px;
  font-weight: bold;
  color: var(--accent-orange);
  margin-bottom: 10px;
  display: block;
}

/* Отзывы */
.review-stars { color: #f59e0b; margin: 8px 0; }
.review-author { font-weight: bold; font-size: 14px; }

/* Подвал */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  background: var(--bg-card);
}
.footer__cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* МОБИЛЬНАЯ АДАПТАЦИЯ */
@media (max-width: 768px) {
  .header__container {
    position: relative;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    gap: 15px;
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    margin: 0;
    font-size: 16px;
  }
  
  .header__phone, 
  .header .btn {
    display: none;
  }
  
  .burger-menu {
    display: block;
  }

  .hero {
    padding: 30px 0;
  }
  
  .hero__container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero__title {
    font-size: 28px;
  }

  .hero__buttons {
    flex-direction: column;
    gap: 10px;
  }

  .hero__buttons .btn {
    width: 100%;
  }

  .hero__features {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    font-size: 11px;
  }

  .calc-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 15px;
  }

  .calc-result {
    text-align: center;
    background: var(--bg-card);
    padding: 15px;
    border-radius: 6px;
  }

  .services-grid, 
  .steps-grid, 
  .reviews-grid, 
  .portfolio-grid,
  .locations-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .footer__cta {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer__contacts {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .footer__contacts .btn {
    width: 100%;
  }
}

/* ROOFIX creator credit */
.site-credit{margin-top:4px;padding:0;font-size:10px;line-height:1.35;font-weight:400;color:inherit;opacity:.48;text-align:inherit}
.site-credit a{color:inherit;text-decoration:none}
.site-credit a:hover{text-decoration:underline;opacity:1}
.site-credit-wrap{width:min(1200px,calc(100% - 32px));margin:0 auto;padding:0 0 10px;text-align:left}
@media(max-width:640px){.site-credit{font-size:10px;text-align:center}.site-credit-wrap{text-align:center;padding-bottom:12px}}
