/* Лендинг RF PRO. Сначала стили для телефона, шире — через @media (min-width).
   Брейкпоинты: 720px (планшет), 1080px (десктоп). */

:root {
    --bg: #080808;
    --surface: #121212;
    --surface-2: #1a1a1a;
    --surface-3: #232323;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --text: #f2f2f2;
    --text-muted: #a6a6a6;
    --text-faint: #6f6f6f;
    --accent: #a2db27;
    --accent-hover: #b4ea3a;
    --accent-soft: rgba(162, 219, 39, 0.12);
    --accent-line: rgba(162, 219, 39, 0.45);
    --danger: #ff5a5a;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --header-h: 64px;
    --gutter: 16px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --font: "Unbounded", system-ui, sans-serif;
}

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

/* hidden сильнее любых display из классов (.cart-empty { display: grid } и т.п.) */
[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-weight: 300;
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
}

body.dialog-open {
    overflow: hidden;
}

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

a {
    color: var(--accent);
    text-decoration: none;
}

h1, h2, h3 {
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
}

p {
    margin: 0;
}

button {
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---------- Кнопки ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease),
        transform 0.2s var(--ease);
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--accent);
    color: #0b0b0b;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-outline {
    border-color: var(--accent-line);
    color: var(--accent);
    background: transparent;
}

.btn-outline:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
}

.btn-lg {
    min-height: 52px;
    padding: 14px 28px;
    font-size: 15px;
}

.btn-block {
    width: 100%;
}

.btn[disabled] {
    opacity: 0.6;
    cursor: progress;
}

/* ---------- Шапка ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(8, 8, 8, 0.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
        "logo . actions"
        "nav nav nav";
    align-items: center;
    column-gap: 12px;
    row-gap: 8px;
    padding-top: 10px;
}

.logo {
    grid-area: logo;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--accent);
    white-space: nowrap;
}

.site-nav {
    grid-area: nav;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 10px;
}

.site-nav::-webkit-scrollbar {
    display: none;
}

.site-nav a {
    flex: none;
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 400;
    transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.site-nav a:hover,
.site-nav a.active {
    color: #fff;
    background: var(--surface-2);
}

.header-actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-contact {
    display: none;
}

.cart-button {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--accent-line);
    background: transparent;
    cursor: pointer;
    transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.cart-button:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
}

.cart-button svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--accent);
    color: #0b0b0b;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}

.cart-count.bump {
    animation: bump 0.4s var(--ease-out);
}

@keyframes bump {
    40% { transform: scale(1.35); }
}

/* ---------- Первый экран ---------- */

.hero {
    display: grid;
    gap: 24px;
    padding-top: 32px;
    padding-bottom: 24px;
}

.hero-text {
    min-width: 0;
    display: grid;
    gap: 16px;
    justify-items: start;
}

/* «Профессиональное» — длинное слово в широком шрифте: на 320px оно влезает только при ~21px */
.hero h1 {
    font-size: clamp(20px, 6.8vw, 44px);
    hyphens: auto;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.hero p {
    color: var(--text-muted);
    font-size: clamp(14px, 3.6vw, 18px);
    max-width: 36em;
}

.hero .btn {
    margin-top: 8px;
}

.hero-media {
    position: relative;
    width: min(78%, 340px);
    aspect-ratio: 1;
    margin: 0 auto;
}

.hero-img {
    position: absolute;
    object-fit: contain;
}

.hero-img-back {
    width: 72%;
    right: 0;
    top: 0;
    opacity: 0.85;
}

.hero-img-front {
    width: 80%;
    left: 0;
    bottom: 0;
}

/* ---------- Секции ---------- */

.section {
    padding-top: 40px;
    padding-bottom: 8px;
}

.section-heading {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
}

.section-heading h2,
.content-card h2 {
    font-size: clamp(22px, 5.5vw, 34px);
}

.section-heading p {
    color: var(--text-muted);
    max-width: 44em;
}

/* ---------- Сетка товаров ----------
   Колонки «сколько поместится, но не уже 270px»: при любом числе карточек ряды ровные,
   последняя неполная строка не растягивается на всю ширину. */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
    gap: 16px;
}

.product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.product-card:hover {
    border-color: var(--accent-line);
}

/* Блок картинки фиксированной пропорции; картинка любой формы вписывается внутрь (contain),
   поэтому высокие и широкие фото не ломают высоту карточек */
.product-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: radial-gradient(circle at 50% 60%, rgba(162, 219, 39, 0.1), transparent 65%), var(--surface-2);
    border-bottom: 1px solid var(--line);
}

.product-media img {
    position: absolute;
    inset: 20px;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.6));
}

.product-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px 4px;
}

.product-category {
    color: var(--accent);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Место под два ряда названия — списки в соседних карточках начинаются на одной высоте */
.product-name {
    font-size: 17px;
    min-height: 2.4em;
    overflow-wrap: anywhere;
}

.product-highlights,
.product-details,
.check-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.product-highlights {
    display: grid;
    gap: 6px;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.45;
}

.product-highlights li,
.product-details li,
.check-list li {
    position: relative;
    padding-left: 18px;
}

.product-highlights li::before,
.product-details li::before,
.check-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.product-footer {
    padding: 16px 20px 20px;
}

.product-card-cta {
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 28px 24px;
    text-align: center;
    background: transparent;
    border-style: dashed;
    border-color: var(--accent-line);
}

.product-card-cta h3 {
    font-size: 18px;
}

.product-card-cta p {
    color: var(--text-muted);
    font-size: 14px;
}

.product-card-cta .btn {
    margin-top: 8px;
    max-width: 260px;
}

.cta-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 24px;
    font-weight: 700;
}

/* ---------- Текстовые блоки ---------- */

.content-card {
    display: grid;
    gap: 14px;
    padding: 24px 20px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    color: var(--text-muted);
}

.content-card strong {
    color: #fff;
    font-weight: 600;
}

.check-list {
    display: grid;
    gap: 10px;
    color: var(--text);
}

.contacts-list {
    display: grid;
    gap: 12px;
    margin: 4px 0 0;
}

.contacts-list div {
    display: grid;
    gap: 2px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.contacts-list div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.contacts-list dt {
    font-size: 12px;
    color: var(--text-faint);
}

.contacts-list dd {
    margin: 0;
    color: var(--text);
    overflow-wrap: anywhere;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 32px;
    padding-bottom: 32px;
    color: var(--text-faint);
    font-size: 13px;
}

/* ---------- Окна (dialog) ---------- */

.dialog {
    padding: 0;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--text);
    /* Телефон: окно на весь экран */
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    margin: 0;
    border-radius: 0;
    overflow: auto;
    overscroll-behavior: contain;
}

.dialog::backdrop {
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
}

.dialog[open] {
    animation: sheet-in 0.32s var(--ease-out);
}

.dialog[open]::backdrop {
    animation: fade-in 0.25s var(--ease);
}

@keyframes sheet-in {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}

@keyframes fade-in {
    from { opacity: 0; }
}

.dialog-close {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: var(--surface-2);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.dialog-close:hover {
    border-color: var(--accent);
    background: var(--surface-3);
}

/* Кнопка закрытия «прилипает» к верху при прокрутке и не занимает места в потоке
   (отрицательный нижний отступ = её высота + верхний отступ) */
.product-dialog > .dialog-close {
    position: sticky;
    top: 12px;
    z-index: 2;
    margin: 12px 12px -52px auto;
}

.field-label {
    display: block;
    margin: 14px 0 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.field,
.qty-input input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-strong);
    background: var(--surface-2);
    color: #fff;
    font: inherit;
    font-size: 16px; /* меньше 16px — iOS увеличивает страницу при фокусе */
    transition: border-color 0.2s var(--ease);
}

.field:focus,
.qty-input input:focus {
    outline: none;
    border-color: var(--accent);
}

.field.invalid {
    border-color: var(--danger);
}

.field-hint {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-faint);
}

.form-error {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 90, 90, 0.1);
    border: 1px solid rgba(255, 90, 90, 0.35);
    color: #ffb3b3;
    font-size: 13px;
}

/* ---------- Окно товара ---------- */

.product-dialog-grid {
    display: grid;
}

.product-dialog-info,
.product-dialog-order {
    padding: 20px;
}

.product-dialog-order {
    border-top: 1px solid var(--line);
    background: var(--surface-2);
}

.product-dialog-order h3 {
    font-size: 16px;
    margin-bottom: 12px;
}

.product-dialog-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    padding-right: 48px;
}

.product-dialog-media {
    position: relative;
    flex: none;
    width: 96px;
    height: 96px;
    border-radius: var(--radius);
    background: var(--surface-2);
}

.product-dialog-media img {
    position: absolute;
    inset: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    object-fit: contain;
}

.product-dialog-head h2 {
    font-size: 20px;
    margin-top: 4px;
    overflow-wrap: anywhere;
}

.product-details {
    display: grid;
    gap: 10px;
    color: var(--text-muted);
    font-size: 14px;
}

.rental-note {
    margin-top: 20px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface-2);
    color: var(--text-muted);
    font-size: 13px;
}

.rental-note summary {
    padding: 14px 16px;
    cursor: pointer;
    color: var(--text);
    font-weight: 500;
}

.rental-note p {
    padding: 0 16px 14px;
}

/* ---------- Календарь выбора периода ---------- */

.range-calendar {
    user-select: none;
}

.cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cal-title {
    font-weight: 500;
    font-size: 15px;
    text-transform: capitalize;
}

.cal-nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: transparent;
    font-size: 18px;
    cursor: pointer;
}

.cal-nav:hover:not(:disabled) {
    border-color: var(--accent);
}

.cal-nav:disabled {
    opacity: 0.3;
    cursor: default;
}

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

.cal-weekday {
    padding-bottom: 4px;
    text-align: center;
    font-size: 11px;
    color: var(--text-faint);
}

.cal-day {
    position: relative;
    height: 42px;
    border: 0;
    background: transparent;
    font-size: 14px;
    cursor: pointer;
}

.cal-day span {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin: 0 auto;
    border-radius: 50%;
    transition: background-color 0.15s var(--ease);
}

.cal-day:hover:not(:disabled):not(.range-start):not(.range-end) span {
    background: var(--surface-3);
}

.cal-day:disabled {
    color: var(--text-faint);
    opacity: 0.45;
    cursor: default;
}

.cal-day.other-month {
    color: var(--text-faint);
}

.cal-day.today span {
    box-shadow: inset 0 0 0 1px var(--line-strong);
}

/* Полоса диапазона под днями */
.cal-day.in-range::before,
.cal-day.range-start:not(.range-end)::before,
.cal-day.range-end:not(.range-start)::before {
    content: "";
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 0;
    right: 0;
    background: var(--accent-soft);
}

.cal-day.range-start:not(.range-end)::before {
    left: 50%;
}

.cal-day.range-end:not(.range-start)::before {
    right: 50%;
}

.cal-day.range-start span,
.cal-day.range-end span {
    background: var(--accent);
    color: #0b0b0b;
    font-weight: 600;
}

.range-summary {
    min-height: 1.6em;
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.range-summary strong {
    color: #fff;
    font-weight: 500;
}

/* ---------- Количество ---------- */

.qty-input {
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    gap: 8px;
}

.qty-input button {
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-strong);
    background: var(--surface-3);
    font-size: 20px;
    cursor: pointer;
}

.qty-input button:hover:not(:disabled) {
    border-color: var(--accent);
}

.qty-input button:disabled {
    opacity: 0.35;
    cursor: default;
}

.qty-input input {
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
}

.qty-input input::-webkit-outer-spin-button,
.qty-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-dialog-order .btn-block {
    margin-top: 16px;
}

/* ---------- Корзина ---------- */

.cart-dialog[open] {
    display: flex;
    flex-direction: column;
}

.cart-header {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.cart-header h2 {
    font-size: 18px;
}

.cart-content {
    flex: 1;
    padding: 8px 20px;
}

.cart-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cart-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.cart-item-name {
    font-weight: 500;
    color: #fff;
    overflow-wrap: anywhere;
}

.cart-item-dates {
    font-size: 13px;
    color: var(--text-muted);
}

.cart-item-remove {
    align-self: start;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: transparent;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
}

.cart-item-remove:hover {
    color: var(--danger);
    border-color: var(--danger);
}

.cart-item .qty-input {
    grid-column: 1 / -1;
    grid-template-columns: 40px 64px 40px auto;
    justify-content: start;
    align-items: center;
}

.cart-item .qty-input button {
    height: 40px;
    font-size: 18px;
}

.cart-item .qty-input input {
    min-height: 40px;
    padding: 6px;
}

.cart-item-limit {
    align-self: center;
    padding-left: 4px;
    white-space: nowrap;
    font-size: 12px;
    color: var(--text-faint);
}

.cart-empty {
    display: grid;
    justify-items: center;
    gap: 16px;
    padding: 48px 0;
    color: var(--text-muted);
    text-align: center;
}

.cart-form {
    padding: 16px 20px 24px;
    border-top: 1px solid var(--line);
    background: var(--surface-2);
}

.cart-form .btn-block {
    margin-top: 16px;
}

.cart-total {
    font-size: 14px;
    color: var(--text-muted);
}

.cart-total strong {
    color: #fff;
}

.cart-note {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-faint);
    text-align: center;
}

.cart-success {
    flex: 1;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 12px;
    padding: 40px 24px;
    text-align: center;
    color: var(--text-muted);
}

.cart-success h3 {
    font-size: 20px;
}

.cart-success .btn {
    margin-top: 12px;
}

.cart-success-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent);
    color: #0b0b0b;
    font-size: 30px;
    font-weight: 700;
}

/* ---------- Уведомления ---------- */

.toast-region {
    position: fixed;
    left: 50%;
    bottom: 16px;
    z-index: 100;
    display: grid;
    gap: 8px;
    width: min(calc(100% - 32px), 420px);
    transform: translateX(-50%);
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--accent-line);
    background: #1d1f19;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    font-size: 14px;
    pointer-events: auto;
    animation: toast-in 0.3s var(--ease-out);
}

.toast.error {
    border-color: rgba(255, 90, 90, 0.5);
    background: #2a1717;
}

.toast.leaving {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.toast button {
    flex: none;
    border: 0;
    background: none;
    color: var(--accent);
    font-weight: 500;
    cursor: pointer;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(12px); }
}

/* ======================= Планшет ======================= */

@media (min-width: 720px) {
    :root {
        --gutter: 28px;
        --header-h: 72px;
    }

    .header-contact {
        display: inline-flex;
    }

    .hero {
        padding-top: 48px;
    }

    .hero-media {
        width: min(100%, 420px);
    }

    .section {
        padding-top: 64px;
    }

    .product-grid {
        gap: 20px;
    }

    .content-card {
        padding: 36px 40px;
    }

    .contacts-list div {
        grid-template-columns: 220px 1fr;
        align-items: baseline;
    }

    /* Окна — по центру, не на весь экран */
    .dialog {
        width: min(calc(100% - 48px), 980px);
        /* fit-content, а не auto: модальный dialog растянут inset: 0 и иначе занимает всю высоту окна */
        height: fit-content;
        max-height: calc(100% - 48px);
        margin: auto;
        border-radius: var(--radius-lg);
    }

    .product-dialog-info,
    .product-dialog-order {
        padding: 28px;
    }

    .product-dialog-media {
        width: 120px;
        height: 120px;
    }

    .product-dialog-head h2 {
        font-size: 24px;
    }

    /* Корзина — выезжающая справа панель */
    .cart-dialog {
        width: min(100%, 460px);
        height: 100%;
        max-height: 100%;
        margin: 0 0 0 auto;
        border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    }

    .cart-dialog[open] {
        animation: drawer-in 0.35s var(--ease-out);
    }

    @keyframes drawer-in {
        from { transform: translateX(40px); opacity: 0; }
    }

    .toast-region {
        left: auto;
        right: 24px;
        bottom: 24px;
        transform: none;
    }
}

/* ======================= Десктоп ======================= */

@media (min-width: 1080px) {
    .header-inner {
        grid-template-columns: auto 1fr auto;
        grid-template-areas: "logo nav actions";
        min-height: var(--header-h);
        padding-top: 0;
    }

    .logo {
        font-size: 26px;
    }

    .site-nav {
        justify-content: center;
        overflow: visible;
        margin: 0;
        padding: 0;
    }

    .site-nav a {
        font-size: 14px;
    }

    .hero {
        grid-template-columns: 1.15fr 1fr;
        align-items: center;
        gap: 40px;
        min-height: min(640px, calc(100vh - var(--header-h)));
        padding-top: 24px;
    }

    .hero-media {
        width: 100%;
        max-width: 520px;
    }

    .product-dialog-grid {
        grid-template-columns: 1.1fr 1fr;
    }

    .product-dialog-order {
        border-top: 0;
        border-left: 1px solid var(--line);
    }

    .product-dialog-head {
        padding-right: 0;
    }

    .product-dialog-order {
        padding-top: 72px;
    }
}

@media (hover: hover) {
    .product-card:hover {
        transform: translateY(-3px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
