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

:root {
    --primary-color: #5a6b5c;
    --secondary-color: #8b9d83;
    --accent-color: #d4a574;
    --text-dark: #3a3a3a;
    --text-light: #6b6b6b;
    --bg-light: #f5f5f0;
    --bg-white: #ffffff;
    --border-color: #e0e0d8;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.2;
    background-color: var(--bg-white);
}

h1,
h2,
h3,
.logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
}

/* Header */
header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: var(--bg-light);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.header-top-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
}

.phone {
    font-size: 14px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-light);
    align-items: center;
}

.social-links a {
    color: var(--text-light);
    transition: color 0.3s;
    font-size: 18px;
}

.social-links a:hover {
    color: var(--primary-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-oval {
    width: 80px;
    height: 50px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 3px 3px 0 var(--secondary-color);
}

.logo-text {
    font-size: 24px;
    font-style: italic;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* ===== Гамбургер ===== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 0;
    position: relative;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
    transform-origin: center;
    flex-shrink: 0;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===== Оверлей (затемнение) ===== */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* ===== Навигация (десктоп) ===== */
.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* ===== Мобильная версия (≤768px) ===== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        /* скрыто за экраном */
        width: 280px;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 10px;
        z-index: 1001;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
        transition: right 0.35s ease-in-out;
        overflow-y: auto;
        display: flex;
        /* всегда flex, но position fixed */
        border-left: 1px solid var(--border-color);
    }

    .nav-links.active {
        right: 0;
        /* выезжает */
    }

    .nav-links a {
        font-size: 18px;
        text-align: left;
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
        display: block;
        text-transform: none;
        letter-spacing: 0;
        font-weight: 400;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    /* Оверлей при открытом меню */
    .mobile-overlay.active {
        display: block;
    }

    .features {
        gap: 15px;
        margin-top: 30px;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
    }

    .header-top-content {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .logo img {
        width: 70px;
    }
}

/* Hero Section — fullscreen + shadow overlay */
.hero {
    position: relative;
    min-height: 100vh;
    background: var(--bg-light) url('../images/bg3.png') center center / cover no-repeat;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    padding: 120px 0 80px;
    /* верхний отступ компенсирует фиксированный хедер */
}

/* Тень (затемнение) на изображение */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: rgba(0, 0, 0, 0.25); */
    pointer-events: none;
    z-index: 1;
}

/* Все содержимое hero должно быть выше тени */
.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* остальные стили (h1, .hero-subtitle, .features и т.д.) остаются без изменений */
.hero h1 {
    font-size: 60px;
    color: var(--text-light);
    margin-bottom: 15px;
    font-weight: 500;
    text-wrap: balance;
    line-height: 1;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(90, 107, 92, 0.3);
}

.features {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.feature-item {
    text-align: center;
    max-width: 250px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 24px;
    border: 2px solid var(--text-light);
}

.feature-item h3 {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 600;
}

@media (max-width: 1199px) {

    .hero {
        min-height: 650px;
        padding: 150px 0 60px;
        align-items: start;
    }

    .hero h1 {
        font-size: 45px;
    }

    .hero-subtitle {
        font-size: 19px;
        margin-bottom: 30px;
    }

    .features {
        margin-top: 30px;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
    }

}

@media (max-width: 992px) {

    .features {
        gap: 15px;
    }

}

@media (max-width: 768px) {

    .hero h1 {
        font-size: 28px;
    }

    .hero {
        padding: 150px 0 60px;
        min-height: 740px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .features {
        gap: 15px;
    }

}

@media (max-width: 575px) {

    .hero {
        background: var(--bg-light) center center / cover no-repeat;
    }
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

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

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
}

/* About Section */
.about {
    background-color: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.about-text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-light);
}

.about-text p {
    margin-bottom: 15px;
}

.spoiler-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    transition: color 0.3s;
}

.spoiler-btn:hover {
    color: var(--secondary-color);
}

.spoiler-btn i {
    transition: transform 0.3s;
}

.spoiler-btn.active i {
    transform: rotate(180deg);
}

.spoiler-btn.active {
    display: none;
}

.spoiler-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.spoiler-content.open {
    max-height: 500px;
}

/* Slider */
.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.slider {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    height: auto;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 14px;
    border: 2px dashed var(--border-color);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
    border: 2px solid white;
}

.slider-dot.active {
    background-color: white;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary-color);
    transition: all 0.3s;
}

.slider-arrow:hover {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

@media (max-width: 575px) {

    .about-content {
        grid-template-columns: 1fr;
    }

}

/* Assortment Section */
.assortment {
    background-color: var(--bg-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px 50px;
    margin-top: 40px;
}

.product-card {
    /* background-color: var(--bg-white); */
    /* border-radius: 5px; */
    overflow: hidden;
    /* box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08); */
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    /* box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12); */
}

.product-image {
    height: 280px;
    /* background-color: var(--bg-light); */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 15px;
    /* border-bottom: 1px solid var(--border-color); */
}

.product-image img {
    width: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 0;
}

/* Advantages Section */
.advantages {
    background-color: var(--bg-white);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.advantage-card {
    padding: 25px;
    background-color: var(--bg-light);
    border-radius: 5px;
    border-left: 4px solid var(--primary-color);
}

.advantage-card h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.advantage-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    align-items: stretch;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.testimonial-text {
    font-size: 14px;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.8;
    flex: 1;
}

.testimonial-author {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 600;
}

/* Partners Section */
.partners {
    background-color: var(--bg-white);
    overflow: hidden;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.partner-card {
    padding: 30px;
    border-radius: 5px;
    background-color: var(--bg-light);
    border-radius: 5px;
    border-left: 4px solid var(--primary-color);
}

.partner-card h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.partner-card ul {
    list-style: disc;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
    padding: 0 0 0 18px;
}

/* Contacts Section */
.contacts {
    background-color: var(--bg-light);
}

.contacts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contacts-info h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.contact-item {
    margin-bottom: 20px;
    font-size: 14px;
}

.contact-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.contact-value {
    color: var(--text-light);
}

.contact-value a {
    color: var(--text-light);
    text-decoration: none;
} 

.contact-social {
    display: flex;
    gap: 10px;
}

.contact-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.map-placeholder {
    background-color: var(--bg-white);
    height: 400px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 14px;

}

.map-placeholder iframe {
    width: 100%;
    border: 2px dashed var(--border-color);
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: white;
    padding: 40px 0 20px;
}

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

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

.footer-section h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.footer-section p,
.footer-section a {
    font-size: 13px;
    color: #b0b0b0;
    text-decoration: none;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #888;
}

.footer-links {
    display: flex;
    gap: 5px 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.footer-links a {
    color: #888;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* Modal Form */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 5px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideIn 0.3s;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s;
    background: none;
    border: none;
}

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

.modal h2 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 10px;
    text-align: center;
}

.modal-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 14px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.form-submit {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.form-submit:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(90, 107, 92, 0.3);
}

/* Responsive */
@media (max-width: 768px) {

    .contacts-content {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 28px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .modal-content {
        padding: 30px 20px;
    }
}

/* ========================================
   COOKIE
   ======================================== */

.cookieagry {
    position: fixed;
    bottom: 0;
    z-index: 9999;
    width: 100%;
}

.cookieagry-alert {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    min-height: 6rem;
    pointer-events: auto;
    padding: 1rem 2rem 1rem 2rem;
    margin: 0 0 1rem;
    position: relative;
    border-radius: 10px;
    animation: alertpopupShow 0.5s forwards;
    background: #343434;
    color: #fff;
    max-width: 1090px;
    margin: 0 auto 2rem auto;
}

.cookieagry__text {
    margin: 0 3rem 0 0;
}

.cookieagry__text a {
    text-decoration: underline;
}

.ui-btn--38,
.ui-code__btn {
    padding: 0.5rem 2rem;
    height: 38px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}

.ui-btn--white {
    background: #fff;
    color: #343434;
}

@media(max-width:767px) {
    .cookieagry-alert {
        flex-direction: column;
        align-items: center;
        gap: 18px;
        width: 100%;
        max-width: 100%;
        align-items: stretch;
    }

    .ui-btn--38,
    .ui-code__btn {
        width: 100%;
        max-width: 100%;
    }

    .cookieagry__text {
        text-align: center;
        margin: 0;
    }

}