:root {
    --bg: #f6f7f9;
    --surface: #ffffff;
    --surface-soft: #eef1f5;

    --text: #111318;
    --text-soft: #6f7782;

    --primary: #1467ff;
    --primary-dark: #0c51cf;
    --accent: #00b8ff;

    --line: rgba(17, 19, 24, 0.1);

    --success: #1ca36d;
    --danger: #e95050;

    --shadow-sm: 0 12px 32px rgba(20, 28, 45, 0.08);
    --shadow-lg: 0 30px 80px rgba(20, 28, 45, 0.14);

    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 30px;

    --container: min(1200px, 92vw);
    --header-height: 82px;
}

/* =========================
   RESET
========================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    min-height: 100vh;
    font-family: "Vazirmatn", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.9;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.menu-open,
body.drawer-open,
body.search-open {
    overflow: hidden;
}

img {
    display: block;
    width: 100%;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

::selection {
    background: var(--primary);
    color: #fff;
}

/* =========================
   GENERAL
========================= */

.container {
    width: var(--container);
    margin-inline: auto;
}

.section {
    padding: 105px 0;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 800;
}

.section-kicker.light {
    color: #bcd3ff;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: clamp(2.2rem, 4vw, 4.4rem);
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.section-header h2 span {
    color: var(--primary);
}

.section-header > p {
    max-width: 560px;
    color: var(--text-soft);
}

.section-action {
    margin-top: 42px;
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 800;
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 24px rgba(20, 103, 255, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    border-color: var(--line);
    background: #fff;
    color: var(--text);
}

.btn-dark {
    background: #111318;
    color: #fff;
}

.btn-white {
    background: #fff;
    color: #111318;
}

.btn-large {
    min-height: 56px;
    padding-inline: 28px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 800;
    transition: gap 0.25s ease;
}

.text-link:hover {
    gap: 13px;
}

/* =========================
   DEMO BADGE
========================= */

.demo-badge {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 1000;
    padding: 8px 13px;
    border: 1px solid rgba(20, 103, 255, 0.15);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(14px);
    font-size: 0.76rem;
    font-weight: 800;
}

/* =========================
   HEADER
========================= */

.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 900;
    border-bottom: 1px solid transparent;
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.94);
    border-color: var(--line);
    box-shadow: 0 10px 40px rgba(18, 28, 48, 0.06);
    backdrop-filter: blur(18px);
}

.header-container {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "Inter", sans-serif;
    font-weight: 800;
    letter-spacing: 0.09em;
}

.brand-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: 0 10px 24px rgba(20, 103, 255, 0.2);
}

.brand-name {
    font-size: 1rem;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link {
    position: relative;
    padding: 10px 0;
    color: #626b76;
    font-size: 0.87rem;
    font-weight: 700;
    transition: color 0.25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 3px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--primary);
    transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-button,
.cart-button,
.mobile-menu-button {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.icon-button:hover,
.cart-button:hover,
.mobile-menu-button:hover {
    border-color: rgba(20, 103, 255, 0.25);
    background: #fff;
    transform: translateY(-1px);
}

.search-toggle {
    font-size: 1.35rem;
}

.cart-button {
    position: relative;
}

.cart-icon {
    font-size: 1rem;
}

.cart-count {
    position: absolute;
    top: -4px;
    left: -4px;
    min-width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 0.62rem;
    font-weight: 800;
}

/* =========================
   MOBILE NAV
========================= */

.mobile-menu-button {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.mobile-menu-button span {
    width: 18px;
    height: 1px;
    background: var(--text);
    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.mobile-menu-button.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-button.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
    position: fixed;
    inset: var(--header-height) 0 0 0;
    z-index: 899;
    padding: 28px 0 70px;
    background: rgba(255, 255, 255, 0.98);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;
    overflow-y: auto;
}

.mobile-nav.open {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.mobile-nav nav {
    width: min(92vw, 520px);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
}

.mobile-nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-weight: 700;
}

/* =========================
   SEARCH OVERLAY
========================= */

.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 30px;
    background: rgba(12, 15, 22, 0.85);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
    backdrop-filter: blur(16px);
}

.search-overlay.open {
    opacity: 1;
    visibility: visible;
}

.search-close {
    position: absolute;
    top: 24px;
    left: 28px;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1.5rem;
}

.search-box {
    width: min(760px, 94vw);
}

.search-label {
    display: block;
    margin-bottom: 16px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}

.search-input-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.search-input-wrap input {
    min-height: 58px;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    outline: none;
    background: #fff;
    color: var(--text);
}

.search-input-wrap button {
    min-width: 110px;
    border: 0;
    border-radius: 14px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
}

/* =========================
   HERO
========================= */

.hero {
    padding: 145px 0 90px;
    background:
        radial-gradient(circle at 15% 15%, rgba(20, 103, 255, 0.09), transparent 28%),
        radial-gradient(circle at 80% 10%, rgba(0, 184, 255, 0.08), transparent 26%),
        linear-gradient(180deg, #fbfcfe 0%, #f3f6fa 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 0.88fr 1.12fr;
    gap: 70px;
    align-items: center;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 18px;
    padding: 7px 11px;
    border: 1px solid rgba(20, 103, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 800;
}

.hero h1 {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: clamp(3rem, 6.3vw, 6.5rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.hero h1 span {
    color: var(--primary);
}

.hero-content > p {
    max-width: 650px;
    margin-top: 24px;
    color: var(--text-soft);
    font-size: 1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 28px;
    margin-top: 44px;
}

.hero-meta div {
    display: flex;
    flex-direction: column;
}

.hero-meta strong {
    font-family: "Inter", sans-serif;
    font-size: 1.2rem;
}

.hero-meta span {
    color: #89919c;
    font-size: 0.72rem;
}

.hero-product-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-lg);
}

.hero-product-image {
    min-height: 480px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        linear-gradient(145deg, #eef2f7, #f8fafc);
}

.hero-product-image img {
    height: 100%;
    object-fit: cover;
}

.hero-product-info {
    padding: 26px;
}

.product-label {
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
}

.hero-product-info h2 {
    margin: 6px 0 8px;
    font-family: "Inter", sans-serif;
    font-size: 1.6rem;
}

.hero-product-info p {
    color: var(--text-soft);
    font-size: 0.84rem;
}

.hero-product-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-top: 24px;
}

.hero-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.hero-price strong {
    font-size: 1.2rem;
}

.hero-price span {
    color: #7d8590;
    font-size: 0.7rem;
}

.hero-product-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 800;
}

/* =========================
   CATEGORIES
========================= */

.categories-section {
    background: #fff;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.category-card {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(20, 103, 255, 0.2);
    box-shadow: var(--shadow-sm);
}

.category-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #eef3ff;
    font-size: 1.25rem;
}

.category-card h3 {
    margin-bottom: 4px;
    font-size: 1rem;
}

.category-card p {
    color: var(--text-soft);
    font-size: 0.78rem;
}

.category-arrow {
    align-self: flex-end;
    color: var(--primary);
    font-weight: 800;
}

/* =========================
   PRODUCTS
========================= */

.featured-section {
    background: #f5f7fa;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.product-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}

.product-image {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: #f1f3f6;
}

.product-image img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.04);
}

.product-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
}

.product-badge.secondary {
    background: #111318;
}

.product-content {
    padding: 20px;
}

.product-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #8a929d;
    font-size: 0.68rem;
}

.product-content h3 {
    margin: 7px 0 8px;
    font-size: 1rem;
}

.product-content p {
    min-height: 52px;
    color: var(--text-soft);
    font-size: 0.78rem;
}

.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.product-price strong {
    font-size: 0.98rem;
}

.product-price span {
    color: #838b96;
    font-size: 0.66rem;
}

.add-to-cart {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 12px;
    background: #111318;
    color: #fff;
    font-size: 1.2rem;
    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.add-to-cart:hover {
    background: var(--primary);
    transform: scale(1.04);
}

/* =========================
   PROMO
========================= */

.promo-section {
    padding: 0 0 105px;
    background: #f5f7fa;
}

.promo-card {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    overflow: hidden;
    border-radius: 28px;
    background: #10131a;
    color: #fff;
}

.promo-content {
    align-self: center;
    padding: 60px;
}

.promo-label {
    color: #a9c8ff;
    font-family: "Inter", sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.promo-content h2 {
    margin: 12px 0 18px;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 1.15;
}

.promo-content h2 span {
    color: #70a5ff;
}

.promo-content p {
    max-width: 520px;
    margin-bottom: 28px;
    color: #aeb5c0;
}

.promo-visual {
    min-height: 520px;
}

.promo-visual img {
    height: 100%;
    object-fit: cover;
}

/* =========================
   BENEFITS
========================= */

.benefits-section {
    background: #fff;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
}

.benefit-item {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 18px;
    padding: 34px 28px;
    border-left: 1px solid var(--line);
}

.benefit-item:last-child {
    border-left: 0;
}

.benefit-item > span {
    color: var(--primary);
    font-family: "Inter", sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
}

.benefit-item h3 {
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.benefit-item p {
    color: var(--text-soft);
    font-size: 0.78rem;
}

/* =========================
   NEWSLETTER
========================= */

.newsletter-section {
    padding: 0 0 105px;
    background: #fff;
}

.newsletter-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
    padding: 50px;
    border-radius: 26px;
    background:
        linear-gradient(135deg, #1467ff, #00aee8);
    color: #fff;
}

.newsletter-card h2 {
    max-width: 720px;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.2;
}

.newsletter-card p {
    max-width: 600px;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.78);
}

.newsletter-form {
    min-width: 390px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.newsletter-form input {
    min-height: 54px;
    padding: 0 16px;
    border: 0;
    border-radius: 13px;
    outline: none;
}

.newsletter-form button {
    min-width: 96px;
    border: 0;
    border-radius: 13px;
    background: #111318;
    color: #fff;
    font-weight: 800;
}

/* =========================
   CART DRAWER
========================= */

.cart-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1150;
    width: min(430px, 92vw);
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 30px 0 80px rgba(15, 20, 30, 0.18);
    transform: translateX(-105%);
    transition: transform 0.35s ease;
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px;
    border-bottom: 1px solid var(--line);
}

.cart-header > div {
    display: flex;
    flex-direction: column;
}

.cart-header span {
    color: #8a929c;
    font-size: 0.72rem;
}

.cart-header strong {
    font-size: 1rem;
}

.cart-close {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    font-size: 1.3rem;
}

.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 22px;
}

.empty-cart {
    min-height: 330px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.empty-cart > span {
    font-size: 2rem;
}

.empty-cart strong {
    margin-top: 12px;
}

.empty-cart p {
    margin-top: 5px;
    color: var(--text-soft);
    font-size: 0.8rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 68px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.cart-item-image {
    width: 68px;
    height: 68px;
    overflow: hidden;
    border-radius: 12px;
    background: #f1f3f6;
}

.cart-item-image img {
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
}

.cart-item-info strong {
    font-size: 0.78rem;
}

.cart-item-info span {
    color: var(--text-soft);
    font-size: 0.68rem;
}

.cart-item-remove {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: #f5f6f8;
    color: var(--danger);
}

.cart-footer {
    padding: 18px 22px 24px;
    border-top: 1px solid var(--line);
}

.cart-footer .btn {
    width: 100%;
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(10, 13, 19, 0.46);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* =========================
   TOAST
========================= */

.toast {
    position: fixed;
    right: 18px;
    bottom: 76px;
    z-index: 1300;
    max-width: min(360px, 90vw);
    padding: 12px 16px;
    border-radius: 12px;
    background: #111318;
    color: #fff;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;
    font-size: 0.8rem;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: none;
}

/* =========================
   FOOTER
========================= */

.footer {
    padding: 72px 0 24px;
    background: #0f1218;
    color: #fff;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand p {
    max-width: 350px;
    margin-top: 18px;
    color: #8e96a2;
    font-size: 0.8rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-column h3 {
    margin-bottom: 9px;
    font-size: 0.82rem;
}

.footer-column a {
    color: #929aa6;
    font-size: 0.76rem;
    transition: color 0.25s ease;
}

.footer-column a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #737b87;
    font-size: 0.72rem;
}

.demo-note {
    max-width: 470px;
}

/* =========================
   BACK TO TOP
========================= */

.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 850;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #111318;
    color: #fff;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: none;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1050px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-button {
        display: flex;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .promo-card,
    .newsletter-card {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        min-width: 0;
        max-width: 600px;
    }

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    :root {
        --header-height: 72px;
    }

    .section {
        padding: 82px 0;
    }

    .header-container {
        gap: 10px;
    }

    .brand-name {
        font-size: 0.86rem;
    }

    .hero {
        padding: 120px 0 72px;
    }

    .hero h1 {
        font-size: clamp(2.7rem, 12vw, 4.6rem);
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-meta {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .hero-product-image {
        min-height: 360px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .products-grid,
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .promo-content {
        padding: 38px 24px;
    }

    .promo-visual {
        min-height: 360px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .benefit-item {
        border-left: 0;
        border-bottom: 1px solid var(--line);
    }

    .benefit-item:last-child {
        border-bottom: 0;
    }

    .newsletter-card {
        padding: 34px 22px;
    }

    .newsletter-form {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .demo-badge {
        bottom: 72px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 92vw;
    }

    .brand-name {
        display: none;
    }

    .header-actions {
        gap: 6px;
    }

    .icon-button,
    .cart-button,
    .mobile-menu-button {
        width: 40px;
        height: 40px;
    }

    .hero-product-info {
        padding: 20px;
    }

    .hero-product-bottom,
    .product-bottom {
        align-items: flex-start;
    }

    .search-input-wrap {
        grid-template-columns: 1fr;
    }

    .search-input-wrap button {
        min-height: 52px;
    }

    .product-image {
        height: 270px;
    }

    .promo-visual {
        min-height: 280px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}