/* Общие стили */
body {
    font-family: Georgia, serif; /* <-- На Georgia */
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #FFFFFF, #F9F9F9, #F4EDE5, #F4DCCF);
    background-size: 400% 400%;
    animation: gradientBG 20s ease infinite;
    color: #333;
}

/* Анимация градиента */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Контейнер для контента */
.site-content {
    min-height: calc(100vh - 80px); /* Высота экрана минус высота header и footer */
    box-sizing: border-box; /* Гарантирует, что отступы учитываются */
}

/* Стили контейнера */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================
  СТИЛИ ШАПКИ
   ========================================== */
.site-header {
    background: #082a86;
    color: #fff;
    padding: 10px 20px; /* Добавили отступы слева и справа во всю ширину */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    width: 100%;
    box-sizing: border-box;
}

.header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.header-socials a:hover {
    transform: scale(1.1);
}

/* Левый блок на десктопе (Логотип + Контакты) */
.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.desktop-logo {
    display: flex;
    align-items: center;
}

.desktop-logo img {
    height: 65px !important;
    max-height: 65px !important;
    width: auto !important;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    padding: 3px;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.desktop-logo img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
/* Информация о контактах */
.contact-info {
    text-align: left;
    color: #fff;
    font-size: 1.3rem;
    line-height: 1.4;
    
    /* Добавляем универсальный шрифт с засечками (как на макете) */
    font-family: 'Lora', serif; 
}

.contact-info p {
    margin: 0;
}

.contact-info .phone {
    color: #e6f7ff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    
    /* Защита от «прыгающих» цифр при изменении ширины экрана */
    font-variant-numeric: tabular-nums;
}

.contact-info .phone:hover {
    color: #F0F8FF; /* Исправили ошибку: добавили # перед кодом цвета */
}

/* Навигация (меню) */
.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
    align-items: center;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.main-nav a:hover {
    background: #c28e60;
    color: #fff;
    transform: scale(1.05);
}

.main-nav a.active {
    background: #d2a883;
    color: #fff;
}

/* Кнопка-гамбургер и мобильный логотип (скрыты по умолчанию) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.mobile-logo {
    display: none;
}

/* ==========================================
   КОНТЕНТНЫЕ СЕКЦИИ И СТРАНИЦЫ
   ========================================== */
/* Hero секция с фоновым изображением */
.hero {
    background: url('/uploads/images/index-header.jpg') no-repeat center center / cover;
    color: #fff;
    text-align: center;
    padding: 150px 20px;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

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

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

.hero h1 {
    font-size: 3rem;
    margin: 0 0 20px;
}

.hero p {
    font-size: 1.5rem;
    margin: 0 0 30px;
    padding-bottom: 100px;
}

.hero .btn {
    display: inline-block;
    padding: 15px 30px;
    background: #ca9a70;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.hero .btn:hover {
    background: #d4ac89;
    transform: scale(1.1);
}

.lazy {
    display: block;
    width: 100%;
    min-height: 200px;
    background: #f0f0f0;
}

/* Стили подвала */
.site-footer {
    position: static;
    margin-top: 40px;
    padding: 20px;
    background: #0e3fed;
    color: #fff;
    text-align: center;
}

.site-footer a {
    color: #ffb870;
    text-decoration: none;
    font-weight: bold;
}

.site-footer a:hover {
    color: #d4ac89;
    text-decoration: underline;
}

/* Основные стили для блока */
.workshop {
    position: relative;
    padding: 50px 20px;
}

.workshop-bg {
    position: relative;
    width: 100%;
    min-height: 200px;
    filter: brightness(0.8);
}

.title-block {
    text-align: center;
    margin-bottom: 40px;
}

.title-block h2 {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.5;
    color: #082a86;
}

.title-block .desc {
    font-size: 1rem;
    color: #666;
}

/* Стили для шагов */
.select-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.select-list li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.select-list li .number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ca9a70;
    margin-right: 10px;
}

.select-list li .line {
    flex: 1;
    height: 2px;
    background: #d4ac89;
    margin: 0 10px;
}

.select-list li .icon img {
    width: 50px;
    height: 50px;
}

.select-list li .text {
    font-size: 1rem;
}

/* Формы */
.forms-wrap .form {
    margin-bottom: 20px;
}

.forms-wrap .box-rect img {
    width: 100%;
    border-radius: 10px;
}

.form__group {
    margin-bottom: 15px;
}

.form__group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #666;
}

.form__group input {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.form__group input[type="checkbox"] {
    width: auto;
}

.button-wrap {
    text-align: center;
}

.button-wrap .btn {
    padding: 10px 20px;
    background: #ca9a70;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.button-wrap .btn:hover {
    background: #d4ac89;
}

/* Основные стили секции */
.services {
    padding: 50px 20px;
    background-color: #DCF7D9;
}

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

.services .section-title {
    text-align: center;
    font-size: 2rem;
    color: #082a86;
    margin-bottom: 40px;
    font-weight: bold;
}

/* Блок услуги */
.service-item {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    gap: 20px;
}

.service-item:last-child {
    margin-bottom: 0;
}

/* Картинка */
.service-image {
    flex: 1;
}

.service-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Описание */
.service-description {
    flex: 1;
    text-align: left;
}

.service-description h3 {
    font-size: 1.5rem;
    color: #082a86;
    margin-bottom: 10px;
    font-weight: bold;
}

.service-description p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* Чередование блоков */
.service-item.reverse {
    flex-direction: row-reverse;
}

/* Секция контактов */
.contact-section {
    padding: 50px 20px;
    background-color: #135deg;
    color: #333;
    text-align: center;
}

.contact-section .container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-section .section-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
}

.contact-section .section-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 30px;
}

/* Форма */
.contact-form {
    text-align: left;
}

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

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

.contact-form .form-group label {
    font-size: 1rem;
    color: #555;
    margin-bottom: 5px;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    transition: border-color 0.3s ease;
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
    border-color: #ca9a70;
    outline: none;
}

.contact-form .form-group button.btn {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #ca9a70;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-form .form-group button.btn:hover {
    background-color: #d4ac89;
    transform: scale(1.05);
}

/* Секция "О нас" */
.about-us {
    padding: 50px 20px;
    background-color: #f9f9f9;
    color: #333;
}

.about-us .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Заголовок */
.about-title {
    font-size: 2.5rem;
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
}

.about-description {
    text-align: center;
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Блок с ценностями */
.values .section-title,
.advantages .section-title,
.gallery .section-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
    font-weight: bold;
}

.values-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
    text-align: left;
}

.values-list li {
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.6;
}

/* Преимущества */
.advantages {
    margin: 50px 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.advantage-item {
    text-align: center;
    flex: 1;
}

.advantage-icon img {
    max-width: 100px;
    margin-bottom: 10px;
}

.advantage-item p {
    font-size: 1rem;
    color: #555;
}

/* Галерея */
.gallery {
    margin-top: 50px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Секция страницы услуг */
.services-page {
    padding: 50px 20px;
    background-color: #f9f9f9;
}

.services-page .container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    color: #c43d00;
    margin-bottom: 20px;
    font-weight: bold;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Картинка в услугах */
.service-image {
    max-width: 50%;
}

.service-content {
    flex: 1;
    text-align: left;
}

.service-content h2 {
    font-size: 1.8rem;
    color: #082a86;
    margin-bottom: 10px;
    font-weight: bold;
}

.service-content p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-content .btn {
    padding: 10px 20px;
    background-color: #c43d00;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.service-content .btn:hover {
    background-color: #d4ac89;
    transform: scale(1.05);
}

/* Секция отзывов */
.testimonials {
    padding: 50px 20px;
    background-color: #edf1e5;
    color: #333;
    text-align: center;
}

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

.testimonials .section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
    font-weight: bold;
}

.testimonials .section-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 40px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-items: center;
}

.testimonial-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 350px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.testimonial-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid #ca9a70;
}

.testimonial-text {
    font-size: 1rem;
    color: #555;
    margin-bottom: 10px;
    font-style: italic;
    line-height: 1.6;
}

.testimonial-name {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
}

/* Секция "Схема работы" */
.workshop-steps {
    padding: 50px 20px;
    background-color: #e6f7ff;
    color: #333;
}

.workshop-steps .container {
    max-width: 1200px;
    margin: 0 auto;
}

.workshop-steps .title-block {
    text-align: center;
    margin-bottom: 40px;
}

.workshop-steps .title-block .title {
    font-size: 2.5rem;
    color: #082a86;
    margin-bottom: 10px;
    font-weight: bold;
}

.workshop-steps .title-block .desc {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center;
}

.step-item {
    text-align: center;
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.step-icon img {
    margin-bottom: 15px;
    border-radius: 50%;
    background-color: #BAEDB4;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.step-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* Сетка для фотогалереи */
.service-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.gallery-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-thumb:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #ccc;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Базовые размеры Яндекс Карт для десктопа */
.yandex-map-widget {
    width: 560px;
    height: 800px;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}

/* ==========================================
   ОЧИЩЕННАЯ ЕДИНАЯ АДАПТАЦИЯ (ДО 768px)
   ========================================== */
@media (max-width: 768px) {
    /* Мобильная шапка */
    .header-info {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .desktop-logo {
        display: none !important;
    }

    .mobile-logo {
        display: flex !important;
        align-items: center;
    }

    .mobile-logo img {
        height: 50px !important;
        max-height: 50px !important;
        width: auto !important;
        object-fit: contain;
        background: #fff;
        border-radius: 6px;
        padding: 2px;
        display: block;
    }

    .mobile-header-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        gap: 10px;
        background: rgba(14, 63, 237, 0.98);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 20px;
        box-sizing: border-box;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
        z-index: 999;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .main-nav a {
        font-size: 1.1rem;
        padding: 10px 0;
        width: 100%;
        text-align: center;
    }

    .contact-info {
        text-align: left;
    }

    /* Мобильная адаптация контентных страниц */
    .service-item,
    .service-item.reverse {
        flex-direction: column;
    }

    .service-image {
        max-width: 100%;
    }

    .service-description,
    .service-content {
        text-align: center;
    }

    .service-description h3 {
        margin-top: 20px;
    }

    .advantages {
        flex-direction: column;
        align-items: center;
    }

    .advantage-item {
        margin-bottom: 20px;
    }

    .service-gallery {
        grid-template-columns: 1fr;
    }

    .yandex-map-widget {
        width: 100%;
        height: 600px;
    }

    .row {
        flex-direction: column;
    }

    .col {
        width: 100%;
    }

    .select-list li {
        flex-direction: column;
    }

    .select-list li .line {
        width: 100%;
        height: 1px;
    }
}

/* Возвращаем шрифт для заголовков */
h1, h2, h3, h4, h5, h6,
.section-title,
.about-title,
.hero h1,
.title-block .title {
    font-family: 'Nunito', sans-serif;
}

/* Принудительно для ссылок и элементов интерфейса, если нужно */
a, li, span, label, input, textarea, button {
    font-family: Georgia, serif;
}

/* Плавающая кнопка контактов */
.floating-contact-btn,
.floating-contact-btn:visited,
.floating-contact-btn:hover,
.floating-contact-btn:active {
  color: #ffffff !important; /* Белый цвет при любых состояниях и сброс наследования */
}

.floating-contact-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #c43d00;
  padding: 12px 20px;
  border-radius: 30px; /* Скругленные углы */
  text-decoration: none !important; /* Убираем подчеркивание ссылки, если оно есть на сайте */
  font-family: sans-serif;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.floating-contact-btn:hover {
  background-color: #a83400; /* Цвет фона при наведении (темнее) */
  transform: translateY(-2px); /* Легкое поднятие при наведении */
}
