/* Global Styles */

      :root {
          --primary: #8CCB5E;
          --secondary: #4a5568;
          --accent: #8CCB5E;
          --light: #f7fafc;
          --text: #2d3748;
          --white: #ffffff;
          --gray: #e2e8f0;
		  --dark: #333;
      }

      * {
          margin: 0;
          padding: 0;
          box-sizing: border-box;
          font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
      }

      body {
          background-color: var(--light);
          color: var(--text);
		  font-family: Arial, sans-serif;
          line-height: 1.6;
          overflow-x: hidden;
      }

      a {
          text-decoration: none;
          color: inherit;
          transition: 0.3s;
      }


    .container {
    margin: 0 auto;
    padding: 0 20px;
    width: 100%; /* Контейнер всегда занимает всю доступную ширину */
      }
	  
	.calc{
    margin: 0 auto;
    padding: 0 20px;
    width: 100%; /* Контейнер всегда занимает всю доступную ширину */
      }

/* Header */
/* --- СТИЛИ ХЕДЕРА --- */
.header {
    width: 100%; /* Растягиваем сам хедер */
    background-color: var(--light); /* Фон для всего хедера */
    /*box-shadow: 0 2px 4px rgba(0,0,0,0.05);  Добавим легкую тень для красоты */
}

.header-inner {
    display: flex; /* Включаем флексбокс */
    justify-content: space-between; /* Распределяем элементы */
    align-items: center; /* Центрируем по вертикали */
    padding: 15px 20px; /* Внутренние отступы, чтобы не прилипало к краям */
	background-color: var(--light);
}

/* --- СТИЛИ ВНУТРЕННИХ ЭЛЕМЕНТОВ --- */

/* Логотип и телефон - просто убираем ограничения по ширине */
.logo img {
    height: 40px;
    width: auto;
}

.phone-btn a {
    background-color: var(--accent);
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
}

/* Стили для меню */
.nav-center {
     display: flex; /* Делаем меню тоже флекс-контейнером, чтобы ссылки шли в строку */
     gap: 25px; /* Отступы МЕЖДУ ссылками (современная замена margin) */
     list-style: none; /* Убираем маркеры списка, если вдруг они есть */
}

.nav-center a {
    color: #666;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-center a:hover {
    color: #4a7c59;
}

/* Hero */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
              url(img/hero_002.webp);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh; /* Занимает всю высоту экрана */
    display: flex;
    align-items: center; /* Вертикальное центрирование контента */
    justify-content: center; /* Горизонтальное центрирование контента */
    padding: 0 2rem; /* Убираем вертикальные отступы, оставляем боковые */
    text-align: center;
    position: relative;
    box-sizing: border-box;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0; /* Добавляем внутренние отступы для контента */
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #f5f5f5;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 1.25rem;
    color: #e8e8e8;
    margin-bottom: 2.5rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 0.4rem;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

.cta-button:hover {
    background: #4a8a5c;
    transform: translateY(-2px);
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: #fff;
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e5e5;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    border-color: #4a7c59;
    box-shadow: 0 4px 12px rgba(74, 124, 89, 0.1);
}

.feature-icon {
    font-size: 2rem;
    color: #4a7c59;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
}

/* Calculator Section */
.calculator-toggle {
    margin-bottom: 1rem;
}

.toggle-btn {
    width: 100%;
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background: #f9f9f9;
    border-color: #5a9d6f;
}

.toggle-btn i {
    color: #5a9d6f;
    transition: transform 0.3s ease;
}

.toggle-btn.active i {
    transform: rotate(180deg);
}

.calculator-section {
    background: #fff;
    padding: 3rem;
    border-radius: 1rem;
    border: 1px solid #e5e5e5;
    max-height: 2000px;
    overflow: hidden;
    transition: all 0.3s ease, max-height 0.4s ease;
    opacity: 1;
}

.calculator-section.collapsed {
    max-height: 0;
    padding: 0 3rem;
    opacity: 0;
    overflow: hidden;
}

.calculator-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1a1a1a;
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
    font-size: 0.95rem;
}

.input-group input,
.input-group select {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #5a9d6f;
    box-shadow: 0 0 0 3px rgba(90, 157, 111, 0.1);
}

.slider-container {
    display: flex;
    flex-direction: column;
}

.slider-container label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
    font-size: 0.95rem;
}

.slider-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

input[type="range"] {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #d1d5db;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #5a9d6f;
    cursor: pointer;
    transition: background 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: #4a8a5c;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #5a9d6f;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

input[type="range"]::-moz-range-thumb:hover {
    background: #4a8a5c;
}

.slider-value {
    min-width: 80px;
    text-align: right;
    font-weight: 600;
    color: #5a9d6f;
}

/* Result */
.calculator-result {
    background: linear-gradient(135deg, #f8faf7 0%, #f0f3f0 100%);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid #d4d9d4;
    margin-top: 2rem;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #d4d9d4;
}

.result-row:last-child {
    border-bottom: none;
}

.result-label {
    color: #5a5a5a;
    font-size: 0.95rem;
    font-weight: 500;
}

.result-value {
    font-weight: 600;
    color: #2a2a2a;
}

.result-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 2px solid #d4d9d4;
    margin-top: 1rem;
}

.result-total .result-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2a2a2a;
}

.result-total .result-value {
    font-size: 1.8rem;
    color: #5a9d6f;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p,
.footer-section a {
    color: #999;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-section a:hover {
    color: #5a9d6f;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
    color: #666;
}


/* Адаптивность */
@media (min-width: 768px) {
    .header {
        max-width: 1200px;
        margin: 0 auto; /* Центрируем хедер */
        padding: 15px 40px; /* Можно вернуть большие отступы для больших экранов */
    }
}
  
      @media (min-width: 768px) {
    .container {
     max-width: 1200px; /* Фиксированная ширина только на больших экранах */
    }
}

/* На мобильных устройствах — убираем ограничение ширины */
@media (max-width: 768px) {
  .header-inner {
    max-width: none;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px;
    gap: 10px;
  }

  .nav-center {
    flex-direction: column;
    order: -1;
    margin-bottom: 10px;
    width: 100%;
    text-align: center;
  }

  .nav-center a {
    font-size: 0.9em;
    padding: 5px;
    display: block;
    margin: auto;
  }

  .phone-btn a {
    font-size: 0.9em;
    padding: 6px 12px;
    display: block;
    margin: auto;
  }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    nav a {
        margin-left: 1rem;
    }

    .hero {
        padding: 4rem 2rem;
        min-height: 400px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .calculator-section {
        padding: 1.5rem;
    }

    .result-total .result-value {
        font-size: 1.4rem;
    }
}