/*
  Базовая типографика и переменные темы
  Комментарии на русском согласно правилам пользователя
*/
:root {
    --bg: #ffffff;
    --text: #312c2d;
    --muted: rgba(0, 0, 0, 0.5);
    --border: #e5e7eb;
    --brand: #851811;
    --brand-hover: rgba(133, 24, 17, 0.2);
    --brand-contrast: #a22a22;
    --radius: 10px;
    --container: 1480px;
}

/* Fallback: до инициализации JS показываем только первые 3 слайда */
.stories:not(.is-ready) .stories-track > .stories-slide:nth-child(n + 4) {
    display: none;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family:
            "Commissioner",
            Inter,
            system-ui,
            -apple-system,
            Segoe UI,
            Roboto,
            Arial,
            "Noto Sans",
            "Apple Color Emoji",
            "Segoe UI Emoji";
    -webkit-tap-highlight-color: transparent;
}
html {
    height: 100%;
}
body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    line-height: 110%;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

main {
    margin-top: 120px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
}

/* ДЕКОРАТИВНЫЙ ФОН: ромб-прямоугольник на фоне сайта */
body {
    position: relative;
}
.site-bg-rect {
    position: absolute;
    top: 1100px; /* как в макете */
    left: -380px;
    width: 1064px;
    height: 1074px;
    transform: rotate(-45deg);
    background: #f9f7f7; /* светлый фон, как в макете секций */
    border-radius: 120px;
    pointer-events: none;
    z-index: 0;
}
.site-header,
main,
.site-footer {
    z-index: 1;
}
@media (max-width: 1100px) {
    .site-bg-rect {
        width: 800px;
        height: 820px;
        top: 780px;
    }
}
@media (max-width: 768px) {
    .site-bg-rect {
        display: none;
    }
}

/*
  ШАПКА
*/
.site-header {
    position: fixed;
    width: 100%;
    top: 0;
    background: #fff;
    z-index: 50;
    padding: 40px 0;
    box-shadow: 6.56px 7.38px 24.61px rgba(0, 0, 0, 0.12);
}
.header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 60px;
}

.logo img {
    display: block;
    height: 39px;
    width: auto;
}

/* Бургер-меню (кнопка) */
.burger-btn {
    display: none; /* показываем на мобильных ниже */
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.burger-box {
    position: relative;
    display: inline-block;
    width: 28px;
    height: 2px;
}
.burger-inner {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    width: 28px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transform: translateY(-50%);
}
.burger-inner::before,
.burger-inner::after {
    content: "";
    position: absolute;
    left: 0;
    width: 28px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition:
            transform 0.2s ease,
            opacity 0.2s ease;
}
.burger-inner::before {
    top: -8px;
}
.burger-inner::after {
    top: 8px;
}
.burger-btn.is-active .burger-inner {
    background: transparent;
}
.burger-btn.is-active .burger-inner::before {
    transform: translateY(8px) rotate(45deg);
}
.burger-btn.is-active .burger-inner::after {
    transform: translateY(-8px) rotate(-45deg);
}

/* Мобильное меню (выпадашка под шапкой) */
.mobile-menu {
    top: 100%;
    position: absolute;
    width: 100%;
    z-index: 45; /* ниже шапки, выше контента */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}
.mobile-menu__backdrop {
    display: none;
}
.mobile-menu__panel {
    background: #fff;
    border-top: 1px solid var(--border);
    border: 1px solid var(--border);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
    border-radius: 0 0 16px 16px;
    position: relative;
    padding: 8px; /* внутренние отступы контейнера */
    transform: translateY(-8px);
    opacity: 0;
    transition:
            transform 0.25s ease,
            opacity 0.25s ease;
    backdrop-filter: saturate(1.1);
}
.mobile-menu__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}
.mobile-menu__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-menu__list {
    list-style: none;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-height: 60vh; /* если ссылок много — отдельная прокрутка */
    overflow-y: auto;
}
.mobile-menu__list a {
    display: block;
    padding: 14px 14px;
    border-radius: 12px;
    font-size: 18px;
    line-height: 1.2;
    color: var(--text);
    transition:
            background-color 0.2s ease,
            color 0.2s ease,
            box-shadow 0.2s ease;
}
.mobile-menu__list a:hover {
    background: var(--brand-hover);
}
.mobile-menu__list a:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px rgba(133, 24, 17, 0.15);
}
.mobile-menu.is-open {
    max-height: 60vh; /* раскрываем */
}
.mobile-menu.is-open .mobile-menu__panel {
    transform: translateY(0);
    opacity: 1;
}

.main-nav ul {
    display: flex;
    gap: 20px;
}
.main-nav a {
    color: var(--text);
    font-size: 20px;
}
.main-nav a:hover {
    color: var(--brand);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.icon-btn {
    border: none;
    background: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.icon-btn svg {
    width: 100%;
    height: 100%;
    display: block;
}

.icon-btn:hover svg path {
    stroke: var(--brand);
}

/*
  КОНТЕНТ
*/
.stub {
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 24px;
    background: #fafafa;
}

/*
  HERO-СЛАЙДЕР
*/
.hero-slider {
    position: relative;
    min-height: 763px; /* высота области слайдера на десктопе */
    overflow: hidden;
}
.hero-slide {
    position: absolute; /* складываем слайды друг на друга */
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    width: 100%;
    background: #fff;
    opacity: 0;
    transition: opacity 0.5s ease;

    background-size: contain;
    background-position: left;
    background-repeat: no-repeat;
}

.hero-slide .container {
    position: relative;
    height: 100%;
}
.hero-slide.is-active {
    opacity: 1;
}

.hero-diamond {
    position: absolute;
    right: -770px;
    top: 50%;
    width: 1282px;
    height: 1361px;
    background: #f9f7f7;
    border-radius: 120px;
    transform: translateY(-50%) rotate(-145deg);
    z-index: 1;
    pointer-events: none;
}

.hero-diamond::after {
    content: "";
    position: absolute;
    left: -99vw;
    top: 0;
    width: 110vw;
    height: 160%;
    background-color: #f9f7f7;
    z-index: -1;
}

.hero-content {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 587px;
    padding: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
    text-align: right;
}

.hero-content__inner {
    width: 100%;
}

.hero-title {
    color: var(--brand);
    font-size: 80px;
    line-height: 90%;
    font-weight: 500;
    margin-bottom: 40px;
}
.hero-desc {
    color: var(--text);
    font-size: 24px;
    line-height: 1.1;
}

/* пагинация-точки */
.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 45px;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 5;
}
.hero-dot {
    width: 20px;
    height: 20px;
    border-radius: 100%;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.2);
    cursor: pointer;
}
.hero-dot[aria-current="true"] {
    background: var(--brand);
    border-color: var(--brand);
}

@media (max-width: 1600px) {
    .hero-slide {
        background-size: cover;
    }
}

@media (max-width: 1100px) {
    .hero-slider {
        min-height: 560px;
    }
    .hero-slide {
        grid-template-columns: 1fr;
    }
    .hero-diamond {
        right: -750px;
        width: 1000px;
        height: 1100px;
    }
    .hero-content {
        width: 270px;
    }
    .hero-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        right: 10px;
    }
}

@media (max-width: 640px) {
    .hero-slider {
        min-height: unset;
        height: 350px;
    }
    .hero-diamond {
        right: -650px;
        width: 800px;
        height: 850px;
    }
    .hero-content {
        width: 170px;
    }
    .hero-dots {
        bottom: 10px;
        gap: 15px;
    }

    .hero-dot {
        width: 15px;
        height: 15px;
    }
    .hero-title {
        font-size: 26px;
    }

    .hero-desc {
        font-size: 16px;
    }
}

@media (max-width: 550px) {
    .hero-slide {
        background-position-x: -100px;
    }

    .hero-diamond {
        width: 750px;
        height: 800px;
    }

    .hero-title {
        font-size: 18px;
        max-width: 110px;
        margin-left: auto;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .hero-slide {
        background-position-x: -200px;
    }

    .hero-slider {
        height: 300px;
    }

    .hero-desc {
        font-size: 14px;
    }
}

/* ВТОРОЙ БЛОК: философия */
.philosophy {
    position: relative;
    z-index: 1;
}

.philosophy .mob {
    display: none;
}

.philosophy-text {
    font-family:
            "Commissioner",
            Inter,
            system-ui,
            -apple-system,
            Segoe UI,
            Roboto,
            Arial;
    font-weight: 500;
    font-size: 70px;
    line-height: 1;
    text-align: center;
    color: var(--text);
}
.philosophy-title {
    font-family:
            "Commissioner",
            Inter,
            system-ui,
            -apple-system,
            Segoe UI,
            Roboto,
            Arial;
    font-weight: 500;
    font-size: 60px;
    line-height: 1;
    text-align: center;
    color: var(--text);
    margin-bottom: 40px;
}

.philosophy-title br {
    display: none;
}
.philosophy-sub {
    font-family:
            "Commissioner",
            Inter,
            system-ui,
            -apple-system,
            Segoe UI,
            Roboto,
            Arial;
    font-size: 40px;
    line-height: 1;
    text-align: center;
    color: var(--text);
    margin-bottom: 40px;
}
.philosophy-sub:last-child {
    margin-bottom: 0;
}

.philosophy-sub br.mobile-br {
    display: none;
}

@media (max-width: 1024px) {
    .philosophy-text {
        font-size: 48px;
    }
    .philosophy-title {
        font-size: 48px;
    }
    .philosophy-sub {
        font-size: 20px;
    }
}
@media (max-width: 640px) {
    .philosophy-text {
        font-size: 34px;
    }
    .philosophy-title {
        font-size: 34px;
    }
    .philosophy-sub {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .philosophy-sub br.mobile-br {
        display: block;
    }

    .philosophy-sub br:not(.mobile-br) {
        display: none;
    }

    .philosophy-title br {
        display: block;
    }

    .philosophy .mob {
        display: block;
    }

    .philosophy > .container:not(.mob) {
        display: none;
    }
}

/* Навіны */
.news-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 40px;
}
.news-title {
    font-size: 60px;
    line-height: 110%;
    font-weight: 500;
}
.news-more {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 290px; /* размеры из SVG */
    height: 82px;
    color: var(--brand);
    font-size: 28px;
    font-weight: 500;
    line-height: 1;
}
.news-more .news-more-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* чтобы клик шел по ссылке */
    fill: white;
    transition: fill 0.3s ease;
}

.news-more__inner {
    display: flex;
    align-items: center;
    gap: 47px;
}
.news-more__label,
.news-more__arrow {
    position: relative;
    z-index: 1;
    font-size: clamp(16px, 4vw, 24px);
}
.news-more__arrow {
    display: flex;
    align-items: end;
}
.news-more:hover .news-more-bg {
    fill: var(--brand-hover) !important;
}

.news-list {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.news-card {
    display: grid;
    grid-template-columns: 3.2fr 3.6fr;
    gap: 12px;
    background: #f9f7f7;
    border-radius: 20px;
    min-height: 400px;
    max-width: 692px;
    width: 100%;
}
.news-media {
    border-radius: 20px;
    overflow: hidden;
    background: #f3f4f6;
}
.news-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.news-body {
    display: flex;
    flex-direction: column;
    padding: 16px;
}
.news-card__title {
    font-size: 24px;
    line-height: 110%;
    font-weight: 400;
    margin-bottom: 30px;
}
.news-card__excerpt {
    color: #5a5a5a;
    font-size: 20px;
    line-height: 110%;
    margin-bottom: 10px;
}
.news-card__footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}
.news-card__footer time {
    color: #868686;
    font-size: 20px;
}
.news-like {
    border: none;
    background: none;
    cursor: pointer;
    width: 71px;
    height: 71px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.news-like {
    display: block;
}
.news-like svg rect {
    transition: fill 0.3s ease;
}
.news-like:hover svg rect {
    fill: rgba(133, 24, 17, 0.1);
}

.news-like.is-active svg rect {
    fill: var(--brand);
}

.news-like.is-active svg path {
    fill: white;
}

.news-like.is-active svg path:last-child {
    stroke: white;
}

@media (max-width: 1300px) {
    .news-list {
        flex-direction: column;
    }

    .news-card {
        max-width: unset;
    }
}

@media (max-width: 900px) {
    .news-card__title {
        font-size: 30px;
    }
}

@media (max-width: 760px) {
    .news-title {
        font-size: 36px;
    }
    .news-list {
        grid-template-columns: 1fr;
    }
    .news-card {
        grid-template-columns: 1fr;
    }

    .news-card__title {
        margin-bottom: 15px;
    }

    .news-head {
        margin-bottom: 20px;
    }

    .news-more {
        width: 170px;
        height: 50px;
    }

    .news-more__inner {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .news-card__title {
        font-size: 17px;
        font-weight: 600;
    }
    .news-card__excerpt {
        font-size: 16px;
    }

    .news-card__footer time {
        font-size: 16px;
    }
}

/* Кнопка лайка в сторис (правый нижний угол) */
.stories-like {
    width: calc(70px * var(--stories-scale));
    height: calc(70px * var(--stories-scale));
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 5;
    border: none;
    background: transparent;
    padding: 0;
    line-height: 0;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.stories-slide.is-center .stories-like {
    right: calc(40px * var(--stories-scale));
    bottom: calc(40px * var(--stories-scale));
}

.stories-like img {
    position: static !important;
    width: 100% !important;
    height: 100% !important;
}
.stories-like:hover {
    transform: scale(1.03);
}
.stories-like:active {
    transform: scale(0.98);
}

@media (max-width: 768px) {
    .stories-like img {
        width: 56px;
        height: 57px;
    }
}

/* SOCIAL (stories) */
.social-section {
    background-color: #f9f7f7;
}

.social-section .container {
    max-width: 1720px;
}

.social-title {
    font-size: 60px;
    font-weight: 500;
    line-height: 110%;
    text-align: center;
    margin-bottom: 40px;
}
.social-title br {
    display: none;
}

@media (max-width: 768px) {
    .social-title {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .social-title br {
        display: block;
    }
}
.stories {
    position: relative;
    display: grid;
    grid-template-columns: 100px 1fr 100px;
    align-items: center;
    gap: 21px;
    /* Масштаб для адаптива: переопределяется в медиа-запросах */
    --stories-scale: 1;
}
.stories-viewport {
    overflow: hidden;
    position: relative;
    /* Центрируем трек в пределах viewport, чтобы на широких экранах не было смещения */
    display: flex;
    justify-content: center;
}

/* Кнопка лайка в сторис (правый нижний угол) */
.stories-like {
    width: calc(70px * var(--stories-scale));
    height: calc(70px * var(--stories-scale));
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 5;
    border: none;
    background: transparent;
    padding: 0;
    line-height: 0;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.stories-slide.is-center .stories-like {
    right: calc(40px * var(--stories-scale));
    bottom: calc(40px * var(--stories-scale));
}

.stories-like img {
    position: static !important;
    width: 100% !important;
    height: 100% !important;
}
.stories-like:hover {
    transform: scale(1.03);
}
.stories-like:active {
    transform: scale(0.98);
}

/* Кнопка воспроизведения видео в сторис */
.stories-slide .stories-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    z-index: 15;
    width: calc(100px * var(--stories-scale));
    height: calc(100px * var(--stories-scale));
    border: 8px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
            opacity 300ms,
            transform 300ms;
}

.stories-slide .stories-play::after {
    margin-left: 6px;
    content: "";
    display: block;
    border-left: calc(28px * var(--stories-scale)) solid
    rgba(255, 255, 255, 0.5);
    border-top: calc(21px * var(--stories-scale)) solid transparent;
    border-bottom: calc(21px * var(--stories-scale)) solid transparent;
    border-radius: 3px;
}

.stories-slide .stories-play::before {
    display: none;
    content: "";
    box-sizing: border-box;
    width: calc(32px * var(--stories-scale));
    height: calc(32px * var(--stories-scale));
    border-left: calc(8px * var(--stories-scale)) solid rgba(255, 255, 255, 0.5);
    border-right: calc(8px * var(--stories-scale)) solid
    rgba(255, 255, 255, 0.5);
}

.stories-slide .stories-play:hover {
    transform: translateX(-50%) translateY(-50%) scale(1.05);
}

.stories-slide .stories-play.is-playing {
    opacity: 0;
    pointer-events: none;
}

.stories-slide:hover .stories-play.is-playing {
    opacity: 1;
    pointer-events: auto;
}

.stories-slide.play .stories-play::before {
    display: block;
}

.stories-slide.play .stories-play::after {
    display: none;
}

/* Скрываем браузерные контролы видео на боковых слайдах */
.stories-slide:not(.is-center) video::-webkit-media-controls {
    display: none !important;
}
.stories-slide:not(.is-center) video::-webkit-media-controls-enclosure {
    display: none !important;
}
.stories-slide:not(.is-center) video::-webkit-media-controls-panel {
    display: none !important;
}

@media (max-width: 850px) {
    .social-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .stories-like img {
        width: 56px;
        height: 57px;
    }
}

.stories-track {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex: 0 0 1;
}
.stories-slide {
    position: relative;
    border-radius: 40px;
    width: calc(394px * var(--stories-scale));
    height: calc(701px * var(--stories-scale));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.stories-slide.has-video {
    cursor: pointer;
}
.stories-slide img:first-of-type,
.stories-slide video:first-of-type {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
}
.stories-slide.is-center {
    width: calc(456px * var(--stories-scale));
    height: calc(844px * var(--stories-scale));
    border-radius: 50px;
    overflow: visible;
}

.stories-slide.is-center::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(50px * var(--stories-scale));
    transform: translateX(-50%);
    width: calc(136px * var(--stories-scale));
    height: calc(4px * var(--stories-scale));
    border-radius: 4px;
    background: white;
    overflow: hidden;
    z-index: 3;
}
.stories-slide.is-center::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    z-index: 4;
    background-image: url("./img/device.png");
    background-size: contain;
}
.stories-slide.is-center img:first-child,
.stories-slide.is-center video:first-of-type {
    /* Вписываем изображение/видео в экран устройства пропорционально контейнеру */
    width: calc(405px * var(--stories-scale));
    height: calc(798px * var(--stories-scale));
    object-fit: cover;
}
.stories-nav {
    width: 100px;
    height: 100px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    transition:
            transform 0.2s ease,
            box-shadow 0.2s ease;
}
.stories-nav img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.stories-nav.prev img {
    transform: rotate(180deg);
}
.stories-nav:hover {
    transform: scale(1.03);
}
.stories-nav:active {
    transform: scale(0.98);
}
.stories-nav:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 4px;
}

@media (max-width: 1630px) {
    .stories-track {
        justify-content: center;
        width: unset;
    }
}

@media (max-width: 800px) {
    /* На ширине ≤800px показываем только центральный слайд */
    .stories-track .stories-slide:not(.is-center) {
        display: none;
    }
}
@media (max-width: 900px) {
    .stories-track {
        gap: 16px;
    }
}
@media (max-width: 640px) {
    .social-title {
        font-size: 28px;
    }

    .stories {
        grid-template-columns: 48px 1fr 48px;
    }
    .stories-nav {
        width: 48px;
        height: 48px;
    }
    .stories-track {
        gap: 12px;
    }
}

/* Адаптивное масштабирование Stories (без изменения размеров блоков) */
@media (max-width: 1600px) {
    .stories {
        --stories-scale: 0.9;
    }
}
@media (max-width: 1500px) {
    .stories {
        --stories-scale: 0.8;
    }
}
@media (max-width: 1400px) {
    .stories {
        --stories-scale: 0.65;
    }
}
@media (max-width: 1200px) {
    /* Показываем один центральный слайд и слегка уменьшаем масштаб */
    .stories {
        --stories-scale: 0.85;
    }
    .stories-track .stories-slide:not(.is-center) {
        display: none;
    }
    .stories-viewport {
        justify-content: center;
    }
}
@media (max-width: 1000px) {
    .stories {
        --stories-scale: 0.8;
    }
}
@media (max-width: 768px) {
    .stories {
        --stories-scale: 0.75;
    }
}

@media (max-width: 580px) {
    .stories {
        --stories-scale: 0.65;
    }

    .stories-like {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .stories {
        --stories-scale: 0.53;
        gap: 15px;
    }
}

@media (max-width: 420px) {
    .stories {
        --stories-scale: 0.52;
    }
}

@media (max-width: 390px) {
    .stories {
        --stories-scale: 0.48;
        /* --stories-scale: 0.45; */
    }
}

@media (max-width: 375px) {
    .stories {
        --stories-scale: 0.47;
        /* --stories-scale: 0.44; */
    }
}

@media (max-width: 370px) {
    .stories {
        --stories-scale: 0.44;
        /* --stories-scale: 0.41; */
    }
}

@media (max-width: 360px) {
    .stories {
        --stories-scale: 0.4;
        /* --stories-scale: 0.37; */
    }
}

/* КАРТА */
.map {
    padding-top: 80px;
    min-height: 655px;
}
.map__wrap > div {
    display: grid;
    grid-template-columns: 437px 1fr;
    gap: 20px;
}
.map__sidebar {
    background: #f9f7f7;
    border-radius: 20px;
    padding: 40px 30px;
}
.map__title {
    font-size: 60px;
    line-height: 110%;
    font-weight: 500;
    margin-bottom: 40px;
}
.map__form {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.map__group {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.map__label {
    display: grid;
    gap: 16px;
    font-size: 20px;
    line-height: 110%;
    color: var(--text);
    position: relative;
}
.input {
    position: relative;
    display: flex;
    align-items: center;
    padding: 16px 18px;
    background: transparent;
    border: none;
    min-height: 72px;
}
.input .input-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.input:hover .input-bg path {
    stroke: var(--brand-contrast);
}
.input input,
.input select {
    position: relative;
    z-index: 1;
    width: 100%;
    border: none;
    outline: none;
    font-size: 20px;
    background: transparent;
}
.input select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.input__suffix {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text);
    transition: transform 0.2s ease;
}
.map__group
.custom-select:has(.select-menu[style*="display: block"])
.input__suffix {
    transform: rotate(180deg);
}
.input__suffix img {
    display: block;
    width: 32px;
    height: 32px;
}
.input--select {
    cursor: pointer;
}
.input--select .input__suffix img {
    width: 32px;
    height: 33px;
}

/* Кастомный select */
.custom-select {
    position: relative;
    z-index: 1;
    width: 100%;
}
.select-toggle {
    pointer-events: none;
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
}
.select-value {
    font-size: 20px;
}
.select-menu,
.autocomplete-suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    display: none;
    max-height: 260px;
    overflow: auto;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    z-index: 2;
}

.select-menu::-webkit-scrollbar,
.autocomplete-suggestions::-webkit-scrollbar {
    width: 6px;
}

.select-menu::-webkit-scrollbar-track,
.autocomplete-suggestions::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
    margin-top: 8px;
    margin-bottom: 8px;
}

.select-menu::-webkit-scrollbar-thumb,
.autocomplete-suggestions::-webkit-scrollbar-thumb {
    background: #a0a0a0;
    border-radius: 10px;
}

.select-menu::-webkit-scrollbar-thumb:hover,
.autocomplete-suggestions::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}
.custom-select.is-open .select-menu {
    display: block;
}
.select-menu li,
.autocomplete-suggestion {
    list-style: none;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.autocomplete-suggestions {
    left: 50%;
    transform: translateX(-50%);
    width: 90% !important;
    top: calc(100% - 8px);
}
.select-menu li[aria-selected="true"] {
    background: rgba(133, 24, 17, 0.08);
    color: var(--brand);
}
.select-menu li:hover,
.select-menu li:focus,
.autocomplete-suggestion:hover,
.autocomplete-suggestion:focus {
    background: #f3f4f6;
    outline: none;
}

@media (max-width: 1100px) {
    .select-menu {
        top: calc(100% + 6px);
    }
}
.legend__title {
    margin-bottom: 30px;
    font-size: 30px;
    line-height: 110%;
}
.legend__actions {
    display: flex;
    gap: 20px;
}
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    height: 51px;
    width: 178px;
    border: none;
    background: transparent;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
}
.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
}
.btn > * {
    position: relative;
}
.btn--primary {
    color: var(--text);
    transition: filter 0.3s ease;
}
.btn--primary::before {
    /* Filled orange shape (178x52) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 178 52'%3E%3Cpath d='M10.6119 1.41425L0 11.7768V41.4421L10.6119 51.8047L167.188 51.3983L178 40.8326V11.5736L167.188 0.804688L10.6119 1.41425Z' fill='%23FF7800'/%3E%3C/svg%3E");
}
.btn--primary:hover {
    filter: brightness(0.95);
}
.btn--ghost {
    opacity: 0.4;
    color: var(--text);
    transition: opacity 0.3s ease;
}
.btn--ghost::before {
    /* Outlined shape (180x54) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 54'%3E%3Cpath d='M11.6119 2.41425L1 12.7768V42.4421L11.6119 52.8047L168.188 52.3983L179 41.8326V12.5736L168.188 1.80469L11.6119 2.41425Z' fill='none' stroke='%23312C2D' stroke-width='2'/%3E%3C/svg%3E");
}

@media (hover: hover) and (pointer: fine) {
    .btn--ghost:hover {
        opacity: 1;
    }

    .btn--ghost:hover::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 178 52'%3E%3Cpath d='M10.6119 1.41425L0 11.7768V41.4421L10.6119 51.8047L167.188 51.3983L178 40.8326V11.5736L167.188 0.804688L10.6119 1.41425Z' fill='%23FF7800'/%3E%3C/svg%3E");
    }
}

.map__canvas {
    width: 100%;
    min-height: 655px;
    border-radius: 20px;
    overflow: hidden;
}
.ymaps-2-1-79-map {
    height: 655px !important;
}
.leaflet-container {
    height: 100%;
}
.mg-marker__diamond {
    display: inline-block;
    width: 28px;
    height: 28px;
    transform: rotate(45deg);
    border-radius: 6px;
    background: #fff;
    border: 3px solid var(--brand);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.ym-marker__diamond {
    display: inline-block;
    width: 28px;
    height: 28px;
    transform: rotate(45deg);
    border-radius: 6px;
    background: #fff;
    border: 3px solid var(--brand);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

@media (max-width: 1100px) {
    .map__wrap > div {
        grid-template-columns: 1fr;
    }
    .map__sidebar {
        order: 2;
        padding: 15px;
    }

    .map__title br {
        display: none;
    }

    .map__label {
        max-width: 377px;
        width: 100%;
    }
    .map__group {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .map__label svg {
        width: calc(100% - 4px) !important;
    }

    .map__title {
        font-size: 48px;
    }

    .map__form {
        gap: 30px;
    }

    .map__group {
        gap: 15px;
    }

    .map__label {
        gap: 8px;
        font-size: 16px;
    }

    .map__canvas {
        min-height: 360px;
    }

    .ymaps-2-1-79-map {
        height: 360px !important;
    }

    .map {
        margin-top: 50px;
    }
}

@media (max-width: 480px) {
    .legend__actions {
        gap: 10px;
        flex-wrap: wrap;
    }

    .map__title {
        font-size: 32px;
        margin-bottom: 20px;
    }
}

/* ПРОПОЗАЛЫ */
.proposals {
    margin-top: 120px;
    position: relative;
    overflow: hidden;
    padding-bottom: 80px;
    min-height: 926px;
}

.proposals .container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    z-index: 1;
}
.proposals-title {
    font-size: 60px;
    line-height: 110%;
    font-weight: 500;
}

/* Декоративные квадраты-ромбы (div) */
.proposals-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    top: 0;
    pointer-events: none;
}
.diamond {
    position: absolute;
    width: 1200px;
    height: 1200px;
    background: #f9f7f7;
    border-radius: 120px;
    transform: rotate(-45deg);
}
.diamond.d1 {
    top: 430px;
    right: 180px;
}
.diamond.d2 {
    width: 1050px;
    height: 1050px;
    top: 1500px;
    left: -760px;
}
.diamond.d3 {
    top: 2400px;
    left: 50%;
    transform: translateX(-50%) rotate(-45deg);
}

@media (max-width: 1450px) {
    .diamond {
        width: 900px;
        height: 900px;
    }
    .diamond.d1 {
        top: 800px;
        right: -720px;
    }
    .diamond.d2 {
        width: 820px;
        height: 820px;
        left: -340px;
    }
    .diamond.d3 {
        width: 650px;
        height: 650px;
        bottom: -140px;
    }
}

@media (max-width: 1100px) {
    .diamond {
        width: 750px;
        height: 750px;
    }
    .diamond.d1 {
        top: 750px;
        right: -650px;
    }
    .diamond.d2 {
        width: 650px;
        height: 650px;
        top: 1400px;
        left: -320px;
    }
    .diamond.d3 {
        width: 550px;
        height: 550px;
        bottom: -120px;
    }
}

@media (max-width: 800px) {
    .proposals-bg {
        display: none;
    }
    .diamond {
        width: 520px;
        height: 520px;
    }
    .diamond.d1 {
        top: 680px;
        right: -520px;
    }
    .diamond.d2 {
        width: 480px;
        height: 480px;
        top: 1300px;
        left: -260px;
    }
    .diamond.d3 {
        width: 420px;
        height: 420px;
        bottom: -80px;
    }
}

@media (max-width: 480px) {
    .diamond {
        width: 380px;
        height: 380px;
    }
    .diamond.d1 {
        top: 620px;
        right: -420px;
    }
    .diamond.d2 {
        width: 340px;
        height: 340px;
        top: 1200px;
        left: -220px;
    }
    .diamond.d3 {
        width: 320px;
        height: 320px;
        bottom: -60px;
    }
}

.proposals-filters {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.filter-select {
    position: relative;
    width: 100%;
    max-width: 320px;
    height: 90px;
}

.filter-toggle {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 2px solid var(--brand);
    border-radius: 20px;
    padding: 0 30px;
    font-size: 34px;
    line-height: 110%;
    font-weight: 400;
    color: var(--brand);
    cursor: pointer;
    text-align: left;
}

/* .filter-toggle:hover {
	text-decoration: underline;
} */
.filter-arrow img {
    width: 32px;
    height: 33px;
    display: block;
}
.filter-menu {
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    right: 0;
    background: var(--brand);
    border-radius: 0 0 20px 20px;
    padding: 30px;
    padding-top: 0;
    display: none !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    z-index: 15;

    grid-template-columns: repeat(2, 1fr);
    gap: 20px 40px;

    outline: none;
}

.filter-menu:focus {
    outline: none;
}

@media (max-width: 768px) {
    .filter-toggle {
        font-size: 24px;
    }

    .filter-select {
        height: 70px;
    }
}

.filter-select.is-open .filter-menu {
    display: grid !important;
}
.filter-select.is-open .filter-toggle {
    border-color: var(--brand-contrast);
    border-radius: 20px 20px 0 0;
}
.filter-select.is-open .filter-arrow {
    transform: rotate(180deg);
    transition: transform 0.2s ease;
    filter: brightness(0) invert(1);
}
.filter-arrow {
    transition: transform 0.2s ease;
}

/* Активный (выбранный) фильтр: красная кнопка, белый текст */
.filter-select.is-open .filter-toggle,
.filter-select.is-selected .filter-toggle {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.filter-select.is-selected .filter-toggle .filter-value {
    color: #fff;
}
.filter-menu li {
    color: white;
    cursor: pointer;
    font-size: 26px;
    line-height: 110%;
}

.filter-menu li:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .filter-menu li {
        font-size: 20px;
    }
}

.proposals-sec .title {
    font-size: 34px;
    line-height: 42px;
    margin-bottom: 14px;
}

@media (max-width: 850px) {
    .proposals-sec .title {
        text-align: center;
    }
}

@media (max-width: 1430px) {
    .proposals-filters {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-select {
        width: 100%;
        max-width: unset;
    }
}

@media (max-width: 768px) {
    .proposals {
        min-height: 726px;
    }
}

@media (max-width: 640px) {
    .proposals-filters {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .filter-menu {
        position: static;
        overflow: hidden;
    }

    .filter-select {
        min-height: 70px;
        height: unset;
    }

    .filter-toggle {
        height: 70px;
    }
}

.proposals-grid {
    margin-bottom: 40px;
}

/* Если слайдер инициализирован (есть JS), то грид переносится на трек */
.proposals-grid:not(.is-slider) {
    display: grid;
    grid-template-columns: repeat(3, minmax(350px, 1fr));
    gap: 20px;
}

.proposals-track {
    display: contents; /* На десктопе трек прозрачен для грида, если поддерживается, или дублируем грид */
}

/* Fallback для track на десктопе, если display: contents не подходит */
.proposals-grid.is-slider .proposals-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(350px, 1fr));
    gap: 20px;
}

.proposals-grid:last-child {
    margin-bottom: 0;
}

.proposals-nav {
    position: relative;
    z-index: 10;
    margin-top: 420px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition:
            transform 0.2s ease,
            opacity 0.2s ease;
}

.proposals-nav img {
    width: 100%;
    height: 100%;
    display: block;
}

.proposals-nav.prev img {
    transform: rotate(180deg);
}

.proposals-nav:active {
    transform: scale(0.95);
}

.product-card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    box-shadow: 8px 9px 30px rgba(0, 0, 0, 0.12);
    min-height: 620px;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.product-card:nth-of-type(3n + 2) {
    margin: 0 auto;
}

.product-card:nth-of-type(3n + 3) {
    margin-left: auto;
}

.product-card:not(.promo):not(.video):hover {
    background-color: var(--brand);
    overflow: visible;
}

.product-card.promo:hover {
    box-shadow: 8px 9px 30px rgba(0, 0, 0, 0.23);
}

.product-card__head {
    position: absolute;
    z-index: 7;
    top: 0;
    right: 0;
    padding: 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.product-card:not(:has(.product-card__badge)) .product-card__head {
    justify-content: end;
}
.product-card__badge {
    background: #ff8d28;
    color: #fff;
    border-radius: 4px;
    padding: 10px;
    font-size: 16.4px;
    line-height: 20px;
    font-weight: 500;
    min-width: 100px;
    height: 40px;
    text-align: center;
}

.product-card__badge--hit {
    background: #ff8d28;
}
.product-card__badge--new {
    background: #008025;
}

.product-card__fav {
    border: none;
    background: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
}
.product-card__media {
    position: relative;
    height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card__media__inner {
    pointer-events: none;
}

.product-card:not(.promo):not(.video) .product-card__media__inner {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 120%;
    height: calc(100% + 20px);
    overflow: hidden;
    top: 0;
}

.product-card.promo .product-card__media__inner {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.product-card.promo .product-card__media__inner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
    transition: opacity 0.4s ease;
}

/* Стили для видео в карточках product-card.video */
.product-card.video .product-card__media__inner {
    position: relative;
    overflow: hidden;
    opacity: 0.99; /*При opacity 1 в хроме при определенном разрешении вылазит черная полоска справа*/
}

.product-card.video .product-card__media__inner img {
    position: relative;
    width: 100% !important;
    height: 100%;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.product-card.video .product-card__media__inner video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.product-card.video:hover .product-card__media__inner img {
    opacity: 0;
}

.product-card.video:hover .product-card__media__inner video {
    opacity: 1;
    pointer-events: auto;
}

/* Скрываем вес для карточек с видео */
.product-card.video .product-card__weight {
    display: none;
}

/* Убираем скругления у body для карточек с видео */
.product-card.video .product-card__body {
    border-radius: 0;
}

.product-card:not(.promo):not(.video) .product-card__media img {
    position: absolute;
    object-fit: contain;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1;
    bottom: -40px;
    left: 0;
    width: 83%;
    height: 95%;
    transition: all 0.3s ease;
}

.product-card:not(.promo):not(.video):hover .product-card__media img {
    z-index: 5;
}

.product-card:not(.promo):not(.video):hover .product-card__media.right img {
    transform: translateX(15%) scale(1.1);
}

.product-card:not(.promo):not(.video):hover .product-card__media.up-down-right img {
    transform-origin: left center;
    transform: translate(3%, -5%) scale(1.2);
}

.product-card:not(.promo):not(.video):hover .product-card__media.up-right img {
    transform-origin: left bottom;
    transform: translate(10%, -8%) scale(1.1);
}

.product-card:not(.promo):not(.video):hover
.product-card__media.up-right
.product-card__media__inner.pos-down-left
img {
    transform-origin: left center;
    transform: translate(1%, -7%) scale(1.4);
}

.product-card:not(.promo):not(.video):hover .product-card__media.down-right img {
    transform-origin: left top;
    transform: translate(15%, 5%) scale(1.2);
}

.product-card:not(.promo):not(.video) .product-card__media__inner.pos-down img {
    bottom: -25%;
}
.product-card:not(.promo):not(.video) .product-card__media__inner.pos-down-left img {
    bottom: -15%;
    left: -25%;
    transform: scale(1.3);
}

.product-card__weight {
    position: absolute;
    right: 24px;
    bottom: 24px;
    color: #851811;
    font-size: 20px;
    z-index: 10;
}

.product-card:hover .product-card__weight {
    color: #fff;
}

.product-card__body {
    background-color: white;
    padding: 20px;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 16px;
    z-index: 5;
    width: 100%;
    border-radius: 0px 0px 18px 18px;
    transition:
            height 0.3s ease,
            border-radius 0.3s ease;
}

.product-card:not(.promo):not(.video):hover .product-card__body {
    border-radius: 20px 20px 18px 18px;
}

.product-card__title {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.1;
    color: #312c2d;
}
.product-card__desc {
    color: #808080;
    font-size: 15px;
    line-height: 1.1;
    min-height: 48.3px;
}
.product-card__price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
}
.price-now {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    color: #312c2d;
}
.price-old {
    position: relative;
    font-size: 26px;
    font-weight: 400;
    line-height: 1.1;
    color: #312c2d;
    text-decoration: none;
}

.price-old::after {
    content: "";
    position: absolute;
    left: -2px;
    right: -2px;
    top: 65%;
    height: 1px;
    background: black;
    pointer-events: none;
}

@media (max-width: 1200px) {
    .proposals-grid:not(.is-slider) {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-card:nth-of-type(2n + 1) {
        margin-right: auto;
        margin-left: 0;
    }

    .product-card:nth-of-type(2n) {
        margin-left: auto;
        margin-right: 0;
    }
}
@media (max-width: 850px) {
    .proposals-grid.is-slider {
        display: grid;
        grid-template-columns: auto 1fr auto; /* стрелка - вьюпорт - стрелка */
        align-items: center;
        gap: 8px;
        margin: 0 auto;
        margin-bottom: 40px;
        max-width: 512px;
    }

    .proposals-grid.is-slider .proposals-viewport {
        display: flex;
        gap: 0;
    }

    /* видна только одна карточка на экране: активная */
    .proposals-grid.is-slider .product-card {
        flex: 0 0 100%;
        max-width: 100%;
        margin: 0 !important;
        display: none;
    }
    .proposals-grid.is-slider .product-card.is-active {
        display: flex;
        flex-direction: column;
    }

    /* Масштаб медиа внутри карточки 4/4.4 */
    .proposals-grid.is-slider .product-card .product-card__media {
        width: 100%;
        aspect-ratio: 1 / 1.1;
        height: auto !important;
        min-height: unset !important;
        position: relative;
        display: block;
    }

    /* Для promo-карточек в слайдере: внутренности подчиняются контейнеру с aspect-ratio */
    .proposals-grid.is-slider .product-card.promo .product-card__media__inner {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

    .proposals-grid.is-slider
    .product-card.promo
    .product-card__media__inner
    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .proposals-grid:not(.is-slider) {
        grid-template-columns: 1fr;
    }

    .proposals-title {
        font-size: 36px;
    }

    .product-card {
        width: 100%;
        aspect-ratio: unset;
        min-height: unset;
        flex-shrink: 0;
        scroll-snap-align: center;
        margin: 0 !important;
    }

    .proposals-nav {
        display: block;
    }

    /* Корректировка позиций кнопок, чтобы не наезжали сильно */
    .product-card__price .price-now {
        font-size: 28px;
    }
    .product-card__price .price-old {
        font-size: 24px;
    }
    .product-card__head {
        min-height: 60px;
    }
}

@media (max-width: 640px) {
    .product-card__title {
        font-size: 24px;
    }

    .product-card__weight {
        right: 10px;
        bottom: 10px;
        font-size: 16px;
    }

    .product-card__head {
        padding: 10px;
    }

    .product-card__price .price-now {
        font-size: 18px;
    }

    .product-card__price .price-old {
        font-size: 16px;
    }

    .proposals-nav {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .proposals-nav {
        margin-top: 200px;
    }
}

@media (max-width: 400px) {
    .product-card:hover .product-card__media.up-down-right img {
        transform-origin: left center;
        transform: translate(0%, -5%) scale(1.2);
    }

    .product-card__title {
        font-size: 20px;
    }

    .product-card__body {
        gap: 8px;
    }

    .proposals-nav {
        margin-top: 250px;
    }
}

/* ФУТЕР */
.site-footer {
    background: #f6f7f9;
    padding: 60px 0;
}
.footer__grid {
    display: grid;
    grid-template-columns: repeat(4, 2.4fr) 2fr 1.26fr;
    gap: 20px 30px;
}
.footer-col h3 {
    margin-bottom: 20px;
    font-size: 20px;
}
.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-col li a {
    color: black;
    opacity: 0.5;
    font-size: 16px;
}
.footer-col li a:hover {
    color: var(--text);
}

.footer-social .social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-bottom: 10px;
    max-width: 152px;
}

.footer-social .social-row a {
    opacity: 1;
}
.social-icon {
    width: 40px;
    height: 40px;
}
.social-icon img {
    width: 100%;
    height: 100%;
    display: block;
}
.social-icon:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.footer-social a {
    opacity: 1;
}

.footer-social .subscribe-note {
    margin: 20px 0 12px;
    color: var(--text);
    font-size: 14px;
}

.footer-social .awards {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-social .awards img {
    width: 65px;
}

.footer-social .awards p {
    color: black;
    opacity: 0.5;
    font-size: 14px;
}

.footer-social .awards p br {
    display: none;
}

.footer-logos {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: end;
}

.footer-logos img {
    display: block;
    height: 19px;
    width: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.footer-logos img:hover {
    filter: grayscale(0%);
}

.footer__bottom {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 15px;
    color: var(--muted);
    font-size: 16px;
    margin-top: 40px;
}

.footer__bottom > br {
    display: none;
}
.footer__bottom a {
    color: inherit;
}
.footer__bottom a:hover {
    color: var(--text);
}

.footer__bottom .legal {
    color: #4787b3;
}

.footer__bottom .legal:hover {
    color: #3f7aa1;
    text-decoration: underline;
}

.footer__bottom .address {
    text-align: right;
}

/*
  АДАПТИВ
*/
@media (max-width: 1224px) {
    .footer__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .site-header {
        padding: 20px 0;
    }

    main {
        margin-top: 80px;
    }

    .footer-logos {
        align-items: start;
    }
}
@media (max-width: 868px) {
    .header__inner {
        height: 46px;
        gap: 10px;
    }
    .main-nav {
        display: none;
    } /* до появления бургер-меню */
    .burger-btn {
        display: inline-flex;
        margin-left: auto;
    }

    .logo img {
        width: 200px;
        height: auto;
    }
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__bottom {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__bottom .address {
        grid-column: span 2;
    }

    .footer__bottom .address {
        text-align: left;
    }
}
@media (max-width: 580px) {
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }
    .footer-logos {
        align-items: start;
    }
    .footer__bottom {
        display: flex;
        flex-direction: column;
        align-items: start;
        gap: 12px;
        padding: 0 20px;
    }

    .footer-col h3 {
        margin-bottom: 16px;
    }

    .logo img {
        width: 150px;
    }

    .site-header {
        padding: 10px 0;
    }

    main {
        margin-top: 66px;
    }
}
.ymaps-2-1-79-balloon {
    border-radius: 16px;
}

.ymaps-2-1-79-balloon__layout {
    border-radius: 16px;
}

.ymaps-2-1-79-balloon_layout_panel {
    width: fit-content;
}

.ymaps-2-1-79-balloon__close {
    filter: invert(1) brightness(2);
}

.ymaps-2-1-79-balloon__content {
    padding: 0 !important;
    margin-right: 0 !important;
}

.ymaps-2-1-79-balloon__content > ymaps {
    width: 469px !important;
    height: auto !important;
}

.big-tip__header {
    border-radius: 16px 16px 0 0;
    padding: 16px;
    padding-right: 24px;
    background-color: #93191c;
    color: #fff;
}

.big-tip__title {
    font-size: 34px;
    line-height: 110%;
    margin-bottom: 10px;
    font-weight: 400;
}

.big-tip__header p {
    font-size: 16px;
    line-height: 110%;
}

.big-tip__content {
    padding: 16px;
    border-radius: 0 0 16px 16px;
    background-color: #fff;
}

.big-tip__separator {
    display: none;
}

.big-tip__notes p {
    font-size: 20px;
    line-height: 110%;
    margin-bottom: 4px;
    color: #505050;
}

.big-tip__notes p b {
    font-weight: 400;
}

.big-tip__notes p:last-of-type {
    margin-bottom: 16px;
}

.big-tip__notes .btn {
    font-size: 20px;
    font-weight: 500;
    line-height: 110%;
    background-color: #ff7800;
    color: var(--text);
    width: 227px;
    padding: 13.5px 20.2px;
    border: none;
    clip-path: polygon(
            5% 0%,
            95% 0%,
            100% 20%,
            100% 80%,
            95% 100%,
            5% 100%,
            0% 80%,
            0% 20%
    );
}

.big-tip__notes .btn span {
    text-wrap: nowrap;
}

@media (max-width: 768px) {
    .ymaps-2-1-79-balloon__content > ymaps {
        width: 100% !important;
    }
    .big-tip__title {
        font-size: 24px;
    }
    .big-tip__notes p {
        font-size: 14px;
    }

    .big-tip__header p {
        font-size: 14px;
    }
}

section:not(.hero) {
    margin: 0;
    padding: 60px 0;
}

@media (max-width: 768px) {
    section:not(.hero) {
        padding: 40px 0;
    }
}
