/* === DESIGN TOKENS === */
:root {
    /* Цвета */
    --color-primary-blue: #2e89fb;
    --color-primary-green: #a4dd1d;
    --color-primary-dark-blue: #091b32;
    --color-neutral-white: #fff;
    --color-neutral-black: #000;
    --color-neutral-gray-light: #e8ebee;
    --color-neutral-gray-medium: #8895a4;

    /* Фоны */
    --bg-light-blue: #f2f9ff;
    --bg-light-gray: #f7f8fa;
    --bg-gradient-blue: linear-gradient(to right, #010a16, #091c33);

    /* Шрифты */
    --font-primary: "Raleway", sans-serif;
    --font-secondary: "Onest", sans-serif;

    /* Размеры */
    --container-width: 1300px;
    --global-padding: clamp(15px, 3vw, 30px);
    --grid-gap: 20px;
}

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

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-neutral-black);
    background-color: var(--color-neutral-white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* === LAYOUT === */
.site-container__wrapper {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--global-padding);
}

.section {
    margin-bottom: 60px;
}

.section--bg {
    background-color: var(--bg-light-gray);
    padding: 40px 0;
}

/* === HEADER === */
.site-header {
    background: var(--color-neutral-white);
    border-bottom: 1px solid var(--color-neutral-gray-light);
    padding: 15px 0;
}

.site-header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header__logo img {
    height: 40px;
}

.site-header__nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    color: var(--color-primary-dark-blue);
    font-family: var(--font-secondary);
}

.nav-link:hover {
    color: var(--color-primary-green);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: var(--color-primary-dark-blue);
    border-radius: 10px;
    transition: all 0.3s linear;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--color-neutral-white);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu__close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-primary-dark-blue);
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.mobile-menu__link {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary-dark-blue);
    font-family: var(--font-secondary);
    text-decoration: none;
}

.no-scroll {
    overflow: hidden;
}

@media (max-width: 768px) {
    .site-header__nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

/* === HERO === */
.hero-block {
    background: var(--bg-gradient-blue);
    color: var(--color-neutral-white);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.hero-block h1 {
    font-size: clamp(24px, 4vw, 36px);
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-block--retailer {
    color: #fff;
}

.hero-block--retailer .city-content {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-cta {
    margin-top: 40px;
}

/* === BUTTONS === */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    font-family: var(--font-secondary);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.button--green {
    background-color: var(--color-primary-green);
    color: #fff;
}

.button--green:hover {
    background-color: #8bc315;
}

.button--white {
    background-color: #fff;
    color: var(--color-primary-dark-blue);
}

.button--small {
    padding: 8px 16px;
    font-size: 14px;
}

.button--big {
    padding: 16px 32px;
    font-size: 18px;
}

/* === PRODUCTS GRID (Магазины) === */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--grid-gap);
}

.products__item {
    background: #fff;
    border: 1px solid var(--color-neutral-gray-light);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s;
}

.products__item:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary-blue);
}

.products__image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
}

.products__title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 5px;
}

/* === FOOTER === */
.site-footer {
    background: var(--bg-light-gray);
    padding: 40px 0;
    margin-top: auto;
}

/* === CITY PAGE STYLES === */
.city-nav {
    margin-bottom: 20px;
}

.nav-anchors {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px 20px;
    padding: 0;
    margin: 10px 0;
}

.nav-anchors a {
    color: var(--color-primary-blue);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.hero-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 600px) {
    .hero-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

.city-logo {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    object-fit: contain;
    background: #fff;
    padding: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.shop-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.shop-card:hover {
    transform: translateY(-5px);
}

.shop-card__img-wrap {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
}

.shop-card .products__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    border: none;
    background: transparent;
    padding: 0;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.promo-card {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--color-neutral-gray-light);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.promo-code-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.promo-name {
    font-weight: 800;
    font-size: 20px;
    color: #111;
    font-family: var(--font-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.copy-btn {
    padding: 8px 16px;
    background: #f0f0f0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.copy-btn.copied {
    background: var(--color-primary-green);
    color: #fff;
}

.app-section {
    background: var(--bg-light-gray);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
}

.app-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.app-buttons img {
    height: 40px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--color-neutral-gray-light);
    border-radius: 12px;
    padding: 20px;
}

.faq-question {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 17px;
}

.faq-answer {
    line-height: 1.6;
    opacity: 0.9;
}

.show-more-container {
    margin-top: 30px;
    text-align: center;
}

.products-grid--limited>.shop-card:nth-child(n+7) {
    display: none;
}

.products-grid--limited.expanded>.shop-card:nth-child(n+7) {
    display: flex;
}

/* === CITIES SEARCH PAGE === */
.hero-search-wrap {
    max-width: 600px;
    margin: 0 auto 30px;
    position: relative;
}

.city-search-input {
    padding: 18px 25px;
    width: 100%;
    border-radius: 20px;
    border: none;
    font-size: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: #fff;
    font-family: var(--font-secondary);
}

.popular-cities {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.popular-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.popular-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.popular-city-link {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 14px;
    backdrop-filter: blur(5px);
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.popular-city-link:hover {
    background: #fff;
    color: var(--color-primary-dark-blue);
    transform: translateY(-2px);
}

.hub-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-top: -40px;
    position: relative;
    z-index: 10;
    margin-bottom: 60px;
    border: 1px solid var(--color-neutral-gray-light);
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-primary-blue);
    font-family: var(--font-secondary);
}

.stat-label {
    font-size: 14px;
    color: var(--color-neutral-gray-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .hub-stats {
        grid-template-columns: 1fr;
        padding: 20px;
        margin-top: -20px;
    }
}

.cities-alphabet-wrap {
    column-count: 3;
    column-gap: 40px;
}

@media (max-width: 1024px) {
    .cities-alphabet-wrap {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .cities-alphabet-wrap {
        column-count: 1;
    }
}

.letter-group {
    break-inside: avoid;
    margin-bottom: 40px;
}

.letter-group h3 {
    font-size: 24px;
    color: var(--color-primary-dark-blue);
    border-bottom: 3px solid var(--color-primary-green);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

.cities-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cities-list a {
    color: #444;
    font-size: 16px;
    transition: color 0.2s;
}

.cities-list a:hover {
    color: var(--color-primary-blue);
    padding-left: 5px;
}

.hub-seo {
    margin-top: 60px;
    padding: 80px 0;
    border-radius: 40px 40px 0 0;
}

/* === CONTENT TYPOGRAPHY (SEO, FAQ, Info) === */
.seo-text-layout,
.info-text,
.faq-answer {
    line-height: 1.8;
    color: #4a5568;
}

.seo-text-layout p,
.info-text p,
.faq-answer p {
    margin-bottom: 20px;
}

.seo-text-layout ul,
.info-text ul,
.faq-answer ul,
.seo-text-layout ol,
.info-text ol,
.faq-answer ol {
    margin: 0 0 25px 25px;
    padding: 0;
}

.seo-text-layout ul,
.info-text ul,
.faq-answer ul {
    list-style: none;
}

.seo-text-layout ul li,
.info-text ul li,
.faq-answer ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
}

.seo-text-layout ul li::before,
.info-text ul li::before,
.faq-answer ul li::before {
    content: "\2022";
    color: var(--color-primary-green);
    font-weight: bold;
    font-size: 20px;
    position: absolute;
    left: 0;
    top: -2px;
}

.seo-text-layout ol,
.info-text ol,
.faq-answer ol {
    list-style-type: decimal;
}

.seo-text-layout ol li,
.info-text ol li,
.faq-answer ol li {
    margin-bottom: 12px;
    padding-left: 10px;
}

.seo-text-layout ol li::marker,
.info-text ol li::marker,
.faq-answer ol li::marker {
    color: var(--color-primary-green);
    font-weight: 700;
}

.seo-text-layout h2,
.info-text h2,
.faq-answer h2,
.seo-text-layout h3,
.info-text h3,
.faq-answer h3 {
    color: var(--color-primary-dark-blue);
    margin: 30px 0 15px;
}

/* HOME PAGE STYLES */
.home-hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fff9 0%, #e8f5e9 100%);
    overflow: hidden;
}

.home-hero__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.home-hero__badge {
    display: inline-block;
    padding: 6px 16px;
    background: #fff;
    color: var(--color-primary-green);
    border-radius: 100px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.home-hero h1 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(90deg, #1a1a1a 0%, #444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-hero__desc {
    font-size: 20px;
    color: #666;
    margin-bottom: 40px;
    max-width: 500px;
}

.home-hero__actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

.home-hero__stats {
    display: flex;
    gap: 30px;
}

.stat-item strong {
    display: block;
    font-size: 24px;
    color: var(--color-primary-green);
}

.stat-item span {
    font-size: 14px;
    color: #888;
}

.home-hero__image-wrap {
    position: relative;
}

.home-hero__image {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.glass-card {
    position: absolute;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: float 4s ease-in-out infinite;
}

.glass-card--food {
    top: 10%;
    right: -20px;
    animation-delay: 0s;
}

.glass-card--grocery {
    bottom: 20%;
    left: -20px;
    animation-delay: 2s;
}

@keyframes float {

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

    50% {
        transform: translateY(-10px);
    }
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.section-header p {
    color: #666;
    font-size: 18px;
}

.service-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.service-card {
    display: flex;
    align-items: center;
    padding: 40px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid #eee;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--color-primary-green);
}

.service-card__icon {
    font-size: 60px;
    margin-right: 30px;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.service-card p {
    color: #666;
    margin-bottom: 20px;
}

.service-card__link {
    color: var(--color-primary-green);
    font-weight: 700;
}

.brands-mini-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.brand-mini-card {
    background: #fff;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s;
}

.brand-mini-card:hover {
    transform: scale(1.05);
}

.brand-mini-card__img {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 12px;
}

.brand-mini-card__img img {
    max-width: 60%;
    max-height: 60%;
    object-fit: contain;
}

.brand-mini-card span {
    font-size: 14px;
    font-weight: 600;
    color: #444;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.step-card {
    position: relative;
    padding-top: 40px;
}

.step-card__num {
    font-size: 40px;
    font-weight: 900;
    color: var(--color-primary-green);
    opacity: 0.1;
    position: absolute;
    top: 0;
    left: 0;
}

@media (max-width: 992px) {
    .home-hero__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .home-hero__content {
        order: 2;
    }

    .home-hero__image-wrap {
        order: 1;
        max-width: 500px;
        margin: 0 auto;
    }

    .home-hero h1 {
        font-size: 40px;
    }

    .home-hero__desc {
        margin: 0 auto 30px;
    }

    .home-hero__actions {
        justify-content: center;
        flex-direction: column;
    }

    .service-cards {
        grid-template-columns: 1fr;
    }

    .brands-mini-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* HEADER & FOOTER UPDATES */
.site-header__nav {
    display: flex;
    gap: 30px;
    margin: 0 40px;
}

.nav-link {
    font-weight: 600;
    font-family: var(--font-secondary);
    color: #333;
    font-size: 15px;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--color-primary-green);
}

.site-header__logo {
    height: 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.site-header__logo img {
    height: 120px;
    /* Zooming in to remove white padding */
    width: auto;
    object-fit: contain;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    height: 35px;
    overflow: hidden;
    margin-bottom: 15px;
}

.footer-logo img {
    height: 100px;
    /* Zooming in for footer logo as well */
    width: auto;
    object-fit: contain;
}

.footer-info p {
    font-size: 14px;
    color: #777;
    max-width: 300px;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--color-primary-dark-blue);
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    font-size: 14px;
    color: #888;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--color-primary-green);
}

@media (max-width: 768px) {
    .site-header__nav {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-info p {
        margin: 0 auto;
    }
}