/* === Переменные — светлая палитра === */
:root {
    --bg: #faf9f7;
    --bg-alt: #f0ede8;
    --bg-card: #ffffff;
    --paper: #f5f3f0;
    --ink: #2c2a26;
    --ink-soft: #5a5752;
    --ink-muted: #8a8681;
    --accent: #b8860b;
    --accent-soft: #d4a84b;
    --accent-light: #f0e6c8;
    --border: rgba(44, 42, 38, 0.12);
    --font-serif: 'Literata', Georgia, serif;
    --font-sans: 'Source Sans 3', -apple-system, sans-serif;
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 4px 24px rgba(44, 42, 38, 0.08);
    --shadow-hover: 0 12px 40px rgba(44, 42, 38, 0.12);
    --ease: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Базовые стили === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    overflow-x: hidden;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: optimize-quality;
}

/* === Навигация === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(250, 249, 247, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ink);
}

.logo-icon {
    width: 38px;
    height: 38px;
    color: var(--accent);
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-links a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--ease);
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--ink);
    transition: var(--ease);
}

/* === Hero === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 24px 80px;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(250, 249, 247, 0.94) 0%, rgba(250, 249, 247, 0.75) 45%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.hero-logo {
    width: 64px;
    height: 64px;
    color: var(--accent);
}

.hero-brand h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 600;
    color: var(--ink);
}

.hero-slogan {
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    color: var(--ink-soft);
    max-width: 520px;
    margin-bottom: 10px;
}

.hero-desc {
    font-size: 0.95rem;
    color: var(--ink-muted);
    margin-bottom: 28px;
}

.hero-badges {
    display: flex;
    gap: 12px;
}

.badge {
    padding: 10px 22px;
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    color: var(--accent);
}

/* === Секции === */
.section {
    padding: 90px 0;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 10px;
}

.section-title.left {
    text-align: left;
}

.section-subtitle {
    color: var(--ink-muted);
    margin-bottom: 44px;
    font-size: 1.05rem;
}

/* === О компании === */
.about {
    background: var(--paper);
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    align-items: center;
    margin-bottom: 56px;
}

.about-image-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image-wrap img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.about-text .lead {
    font-size: 1.15rem;
    color: var(--ink);
    margin-bottom: 16px;
}

.about-text p {
    color: var(--ink-soft);
    margin-bottom: 16px;
}

.values-inline {
    margin-top: 24px;
    font-size: 0.95rem;
    color: var(--ink-muted);
}

.values-inline span:nth-child(odd) {
    font-weight: 500;
    color: var(--ink-soft);
}

.values-inline span:nth-child(even) {
    margin: 0 8px;
    opacity: 0.5;
}

.goals-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.goal-item {
    padding: 28px 24px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border-left: 4px solid var(--accent);
    box-shadow: var(--shadow);
    transition: transform var(--ease), box-shadow var(--ease);
}

.goal-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.goal-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.7;
    display: block;
    margin-bottom: 10px;
}

.goal-item h4 {
    font-size: 1.1rem;
    color: var(--ink);
    margin-bottom: 6px;
}

.goal-item p {
    font-size: 0.9rem;
    color: var(--ink-muted);
}

/* === Категории === */
.categories {
    background: var(--bg);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
}

.category-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/5;
}

.category-card--large {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.06);
}

.category-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 22px;
    background: linear-gradient(transparent, rgba(44, 42, 38, 0.85));
    color: #fff;
}

.category-card-overlay h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.category-card-overlay p {
    font-size: 0.88rem;
    opacity: 0.9;
}

/* === Бренды === */
.brands {
    background: var(--bg-alt);
}

.brand-block {
    display: grid;
    grid-template-columns: 42% 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 80px;
}

.brand-block:last-child {
    margin-bottom: 0;
}

.brand-block--reverse {
    grid-template-columns: 1fr 42%;
}

.brand-block--reverse .brand-visual {
    order: 2;
}

.brand-visual {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.brand-visual img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.brand-info h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--ink);
    margin-bottom: 16px;
}

.brand-info p {
    color: var(--ink-soft);
    font-size: 1.05rem;
}

/* === Склады === */
.warehouses {
    background: var(--bg);
}

.warehouses-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.warehouse-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow var(--ease);
}

.warehouse-item:hover {
    box-shadow: var(--shadow-hover);
}

.warehouse-photo {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.warehouse-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.warehouse-item h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    padding: 20px 24px 8px;
    color: var(--ink);
}

.warehouse-item p {
    padding: 0 24px 24px;
    color: var(--ink-muted);
    font-size: 0.98rem;
}

/* === Магазины === */
.stores {
    background: var(--paper);
}

.stores-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.store-block {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.store-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60px;
    margin-bottom: 28px;
}

.platform-logo {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

.ozon-logo {
    max-height: 42px;
}

.wb-logo {
    max-height: 44px;
}

.market-logo {
    max-height: 42px;
}

.store-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.store-links a {
    display: block;
    padding: 14px 20px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--ink);
    font-weight: 500;
    transition: background var(--ease), color var(--ease);
}

.store-links a:hover {
    background: var(--accent-light);
    color: var(--accent);
}

/* === Контакты === */
.contact {
    background: var(--bg-alt);
}

.contact-row {
    display: flex;
    gap: 24px;
    margin-bottom: 48px;
}

.contact-item {
    flex: 1;
    display: block;
    padding: 32px;
    background: var(--bg-card);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
    transition: transform var(--ease), box-shadow var(--ease);
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.contact-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.contact-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ink);
}

.contact-visual {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-visual img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
}

/* === Footer === */
.footer {
    padding: 56px 24px;
    text-align: center;
    background: var(--ink);
    color: #e8e6e3;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo {
    width: 36px;
    height: 36px;
    color: var(--accent-soft);
}

.footer-brand span {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-slogan {
    font-size: 1rem;
    color: var(--accent-soft);
    margin-bottom: 12px;
}

.footer-copy {
    font-size: 0.88rem;
    color: rgba(232, 230, 227, 0.7);
}

.footer-details {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(232, 230, 227, 0.15);
}

.footer-contacts {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-contacts a {
    color: var(--accent-soft);
    text-decoration: none;
}

.footer-contacts a:hover {
    text-decoration: underline;
}

.footer-requisites {
    font-size: 0.82rem;
    color: rgba(232, 230, 227, 0.6);
}

/* === Адаптив === */
@media (max-width: 900px) {
    .about-layout {
        grid-template-columns: 1fr;
    }

    .about-image-wrap {
        order: -1;
    }

    .brand-block,
    .brand-block--reverse {
        grid-template-columns: 1fr;
    }

    .brand-block--reverse .brand-visual {
        order: 0;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .category-card--large {
        grid-column: auto;
        grid-row: auto;
        aspect-ratio: 4/3;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        padding: 90px 32px 32px;
        gap: 20px;
        transition: right var(--ease);
        box-shadow: -8px 0 24px rgba(0,0,0,0.08);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .goals-strip {
        grid-template-columns: 1fr;
    }

    .warehouses-row,
    .stores-row {
        grid-template-columns: 1fr;
    }

    .contact-row {
        flex-direction: column;
    }

    .section {
        padding: 60px 0;
    }
}
