/* 
   AliJournal Design System - Implementation of design_code.json
*/

:root {
    /* Colors - Primary */
    --midnight-blue: #13274d;
    --bright-royal-blue: #0556f2;

    /* Colors - Secondary */
    --slate-gray: #706f7e;
    --steel-gray: #5a606a;
    --silver-gray: #d9dade;

    /* Colors - Neutral */
    --white: #ffffff;
    --soft-white: #f3f3f3;
    --transparent: transparent;

    /* Typography */
    --font-family-primary: "Inter Tight", sans-serif;

    /* Font Sizes */
    --font-h1: 64px;
    --font-h2: 52px;
    --font-h3: 32px;
    --font-h4: 28px;
    --font-h5: 26px;
    --font-h6: 24px;
    --font-paragraph: 18px;
    --font-paragraph-s: 16px;

    /* Line Heights */
    --line-height-tiny: 113%;
    --line-height-regular: 110%;
    --line-height-s: 100%;
    --line-height-m: 120%;
    --line-height-l: 130%;
    --line-height-xl: 140%;
    --line-height-xxl: 150%;

    /* Spacing */
    --spacing-l: 130px;
    --spacing-m: 90px;
    --spacing-s: 80px;

    /* Effects */
    --radius-small: 8px;
    --radius-medium: 12px;
    --radius-large: 14px;
    --radius-xlarge: 16px;
    --transition-default: 0.3s;
}

/* Base & Reset */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-family-primary);
    background-color: var(--white);
    color: var(--midnight-blue);
    font-size: var(--font-paragraph);
    line-height: var(--line-height-xxl);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    vertical-align: middle;
    display: inline-block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-default);
}

/* Typography map */
h1 {
    font-size: var(--font-h1);
    line-height: var(--line-height-tiny);
    font-weight: 600;
    margin-bottom: 20px;
}

h2 {
    font-size: var(--font-h2);
    line-height: var(--line-height-regular);
    font-weight: 600;
    margin-bottom: 15px;
}

h3 {
    font-size: var(--font-h3);
    line-height: var(--line-height-l);
    font-weight: 600;
    margin-bottom: 12px;
}

h4 {
    font-size: var(--font-h4);
    line-height: var(--line-height-regular);
    font-weight: 600;
    margin-bottom: 10px;
}

p {
    margin-bottom: 10px;
    color: var(--slate-gray);
}

/* Layout */
.container {
    max-width: 1310px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: var(--spacing-s) 0;
}

.mt-40 {
    margin-top: 40px;
}

.text-center {
    text-align: center;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: var(--font-paragraph-s);
    color: var(--slate-gray);
}

.breadcrumbs a:hover {
    color: var(--bright-royal-blue);
}

.breadcrumbs .separator {
    color: var(--silver-gray);
}

.breadcrumbs .current {
    color: var(--midnight-blue);
    font-weight: 600;
}

/* Navbar */
.navbar {
    background-color: var(--white);
    padding: 20px 0;
    border-bottom: 1px solid var(--silver-gray);
    position: relative;
    z-index: 1000;
}

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

.navbar-logo-wrapper {
    display: block;
    max-width: 150px;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--midnight-blue);
}

.nav-link:hover {
    color: var(--bright-royal-blue);
}

/* Buttons */
.button {
    display: inline-block;
    padding: 14px 20px;
    background-color: var(--bright-royal-blue);
    color: var(--white);
    border-radius: var(--radius-small);
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all var(--transition-default);
}

.button:hover {
    opacity: 0.9;
}

.button.secondary {
    background-color: var(--soft-white);
    color: var(--midnight-blue);
}

.button.secondary:hover {
    background-color: var(--slate-gray);
    color: var(--white);
}

.button.white {
    background-color: var(--white);
    color: var(--midnight-blue);
}

.button.white:hover {
    background-color: var(--soft-white);
}

/* Home Hero Grid */
.home-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    margin-bottom: 60px;
}

.home-hero-main {
    background-color: var(--midnight-blue);
    border-radius: var(--radius-xlarge);
    padding: 60px;
    position: relative;
    overflow: hidden;
    color: var(--white);
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-hero-circle {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(5, 86, 242, 0.3) 0%, rgba(5, 86, 242, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.home-hero-content {
    position: relative;
    z-index: 1;
}

.home-hero-subtitle {
    font-size: var(--font-h6);
    color: var(--silver-gray);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.home-hero-title {
    font-size: 72px;
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--white);
}

.home-hero-description {
    color: var(--silver-gray);
    max-width: 80%;
    margin-bottom: 40px;
}

.home-hero-actions {
    position: relative;
    z-index: 1;
}

.home-hero-right-grid {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

/* Cards */
.card {
    background-color: var(--soft-white);
    border-radius: var(--radius-xlarge);
    padding: 30px;
    transition: transform var(--transition-default);
}

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

.stat-card-home {
    background-color: var(--bright-royal-blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.stat-number-home {
    font-size: 80px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-desc-home {
    font-size: var(--font-h5);
    opacity: 0.9;
}

.feature-card-home {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-tags {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.feature-tag {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: var(--font-paragraph-s);
    font-weight: 600;
}

.feature-tag--accent {
    background-color: var(--midnight-blue);
    color: var(--white);
}

.feature-tag--primary {
    background-color: var(--bright-royal-blue);
    color: var(--white);
}

/* Marquee */
.marquee-line {
    background-color: var(--midnight-blue);
    color: var(--white);
    padding: 20px 0;
    overflow: hidden;
    white-space: nowrap;
    margin: 40px 0;
}

.marquee-content span {
    display: inline-block;
    margin-right: 40px;
    font-size: var(--font-h5);
    font-weight: 600;
    text-transform: uppercase;
}

/* Sections */
.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.home-section-title {
    font-size: var(--font-h2);
    margin-bottom: 0;
}

.home-section-subtitle {
    color: var(--slate-gray);
    font-weight: 400;
}

/* Retailers Grid */
.retailers-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.retailer-card-home {
    background-color: var(--white);
    border: 1px solid var(--silver-gray);
    border-radius: var(--radius-large);
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.retailer-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.retailer-logo-box {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-medium);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.retailer-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.retailer-badge {
    background-color: var(--soft-white);
    color: var(--midnight-blue);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.retailer-info h3 {
    font-size: var(--font-h5);
    margin-bottom: 5px;
}

.retailer-info p {
    font-size: var(--font-paragraph-s);
    margin-bottom: 0;
    color: var(--steel-gray);
}

.retailer-footer {
    margin-top: auto;
    padding-top: 20px;
    display: flex;
    justify-content: flex-end;
}

.retailer-arrow {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--soft-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.retailer-card-home:hover .retailer-arrow {
    background-color: var(--bright-royal-blue);
    color: var(--white);
}

/* City Cloud */
.city-cloud-section {
    background-color: var(--soft-white);
    border-radius: var(--radius-xlarge);
    padding: 80px 0;
    margin-top: 40px;
}

.cities-section-title {
    margin-bottom: 10px;
}

.cities-section-description {
    max-width: 600px;
    margin: 0 auto 40px;
}

.city-cloud-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 900px;
    margin: 0 auto;
}

.city-cloud-item {
    background-color: var(--white);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.city-cloud-item:hover {
    border-color: var(--bright-royal-blue);
    color: var(--bright-royal-blue);
    transform: translateY(-2px);
}

.city-cloud-item--all {
    background-color: var(--midnight-blue);
    color: var(--white);
}

.city-cloud-item--all:hover {
    background-color: var(--bright-royal-blue);
    color: var(--white);
}

/* FAQ Component */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--soft-white);
    border-radius: var(--radius-large);
    transition: background-color var(--transition-default);
}

.faq-item:hover {
    background-color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-item__summary {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: var(--font-h5);
    list-style: none;
}

.faq-item__summary::-webkit-details-marker {
    display: none;
}

.faq-item__icon {
    font-size: 24px;
    font-weight: 300;
    color: var(--bright-royal-blue);
    transition: transform var(--transition-default);
}

details[open] .faq-item__icon {
    transform: rotate(45deg);
}

.faq-item__answer {
    padding: 0 24px 24px;
    color: var(--slate-gray);
    line-height: var(--line-height-xxl);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Promocodes Component */
.grid-fill-300 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.promo-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    border: 1px solid var(--silver-gray);
    background-color: var(--white);
}

.promo-card__code-box {
    background-color: var(--soft-white);
    border: 1px dashed var(--slate-gray);
    border-radius: var(--radius-medium);
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-default);
}

.promo-card__code-box:hover {
    border-color: var(--bright-royal-blue);
    background-color: #eef2ff;
}

.promo-card__code {
    font-family: monospace;
    font-size: var(--font-h5);
    font-weight: 700;
    color: var(--midnight-blue);
    letter-spacing: 1px;
}

.promo-card__description {
    color: var(--steel-gray);
    font-size: var(--font-paragraph-s);
    line-height: var(--line-height-l);
}

.promo-card__button {
    width: 100%;
}

/* Cities Hub Component */
.alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 60px;
}

.alphabet-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--soft-white);
    border-radius: var(--radius-small);
    font-weight: 600;
    transition: all var(--transition-default);
}

.alphabet-link:hover {
    background-color: var(--bright-royal-blue);
    color: var(--white);
}

.city-group {
    scroll-margin-top: 100px;
    /* Offset for sticky header if any, or just spacing */
    padding-top: 20px;
    border-top: 1px solid var(--soft-white);
}

.city-group:first-child {
    border-top: none;
}

.city-group__letter {
    color: var(--midnight-blue);
    font-size: var(--font-h3);
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.city-pill {
    display: block;
    padding: 12px 20px;
    background-color: var(--white);
    border: 1px solid var(--silver-gray);
    border-radius: var(--radius-large);
    font-weight: 500;
    text-align: center;
    transition: all var(--transition-default);
}

.city-pill:hover {
    border-color: var(--bright-royal-blue);
    color: var(--bright-royal-blue);
    background-color: #f8fafc;
    transform: translateY(-2px);
}

/* Brands Hub Component */
.brands-hero-subtitle {
    text-align: center;
    color: var(--slate-gray);
    font-size: var(--font-paragraph);
    margin-bottom: 40px;
}

.brands-search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.brands-search-input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 1px solid var(--silver-gray);
    border-radius: var(--radius-xlarge);
    font-size: var(--font-paragraph);
    font-family: inherit;
    transition: border-color var(--transition-default);
}

.brands-search-input:focus {
    outline: none;
    border-color: var(--bright-royal-blue);
}

.brands-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-gray);
    display: flex;
}

.brand-group-block {
    margin-bottom: 40px;
}

.brand-group-title {
    font-size: var(--font-h3);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--soft-white);
}

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

.brand-list-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
}

.brand-list-logo {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-small);
    overflow: hidden;
    background-color: var(--soft-white);
}

.brand-list-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-list-fallback {
    font-weight: 700;
    color: var(--slate-gray);
}

.brand-list-name {
    font-weight: 600;
    font-size: var(--font-h5);
    color: var(--midnight-blue);
}

@media (max-width: 991px) {
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* City Page Component */
.city-hero {
    text-align: center;
    padding: 60px 0;
    background-color: var(--soft-white);
    border-radius: var(--radius-xlarge);
    margin: 20px 15px 40px;
    /* Add margin to simulate container spacing if inside main */
}

@media (min-width: 1340px) {
    .city-hero {
        margin: 20px auto 40px;
        max-width: 1310px;
    }
}

.city-hero-title {
    margin-bottom: 20px;
}

.city-hero-desc {
    max-width: 700px;
    margin: 0 auto;
    font-size: var(--font-h5);
}

.service-aggregator-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 20px;
    transition: all var(--transition-default);
}

.service-aggregator-logo-wrapper {
    max-width: 120px;
    width: 100%;
}

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

.brand-items-grid--limited {
    max-height: 520px;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
}

/* Note: The background might be white or soft-white depending on section.
   Since layout uses white cards on soft-white bg sometimes, or vice versa, correct color depends.
   However, most sections seem to have transparent or specific backgrounds.
   If the section is white, gradient to white. If soft-white, to soft-white.
   Given the complexity, using a variable that matches the page bg is tricky.
   But most listings are on sections. I'll check city.html defaults.
   It uses section-bg-soft (#f9f9fb).
   Brand.html is default white bg on body/main?
   Let's use a safe hack: 
   If I can't know the bg, just masking is hard.
   BUT, usually these grids are on a solid background.
   I will use `var(--body-bg)` or similar if defined, or just `#ffffff` and hopefully it matches.
   Actually, `layout.html` body bg is likely white or defined in style.css.
   style.css line 35: `body { background-color: var(--soft-white); ... }` (example usually).
   Let's look at `city.html`: `.section-bg-soft`.
   Let's look at `brand.html`: it has no specific bg class on section, so it inherits white or body.
   
   To be safe, I will use `rgba(255,255,255,1)` because most cards are on white/light backgrounds and a white fade is standard.
   But wait, if the section is grey (#f9f9fb), white fade looks bad.
   
   Alternative: Just strict height calculation? No, cards vary.
   
   Better: Add the gradient to the specific context or just use current background.
   
   I'll try a generic white gradient first, as it's the safest bet for "Journal" style which is usually clean white/light.
   Actually, `city.html` has `.section-bg-soft` which is `#f9f9fb` (soft white).
   So I should probably use `var(--soft-white)` for the gradient end color.
   But `brand.html` sections are white?
   
   Let's use `var(--gradient-fade)` and define it? No too complex.
   
   I will add the gradient using `background: linear-gradient(...)` but I'll check `style.css` for `--soft-white` value. It is defined.
   
   I'll update the rule to use a standard white fade designated for the specific background.
   Actually, maybe the user just wants the items to be fully hidden if they don't fit?
   "partially visible" -> "видно часть".
   Meaning `overflow: hidden` cuts them in half.
   
   If I add `padding-bottom: 0` to container, it doesn't help.
   
   The fade is the best solution for UX. I will use `var(--white)` as the end color, but make it `rgba(255,255,255,1)`. 
   If the background is grey, it might be visible.
   
   Let's assume white for now as it solves 90% of cases and looks better than cut off.
*/

.brand-items-grid--limited::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #fff 100%);
    pointer-events: none;
}

.brand-card-city {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
}

.brand-logo-wrapper--large {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-medium);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.brand-logo-img-large {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-title-city {
    font-size: var(--font-h5);
    margin-bottom: 0;
}

.section-count {
    color: var(--slate-gray);
    font-weight: 400;
}

.btn-rounded-large {
    border-radius: 30px;
    padding: 16px 32px;
}

.seo-section-bordered {
    border-top: 1px solid var(--soft-white);
    margin-top: 60px;
    padding-top: 60px;
}

.seo-content-centered {
    max-width: 800px;
    margin: 0 auto;
    color: var(--steel-gray);
}

.section-bg-alt {
    background-color: #f9f9fb;
    /* Or var(--soft-white) depending on preference, but keeping user's specific color for now as variable or literal */
}

/* Better to stick to design system. #f9f9fb is very close to white. #f3f3f3 is soft white. I'll use soft white from vars to be consistent. */
.section-bg-soft {
    background-color: var(--soft-white);
}

.brand-logo-fallback-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--steel-gray);
}

/* Brand Hub Component */
.section-bg-gradient {
    background: linear-gradient(135deg, var(--soft-white) 0%, #e6e9f0 100%);
    padding: 80px 0;
}

.brand-logo-hero {
    width: 120px;
    height: 120px;
    background-color: var(--white);
    border-radius: var(--radius-large);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.brand-logo-hero__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-logo-hero__letter {
    font-size: 3rem;
    font-weight: 700;
    color: var(--midnight-blue);
}

.section-bg-light {
    background-color: var(--soft-white);
}

.service-header {
    font-size: var(--font-h3);
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--soft-white);
    display: flex;
    align-items: center;
    gap: 15px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.button-cta-large {
    padding: 20px 40px;
    font-size: var(--font-h5);
    border-radius: 40px;
}

.justify-center {
    justify-content: center;
}

.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-15 {
    gap: 15px;
}

.gap-24 {
    gap: 24px;
}

.max-w-800 {
    max-width: 800px;
}

.max-w-900 {
    max-width: 900px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

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

.hero-title-brand {
    font-size: 3rem;
    font-weight: 800;
}

.hero-desc-brand {
    font-size: 1.2rem;
    color: var(--slate-gray);
    line-height: 1.6;
}

.button-min-w {
    min-width: 200px;
}

.scroll-offset {
    scroll-margin-top: 100px;
}

/* Service Hub Component */
.hero-premium {
    background-color: var(--midnight-blue);
    color: var(--white);
    border-radius: var(--radius-xlarge);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.hero-premium__glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 100%;
    background: radial-gradient(circle, rgba(5, 86, 242, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-premium__badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: var(--font-paragraph-s);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.hero-premium__title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    color: var(--white);
}

.hero-premium__description {
    font-size: 1.25rem;
    color: var(--silver-gray);
    max-width: 700px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 1;
}

.hero-actions {
    position: relative;
    z-index: 1;
}

.hero-track-btn {
    padding: 18px 36px;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 30px;
}

.stats-block {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px 30px;
    border-radius: 12px;
    gap: 30px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(5px);
}

.stat-item__value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bright-royal-blue);
    line-height: 1.2;
}

.stats-value-white {
    color: var(--white);
}

.stat-item__label {
    font-size: 0.9rem;
    color: var(--silver-gray);
}

.stats-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
}

.service-content-card {
    background-color: var(--white);
    border: 1px solid var(--silver-gray);
    padding: 40px;
}

.service-widget-card {
    background-color: var(--soft-white);
    padding: 40px;
    border-radius: var(--radius-xlarge);
}

.info-card__icon {
    font-size: 2rem;
    margin-right: 15px;
    vertical-align: middle;
}

.info-card__item-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--midnight-blue);
}

.info-card__item-text {
    color: var(--slate-gray);
}

.service-step-card {
    background-color: var(--white);
    padding: 24px;
    border-radius: var(--radius-medium);
    border: 1px solid var(--soft-white);
}

.footer-cta {
    background-color: var(--bright-royal-blue);
    color: var(--white);
    padding: 60px 20px;
    border-radius: var(--radius-xlarge);
}

.footer-cta-title {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 30px;
}

.footer-cta-button {
    background-color: var(--white);
    color: var(--bright-royal-blue);
    padding: 16px 32px;
    border-radius: 30px;
}

.footer-cta-button:hover {
    background-color: var(--soft-white);
}

.cities-presence-section {
    background-color: var(--soft-white);
    padding: 80px 0;
}

.city-pill--service {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--white);
    padding: 15px 20px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

.city-pill--service:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.city-pill__arrow {
    color: var(--bright-royal-blue);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.2s;
}

.city-pill--service:hover .city-pill__arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Utilities helpers */
.mt-24 {
    margin-top: 24px;
}

.mt-32 {
    margin-top: 32px;
}

.mt-64 {
    margin-top: 64px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-24 {
    margin-bottom: 24px;
}

.mb-32 {
    margin-bottom: 32px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mb-48 {
    margin-bottom: 48px;
}

.mb-64 {
    margin-bottom: 64px;
}

.last-mb-0:last-child {
    margin-bottom: 0;
}

.gap-32 {
    gap: 32px;
}

.gap-40 {
    gap: 40px;
}

.max-w-700 {
    max-width: 700px;
}

.text-secondary {
    color: var(--slate-gray);
}

/* Brand Page Component */
.min-w-200 {
    min-width: 200px;
}

.opacity-70 {
    opacity: 0.7;
}

.text-sm {
    font-size: 0.875rem;
}

.link-underline {
    text-decoration: underline;
    color: inherit;
}

.link-underline:hover {
    text-decoration: none;
}

.pt-60 {
    padding-top: 60px;
}

.h-40 {
    height: 40px;
}

.w-auto {
    width: auto;
}

.items-center {
    align-items: center;
}

.border-top {
    border-top: 1px solid var(--soft-white);
}

.py-80 {
    padding-top: 80px;
    padding-bottom: 80px;
}

.m-0 {
    margin: 0;
}

.brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px;
    background-color: var(--white);
    border: 1px solid var(--soft-white);
    border-radius: var(--radius-large);
    transition: all var(--transition-default);
}

.brand-card:hover {
    border-color: var(--bright-royal-blue);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.brand-logo-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 15px;
    overflow: hidden;
    background-color: var(--soft-white);
}

.brand-logo {
    max-width: 100%;
    max-height: 100%;
}

.brand-initial {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--steel-gray);
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--midnight-blue);
}

.brand-meta {
    font-size: 0.9rem;
    color: var(--slate-gray);
}

.card-clean {
    border: 1px solid var(--soft-white);
    background: transparent;
}

.button-outline {
    background: transparent;
    border: 1px solid var(--silver-gray);
    color: var(--slate-gray);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.button-outline:hover {
    border-color: var(--bright-royal-blue);
    color: var(--bright-royal-blue);
}

/* 404 Page Component */
.page-404 {
    padding: 100px 0;
    text-align: center;
}

.page-404__title {
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    color: var(--bright-royal-blue);
    margin-bottom: 20px;
}

.page-404__heading {
    font-size: var(--font-h2);
    margin-bottom: 20px;
}

.page-404__text {
    font-size: var(--font-paragraph);
    color: var(--slate-gray);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Content Page Component */
.text-content {
    color: var(--midnight-blue);
    line-height: 1.8;
}

.text-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.text-content p {
    margin-bottom: 20px;
    color: var(--slate-gray);
}

.text-content ul,
.text-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
    color: var(--slate-gray);
}

.text-content li {
    margin-bottom: 10px;
}

.link-primary {
    color: var(--bright-royal-blue);
    font-weight: 600;
}

.link-primary:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: var(--midnight-blue);
    color: var(--white);
    padding: var(--spacing-s) 0;
}

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

.footer-brand-name {
    font-size: var(--font-h4);
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-copyright {
    color: var(--silver-gray);
    font-size: var(--font-paragraph-s);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-link {
    color: var(--silver-gray);
}

.footer-link:hover {
    color: var(--white);
}

/* Utilities */
.w-hidden {
    display: none !important;
}

.metrika-pixel {
    position: absolute;
    left: -9999px;
}

/* Responsive */
.w-hidden-desktop {
    display: none;
}

.burger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 5px;
}

.burger-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--midnight-blue);
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    /* hidden by default */
    opacity: 0;
    transition: opacity 0.3s;
}

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

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    background: var(--white);
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s;
}

.mobile-menu-overlay.open .mobile-menu-content {
    transform: translateX(0);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.mobile-nav-link {
    font-size: var(--font-h5);
    font-weight: 600;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
}

/* Media Queries */
@media (max-width: 991px) {
    .nav-menu {
        display: none;
    }

    .w-hidden-desktop {
        display: flex;
    }

    .burger-btn {
        display: flex;
    }

    .home-hero-grid {
        grid-template-columns: 1fr;
    }

    .home-hero-right-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

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

@media (max-width: 767px) {
    .home-hero-right-grid {
        grid-template-columns: 1fr;
    }

    .retailers-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-hero-title {
        font-size: 48px;
    }

    .stat-number-home {
        font-size: 60px;
    }
}

@media (max-width: 479px) {
    .retailers-grid-5 {
        grid-template-columns: 1fr;
    }

    .home-hero-main {
        padding: 40px 20px;
        min-height: auto;
    }

    .home-hero-title {
        font-size: 36px;
    }
}