/* --- 1. ГЛОБАЛЬНЫЕ СТИЛИ --- */
:root {
    --bg-body: #F9F9F9;
    --text-main: #1F1F1F;
    --text-light: #666666;
    --brown-dark: #4A4036;
    --beige-light: #F5F1EC;
    --accent-green: #00B67A;
    --radius-card: 24px;
    --radius-btn: 50px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.03);
    --anim-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--radius-card);
    object-fit: cover;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--anim-speed);
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.1s;
}

button:active {
    transform: scale(0.95);
}

.container {
    padding: 0 60px;
    margin: 0 60px;
}

.text-center {
    text-align: center;
}

.mb-40 {
    margin-bottom: 40px;
}

.mb-80 {
    margin-bottom: 80px;
}

h2 {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 25px;
}

h3 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 25px;
}

p {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 25px;
}

.btn {
    padding: 14px 28px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: 15px;
    display: inline-block;
    cursor: pointer;
}

.btn-primary {
    background: #000;
    color: #fff;
    border: 1px solid #000;
}

.btn-primary:hover {
    background: #333;
}

.btn-white {
    background: rgba(255, 255, 255, 0.8);
    color: #000;
    backdrop-filter: blur(10px);
}

.btn-white:hover {
    background: #fff;
}

.btn-add-cart {
    background-color: var(--text-main);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    margin-left: 10px;
}

.btn-add-cart:hover {
    background-color: var(--accent-green);
}

/* --- HEADER --- */
header {
    padding: 30px 150px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: transparent;
    transition: 0.3s;
}

header.scrolled {
    position: fixed;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 15px 30px;
}

.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.search-bar {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 320px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    color: #333;
}

.search-icon {
    opacity: 0.5;
    cursor: pointer;
}

.nav-pill {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    padding: 10px 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-weight: 500;
    font-size: 14px;
    color: #1f1f1f;
    margin: 0;
}

.nav-links a {
    position: relative;
    opacity: 0.7;
    transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    font-weight: 600;
}

.user-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.btn-track {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: 0.2s;
}

.btn-track:hover,
.search-bar:hover,
.nav-pill:hover,
.btn-cart:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.btn-cart {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    font-size: 18px;
    transition: 0.2s;
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #1f1f1f;
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: 0.3s;
}

.cart-badge.visible {
    opacity: 1;
    transform: scale(1);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-green);
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: 0.3s;
}

.cart-badge.visible {
    opacity: 1;
    transform: scale(1);
}

/* --- HERO --- */
.hero {
    margin-bottom: -40px;
    position: relative;
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: 600px;
    background: #D9D9D9 url('./img/pexels-olly-3757055\ \(1\)\ 1.jpg') center/cover;
    border-radius: 0 0 40px 40px;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-overlay h1 {
    font-size: 80px;
    font-weight: 700;
    line-height: 0.9;
}

/* USP Bar */
.usp-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px 40px;
    border-radius: 50px;
    box-shadow: var(--shadow-soft);
    display: flex;
    justify-content: space-between;
    z-index: 2;
}

.usp-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

/* Intro */
.intro-text {
    max-width: 100%;
    margin: -48px auto 60px;
    text-align: center;
    background: linear-gradient(90deg, rgba(210, 206, 198, 0.4) 0%, rgba(232, 230, 227, 0.4) 100%);
    padding: 70px;
    padding-bottom: 15px;
}

/* --- BEST SELLERS --- */
.best-sellers {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: center;
}

.section-header-left h2 {
    font-size: 48px;
    color: #AE9E8B;
    line-height: 1;
}

.products-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.product-card {
    background: #fff;
    padding: 15px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s;
    cursor: pointer;
    box-shadow: 0 27px 59px 0 rgba(0, 0, 0, 0.04), 0 107px 107px 0 rgba(0, 0, 0, 0.04), 0 241px 145px 0 rgba(0, 0, 0, 0.02), -1px 429px 172px 0 rgba(0, 0, 0, 0.01), -1px 670px 188px 0 rgba(0, 0, 0, 0);
    background: #f4f3f1;
}

.product-card:hover {
    transform: translateY(-5px);
}

.card-img {
    height: 280px;
    background: #eee;
    margin-bottom: 15px;
    border-radius: 16px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    transition: transform 0.5s;
}

.product-card:hover .card-img img {
    transform: scale(1.05);
}

.rating {
    font-size: 12px;
    font-weight: 600;
    float: right;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.price {
    font-weight: 700;
    font-size: 16px;
}

.monthly {
    font-size: 12px;
    color: #999;
    font-weight: normal;
}

/* --- MATERIALS --- */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.material-card {
    background: #fff;
    padding: 15px;
    border-radius: var(--radius-card);
    cursor: pointer;
    transition: 0.3s;
}

.material-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.material-img {
    height: 200px;
    background: #ccc;
    margin-bottom: 15px;
    border-radius: 16px;
}

/* --- UNIQUE SECTION --- */
.unique-section {
    background-color: var(--brown-dark);
    color: #fff;
    border-radius: 40px;
    padding: 80px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}

.unique-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.unique-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.unique-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.unique-card .card-img {
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
}

/* --- TRUSTPILOT --- */
.trustpilot-bar {
    background: #fff;
    padding: 30px;
    border-radius: 50px;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -30px;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 50px;
}

.star-green {
    color: var(--accent-green);
}

.reviews-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
}

.review-bubble {
    background: #F5F5F5;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
}

.avatar {
    width: 30px;
    height: 30px;
    background: #bbb;
    border-radius: 50%;
}

/* --- SIZES & COLORS --- */
.size-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.size-card {
    background: #fff;
    padding: 10px;
    border-radius: var(--radius-card);
    text-align: left;
    cursor: pointer;
    transition: 0.3s;
}

.size-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-soft);
}

.size-card img {
    height: 180px;
    width: 100%;
    object-fit: cover;
    margin-bottom: 10px;
    border-radius: 16px;
}

.colors-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.color-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.color-item:hover .color-circle {
    transform: scale(1.1);
}

/* --- BENEFITS --- */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: center;
}

.benefit-icon {
    font-size: 30px;
}

/* --- BRANDS --- */
.brands-section {
    background: #F2F2F2;
    padding: 20px 0;
    margin: 0 -40px;
    margin-bottom: 80px;
}

.brands-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 40px;
    align-items: center;
}

/* --- GUIDES --- */
.grid-guide {
    display: grid;
    grid-template-columns: 1fr 3fr;
    background: #EAE8E4;
    border-radius: 30px;
    overflow: hidden;
    align-items: center;
    margin-bottom: 60px;
}

.guide-text {
    padding: 40px;
}

.guide-imgs {
    display: flex;
    position: relative;
}

.guide-imgs img {
    height: 200px;
    width: 100%;
    margin-right: 2px;
    border-radius: 0;
}

.care-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    justify-content: center;
    align-items: center;
    justify-items: center;
}

.care-card {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    height: 400px;
    cursor: pointer;
}

.care-card:hover img {
    transform: scale(1.05);
    transition: 0.5s;
}

.care-content {
    position: absolute;
    bottom: 30px;
    left: 30px;
    width: 80%;
}

/* --- FAQ --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #ddd;
}

.faq-question {
    padding: 20px 0;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.faq-question:hover {
    color: #AE9E8B;
}

.faq-answer {
    display: none;
    padding-bottom: 20px;
    color: var(--text-light);
}

/* --- TOAST NOTIFICATION --- */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(31, 31, 31, 0.95);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-icon {
    background: var(--accent-green);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* --- АДАПТИВНОСТЬ  --- */

@media (max-width: 1024px) {

    .container {
        width: 100%;
        margin: 0;
        padding: 0 20px;
    }

    header {
        position: relative;
        padding: 15px 0;
        background: var(--bg-body);
    }

    .header-inner {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .search-bar,
    .nav-pill,
    .user-actions {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        box-shadow: none;
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 15px;
        font-size: 13px;
    }

    .hero {
        margin-bottom: 0;
    }

    .hero-img {
        height: 350px;
        border-radius: 0 0 24px 24px;
    }

    .hero-overlay h1 {
        font-size: 42px;
    }

    .usp-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 20px;
        border-radius: 24px;
        margin-top: -30px;
    }

    .intro-text {
        margin: 20px auto 40px;
        padding: 30px 20px;
        border-radius: 24px;
    }

    .best-sellers {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .section-header-left {
        margin-bottom: 30px;
    }

    .section-header-left h2 {
        font-size: 32px;
    }

    .products-grid-3,
    .unique-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .materials-grid,
    .size-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .unique-section {
        grid-template-columns: 1fr;
        padding: 40px 20px;
        text-align: center;
    }

    .brands-section {
        margin: 0 -20px 40px -20px;
    }

    .brands-container {
        grid-template-columns: 1fr;
        padding: 20px;
        text-align: center;
        gap: 30px;
    }

    .grid-guide {
        grid-template-columns: 1fr;
    }

    .guide-imgs {
        display: none;
    }

    .guide-text {
        text-align: center;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .benefit-item {
        justify-content: flex-start;
    }

    .trustpilot-bar {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 20px;
    }
}

@media (max-width: 600px) {

    .products-grid-3,
    .unique-grid {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: 28px;
    }

    .hero-overlay h1 {
        font-size: 32px;
    }

    .card-img {
        height: 220px;
    }

    .material-img,
    .size-card img {
        height: 140px;
    }

    .user-actions {
        justify-content: space-between;
    }

    .btn-track {
        flex-grow: 1;
        justify-content: center;
    }

    .colors-container {
        gap: 15px;
    }

    .color-circle {
        width: 50px;
        height: 50px;
    }

    .color-name {
        font-size: 12px;
    }
}