/* ИМПОРТ ШРИФТОВ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* СБРОС И ОСНОВНЫЕ СТИЛИ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ТИПОГРАФИКА */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

h2 span {
    color: #2b7a4b;
    position: relative;
}

h2 span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #2b7a4b, #6ab04c);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* ШАПКА (прозрачная, закрепляется при скролле) */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.transparent {
    background-color: transparent;
    box-shadow: none;
}

header.transparent .nav-link,
header.transparent .logo-sub {
    color: white;
}
header.transparent .logo-text,
header.scrolled .logo-text {
    color: #2b7a4b;
}

header.scrolled {
    background-color: white;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

header.scrolled .nav-link {
    color: #333;
}

header.scrolled .logo-sub {
    color: #666;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    transition: padding 0.3s;
}

header.scrolled .header-container {
    padding: 15px 0;
}

.logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    transition: color 0.3s;
}

.logo-sub {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    letter-spacing: 2px;
    transition: color 0.3s;
}

/* НАВИГАЦИЯ */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2b7a4b, #6ab04c);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: #2b7a4b;
}

/* БУРГЕР */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 5px;
    z-index: 100;
}

.burger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
    display: block;
    border-radius: 3px;
}

header.scrolled .burger span {
    background-color: #333;
}

/* ФИКСИРОВАННЫЕ МИГАЮЩИЕ КНОПКИ СВЯЗИ */
.fixed-contact {
    position: fixed;
    right: 20px;
    bottom: 20px;              /* Это отступ от низа */
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.contact-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s;
    animation: blink 2s infinite;
    text-decoration: none;
}

.contact-btn.phone {
    background: linear-gradient(135deg, #2b7a4b, #3a9b5c);
    animation-delay: 0.2s;
}

.contact-btn.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    animation-delay: 0.2s;
}

.contact-btn.telegram {
    background: linear-gradient(135deg, #0088cc, #005e8c);
    animation-delay: 0.2s;
}

.contact-btn:hover {
    transform: scale(1.1);
    animation: none;
    opacity: 0.9;
}

@keyframes blink {
    0% {
        opacity: 1;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 8px 25px rgba(43, 122, 75, 0.5);
    }
    100% {
        opacity: 1;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }
}

/* HERO СЕКЦИЯ */
.hero {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 700px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-content h1 span {
    color: #ffffff;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

/* КНОПКИ */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #2b7a4b, #3a9b5c);
    color: white;
    box-shadow: 0 4px 15px rgba(43, 122, 75, 0.3);
    animation: fadeInUp 1s ease 0.4s both;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(43, 122, 75, 0.4);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* УСЛУГИ */
.services {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card.popular {
    border: 2px solid #2b7a4b;
}

.service-card .badge {
    position: absolute;
    top: 10px;
    right: -30px;
    background: linear-gradient(135deg, #2b7a4b, #3a9b5c);
    color: white;
    padding: 5px 30px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(45deg);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(43, 122, 75, 0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2b7a4b, #3a9b5c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 1.8rem;
    color: white;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.service-desc {
    flex-grow: 1;
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.service-price {
    font-size: 1.1rem;
    color: #666;
    margin-top: auto;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2b7a4b;
}

/* КАЛЬКУЛЯТОР */
.calculator {
    padding: 80px 0;
    background: white;
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    background: #f9f9f9;
    border-radius: 20px;
    padding: 40px;
}

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

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

.form-group label {
    font-weight: 600;
    color: #555;
}

.form-group select,
.form-group input[type="text"],
.form-group input[type="number"] {
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group select:focus,
.form-group input:focus {
    border-color: #2b7a4b;
    outline: none;
}

.range-group label {
    display: flex;
    justify-content: space-between;
}

.range-group input[type="range"] {
    width: 100%;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.range-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #2b7a4b;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(43, 122, 75, 0.3);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: row;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.additional-services {
    margin-top: 10px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.additional-services h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.service-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.service-row:last-child {
    border-bottom: none;
}

.counter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.counter-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.counter-btn:hover {
    background: #2b7a4b;
    color: white;
    border-color: #2b7a4b;
}

.calculator-result {
    background: linear-gradient(135deg, #2b7a4b, #3a9b5c);
    color: white;
    padding: 30px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calculator-result h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.result-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.total-price {
    font-size: 2rem;
    font-weight: 800;
    white-space: nowrap; /* Запрещает перенос текста */
    display: inline-block; /* Обеспечивает правильное отображение */
}

.result-note {
    font-size: 0.85rem;
    opacity: 0.8;
    font-style: italic;
}
/* ГРУППА КНОПОК */
.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.option-btn {
    padding: 12px 20px;
    background: white;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1 1 auto;
    min-width: 120px;
}

.option-btn:hover {
    border-color: #2b7a4b;
    color: #2b7a4b;
    background: #f0f9f0;
}

.option-btn.active {
    background: linear-gradient(135deg, #2b7a4b, #3a9b5c);
    border-color: #2b7a4b;
    color: white;
    box-shadow: 0 4px 10px rgba(43, 122, 75, 0.3);
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .button-group {
        flex-direction: column;
    }
    
    .option-btn {
        width: 100%;
    }
}
/* КАК МЫ РАБОТАЕМ */
.how-we-work {
    padding: 80px 0;
    background: linear-gradient(135deg, #f9f9f9, #ffffff);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(43, 122, 75, 0.1);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2b7a4b, #3a9b5c);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.step p {
    color: #666;
    line-height: 1.5;
}

/* ОТЗЫВЫ */
.reviews {
    padding: 80px 0;
    background: white;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.review-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(43, 122, 75, 0.1);
}

.review-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
    position: relative;
    padding-left: 20px;
}

.review-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    color: #2b7a4b;
    opacity: 0.3;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.review-author i {
    font-size: 2.5rem;
    color: #2b7a4b;
}

.review-author h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.review-author p {
    color: #999;
    font-size: 0.9rem;
}

/* FAQ */
.faq {
    padding: 80px 0;
    background: linear-gradient(135deg, #f9f9f9, #ffffff);
}

.faq-list {
    max-width: 800px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #f5f5f5;
}

.faq-question h3 {
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
}

.faq-question i {
    transition: transform 0.3s;
    color: #2b7a4b;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Достаточно большое значение */
    padding: 20px;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer p {
    color: #666;
    line-height: 1.6;
}

/* ФУТЕР */
footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #2b7a4b;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section h4 {
    color: #fff;
    margin: 15px 0 10px;
    font-size: 1rem;
    opacity: 0.9;
}

.footer-section p {
    color: #ccc;
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #2b7a4b;
}

.footer-nav {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-nav a:hover {
    color: #2b7a4b;
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: #2b7a4b;
    transform: translateY(-3px);
}

.working-hours .note {
    font-size: 0.9rem;
    color: #2b7a4b;
    font-style: italic;
    margin-top: 5px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #666;
}

/* АДАПТИВ */
@media (max-width: 992px) {
    h2 {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .calculator-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        display: flex;
        justify-content: space-between; /* Это уже должно быть */
        align-items: center;
    }
    
    .burger {
        display: flex;
        margin-left: auto; /* Это прижмет бургер вправо */
        margin-right: 10px;
        order: 2; /* Помещаем бургер после логотипа */
    }
    
    .logo {
        order: 1; /* Логотип слева */
        margin-left: 10px;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: white;
        width: 80%;
        height: 100vh;
        padding: 100px 40px;
        gap: 25px;
        box-shadow: 5px 0 20px rgba(0,0,0,0.1);
        transition: left 0.3s;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        color: #333 !important;
        font-size: 1.1rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .fixed-contact {
        right: 10px;
        bottom: 15px;
    }
    
    .contact-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .steps,
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .calculator-wrapper {
        padding: 20px;
    }
    
    .total-price {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        background-attachment: scroll !important;
    }
}