/* CSS переменные */
:root {
    --primary-color: #2c3e50;
    --accent-color: #8e7f5e;
    --text-color: #333;
    --white: #ffffff;
    --gray-light: #f8f8f8;
    --gray-dark: #1a252f;
    --spacing-xl: 120px;
    --spacing-lg: 90px;
    --spacing-md: 60px;
    --gold-color: #D4AF37;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.7;
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 16px;
}

/* Плавный скролл для всей страницы */
html {
    scroll-behavior: smooth;
}

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

/* Навигация в герое */
.hero-nav {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    z-index: 1002;
    padding: 0 40px;
}

.hero-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1003;
}

.company-logo {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 1px;
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-serif);
    white-space: nowrap;
}


/* Премиум стиль для телефона */
.hero-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 12px 24px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    font-family: var(--font-sans);
    letter-spacing: 0.3px;
    z-index: 1004;
    white-space: nowrap;
}

.hero-phone:hover {
    color: var(--gold-color);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.35) 0%, rgba(212, 175, 55, 0.2) 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.hero-phone:hover svg {
    stroke: var(--gold-color);
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.3));
}

.hero-phone::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.7s ease;
}

.hero-phone:hover::before {
    left: 100%;
}

.phone-number {
    font-weight: 500;
    letter-spacing: 0.5px;
    font-size: 1rem;
    position: relative;
}

/* Hero - премиальный вид */
.hero {
    position: relative;
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
        url('../img/services1n.jpg')
        no-repeat center center/cover;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero .container {
    width: 100%;
    max-width: 1400px;
    padding: 0 40px;
}

.hero-content {
    max-width: 650px;
    text-align: left;
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 30px;
    font-family: var(--font-serif);
    letter-spacing: -0.5px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.hero p {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 50px;
    font-weight: 300;
    opacity: 0.9;
    max-width: 500px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.hero .btn {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.7s forwards;
}

/* Кнопки - элегантные */
.btn {
    display: inline-block;
    background: transparent;
    color: var(--white);
    padding: 16px 40px;
    border: 1px solid var(--white);
    border-radius: 0;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Services Section - Анимация сразу при загрузке */
.services {
    padding: var(--spacing-xl) 0;
     /* background: 
        linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)),
        url('https://images.unsplash.com/photo-1558618047-3c8c76ca7d13?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80')
        center/cover; */
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    z-index: 0;
}

.services .container {
    position: relative;
    z-index: 1;
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--primary-color);
    font-size: 2.8rem;
    font-weight: 300;
    position: relative;
    font-family: var(--font-serif);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background: var(--gold-color);
}

.service-category {
    margin-bottom: var(--spacing-lg);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.service-category:nth-child(1) { animation-delay: 0.3s; }
.service-category:nth-child(2) { animation-delay: 0.4s; }
.service-category:nth-child(3) { animation-delay: 0.5s; }
.service-category:nth-child(4) { animation-delay: 0.6s; }
.service-category:nth-child(5) { animation-delay: 0.7s; }
.service-category:nth-child(6) { animation-delay: 0.8s; }

.service-category h3 {
    color: var(--primary-color);
    margin-bottom: 40px;
    font-size: 1.5rem;
    font-weight: 400;
    border-left: 2px solid var(--gold-color);
    padding-left: 20px;
    font-family: var(--font-serif);
}

.service-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-item {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 0;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    position: relative;
    overflow: hidden;
}

.service-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.15),
        0 0 0 1px var(--gold-color);
    border-color: var(--gold-color);
}

.service-item::before {
    transition: none;
}

.service-item:nth-child(1) { animation-delay: 0.4s; }
.service-item:nth-child(2) { animation-delay: 0.5s; }
.service-item:nth-child(3) { animation-delay: 0.6s; }
.service-item:nth-child(4) { animation-delay: 0.7s; }

.service-item h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 400;
    font-family: var(--font-serif);
}

.service-item ul {
    list-style-type: none;
    text-align: left;
}

.service-item li {
    margin-bottom: 12px;
    padding-left: 0;
    position: relative;
    font-weight: 300;
}

.service-item li:before {
    content: "—";
    color: var(--gold-color);
    position: absolute;
    left: -20px;
    font-weight: 400;
}

/* Guarantee - темная тема */
.guarantee {
    background: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.guarantee .container {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.guarantee.section-visible .container {
    opacity: 1;
    transform: translateY(0);
}

.guarantee h2 {
    margin-bottom: 40px;
    font-size: 2.5rem;
    font-weight: 300;
    font-family: var(--font-serif);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease 0.2s;
}

.guarantee.section-visible h2 {
    opacity: 1;
    transform: translateY(0);
}

.guarantee p {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease 0.3s;
}

.guarantee.section-visible p {
    opacity: 1;
    transform: translateY(0);
}

.guarantee .btn {
    border-color: var(--white);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease 0.4s;
}

.guarantee.section-visible .btn {
    opacity: 1;
    transform: translateY(0);
}

.guarantee .btn:hover {
    background: var(--white);
    color: var(--primary-color);
    transition: all 0.2s ease;
}

/* CTA */
.cta {
    padding: var(--spacing-xl) 0;
    text-align: center;
    background: var(--gray-light);
}

.cta .container {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.cta.section-visible .container {
    opacity: 1;
    transform: translateY(0);
}

.cta h2 {
    margin-bottom: 30px;
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 300;
    font-family: var(--font-serif);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease 0.2s;
}

.cta.section-visible h2 {
    opacity: 1;
    transform: translateY(0);
}

.cta p {
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease 0.3s;
}

.cta.section-visible p {
    opacity: 1;
    transform: translateY(0);
}

.cta .btn {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease 0.4s;
}

.cta.section-visible .btn {
    opacity: 1;
    transform: translateY(0);
}

.cta .btn:hover {
    background: transparent;
    color: var(--primary-color);
    transition: all 0.2s ease;
}

/* Footer */
footer {
    background: var(--gray-dark);
    color: rgba(255,255,255,0.6);
    padding: 60px 0;
    text-align: center;
    font-weight: 300;
}

/* Философский блок */
.philosophy-block {
    margin-top: var(--spacing-xl);
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(212, 175, 55, 0.02) 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.9s forwards;
}

.philosophy-content h3 {
    font-size: 2rem;
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-family: var(--font-serif);
}

.philosophy-content p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
    font-style: italic;
}

/* Форма заявки */
.application-form {
    background: var(--white);
    padding: 60px 0;
    text-align: center;
}

.application-form .container {
    max-width: 800px;
}

.form-wrapper {
    background: var(--white);
    padding: 50px;
    border-radius: 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 400;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all 0.2s ease;
    background: var(--gray-light);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold-color);
    background: var(--white);
}

.form-submit-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 16px 40px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    margin-top: 10px;
}

.form-submit-btn:hover {
    background: var(--gold-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Уведомление об отправке */
#notify-container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10050;
    pointer-events: none;
}

.notify {
    display: flex;
    align-items: flex-start;
    background: #0dbf75;
    color: white;
    padding: 16px 18px;
    min-width: 280px;
    max-width: 360px;
    gap: 12px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    opacity: 0;
    transform: translateX(40px);
    animation: notifyIn .35s ease forwards;
    cursor: default;
    pointer-events: all;
}

/* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.modal-content {
    background: var(--white);
    margin: 5% auto;
    padding: 25px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    max-height: 85vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    animation: modalAppear 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--primary-color);
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: var(--gold-color);
}

.modal h2 {
    margin-bottom: 10px;
    color: var(--primary-color);
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 300;
}

.modal p {
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 300;
}

/* Когда модалка открыта - блокируем скролл страницы */
body.modal-open {
    overflow: hidden;
    height: 100vh;
}

html.modal-open {
    overflow: hidden !important;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-group label {
    margin-bottom: 5px;
    color: var(--primary-color);
    font-weight: 400;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    padding: 10px 12px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 0;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: var(--gray-light);
    font-weight: 300;
}

/* ИСПРАВЛЕННЫЕ СТИЛИ ДЛЯ SELECT */
.form-group select {
    padding: 10px 40px 10px 12px !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    border-radius: 0 !important;
    font-family: var(--font-sans) !important;
    font-size: 0.9rem !important;
    background: var(--gray-light) !important;
    font-weight: 300 !important;
    width: 100% !important;
    color: var(--text-color) !important;
    
    /* Кастомная стрелка */
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px !important;
    
    /* Убираем анимации */
    transition: border-color 0.3s ease, background-color 0.3s ease !important;
}

/* Убираем стандартную стрелку в IE */
.form-group select::-ms-expand {
    display: none !important;
}

/* Фокус состояние */
.form-group select:focus {
    outline: none !important;
    border-color: var(--gold-color) !important;
    background-color: var(--white) !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
}

/* Ховер состояние */
.form-group select:hover {
    border-color: var(--gold-color) !important;
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

/* Кнопка в модалке */
.modal .btn {
    margin-top: 8px;
    width: 100%;
    padding: 14px 28px;
    font-size: 1rem;
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    font-weight: 400;
    letter-spacing: 0.3px;
    border: 1px solid var(--primary-color);
}

.modal .btn:hover {
    background: var(--primary-color);
    border-color: var(--gold-color);
    color: var(--white);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 
        0 12px 30px rgba(44, 62, 80, 0.4),
        0 0 0 2px var(--gold-color),
        0 0 20px rgba(212, 175, 55, 0.2);
    animation: pulse-glow 1.5s infinite alternate;
}

@keyframes pulse-glow {
    from {
        box-shadow: 
            0 8px 25px rgba(44, 62, 80, 0.3),
            0 0 0 1px var(--gold-color);
    }
    to {
        box-shadow: 
            0 12px 35px rgba(44, 62, 80, 0.5),
            0 0 0 2px var(--gold-color),
            0 0 25px rgba(212, 175, 55, 0.3);
    }
}

.modal .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.7s ease;
}

.modal .btn:hover::before {
    left: 100%;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* About Section - Улучшенная версия */
.about {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(44, 62, 80, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(44, 62, 80, 0.03) 0%, transparent 50%);
    z-index: 0;
}

.about-header {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.about-title {
    font-size: 3.2rem;
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-family: var(--font-serif);
    position: relative;
    letter-spacing: -0.5px;
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: -0.8rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-color), transparent);
    border-radius: 2px;
}

.about-subtitle {
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-family: var(--font-serif);
    line-height: 1.3;
    background: linear-gradient(135deg, var(--primary-color), var(--text-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-description {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 0;
    font-weight: 300;
    position: relative;
    padding: 0 2rem;
}

/* Features Grid - 4 колонки с улучшенным дизайном */
.features-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.2rem;
    padding: 2.5rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 248, 248, 0.95) 100%);
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.6s ease;
}

.feature-item:hover::before {
    left: 100%;
}

.feature-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(212, 175, 55, 0.3);
    border-color: var(--gold-color);
}

.feature-icon {
    font-size: 2.5rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold-color), #e6c158);
    border-radius: 50%;
    color: white;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 25px rgba(212, 175, 55, 0.4);
}

.feature-content {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.feature-content h4 {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--primary-color);
    margin: 0;
    font-family: var(--font-serif);
    line-height: 1.2;
}

.feature-content p {
    color: var(--text-color);
    font-weight: 300;
    line-height: 1.5;
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Stats Grid - 3 колонки прямо впритык после фич */
.stats-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 0;
}

.stat-item {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--white) 0%, #fafafa 100%);
    border-radius: 20px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-color), #e6c158);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(212, 175, 55, 0.3);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--gold-color);
    margin-bottom: 0.8rem;
    font-family: var(--font-serif);
    line-height: 1;
    background: linear-gradient(135deg, var(--gold-color), #e6c158);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Анимации для About секции */
.about-title,
.about-subtitle,
.about-description,
.feature-item,
.stat-item {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.about.section-visible .about-title,
.about.section-visible .about-subtitle,
.about.section-visible .about-description,
.about.section-visible .feature-item,
.about.section-visible .stat-item {
    opacity: 1;
    transform: translateY(0);
}

/* Задержки для анимаций */
.about.section-visible .about-title { transition-delay: 0.1s; }
.about.section-visible .about-subtitle { transition-delay: 0.2s; }
.about.section-visible .about-description { transition-delay: 0.3s; }
.about.section-visible .feature-item:nth-child(1) { transition-delay: 0.4s; }
.about.section-visible .feature-item:nth-child(2) { transition-delay: 0.5s; }
.about.section-visible .feature-item:nth-child(3) { transition-delay: 0.6s; }
.about.section-visible .feature-item:nth-child(4) { transition-delay: 0.7s; }
.about.section-visible .stat-item:nth-child(1) { transition-delay: 0.8s; }
.about.section-visible .stat-item:nth-child(2) { transition-delay: 0.9s; }
.about.section-visible .stat-item:nth-child(3) { transition-delay: 1.0s; }

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes notifyIn {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes notifyOut {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(40px); }
}

/* Мобильная адаптация */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-nav {
        padding: 0 20px;
        position: relative;
        top: 0;
    }
    
    .hero-nav .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        min-height: 60px;
    }
    
    .company-logo {
        font-size: 1.4rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 150px;
    }
    
    .hero-phone {
        padding: 10px 16px;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    .phone-number {
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 80px 20px 60px;
        height: auto;
        min-height: 100vh;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
        max-width: 100%;
    }
    
    .service-items {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .btn {
        padding: 14px 30px;
    }

    .form-wrapper {
        padding: 30px 20px;
    }

    .about-header {
        margin-bottom: 3rem;
    }
    
    .about-title {
        font-size: 2.6rem;
    }
    
    .about-subtitle {
        font-size: 1.8rem;
    }
    
    .about-description {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-item {
        padding: 2rem 1.5rem;
        gap: 1rem;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .feature-content h4 {
        font-size: 1.2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-item {
        padding: 2.5rem 2rem;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
}

/* Дополнительные исправления для экранов между 376px и 420px */
@media (max-width: 420px) and (min-width: 376px) {
    .hero-nav .container {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .company-logo {
        font-size: 1.5rem;
    }
    
    .hero-phone {
        padding: 10px 18px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
}

/* Улучшение для очень маленьких высот экрана */
@media (max-height: 700px) {
    .hero {
        padding: 100px 0 50px;
        height: auto;
        min-height: 100vh;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
}

/* Мобилка: спец-правила для узких экранов (iPhone 6/7/8 — 375x667) */
@media (max-width: 400px) {

  /* шапка: фиксируем в одну строку, без переноса */
  .hero-nav {
    position: absolute;
    top: 18px;
    left: 0;
    right: 0;
    padding: 0 12px;
    z-index: 1002;
  }

  .hero-nav .container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100%;
    gap: 8px;
  }

  /* логотип слева — не обрезаем (убираем ellipsis), даём адекватный размер и позволяем ужаться */
  .company-logo {
    font-size: 1.15rem;         /* уменьшили чтобы помещался */
    font-weight: 300;
    white-space: nowrap;        /* не переносим на 2 строки */
    overflow: visible;          /* НЕ ставим скрытие с троеточием */
    text-overflow: clip;        /* гарантируем отсутствие "..." */
    max-width: 64%;             /* оставляем место для телефона */
    flex: 0 1 auto;             /* может уменьшаться при необходимости */
    margin: 0;
    padding: 0;
  }

  /* телефон справа — не центрируем, не сжимается до нуля */
  .hero-phone {
    flex: 0 0 auto;    /* не сжимается сильно */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    font-size: 0.95rem;
    white-space: nowrap;
    margin-left: auto;  /* отодвигает телефон вправо */
  }

  .hero-phone svg {
    width: 18px;
    height: 18px;
  }

  .phone-number {
    display: inline-block;
    font-size: 0.95rem;
    line-height: 1;
  }

  /* Если логотип всё-таки перекрывает телефон — уменьшаем шрифт ещё чуть */
  @supports (font-size: clamp(1rem, 4vw, 1.15rem)) {
    .company-logo { font-size: clamp(1rem, 4vw, 1.15rem); }
  }

  /* геро-контент на мобилке — уже центрируем, но шапка остаётся слева/справа */
  .hero {
    padding-top: 90px; /* чтобы шапка не налезала на заголовок */
  }
}

/* Специальное правило для экстремально узких экранов (320–340px) */
@media (max-width: 340px) {

    .hero-nav {
        padding: 0 10px;
    }

    .hero-nav .container {
        gap: 6px;
    }

    .company-logo {
        font-size: 1.05rem;   /* ещё немного уменьшаем */
        max-width: 55%;        /* логотип занимает меньше */
        overflow: visible;
        text-overflow: clip;
        white-space: nowrap;
        flex-shrink: 1;
    }

    .hero-phone {
        padding: 6px 8px;
        font-size: 0.8rem;     /* уменьшаем текст телефона */
        gap: 6px;
        flex-shrink: 1;
        white-space: nowrap;
    }

    .hero-phone svg {
        width: 16px;
        height: 16px;
    }

    .phone-number {
        font-size: 0.8rem;
        letter-spacing: 0;
    }
}


/* --- MOBILE HEADER FIX — вариант 1 --- */
@media (max-width: 480px) {

    .hero-nav {
        position: absolute;
        top: 18px;
        left: 0;
        right: 0;
        padding: 0 12px;
        z-index: 1002;
    }

    .hero-nav .container {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100%;
        gap: 10px;
        padding: 0;
    }

    /* ЛОГОТИП — всегда помещается, не обрезается */
    .company-logo {
        font-size: clamp(0.95rem, 4.5vw, 1.25rem);
        font-weight: 300;
        white-space: nowrap;
        overflow: visible !important;
        text-overflow: clip !important;
        max-width: 60%;
        flex: 1 1 auto; /* может сжиматься чуть-чуть */
        margin: 0;
        padding: 0;
    }

    /* Телефон — всегда справа, не ломается */
    .hero-phone {
        flex: 0 0 auto; /* НЕ сжимается */
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 10px;
        font-size: clamp(0.85rem, 3.8vw, 1rem);
        white-space: nowrap;
        border-radius: 8px;
    }

    .hero-phone svg {
        width: clamp(14px, 4.5vw, 18px);
        height: clamp(14px, 4.5vw, 18px);
        flex-shrink: 0;
    }

    .phone-number {
        font-size: clamp(0.85rem, 4vw, 1rem);
        letter-spacing: 0.3px;
        white-space: nowrap;
    }
}

/* отдельный фикс для экстремально узких — 320px */
@media (max-width: 340px) {

    .company-logo {
        max-width: 55%;
        font-size: clamp(0.9rem, 4.2vw, 1.1rem);
    }

    .hero-phone {
        padding: 5px 8px;
        gap: 5px;
    }

    .phone-number {
        font-size: clamp(0.78rem, 3.7vw, 0.9rem);
        letter-spacing: 0;
    }
}

/* ---- TABLET FIX: 540px–1024px ---- */
@media (min-width: 540px) and (max-width: 1024px) {

    .hero-nav {
        position: absolute;
        top: 28px;
        left: 0;
        right: 0;
        padding: 0 24px;
        z-index: 1002;
    }

    .hero-nav .container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100%;
        gap: 20px;
    }

    /* ЛОГОТИП: крупнее, чем на мобильных */
    .company-logo {
        font-size: clamp(1.2rem, 3vw, 1.8rem);
        white-space: nowrap;
        overflow: visible !important;
        text-overflow: clip !important;
        max-width: 60%;
        flex: 1 1 auto;
    }

    /* ТЕЛЕФОН: тоже масштабируем */
    .hero-phone {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 10px 18px;
        font-size: clamp(1rem, 2.5vw, 1.25rem);
        white-space: nowrap;
        flex: 0 0 auto;
    }

    .hero-phone svg {
        width: clamp(18px, 3vw, 22px);
        height: clamp(18px, 3vw, 22px);
        flex-shrink: 0;
    }

    .phone-number {
        font-size: clamp(1rem, 3vw, 1.25rem);
        letter-spacing: 0.4px;
        white-space: nowrap;
    }

    /* Чтобы текст в hero не налезал */
    .hero {
        padding-top: 130px;
    }
}

/* Стили для блока согласия в модальном окне */
.consent-block {
    font-size: 0.4rem;
    color: #666;
    line-height: 1.4;
    text-align: center;
    padding: 12px;
}

.consent-block a {
    font-weight: 500;
}

.consent-block a:hover {
    color: var(--primary-color);
}





