/* ============================================
   ВсяСельхозка.рф — Unified Styles
   Corporate Industrial Minimalism
   ============================================ */

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

:root {
    --bg-primary: #09090b;
    --bg-secondary: #18181b;
    --bg-tertiary: #27272a;
    --bg-elevated: #3f3f46;
    --text-primary: #fafafa;
    --text-secondary: #d4d4d8;
    --text-muted: #a1a1aa;
    --accent: #d97706;
    --accent-hover: #b45309;
    --green: #22c55e;
    --green-dark: #15803d;
    --red: #ef4444;
    --border: #27272a;
    --border-light: #3f3f46;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --transition: 150ms ease;
    --font-heading: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; letter-spacing: -0.02em; }

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; font-size: 0.8125rem; font-weight: 600; font-family: var(--font-heading); border: none; border-radius: var(--radius-sm); cursor: pointer; transition: all var(--transition); white-space: nowrap; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-hover); }
.btn--ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn--ghost:hover { color: var(--text-primary); border-color: var(--border-light); }
.btn--full { width: 100%; }
.btn--lg { padding: 12px 28px; font-size: 0.875rem; }

/* --- Header --- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(9,9,11,0.98); border-bottom: 1px solid var(--border); }
.header::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0.3; }
.header__inner { max-width: 1120px; margin: 0 auto; padding: 0 32px; height: 56px; display: flex; align-items: center; gap: 32px; }
.header__logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header__logo-icon { width: 28px; height: 28px; }
.header__logo-text { font-family: var(--font-heading); font-size: 0.95rem; font-weight: 700; color: var(--text-primary); letter-spacing: -0.02em; }
.header__logo-domain { color: var(--accent); }
.header__nav { display: flex; align-items: center; gap: 2px; margin-left: 16px; }
.header__nav-link { padding: 6px 14px; font-size: 0.8125rem; font-weight: 500; color: var(--text-muted); border-radius: var(--radius-sm); transition: color var(--transition); }
.header__nav-link:hover { color: var(--text-primary); }
.header__nav-link--active { color: var(--green); }
.header__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.header__phone { font-size: 0.8125rem; font-weight: 500; color: var(--text-muted); }
.header__phone:hover { color: var(--green); }
.header__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.header__burger span { display: block; width: 20px; height: 1.5px; background: var(--text-primary); }

/* Mobile menu */
.mobile-menu { display: none; padding: 16px 32px 24px; border-top: 1px solid var(--border); }
.mobile-menu.active { display: block; }
.mobile-menu__nav { display: flex; flex-direction: column; margin-bottom: 16px; }
.mobile-menu__link { padding: 12px 0; font-size: 0.9375rem; font-weight: 500; color: var(--text-secondary); border-bottom: 1px solid var(--border); }
.mobile-menu__phone { display: block; text-align: center; padding: 12px; font-size: 0.9375rem; font-weight: 600; color: var(--green); margin-bottom: 12px; }

/* --- Hero --- */
.hero { padding: 80px 0 0; text-align: center; position: relative; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg-img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,9,11,0.85) 0%, rgba(9,9,11,0.7) 50%, rgba(9,9,11,0.95) 100%); z-index: 1; }
.hero__container { position: relative; z-index: 2; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.25); border-radius: 100px; font-size: 0.75rem; font-weight: 500; color: var(--green); margin-bottom: 24px; }
.hero__badge-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.5; } }
.hero__title { font-family: var(--font-heading); font-size: clamp(2rem,5vw,3.25rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; color: var(--text-primary); margin-bottom: 12px; max-width: 680px; margin-left: auto; margin-right: auto; }
.hero__subtitle { font-size: 1rem; color: var(--text-muted); max-width: 480px; margin: 0 auto 32px; line-height: 1.5; }

/* Search */
.search { display: flex; align-items: stretch; max-width: 680px; margin: 0 auto 16px; background: #fff; border-radius: var(--radius-md); overflow: hidden; height: 52px; box-shadow: 0 4px 24px rgba(0,0,0,0.3); }
.search__category { display: flex; align-items: center; gap: 8px; padding: 0 16px; border-right: 1px solid #e5e7eb; flex-shrink: 0; background: #f9fafb; }
.search__select { appearance: none; background: transparent; border: none; color: #374151; font-size: 0.8125rem; font-weight: 500; font-family: var(--font-heading); cursor: pointer; min-width: 140px; }
.search__select option { background: #fff; color: #111; }
.search__input { flex: 1; background: transparent; border: none; color: #111; font-size: 0.9375rem; padding: 0 20px; outline: none; font-family: var(--font-body); }
.search__input::placeholder { color: #9ca3af; }
.search__btn { flex-shrink: 0; border-radius: 0; padding: 0 28px; font-size: 0.875rem; height: 100%; }

.hero__quick { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.hero__quick-link { font-size: 0.8125rem; font-weight: 500; color: var(--text-secondary); transition: color 0.15s; border-bottom: 1px solid transparent; }
.hero__quick-link:hover { color: var(--green); border-bottom-color: var(--green); }

/* Hero Stats */
.hero__stats { display: flex; align-items: center; justify-content: center; gap: 48px; padding: 20px 0; border-top: 1px solid var(--border); margin-top: 48px; }
.hero__stat { text-align: center; }
.hero__stat strong { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: var(--green); }
.hero__stat-sep { width: 1px; height: 24px; background: var(--border); }

/* --- Page Hero (subpages) --- */
.page-hero { padding: 48px 0 32px; border-bottom: 1px solid var(--border); }
.page-hero__title { font-size: clamp(1.75rem,4vw,2.5rem); font-weight: 700; margin-bottom: 8px; }
.page-hero__subtitle { font-size: 0.9375rem; color: var(--text-muted); max-width: 600px; }
.page-hero__meta { display: flex; align-items: center; gap: 24px; margin-top: 16px; font-size: 0.8125rem; color: var(--text-muted); }
.page-hero__meta-item { display: flex; align-items: center; gap: 6px; }
.page-hero__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2s ease-in-out infinite; }

/* --- Bento Grid --- */
.services { padding: 48px 0; }
.bento { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.bento__card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 48px 32px; background: #18181b; transition: all 0.3s ease; position: relative; overflow: hidden; }
.bento__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.bento__card:hover .bento__bg { transform: scale(1.05); }
.bento__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24,24,27,0.7) 0%, rgba(24,24,27,0.88) 100%); transition: background 0.3s ease; z-index: 1; }
.bento__card:hover .bento__overlay { background: linear-gradient(180deg, rgba(24,24,27,0.6) 0%, rgba(24,24,27,0.82) 100%); }
.bento__card > *:not(.bento__overlay):not(.bento__bg) { position: relative; z-index: 2; }
.bento__card:hover { transform: translateY(-4px); }
.bento__icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: #fff; }
.bento__icon svg { width: 32px; height: 32px; stroke-width: 1; }
.bento__content { flex: 1; }
.bento__title { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 8px; }
.bento__desc { font-size: 0.875rem; color: #d4d4d8; line-height: 1.5; }
.bento__arrow { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 0.8125rem; font-weight: 500; color: var(--text-muted); transition: color 0.2s; }
.bento__arrow svg { width: 16px; height: 16px; transition: transform 0.2s; }
.bento__card:hover .bento__arrow { color: var(--green); }
.bento__card:hover .bento__arrow svg { transform: translateX(4px); }

/* --- Marquee --- */
.partners { padding: 40px 0; border-top: 1px solid var(--border); overflow: hidden; }
.partners__heading { text-align: center; font-family: var(--font-heading); font-size: 0.6875rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 24px; }
.marquee { overflow: hidden; mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); }
.marquee__track { display: flex; gap: 64px; animation: marquee 40s linear infinite; width: max-content; }
.marquee__item { flex-shrink: 0; font-family: var(--font-heading); font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); opacity: 0.4; white-space: nowrap; letter-spacing: 0.05em; text-transform: uppercase; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- News --- */
.news { padding: 64px 0; }
.news__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.news__heading { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.news__all { font-family: var(--font-heading); font-size: 0.8125rem; font-weight: 600; color: var(--green); }
.news__all:hover { color: var(--green-dark); }
.news__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.news-card { background: var(--bg-secondary); transition: transform 0.3s; }
.news-card:hover { transform: translateY(-4px); }
.news-card a { display: block; }
.news-card__img { width: 100%; height: 180px; object-fit: cover; background: var(--bg-tertiary); }
.news-card__body { padding: 20px; }
.news-card__date { font-family: var(--font-heading); font-size: 0.6875rem; font-weight: 600; color: var(--green); margin-bottom: 8px; }
.news-card__title { font-family: var(--font-heading); font-size: 0.875rem; font-weight: 600; color: var(--text-primary); line-height: 1.4; }

/* --- Exchange Page --- */
.exchange { padding: 32px 0 64px; }
.exchange__section { margin-bottom: 40px; }
.exchange__section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.exchange__section-title { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 600; color: var(--text-primary); }
.exchange__section-badge { font-size: 0.75rem; font-weight: 500; color: var(--text-muted); padding: 4px 10px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.price-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 16px; }
.price-card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; transition: all var(--transition); cursor: pointer; }
.price-card:hover { border-color: var(--border-light); transform: translateY(-2px); }
.price-card__header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.price-card__name { font-family: var(--font-heading); font-size: 0.9375rem; font-weight: 600; color: var(--text-primary); }
.price-card__exchange { font-size: 0.6875rem; font-weight: 500; color: var(--text-muted); padding: 2px 8px; background: var(--bg-tertiary); border-radius: var(--radius-sm); }
.price-card__value { font-family: var(--font-heading); font-size: 1.75rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.price-card__change { font-size: 0.8125rem; font-weight: 600; }
.price-card__change--up { color: var(--green); }
.price-card__change--down { color: var(--red); }
.price-card__unit { font-size: 0.75rem; color: var(--text-muted); margin-top: 8px; }
.tv-widget-container { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; min-height: 400px; }
.currency-bar { display: flex; gap: 16px; flex-wrap: wrap; padding: 16px 0; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.currency-item { display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.8125rem; }
.currency-item__label { color: var(--text-muted); }
.currency-item__value { font-weight: 600; color: var(--text-primary); }

/* --- Catalog/Elevators Page --- */
.catalog { padding: 32px 0 64px; }
.cat-tabs { display: flex; gap: var(--space-sm); flex-wrap: wrap; margin-bottom: var(--space-xl); }
.cat-tab { padding: 10px 20px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-secondary); color: var(--text-muted); font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: all var(--transition); font-family: var(--font-heading); }
.cat-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.cat-tab:hover:not(.active) { border-color: var(--accent); color: var(--accent); }
.factory-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(340px,1fr)); gap: 16px; }
.factory-card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; transition: all var(--transition); cursor: pointer; }
.factory-card:hover { border-color: var(--border-light); transform: translateY(-2px); }
.factory-card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: var(--space-sm); }
.factory-card__name { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; }
.factory-card__city { font-size: 0.8125rem; color: var(--text-muted); }
.factory-card__badge { padding: 3px 10px; border-radius: 20px; font-size: 0.6875rem; font-weight: 600; white-space: nowrap; }
.factory-card__badge--ru { background: rgba(34,197,94,0.12); color: var(--green); }
.factory-card__badge--intl { background: rgba(217,119,6,0.12); color: var(--accent); }
.factory-card__rating { display: flex; align-items: center; gap: 6px; margin-bottom: var(--space-sm); }
.factory-card__stars { color: var(--accent); font-size: 0.8125rem; }
.factory-card__spec { font-size: 0.75rem; font-weight: 600; color: var(--green); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: var(--space-xs); }
.factory-card__products { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.5; }
.factory-card__site { margin-top: var(--space-md); padding-top: var(--space-sm); border-top: 1px solid var(--border); }
.factory-card__site a { font-size: 0.8125rem; color: var(--green); }
.factory-card__site a:hover { color: var(--accent); }
.prod-list { display: none; margin-top: var(--space-md); padding-top: var(--space-md); border-top: 1px solid var(--border); }
.prod-list.open { display: block; }
.prod-item { display: flex; align-items: flex-start; gap: var(--space-sm); padding: var(--space-sm) 0; border-bottom: 1px solid var(--border); }
.prod-item:last-child { border-bottom: none; }
.prod-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; margin-top: 6px; }
.prod-name { font-size: 0.8125rem; font-weight: 600; }
.prod-desc { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; line-height: 1.4; }
.prod-toggle { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--space-sm); padding: 6px 14px; border: 1px solid rgba(34,197,94,0.3); border-radius: var(--radius-sm); background: rgba(34,197,94,0.08); color: var(--green); font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: all var(--transition); font-family: inherit; }
.prod-toggle:hover { background: rgba(34,197,94,0.15); border-color: var(--green); }

/* Factory Modal */
.factory-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); z-index: 200; display: flex; align-items: center; justify-content: center; transition: opacity var(--transition); }
.factory-modal.hidden { opacity: 0; pointer-events: none; }
.factory-modal__box { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-xl); max-width: 480px; width: 92%; position: relative; }
.factory-modal__close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); }
.factory-modal__close:hover { color: var(--text-primary); }
.factory-modal__name { font-size: 1.25rem; font-weight: 700; margin-bottom: 4px; }
.factory-modal__city { font-size: 0.875rem; color: var(--text-muted); margin-bottom: var(--space-md); }
.factory-modal__desc { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: var(--space-lg); }
.factory-modal__cta { font-size: 0.875rem; font-weight: 600; color: var(--accent); margin-bottom: var(--space-sm); }
.factory-modal__phone { display: block; font-size: 1.25rem; font-weight: 800; color: var(--accent); text-decoration: none; margin-bottom: var(--space-lg); }
.factory-modal__phone:hover { color: var(--accent-hover); }
.factory-modal__socials { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.factory-modal__socials a { flex: 1; min-width: 120px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border-radius: var(--radius-md); text-decoration: none; color: white; font-weight: 600; font-size: 0.875rem; transition: all var(--transition); }
.factory-modal__socials a:hover { transform: translateY(-2px); }
.factory-modal__wa { background: #25D366; }
.factory-modal__wa:hover { box-shadow: 0 6px 20px rgba(37,211,102,0.4); }
.factory-modal__tg { background: #0088cc; }
.factory-modal__tg:hover { box-shadow: 0 6px 20px rgba(0,136,204,0.4); }

/* --- Calendar Page --- */
.calendar { padding: 32px 0 64px; }
.calendar-filter { display: flex; align-items: center; gap: 16px; margin-bottom: var(--space-xl); flex-wrap: wrap; }
.calendar-filter__select { appearance: none; padding: 10px 16px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-primary); font-size: 0.875rem; font-family: var(--font-heading); cursor: pointer; }
.calendar-filter__select:focus { border-color: var(--green); outline: none; }
.calendar-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 16px; }
.calendar-card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; }
.calendar-card__crop { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; margin-bottom: 12px; color: var(--green); }
.calendar-card__row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.8125rem; }
.calendar-card__row:last-child { border-bottom: none; }
.calendar-card__label { color: var(--text-muted); }
.calendar-card__value { font-weight: 600; color: var(--text-primary); }

/* --- Blog Page --- */
.blog { padding: 32px 0 64px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(340px,1fr)); gap: 16px; }
.blog-card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; transition: all var(--transition); }
.blog-card:hover { border-color: var(--border-light); transform: translateY(-2px); }
.blog-card a { display: block; }
.blog-card__img { width: 100%; height: 200px; object-fit: cover; background: var(--bg-tertiary); }
.blog-card__body { padding: 20px; }
.blog-card__date { font-family: var(--font-heading); font-size: 0.6875rem; font-weight: 600; color: var(--green); margin-bottom: 8px; }
.blog-card__title { font-family: var(--font-heading); font-size: 0.9375rem; font-weight: 600; color: var(--text-primary); line-height: 1.4; }

/* --- Footer --- */
.footer { padding: 56px 0 32px; border-top: 1px solid var(--border); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer__logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-size: 0.9375rem; font-weight: 700; margin-bottom: 12px; }
.footer__about { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
.footer__phone { font-family: var(--font-heading); font-size: 0.9375rem; font-weight: 700; color: var(--green); }
.footer__col-title { font-family: var(--font-heading); font-size: 0.6875rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
.footer__link { display: block; font-size: 0.8125rem; color: var(--text-muted); padding: 3px 0; }
.footer__link:hover { color: var(--green); }
.footer__bottom { padding-top: 24px; border-top: 1px solid var(--border); text-align: center; }
.footer__bottom p { font-size: 0.75rem; color: var(--text-muted); }
.footer__disclaimer { margin-top: 6px; font-size: 0.6875rem !important; opacity: 0.5; }

/* --- Modal --- */
.modal { display: none; position: fixed; inset: 0; z-index: 200; align-items: center; justify-content: center; }
.modal.active { display: flex; }
.modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.8); }
.modal__content { position: relative; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; max-width: 420px; width: 90%; }
.modal__close { position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--text-muted); font-size: 1.25rem; cursor: pointer; }
.modal__close:hover { color: var(--text-primary); }
.modal__title { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.modal__subtitle { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 20px; }
.modal__form { display: flex; flex-direction: column; gap: 12px; }
.modal__input { padding: 12px 16px; background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-primary); font-size: 0.875rem; font-family: var(--font-body); outline: none; }
.modal__input:focus { border-color: var(--green); }
.modal__input::placeholder { color: var(--text-muted); }
.modal__textarea { min-height: 80px; resize: vertical; }
.modal__consent { text-align: center; font-size: 0.6875rem; color: var(--text-muted); opacity: 0.6; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .header__nav, .header__actions { display: none; }
    .header__burger { display: flex; margin-left: auto; }
    .mobile-menu { padding: 16px 20px 24px; }
    .hero { padding: 64px 0 0; }
    .hero__title { font-size: 1.75rem; }
    .hero__stats { gap: 24px; flex-wrap: wrap; }
    .search { flex-direction: column; height: auto; }
    .search__category { border-right: none; border-bottom: 1px solid #e5e7eb; padding: 10px 16px; }
    .search__select { width: 100%; }
    .search__input { padding: 12px 16px; }
    .search__btn { width: 100%; padding: 12px; }
    .bento { grid-template-columns: 1fr; }
    .bento__card { padding: 32px 24px; flex-direction: row; text-align: left; gap: 16px; }
    .bento__icon { margin-bottom: 0; flex-shrink: 0; }
    .bento__arrow { margin-top: 0; margin-left: auto; }
    .news__grid { grid-template-columns: 1fr; }
    .news__header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .footer__grid { grid-template-columns: 1fr; gap: 24px; }
    .price-grid { grid-template-columns: 1fr; }
    .currency-bar { gap: 8px; }
    .currency-item { flex: 1; min-width: 140px; }
    .factory-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .calendar-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .hero__stats { gap: 16px; }
    .hero__stat-sep { width: 32px; height: 1px; }
    .hero__quick { display: none; }
}

/* === CALCULATOR MODULE === */

/* -- Categories Grid -- */
.calc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.calc-cat { background: var(--bg-secondary); padding: 28px 24px; cursor: pointer; transition: all var(--transition); display: flex; flex-direction: column; gap: 12px; }
.calc-cat:hover { background: var(--bg-tertiary); transform: translateY(-2px); }
.calc-cat__icon { font-size: 1.5rem; }
.calc-cat__name { font-family: var(--font-heading); font-size: 0.9375rem; font-weight: 600; color: var(--text-primary); }
.calc-cat__meta { display: flex; gap: 16px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); font-size: 0.75rem; color: var(--text-muted); }
.calc-cat__meta span { color: var(--text-secondary); font-weight: 600; }

/* -- Series List -- */
.calc-series { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.calc-series__item { background: var(--bg-secondary); padding: 18px 24px; cursor: pointer; transition: all var(--transition); display: flex; align-items: center; justify-content: space-between; }
.calc-series__item:hover { background: var(--bg-tertiary); }
.calc-series__name { font-family: var(--font-heading); font-size: 0.9375rem; font-weight: 600; color: var(--text-primary); }
.calc-series__count { font-size: 0.8125rem; color: var(--text-muted); }
.calc-series__arrow { color: var(--text-muted); font-size: 1rem; }

/* -- Products Grid -- */
.calc-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.calc-product { background: var(--bg-secondary); padding: 16px; transition: all var(--transition); cursor: pointer; display: flex; flex-direction: column; }
.calc-product:hover { background: var(--bg-tertiary); }
.calc-product__name { font-family: var(--font-heading); font-size: 0.8125rem; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; line-height: 1.4; }
.calc-product__specs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.calc-product__spec { font-size: 0.6875rem; padding: 2px 6px; background: var(--bg-tertiary); color: var(--text-muted); border-radius: var(--radius-sm); }
.calc-product__price { font-family: var(--font-heading); font-size: 0.9375rem; font-weight: 700; color: var(--green); margin-top: auto; }
.calc-product__btn { display: block; width: 100%; margin-top: 10px; padding: 8px; background: var(--accent); color: #fff; border: none; border-radius: var(--radius-sm); font-family: var(--font-heading); font-size: 0.8125rem; font-weight: 600; cursor: pointer; transition: background var(--transition); }
.calc-product__btn:hover { background: var(--accent-hover); }

/* -- Products List View -- */
.calc-products--list { grid-template-columns: 1fr; }
.calc-products--list .calc-product { flex-direction: row; align-items: center; gap: 16px; }
.calc-products--list .calc-product__specs { margin-bottom: 0; flex: 1; }
.calc-products--list .calc-product__price { margin-top: 0; white-space: nowrap; }
.calc-products--list .calc-product__btn { width: auto; margin-top: 0; flex-shrink: 0; }

/* -- Cart Button (header) -- */
.header__cart { position: relative; background: none; border: 1.5px solid var(--accent); color: var(--accent); font-size: 1rem; padding: 6px 12px; border-radius: var(--radius-sm); cursor: pointer; transition: all var(--transition); }
.header__cart:hover { background: rgba(217,119,6,0.1); }
.header__cart-badge { position: absolute; top: -6px; right: -6px; background: var(--green); color: #fff; font-size: 0.625rem; font-weight: 700; min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }

/* -- Cart Modal -- */
.calc-cart { max-width: 560px; max-height: 80vh; overflow-y: auto; }
.calc-cart__title { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 700; margin-bottom: 16px; }
.calc-cart__empty { text-align: center; padding: 40px; color: var(--text-muted); }
.calc-cart__item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.calc-cart__item-info { flex: 1; min-width: 0; }
.calc-cart__item-name { font-family: var(--font-heading); font-size: 0.875rem; font-weight: 600; color: var(--text-primary); }
.calc-cart__item-specs { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.calc-cart__item-qty { display: flex; align-items: center; gap: 8px; }
.calc-cart__qty-btn { width: 28px; height: 28px; border: 1px solid var(--border); background: var(--bg-tertiary); color: var(--text-primary); border-radius: var(--radius-sm); cursor: pointer; font-size: 0.875rem; transition: border-color var(--transition); }
.calc-cart__qty-btn:hover { border-color: var(--accent); }
.calc-cart__qty-val { font-family: var(--font-heading); font-size: 0.875rem; font-weight: 600; min-width: 20px; text-align: center; }
.calc-cart__item-price { font-family: var(--font-heading); font-size: 0.875rem; font-weight: 700; color: var(--green); white-space: nowrap; }
.calc-cart__item-remove { background: none; border: none; color: var(--red); font-size: 1rem; cursor: pointer; padding: 4px; }
.calc-cart__total { text-align: right; font-family: var(--font-heading); font-size: 1.125rem; font-weight: 700; padding: 16px; background: rgba(34,197,94,0.06); border-radius: var(--radius-md); margin: 16px 0; }
.calc-cart__total strong { color: var(--green); }
.calc-cart__actions { display: flex; gap: 10px; }

/* -- Toast -- */
.calc-toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--green); color: #fff; padding: 10px 24px; border-radius: var(--radius-sm); font-family: var(--font-heading); font-weight: 600; font-size: 0.8125rem; opacity: 0; transition: all 0.2s; z-index: 9999; pointer-events: none; }
.calc-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* -- Breadcrumb -- */
.calc-breadcrumb { display: flex; align-items: center; gap: 8px; padding: 16px 0; font-size: 0.8125rem; color: var(--text-muted); }
.calc-breadcrumb a { color: var(--text-muted); transition: color var(--transition); }
.calc-breadcrumb a:hover { color: var(--green); }
.calc-breadcrumb__sep { opacity: 0.4; }
.calc-breadcrumb__current { color: var(--text-secondary); }

/* -- View Toggle -- */
.calc-view { display: flex; gap: 6px; padding: 8px 0 16px; }
.calc-view__btn { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-sm); width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 0.875rem; color: var(--text-muted); cursor: pointer; transition: all var(--transition); }
.calc-view__btn:hover { border-color: var(--border-light); color: var(--text-primary); }
.calc-view__btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* -- Product Modal -- */
.calc-modal { animation: modalIn 0.2s ease; }
.calc-modal__name { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.calc-modal__factory { font-size: 0.8125rem; color: var(--green); margin-bottom: 16px; }
.calc-modal__desc { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 20px; }
.calc-modal__specs h4 { font-family: var(--font-heading); font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.calc-modal__specs table { width: 100%; border-collapse: collapse; }
.calc-modal__specs tr { border-bottom: 1px solid var(--border); }
.calc-modal__specs td { padding: 8px 12px; font-size: 0.8125rem; }
.calc-modal__specs td:first-child { color: var(--text-muted); width: 40%; }
.calc-modal__specs td:last-child { color: var(--text-primary); font-weight: 500; }
.calc-modal__consult { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); text-align: center; }
.calc-modal__consult-text { font-family: var(--font-heading); font-size: 0.9375rem; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.calc-modal__consult-sub { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 16px; }
.calc-modal__consult-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

@keyframes modalIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* -- Responsive -- */
@media (max-width: 768px) {
    .calc-grid { grid-template-columns: 1fr 1fr; }
    .calc-products { grid-template-columns: 1fr 1fr; }
    .calc-products--list .calc-product { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
    .calc-grid { grid-template-columns: 1fr; }
    .calc-products { grid-template-columns: 1fr; }
}
