
/* Базовые сбросы */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    /* Указываем новый премиальный шрифт */
    font-family: 'Manrope', sans-serif;
    scroll-behavior: smooth;

    /* Дополнительное свойство для более мягкого и красивого рендеринга букв */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    color: #1e293b;
    line-height: 1.6;
    background-color: #ffffff;
}

.logo {
    font-size: 1.8rem;       /* Увеличили размер шрифта (было 1.4rem или 1.5rem) */
    font-weight: 800;        /* Сделали буквы максимально жирными и солидными */
    color: #16a34a;          /* Перекрасили в сочный фирменный эко-зеленый цвет Verdant */
    letter-spacing: -0.5px;  /* Слегка сблизили буквы для более стильного вида */
    cursor: pointer;         /* Меняет курсор на пальчик при наведении */
    transition: transform 0.2s ease; /* Добавили плавность для эффекта ниже */
}

/* Эффект при наведении: логотип будет аккуратно увеличиваться */
.logo:hover {
    transform: scale(1.03);
}


.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.bg-light {
    background-color: #f8fafc;
}

/* Сетки */
.grid {
    display: grid;
    gap: 30px;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Кнопки */
.btn {
    background-color: #0284c7;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
.btn:hover { background-color: #0369a1; }
.btn-secondary {
    background-color: transparent;
    border: 2px solid #0284c7;
    color: #0284c7;
}
.btn-secondary:hover {
    background-color: #0284c7;
    color: #fff;
}
.btn-large {
    padding: 16px 32px;
    font-size: 1.05rem;
}

/* Шапка сайта */
.header {
    background: #ffffff;
    padding: 15px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0284c7;
}
.nav a {
    color: #475569;
    text-decoration: none;
    margin-right: 20px;
    font-weight: 500;
}
.nav a:hover { color: #0284c7; }

/* Главный баннер */
.hero {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 120px 0;
    text-align: center;
}
.badge {
    background: #bae6fd;
    color: #0369a1;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}
.hero h1 {
    font-size: 3.5rem;
    margin: 20px 0;
    color: #0f172a;
    line-height: 1.2;
}
.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: #334155;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}


/* Секции */
.section-title {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 50px;
    color: #0f172a;
}
.features, .services, .before-after, .steps, .calculator-section, .reviews {
    padding: 90px 0;
}

/* Карточки преимуществ */
.feature-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* Секция услуг */
/* ==========================================
   СОВРЕМЕННЫЕ СТИЛИ ДЛЯ СЕКЦИИ УСЛУГ
   ========================================== */

.services {
    padding: 90px 0;
    background-color: #ffffff;
}

/* Сетка: 3 колонки на ПК, 2 на планшетах, 1 на смартфонах */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Базовая карточка */
/* Управляем позиционированием картинки в карточке */
.card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    /* Сбрасываем верхний внутренний отступ, чтобы блок картинки прижимался к самому верху */
    padding-top: 0;
}

/* Контейнер для картинки — поднимаем его выше */
.card-image-wrapper {
    width: 100%;
    height: 240px; /* Немного увеличили высоту, чтобы картинка смотрелась выигрышнее */
    overflow: hidden;
    background-color: #f1f5f9;

    /* Сдвигаем контейнер с картинкой максимально вверх */
    margin-top: 0;
}

/* Сама картинка внутри обертки */
.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Идеально кадрирует фото костюма */
    object-position: top center; /* Фокусирует отображение на верхней части фото (воротник, галстук) */
    transition: transform 0.5s ease;
}

/* Плавный зум картинки при наведении на карточку */
.card:hover .card-img {
    transform: scale(1.08);
}

/* Внутренний контейнер для текста */
.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Растягивает блок текста, прижимая кнопку к низу */
}

.card-content h3 {
    font-size: 1.3rem;
    color: #0f172a;
    margin-bottom: 12px;
    font-weight: 700;
}

.card-content p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; /* Удерживает описание ровным */
}

/* Нижняя часть карточки (цена + кнопка) */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.price-tag {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0284c7; /* Премиальный голубой цвет */
}

/* Компактная кнопка внутри карточки */
.card-btn {
    padding: 8px 18px;
    font-size: 0.9rem;
    border-radius: 6px;
}


/* ==========================================
   СТИЛИ ДЛЯ СЕКЦИИ ДО / ПОСЛЕ (FADE EFFECT)
   ========================================== */
.before-after {
    padding: 90px 0;
}

/* Контейнер карточки */
.ba-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(15, 23, 42, 0.04);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

.ba-card h3 {
    font-size: 1.25rem;
    color: #0f172a;
    margin-top: 15px;
    font-weight: 700;
    text-align: center;
}

/* Обертка для двух картинок */
.ba-image-container {
    position: relative;
    width: 100%;
    height: 350px; /* Высота области с фотографиями */
    border-radius: 12px;
    overflow: hidden;
    background-color: #f1f5f9;
}

/* Общие стили для фото */
.ba-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Кадрирование картинок под один размер */
    transition: opacity 0.4s ease-in-out; /* Плавное исчезновение/появление */
}

/* Логика: при наведении на карточку верхняя картинка (ДО) становится прозрачной */
.ba-card:hover .photo-before {
    opacity: 0;
}

/* Текстовые плашки «До» и «После» */
.ba-badge {
    position: absolute;
    top: 15px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 6px;
    z-index: 10;
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

/* Оформление плашки ДО */
.badge-before {
    left: 15px;
    background: rgba(239, 68, 68, 0.85); /* Красноватый оттенок */
    color: #ffffff;
}

/* Оформление плашки ПОСЛЕ */
.badge-after {
    right: 15px;
    background: rgba(22, 163, 74, 0.85); /* Зеленоватый оттенок */
    color: #ffffff;
    opacity: 0; /* Изначально скрыта */
}

/* Логика плашек при наведении: скрываем «До», показываем «После» */
.ba-card:hover .badge-before {
    opacity: 0;
}
.ba-card:hover .badge-after {
    opacity: 1;
}

/* Мобильная адаптация: уменьшаем высоту блоков, чтобы на экранах телефонов они смотрелись аккуратно */
@media (max-width: 768px) {
    .ba-image-container {
        height: 250px;
    }
    .ba-badge {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
}


/* Этапы работы */
.steps-flow {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.step-item {
    flex: 1;
    text-align: center;
    position: relative;
}
.step-num {
    width: 50px;
    height: 50px;
    background: #0284c7;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 20px;
    font-size: 1.2rem;
}

/* Калькулятор */
.calc-box {
    background: #fff;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}
.form-group select, .form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
}
.options-group {
    margin: 25px 0;
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
}
.options-group p {
    font-weight: 600;
    margin-bottom: 10px;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}
.total-price {
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
    color: #0f172a;
}

/* Отзывы */
.review-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.rating { margin-bottom: 10px; }

/* Подвал */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 60px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer h3 {
    color: #fff;
    margin-bottom: 20px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #94a3b8; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center; align-items: center;
    z-index: 1000;
}
.modal-content {
    background: #fff; padding: 40px; border-radius: 8px;
    width: 90%; max-width: 450px; position: relative;
}
.modal-content input {
    width: 100%; padding: 12px; margin-bottom: 15px;
    border: 1px solid #cbd5e1; border-radius: 6px;
}
.close-modal {
    position: absolute; top: 15px; right: 20px;
    font-size: 1.8rem; cursor: pointer;
}


/* ==========================================
   СЕКЦИЯ ОТЗЫВОВ
   ========================================== */
.reviews {
    padding: 90px 0;
}

.review-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

/* Круглый аватар с инициалами */
.avatar {
    width: 50px;
    height: 50px;
    background-color: #e0f2fe;
    color: #0284c7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.review-header h4 {
    font-size: 1.1rem;
    color: #0f172a;
    margin-bottom: 3px;
}

.rating {
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.review-text {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 15px;
    flex-grow: 1;
}

.review-date {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* ==========================================
   СЕКЦИЯ КОНТАКТОВ
   ========================================== */
/* ==========================================
   СТИЛИ ДЛЯ СЕКЦИИ КОНТАКТОВ (VERDANT)
   ========================================== */
.contacts {
    padding: 80px 0;
    background-color: #ffffff;
}

/* Центрируем блок с контактами на странице */
.contacts-grid {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Задаем аккуратную ширину для списка инфо-элементов */
.contacts-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 500px;
    width: 100%;
}

/* Стили для каждой строчки (иконка + текст) */
.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* Фирменные зеленые плашки под эмодзи-иконки */
.info-icon {
    font-size: 1.5rem;
    background: #f0fdf4; /* Нежно-зеленый фон */
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #16a34a; /* Зеленый цвет */
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.05);
}

/* Заголовки («Телефоны», «Режим работы» и т.д.) */
.info-item h3 {
    font-size: 1.15rem;
    color: #0f172a;
    margin-bottom: 5px;
    font-weight: 700;
}

/* Обычный текст внутри описаний */
.info-item p {
    font-size: 1rem;
    color: #475569;
    line-height: 1.6;
}

/* Все кликабельные ссылки (номера телефонов и почта) */
.info-item a {
    color: #16a34a; /* Фирменный зеленый цвет */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

/* Эффект потемнения ссылок при наведении курсора */
.info-item a:hover {
    color: #15803d;
}


/* Мобильная адаптация для контактов */
@media (max-width: 992px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contacts-map iframe {
        height: 350px;
    }
}


/* ==========================================
   ФИКСИРОВАННАЯ КНОПКА ВКОНТАКТЕ
   ========================================== */
.vk-floating-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #0077ff; /* Фирменный синий цвет ВК */
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 119, 255, 0.4);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.vk-floating-btn:hover {
    background-color: #0066da;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 255, 0.5);
}

.vk-icon {
    font-size: 1.2rem;
    line-height: 1;
}

/* На смартфонах делаем кнопку компактнее, оставляя только иконку */
@media (max-width: 480px) {
    .vk-floating-btn {
        padding: 0;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        justify-content: center;
        font-size: 0; /* Прячет текст «Написать нам» */
    }
    .vk-icon {
        font-size: 1.5rem;
    }
}


/* Адаптивность */
@media (max-width: 768px) {
    .header-flex { flex-direction: column; gap: 15px; }
    .nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
    .nav a { margin: 0 5px; }
    .hero h1 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; }
    .steps-flow { flex-direction: column; gap: 40px; }
    .grid-2 { grid-template-columns: 1fr; }
}