/* -------------------------------
   Глобальные переменные & сброс
-------------------------------- */
:root {
    --primary: #0b5e42;
    --primary-light: #2c7a5e;
    --primary-dark: #064e3b;
    --accent: #f59e0b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --border-radius: 1.5rem;
    --container-width: 1280px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    color: var(--gray-800);
    background: white;
}
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}
/* Типографика */
h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}
h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-header p {
    color: var(--gray-600);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}
/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    text-decoration: none;
}
.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
}
.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-800);
}
.btn-secondary:hover {
    background: var(--gray-200);
}
.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}
.btn-block {
    width: 100%;
}
/* Шапка */
.header {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}
.logo a {
    font-size: 1.6rem;
    font-weight: 800;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}
.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}
.phone-link {
    font-weight: 600;
    color: var(--gray-800);
    text-decoration: none;
    font-size: 1rem;
}
/* Мобильная шапка */
@media (max-width: 768px) {
    .header-inner {
        padding: 0.6rem 0;
        gap: 0.5rem;
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .logo a {
        font-size: 1.3rem;
    }
    .header-actions {
        gap: 0.6rem;
    }
    .phone-link {
        font-size: 0.85rem;
        font-weight: 500;
    }
    .btn-outline {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
}
@media (max-width: 450px) {
    .header-inner {
        flex-direction: column;
        align-items: center;
        padding: 0.5rem 0;
    }
    .header-actions {
        justify-content: center;
        width: 100%;
    }
}
/* Hero с фоновым изображением */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.55), rgba(0,0,0,0.45)), url('/images/hero-bg.png');
    background-size: cover;
    background-position: right;
    background-repeat: no-repeat;
    color: white;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
    margin-bottom: 1.5rem;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: white;
}
.hero h1 .accent-text {
    color: var(--accent);
}
/* Преимущества на затенённом фоне — как в вашем макете */
.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    padding: 1rem 1.8rem;
    border-radius: 1rem;
    width: fit-content;
}
.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    font-weight: 500;
    color: white;
}
.hero-feature i {
    color: var(--accent);
    font-size: 1.1rem;
}
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.hero-image {
    display: flex;
    justify-content: center;
}
.hero-card-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 350px;
}
.hero-card {
    background: rgba(255,255,255,0.95);
    padding: 1.2rem;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s;
}
.hero-card i {
    font-size: 2rem;
    color: var(--primary);
}
.hero-card span {
    font-weight: 600;
    color: var(--gray-800);
}
/* Адаптивность для преимуществ */
@media (max-width: 768px) {
    .hero-features {
        justify-content: center;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-feature {
        justify-content: flex-start;
    }
}
/* Карточки услуг */
.services {
    padding: 5rem 0;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}
.service-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all 0.3s;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}
.service-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}
.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.service-card:hover .service-img {
    transform: scale(1.03);
}
.service-body {
    padding: 1.8rem;
}
.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    text-align: center;
}
.service-list {
    list-style: none;
    margin: 1.5rem 0;
}
.service-list li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--gray-600);
}
.service-list li i {
    color: var(--primary);
    width: 1.25rem;
}
.service-body .btn {
    display: block;
    width: 100%;
    text-align: center;
}
/* Ключевые услуги */
.key-services {
    background: var(--gray-50);
    padding: 4rem 0;
}
.key-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}
.key-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.key-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}
.key-item h3 {
    font-size: 1.2rem;
}
/* SEO-блок */
.about-seo {
    padding: 5rem 0;
    background: white;
}
.about-seo-content {
    max-width: 900px;
    margin: 0 auto;
}
.about-seo h2 {
    text-align: center;
    margin-bottom: 2rem;
}
.about-seo p {
    margin-bottom: 1.2rem;
    color: var(--gray-600);
    line-height: 1.6;
}
.about-seo h3 {
    margin: 2rem 0 0.5rem;
}
/* Процесс работы */
.process {
    background: var(--gray-50);
    padding: 5rem 0;
}
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}
.step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: white;
    padding: 1.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.step-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    min-width: 60px;
}
.step-info h3 {
    margin-bottom: 0.25rem;
}
/* FAQ */
.faq {
    padding: 5rem 0;
}
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}
.faq-item {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: 1.5rem;
}
.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}
/* Спецпредложение */
.special-offer {
    padding: 4rem 0;
}
.offer-card {
    background: linear-gradient(135deg, var(--primary), #0f766e);
    border-radius: 2rem;
    padding: 3rem 2rem;
    text-align: center;
    color: white;
}
.offer-badge {
    background: rgba(255,255,255,0.2);
    display: inline-block;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}
.offer-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.offer-card p {
    margin-bottom: 2rem;
    opacity: 0.9;
}
.offer-card .btn {
    background: white;
    color: var(--primary);
}
/* Преимущества */
.advantages {
    padding: 4rem 0;
    background: white;
}
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.advantage-card {
    text-align: center;
    padding: 2rem;
    background: var(--gray-50);
    border-radius: 1.5rem;
}
.advantage-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}
/* Контакты футер */
.contacts {
    background: var(--gray-800);
    color: white;
    padding: 3rem 0;
}
.contacts-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.contact-items {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.contact-item a, .contact-item span {
    color: #d1d5db;
    text-decoration: none;
}
.contacts-privacy a {
    color: #d1d5db;
    text-decoration: underline;
}
/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}
.modal-content {
    background: white;
    max-width: 500px;
    width: 90%;
    margin: 2rem;
    padding: 2rem;
    border-radius: 2rem;
    position: relative;
    animation: fadeInUp 0.3s;
    max-height: 90vh;
    overflow-y: auto;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 1.8rem;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.2s;
}
.close-modal:hover {
    color: #1f2937;
}
.modal-header {
    margin-bottom: 1.5rem;
}
.form-group {
    margin-bottom: 1.2rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
}
.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 2rem;
    font-size: 1rem;
}
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
}
.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}
.checkbox-group label {
    margin: 0;
    font-weight: normal;
    font-size: 0.95rem;
    cursor: pointer;
}
.checkbox-group a {
    color: var(--primary);
    text-decoration: underline;
}
.form-message {
    margin-top: 1rem;
    text-align: center;
}
.success-message {
    color: #059669;
}
.error-message {
    color: #dc2626;
}
.privacy-text {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 0.5rem;
}
.privacy-text p, .privacy-text h4 {
    margin-bottom: 0.75rem;
}
/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .hero-features {
        justify-content: center;
        width: 100%;
        align-items: center;
    }
    .hero-feature {
        justify-content: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-card-stack {
        margin: 0 auto;
    }
    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .step-num {
        margin-bottom: 0.5rem;
    }
    .services-grid {
        gap: 1.5rem;
        grid-template-columns: 1fr;
    }
    .faq-grid {
        grid-template-columns: 1fr;
    }
    .contacts-inner {
        flex-direction: column;
        text-align: center;
    }
    .contact-items {
        justify-content: center;
    }
    .process-steps {
        gap: 1rem;
    }
    .section-header h2 {
        font-size: 1.8rem;
    }
    .service-image {
        height: 180px;
    }
}
@media (max-width: 480px) {
    .btn {
        padding: 0.6rem 1.2rem;
    }
    .service-card {
        margin: 0 0.5rem;
    }
    .offer-card {
        padding: 2rem 1rem;
    }
    .modal-content {
        padding: 1.5rem;
    }
}