/*
Theme Name: My Starter Theme
Description: Стартовая тема для доработки
Author: Ваше имя
Version: 1.0
*/

/* ---------------------- RESET & ГЛОБАЛЬНЫЕ СТИЛИ ---------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #fbfbfb;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: #1e2a3a;
}

/* ---------- FIXED HEADER ---------- */
.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.header-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 12px 32px;
    background: white;
    border-bottom: 1px solid #eef2f6;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e4e;
}

.logo h1 span {
    color: #c18c60;
    font-size: 1.5rem;
}

.logo p {
    font-size: 0.75rem;
    color: #5e7a8c;
    margin-top: 4px;
}

.contacts-info {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
}

.phone-block a {
    text-decoration: none;
    font-weight: 600;
    color: #1e4663;
    display: block;
    font-size: 0.95rem;
    transition: 0.2s;
}

.phone-block a:hover {
    color: #c18c60;
}

.btn-call {
    background-color: #c18c60;
    border: none;
    color: white;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 40px;
    font-size: 0.9rem;
    margin-left: 5px;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 2px 6px rgba(193, 140, 96, 0.3);
}

.btn-call:hover {
    background-color: #a5724b;
    transform: translateY(-1px);
}

.nav-menu {
    background: #fbfbfb;
    padding: 12px 20px;
    overflow-x: auto;
    white-space: nowrap;
    border-bottom: 1px solid #eaeef4;
}

.nav-links {
    display: flex;
    gap: 28px;
    justify-content: center;
    list-style: none;
}

.nav-links li a {
    text-decoration: none;
    font-weight: 600;
    color: #2c3e4e;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
}

.nav-links li a:hover {
    color: #c18c60;
    border-bottom-color: #c18c60;
}

.main-content {
    padding-top: 135px;
}

/* ---------- СЛАЙДЕР ---------- */
.slider-section {
    max-width: 1300px;
    margin: 30px auto 20px;
    padding: 0 24px;
}

.slider-container {
    background: white;
    border-radius: 32px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #eef2f8;
}

.slides-wrapper {
    height: 400px;
}

.slide {
    height: 100%;
    display: none;
    padding: 48px 36px;
    text-align: center;
    background: linear-gradient(135deg, #fff, #fefaf7);
    animation: fade 0.4s ease;
}

.slide.active-slide {
    display: block;
}

@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #2c3e4e;
    margin-bottom: 16px;
}

.discount-highlight {
    color: #c18c60;
    background: rgba(193, 140, 96, 0.12);
    padding: 0 10px;
    border-radius: 40px;
    display: inline-block;
}

.slide p {
    font-size: 1.1rem;
    color: #2c3e4e;
    margin-bottom: 28px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.btn-slide {
    background-color: #91a4c4;
    border: none;
    color: white;
    padding: 10px 32px;
    font-weight: 600;
    border-radius: 60px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
}

.btn-slide:hover {
    background-color: #7b8fae;
    transform: scale(0.97);
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 16px 20px 24px;
    background: white;
    border-top: 1px solid #f0f2f6;
}

.prev-slide,
.next-slide {
    background: #f1f4fa;
    border: none;
    font-size: 1.8rem;
    width: 44px;
    height: 44px;
    border-radius: 60px;
    cursor: pointer;
    font-weight: bold;
    color: #5e7a8c;
    transition: 0.2s;
}

.prev-slide:hover,
.next-slide:hover {
    background-color: #c18c60;
    color: white;
}

.dots {
    display: flex;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: #cbd5e1;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
}

.dot.active-dot {
    background-color: #c18c60;
    width: 28px;
    border-radius: 20px;
}

.consult-wrapper {
    text-align: center;
    margin: 30px auto 40px;
}

.btn-consult {
    background-color: #c18c60;
    border: none;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 14px 48px;
    border-radius: 60px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(193, 140, 96, 0.25);
    transition: 0.2s;
}

.btn-consult:hover {
    background-color: #a16f48;
    transform: translateY(-2px);
}

.features-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    max-width: 1200px;
    margin: 50px auto 40px;
    padding: 0 24px;
}

.feature-card {
    background: white;
    flex: 1;
    min-width: 200px;
    padding: 24px 20px;
    border-radius: 28px;
    text-align: center;
    border: 1px solid #eef2f8;
}

.feature-card h4 {
    margin-bottom: 8px;
    color: #2c3e4e;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

footer {
    background: #eef2f8;
    text-align: center;
    padding: 24px;
    font-size: 0.8rem;
    color: #4e6a7c;
}

/* ---------- МОДАЛЬНОЕ ОКНО (форма) ---------- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}

.modal-content {
    background: white;
    max-width: 450px;
    width: 90%;
    border-radius: 32px;
    padding: 28px 24px;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 26px;
    cursor: pointer;
    color: #aaa;
    transition: 0.2s;
}

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

.modal h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: #2c3e4e;
}

.modal p {
    color: #5e7a8c;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    border: 1px solid #dfe6ef;
    border-radius: 60px;
    outline: none;
    transition: 0.2s;
    font-family: inherit;
}

.form-group input:focus {
    border-color: #c18c60;
    box-shadow: 0 0 0 3px rgba(193, 140, 96, 0.2);
}

.modal button[type="submit"] {
    background-color: #c18c60;
    color: white;
    border: none;
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 60px;
    cursor: pointer;
    transition: 0.2s;
}

.modal button[type="submit"]:hover {
    background-color: #a5724b;
}

/* Модальное окно с колесом */
.modal-content.modal-with-wheel {
    max-width: 500px;
    text-align: center;
    padding: 24px;
}

.wheel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#wheelCanvas {
    width: 260px;
    height: 260px;
    margin: 0 auto;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    background: white;
}

.spin-btn {
    background: #c18c60;
    border: none;
    color: white;
    font-weight: bold;
    padding: 12px 32px;
    border-radius: 60px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.2s;
}

.spin-btn:hover {
    background: #a5724b;
    transform: scale(1.02);
}

.spin-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.wheel-result {
    font-size: 1.1rem;
    font-weight: bold;
    color: #c18c60;
    background: #fef5ef;
    padding: 8px 20px;
    border-radius: 40px;
    display: inline-block;
}

.form-container {
    text-align: left;
}

.form-container h3 {
    text-align: center;
    margin-bottom: 8px;
}

#userBonus {
    background: #f3f5fa;
    border: 1px solid #dfe6ef;
    color: #c18c60;
    font-weight: 500;
}

#callbackForm button[type="submit"] {
    background: #c18c60;
    width: 100%;
    padding: 12px;
    font-size: 1rem;
}

/* Секция каталога */
.catalog-section {
    background-color: #fbfbfb;
    padding: 60px 24px;
}

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

.catalog-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e4e;
    margin-bottom: 48px;
}

.catalog-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.tab-btn {
    background: white;
    border: 1px solid #dfe6ef;
    padding: 12px 24px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #2c3e4e;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.3px;
}

.tab-btn:hover {
    border-color: #c18c60;
    color: #c18c60;
}

.tab-btn.active {
    background: #c18c60;
    border-color: #c18c60;
    color: white;
    box-shadow: 0 4px 10px rgba(193,140,96,0.2);
}

.catalog-content {
    background: white;
    border-radius: 32px;
    padding: 40px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.05);
    border: 1px solid #eef2f8;
}

.catalog-item {
    display: none;
    animation: fadeIn 0.3s ease;
}

.catalog-item.active {
    display: block;
}

.catalog-item-inner {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.catalog-image {
    flex: 1;
    min-width: 200px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.catalog-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.catalog-image img:hover {
    transform: scale(1.02);
}

.catalog-text {
    flex: 2;
    min-width: 250px;
}

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

.catalog-text h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e4e;
    margin-bottom: 20px;
}

.catalog-text .description {
    font-size: 1rem;
    line-height: 1.5;
    color: #4a627a;
    margin-bottom: 28px;
}

.features h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e4e;
    margin-bottom: 12px;
}

.features ul {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.features li {
    background: #f3f5fa;
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 0.9rem;
    color: #2c3e4e;
}

.catalog-btn {
    background-color: #c18c60;
    border: none;
    color: white;
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 60px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 2px 6px rgba(193,140,96,0.3);
}

.catalog-btn:hover {
    background-color: #a5724b;
    transform: translateY(-1px);
}


/* Секция "Как мы ставим" */
.approach-section {
    background: #fbfbfb;
    padding: 60px 24px;
}

.approach-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e4e;
    margin-bottom: 48px;
}

.approach-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 48px;
}

.approach-tab-btn {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    font-weight: 700;
    color: #91a4c4;
    padding: 8px 24px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
    letter-spacing: 0.5px;
}

.approach-tab-btn.active {
    color: #c18c60;
    border-bottom-color: #c18c60;
}

.approach-content {
    background: white;
    border-radius: 32px;
    padding: 40px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.05);
    border: 1px solid #eef2f8;
    margin-bottom: 40px;
}

.approach-slide {
    display: none;
    animation: fadeIn 0.3s ease;
}

.approach-slide.active {
    display: block;
}

/* Стили для шагов (Наш подход) */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.step-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.step-number {
    width: 56px;
    height: 56px;
    background: #f3f5fa;
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: #c18c60;
    flex-shrink: 0;
}

.step-text h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e4e;
    margin-bottom: 8px;
}

.step-text p {
    color: #5e7a8c;
    line-height: 1.5;
}

/* Стили для гарантий */
.guarantees-list {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
}

.guarantee-item {
    flex: 1;
    min-width: 280px;
    background: #fefaf7;
    padding: 32px 24px;
    border-radius: 28px;
    text-align: center;
    border: 1px solid #f0e6df;
    transition: 0.2s;
}

.guarantee-icon {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.guarantee-text h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e4e;
    margin-bottom: 12px;
}

.guarantee-text p {
    color: #5e7a8c;
    line-height: 1.5;
}

.approach-footer {
    text-align: center;
}

.approach-calc-btn {
    background-color: #c18c60;
    border: none;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 42px;
    border-radius: 60px;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 4px 10px rgba(193,140,96,0.3);
}

.approach-calc-btn:hover {
    background-color: #a5724b;
    transform: translateY(-2px);
}

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

@media (max-width: 780px) {

    .logo {
        display: none;
    }

    .nav-links {
        gap: 35px;
        justify-content: flex-start;
    }

    .catalog-image {
        width: 100%;
    }

    .approach-section {
        padding: 40px 16px;
    }
    .approach-title {
        font-size: 1.8rem;
        margin-bottom: 32px;
    }
    .approach-tabs {
        gap: 12px;
    }
    .approach-tab-btn {
        font-size: 1rem;
        padding: 6px 16px;
    }
    .approach-content {
        padding: 24px;
    }
    .step-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .step-number {
        margin-bottom: 12px;
    }
    .guarantee-item {
        min-width: 100%;
    }
}


/* FOOTER */
.site-footer {
    background: #1e2a3a;
    color: #eef2f8;
    padding: 48px 0 24px;
    border-top: 4px solid #c18c60;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    margin-bottom: 48px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-logo, .footer-col {
    text-align: left;
}

.footer-logo h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.footer-logo h2 span {
    color: #c18c60;
    font-size: 1.5rem;
}

.footer-logo p {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 24px;
}

.footer-contacts {
    margin-bottom: 24px;
}

.footer-phone,
.footer-worktime {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.footer-phone svg,
.footer-worktime svg {
    flex-shrink: 0;
    color: #c18c60;
}

.footer-phone a {
    color: #eef2f8;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}

.footer-phone a:hover {
    color: #c18c60;
}

.footer-worktime span {
    font-size: 0.95rem;
}

/* Социальные иконки */
.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.social-link {
    display: inline-block;
    transition: transform 0.2s;
}

.social-link:hover {
    transform: translateY(-3px);
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.social-icon.instagram {
    background-image: url('<?php echo get_template_directory_uri(); ?>/img/instagram.png');
}

.social-icon.tiktok {
    background-image: url('<?php echo get_template_directory_uri(); ?>/img/tiktok.png');
}

/* Заголовки колонок */
.footer-col h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #c18c60;
    position: relative;
    padding-bottom: 10px;
}

.footer-address p {
    margin-bottom: 12px;
    line-height: 1.5;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Карта */
.footer-map iframe {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 8px;
}

.map-note {
    font-size: 0.8rem;
    text-align: center;
    opacity: 0.7;
}

/* Нижняя линия */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 0.8rem;
    opacity: 0.7;
}

.back-to-top {
    background: #c18c60;
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
                background: #a5724b;
                transform: translateY(-3px);
            }

            .contact-wrap {
                width: 100%;
                padding: 0 100px 50px 100px;
                display: flex;
                align-items: center;
                justify-content: space-between;
            }

            .contact-item a {
                text-decoration: none;
                color: #2c3e4e;
            }

            .contact-img {
                display: block;
                width: 50px;
                height: 50px;
            }
            


/* Адаптивность */
@media (max-width: 780px) {
    .animated {
        font-size: 20px !important;
    }    
    
    .contact-wrap {
        gap: 10px;
        flex-direction: column;
    }
    
    .footer-row {
        flex-direction: column;
        gap: 32px;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-phone,
    .footer-worktime {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo {
        text-align: center;
    }



    .header-top {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
        align-items: stretch;
    }

    .main-content {
        padding-top: 170px;
    }

    .slide h2 {
        font-size: 1.8rem;
    }

        .catalog-section {
        padding: 40px 16px;
    }
    .catalog-title {
        font-size: 1.6rem;
        margin-bottom: 32px;
    }
    .catalog-tabs {
        gap: 8px;
    }
    .tab-btn {
        padding: 8px 16px;
        font-size: 0.75rem;
    }
    .catalog-content {
        padding: 24px;
    }
    .catalog-item h3 {
        font-size: 1.4rem;
    }


        .catalog-section {
        padding: 40px 16px;
    }
    .catalog-title {
        font-size: 1.6rem;
        margin-bottom: 32px;
    }
    .catalog-tabs {
        gap: 8px;
    }
    .tab-btn {
        padding: 8px 16px;
        font-size: 0.75rem;
    }
    .catalog-content {
        padding: 24px;
    }
    .catalog-item-inner {
        flex-direction: column;
        gap: 24px;
    }
    .catalog-text h3 {
        font-size: 1.4rem;
    }
}