:root {
    --cream: #FAF8F5;
    --charcoal: #1A1A1A;
    --terracotta: #C4775B;
    --sage: #7A8B6E;
    --white: #FFFFFF;
    --gray-light: #F2F0ED;
    --gray-medium: #E5E2DE;
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-strong: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

body {
    background-color: var(--cream);
    color: var(--charcoal);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(250, 248, 245, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
    color: var(--charcoal);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--charcoal);
    color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    border-radius: 4px;
}

.header-nav a {
    margin-left: 30px;
    text-decoration: none;
    color: var(--charcoal);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.header-nav a:hover {
    color: var(--terracotta);
}

/* Hero */
.hero {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 10%;
    margin-top: 60px;
    background: linear-gradient(rgba(250, 248, 245, 0.9), rgba(250, 248, 245, 0.8)), url('../images/hero.png');
    background-size: cover;
    background-position: center;
}

.hero-subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    color: var(--terracotta);
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    max-width: 900px;
    margin-bottom: 30px;
    font-weight: 500;
}

.hero h1 em {
    font-style: italic;
    color: var(--terracotta);
}

.hero-description {
    max-width: 600px;
    font-size: 1.1rem;
    color: rgba(26, 26, 26, 0.7);
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    gap: 80px;
}

.stat-number {
    font-size: 2.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(26, 26, 26, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.5;
}

.scroll-indicator svg {
    width: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(-3px);
    }
}

/* Filters */
.filters-section {
    padding: 60px 5%;
    position: sticky;
    top: 72px;
    background: var(--cream);
    z-index: 900;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.filters-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filters-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.4;
}

.filters {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 10px 20px;
    border: 1px solid var(--gray-medium);
    background: none;
    border-radius: 40px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.filter-btn.active {
    background: var(--charcoal);
    color: var(--white);
    border-color: var(--charcoal);
}

.filter-btn:not(.active):hover {
    border-color: var(--charcoal);
}

.store-count {
    font-size: 0.9rem;
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
}

/* Stores Grid */
.main {
    padding: 60px 5%;
}

.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.store-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.store-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.store-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: var(--gray-light);
}

.store-info {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.store-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--terracotta);
    margin-bottom: 10px;
    font-weight: 600;
}

.store-name {
    font-size: 1.8rem;
    margin-bottom: 5px;
    line-height: 1.2;
}

.store-location {
    font-size: 0.9rem;
    color: rgba(26, 26, 26, 0.5);
    margin-bottom: 20px;
}

.store-description {
    font-size: 0.95rem;
    color: rgba(26, 26, 26, 0.7);
    margin-bottom: 25px;
    flex-grow: 1;
}

.store-footer {
    display: flex;
    gap: 20px;
    border-top: 1px solid var(--gray-light);
    padding-top: 20px;
}

.store-link {
    text-decoration: none;
    color: var(--charcoal);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition-smooth);
}

.store-link:hover {
    color: var(--terracotta);
}

/* Footer */
.footer {
    background: var(--charcoal);
    color: var(--white);
    padding: 100px 5% 40px;
    margin-top: 100px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 100px;
    margin-bottom: 80px;
}

.footer-brand h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    max-width: 400px;
}

.footer-section h4 {
    margin-bottom: 25px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.footer-section a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

.npln-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

.npln-badge:hover {
    color: var(--white);
}

.npln-badge svg {
    width: 16px;
}

.npln-logo {
    height: 34px;
    width: auto;
    border-radius: 3px;
    object-fit: contain;
}

.logo-img {
    height: 46px;
    width: auto;
    border-radius: 4px;
    margin-right: 12px;
    object-fit: contain;
}

/* Mobile */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }

    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    /* Компактный хедер */
    .header {
        padding: 12px 4%;
    }

    .logo {
        font-size: 1rem;
    }

    .logo-img {
        height: 32px;
        margin-right: 8px;
    }

    .header-nav a {
        margin-left: 15px;
        font-size: 0.8rem;
    }

    /* Фильтры НЕ липкие на мобильных */
    .filters-section {
        position: relative;
        top: auto;
        padding: 20px 4%;
    }

    .filters-container {
        flex-direction: column;
        gap: 15px;
    }

    .filters-label {
        display: none;
    }

    .filters {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 14px;
        font-size: 0.75rem;
    }

    .store-count {
        font-size: 0.8rem;
    }

    /* Hero */
    .hero {
        height: auto;
        min-height: 60vh;
        padding: 80px 5% 40px;
        margin-top: 50px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .hero-stats {
        flex-direction: row;
        gap: 30px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .scroll-indicator {
        display: none;
    }

    /* Карточки магазинов */
    .main {
        padding: 30px 4%;
    }

    .stores-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .store-image {
        height: 200px;
    }

    .store-info {
        padding: 20px;
    }

    .store-name {
        font-size: 1.4rem;
    }

    /* Футер */
    .footer {
        padding: 50px 4% 30px;
        margin-top: 50px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 40px;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-brand h3 {
        font-size: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}