/* ========================================
   AM CATALOG — дополнения к styles.css
   Раздел каталога, карточка товара, корзина.
   Подключается после styles.css.
   ======================================== */

.am-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Хлебные крошки ---------- */
.breadcrumbs {
    gap: 0;
}

.breadcrumbs span {
    margin: 0 6px;
}

.breadcrumbs__current {
    font-weight: 400;
}

/* ---------- Сайдбар ---------- */
.catalog-sidebar__head {
    display: flex;
    min-height: 36px;
    align-items: center;
    color: #273441;
    font-size: 12px;
    font-weight: 500;
}

.catalog-filter--categories {
    max-height: 460px;
    padding: 16px 16px 16px 18px;
    overflow-y: auto;
    background: rgba(211, 222, 234, .55);
    scrollbar-width: thin;
}

.catalog-filter--categories ul {
    padding-left: 18px;
    border-left-color: #c3cddb;
}

.catalog-filter--categories li,
.catalog-filter--categories li:first-child {
    position: relative;
    color: #283543;
}

.catalog-filter--categories a:hover {
    color: var(--secondary-blue);
}

.catalog-filter--categories li.is-active {
    color: #0637d5;
}

.catalog-filter--categories li.is-active::before {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: -19px;
    width: 2px;
    background: #0637d5;
    content: "";
}

/* Марки */
.catalog-filter--brands {
    min-width: 0;
    margin: 0;
    border: 0;
    gap: 14px;
}

.catalog-filter--brands label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.catalog-filter--brands input[type="radio"] {
    width: 15px;
    height: 15px;
    margin: 0;
    flex-shrink: 0;
    appearance: none;
    border: 1px solid #b8c3d1;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.catalog-filter--brands input[type="radio"]:checked {
    border: 4px solid #0c2d88;
}

.catalog-filter--brands label.is-disabled {
    opacity: .45;
}

/* Флаги + цена */
.am-filter {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.catalog-filter--params {
    gap: 0;
    padding-top: 6px;
}

.catalog-filter--switches {
    display: flex;
    flex-direction: column;
    margin-bottom: 22px;
}

.catalog-filter--switches label {
    position: relative;
    cursor: pointer;
}

.catalog-filter--switches label span,
.catalog-filter--switches label span::before {
    transition: all .2s ease;
}

.catalog-filter--switches input:checked + span {
    background: #0c2d88;
}

.catalog-filter--switches input:checked + span::before {
    background: #fff;
}

.catalog-filter--switches input:focus-visible + span {
    outline: 2px solid #0637d5;
    outline-offset: 2px;
}

.am-price h2 {
    margin-bottom: 4px;
}

.price-inputs input {
    -moz-appearance: textfield;
}

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

/* Двойной ползунок цены */
.price-range.am-range {
    height: 12px;
    margin: 14px 5px 26px;
    border-bottom: 0;
    --from: 0%;
    --to: 100%;
}

.price-range.am-range::before {
    display: none;
}

.price-range.am-range::after {
    position: absolute;
    top: 5px;
    right: auto;
    bottom: auto;
    left: var(--from);
    width: calc(var(--to) - var(--from));
    height: 2px;
    border-radius: 0;
    background: #ec1920;
}

.price-range.am-range {
    background: linear-gradient(#c3cddb, #c3cddb) 0 5px / 100% 2px no-repeat;
}

.am-range input[type="range"] {
    position: absolute;
    z-index: 1;
    inset: 0 -5px;
    width: calc(100% + 10px);
    height: 12px;
    margin: 0;
    background: none;
    pointer-events: none;
    appearance: none;
}

.am-range input[type="range"]::-webkit-slider-thumb {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 50%;
    background: #ec1920;
    cursor: pointer;
    pointer-events: auto;
    appearance: none;
}

.am-range input[type="range"]::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 50%;
    background: #ec1920;
    cursor: pointer;
    pointer-events: auto;
}

.am-range input[type="range"]::-moz-range-track {
    background: none;
}

.filter-reset {
    width: 100%;
    background: transparent;
}

.filter-reset:hover {
    background: #143686;
    color: #fff;
}

/* ---------- Тулбар ---------- */
.catalog-toolbar {
    gap: 40px;
}

.catalog-toolbar__label {
    margin-right: -10px;
}

.catalog-sort:hover {
    color: #0637d5;
}

.catalog-view__btn {
    width: 16px;
    height: 16px;
    opacity: .35;
    background: no-repeat center / contain;
}

.catalog-view__btn.is-active,
.catalog-view__btn:hover {
    opacity: 1;
}

.catalog-view__btn--grid {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230342eb'%3E%3Crect width='7' height='7' rx='1'/%3E%3Crect x='9' width='7' height='7' rx='1'/%3E%3Crect y='9' width='7' height='7' rx='1'/%3E%3Crect x='9' y='9' width='7' height='7' rx='1'/%3E%3C/svg%3E");
}

.catalog-view__btn--list {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230342eb'%3E%3Crect y='2' width='16' height='5' rx='1'/%3E%3Crect y='9' width='16' height='5' rx='1'/%3E%3C/svg%3E");
}

/* ---------- Карточка в сетке ---------- */
.product-card {
    display: flex;
    flex-direction: column;
}

.product-info {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.product-footer {
    margin-top: auto;
}

.product-title a:hover {
    color: var(--secondary-blue);
}

.js-am-grid .product-image {
    height: 220px;
    min-height: 0;
}

.js-am-grid .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-price {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.product-rrc {
    margin-top: 3px;
    color: #9aa5b4;
    font-size: 11px;
    font-weight: 400;
    text-decoration: line-through;
}

.product-price--request {
    color: #9aa5b4;
    font-size: 13px;
    font-weight: 500;
}

.product-favorite {
    background: transparent;
}

.btn-cart.is-loading {
    opacity: .6;
    pointer-events: none;
}

.btn-cart.is-added {
    background: #0c2d88;
}

.btn-cart.is-in-basket {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55);
}

.am-empty {
    padding: 40px 20px;
    border-radius: 3px;
    background: #fff;
    color: #657281;
    font-size: 14px;
    text-align: center;
}

/* Вид «списком» */
.catalog-products__grid.is-list {
    grid-template-columns: 1fr;
    gap: 10px;
}

.catalog-products__grid.is-list .product-card {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    align-items: center;
}

.catalog-products__grid.is-list .product-card:hover {
    transform: none;
}

.catalog-products__grid.is-list .product-image {
    height: 120px;
    padding: 10px;
}

.catalog-products__grid.is-list .product-image img {
    max-height: 110px;
}

.catalog-products__grid.is-list .product-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 2px 30px;
    padding: 14px 60px 14px 10px;
}

.catalog-products__grid.is-list .product-code {
    grid-column: 1;
    margin: 0;
}

.catalog-products__grid.is-list .product-title {
    grid-column: 1;
    min-height: 0;
    font-size: 12px;
}

.catalog-products__grid.is-list .product-footer {
    grid-column: 2;
    grid-row: 1 / span 2;
    gap: 24px;
    margin: 0;
    padding: 0;
}

.catalog-products__grid.is-list .product-badges {
    top: 8px;
    left: 8px;
}

/* ---------- Пагинация ---------- */
.catalog-pagination__dots {
    letter-spacing: 3px;
}

.catalog-pagination a:not(.is-current):hover {
    color: #0637d5;
}

.catalog-pagination__next {
    width: 24px;
    height: 24px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 12' fill='none' stroke='%23263441' stroke-width='1.4'%3E%3Cpath d='M1.5 1l5 5-5 5'/%3E%3C/svg%3E") no-repeat center / 6px;
}

.catalog-pagination__next.is-disabled {
    opacity: .3;
}

.js-am-more.is-loading {
    opacity: .5;
    pointer-events: none;
}

.section-link {
    color: #14161f;
}

/* ---------- Карточка товара ---------- */
.product-gallery__thumb {
    cursor: pointer;
}

.product-gallery__thumb:first-child {
    border-color: transparent;
}

.product-gallery__thumb.is-active,
.product-gallery__thumb:hover {
    border-color: #2151dc;
}

.product-gallery__main img {
    transition: opacity .15s ease;
}

.product-specs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.product-specs span {
    font-size: 13px;
}

.product-specs strong {
    font-size: 13px;
}

.am-cert-link {
    color: #0637d5;
    text-decoration: underline;
}

.product-detail__title {
    text-transform: uppercase;
}

.volume-prices {
    margin-top: 6px;
}

.volume-prices h2 {
    margin-bottom: 10px;
}

.volume-prices p {
    font-size: 13px;
}

.product-purchase {
    margin-top: 34px;
}

.product-purchase__top > strong {
    display: flex;
    flex-direction: column;
    color: #394858;
    font-size: 28px;
    line-height: 1.15;
}

.product-purchase__top .product-rrc {
    font-size: 13px;
}

.product-purchase__top > span {
    font-size: 13px;
}

.product-purchase__bottom {
    justify-content: flex-start;
}

.product-purchase__bottom > .btn {
    min-width: 182px;
}

.product-purchase__bottom .payment-marks {
    margin-left: auto;
}

.quantity-control {
    user-select: none;
}

.quantity-control button {
    width: 34px;
    height: 100%;
    font-size: 16px;
}

.quantity-control button:hover {
    background: rgba(255, 255, 255, .12);
}

.quantity-control span {
    min-width: 22px;
    text-align: center;
}

.am-pay {
    display: inline-block;
    width: 34px;
    height: 22px;
}

.am-pay--mc {
    background:
        radial-gradient(circle at 11px 11px, #eb001b 10px, transparent 10.5px),
        radial-gradient(circle at 23px 11px, #f79e1b 10px, transparent 10.5px);
}

.am-pay--maestro {
    background:
        radial-gradient(circle at 11px 11px, #eb001b 10px, transparent 10.5px),
        radial-gradient(circle at 23px 11px, #00a2e5 10px, transparent 10.5px);
}

.payment-mir {
    font-size: 20px;
}

.payment-visa {
    font-size: 22px;
}

/* ---------- Корзина ---------- */
.cart-page__title {
    text-transform: uppercase;
}

.cart-summary > .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cart-line {
    position: relative;
}

.cart-line__description h2 {
    text-transform: uppercase;
}

.cart-line__description h2 a:hover {
    color: var(--secondary-blue);
}

.cart-line.is-loading {
    opacity: .55;
    pointer-events: none;
}

.cart-line__remove {
    position: absolute;
    top: 50%;
    right: -14px;
    width: 18px;
    height: 18px;
    opacity: 0;
    transform: translateY(-50%);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' stroke='%239aa5b4' stroke-width='1.5'%3E%3Cpath d='M2 2l8 8M10 2l-8 8'/%3E%3C/svg%3E") no-repeat center / 10px;
}

.cart-line:hover .cart-line__remove,
.cart-line__remove:focus-visible {
    opacity: 1;
}

.cart-line__remove:hover {
    filter: brightness(.5);
}

.cart-items {
    padding: 0 30px 0 20px;
}

.am-cart-empty {
    padding: 50px 20px;
    border-radius: 4px;
    background: #fff;
    text-align: center;
}

.am-cart-empty p {
    margin-bottom: 20px;
    color: #526070;
    font-size: 15px;
}

/* ---------- Уведомление ---------- */
.am-toast {
    position: fixed;
    z-index: 1000;
    right: 24px;
    bottom: 24px;
    max-width: 320px;
    padding: 14px 18px;
    border-radius: 4px;
    opacity: 0;
    transform: translateY(10px);
    background: #0c2d88;
    box-shadow: 0 10px 30px rgba(10, 30, 70, .25);
    color: #fff;
    font-size: 13px;
    pointer-events: none;
    transition: all .25s ease;
}

.am-toast.is-visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.am-toast a {
    margin-left: 8px;
    text-decoration: underline;
}

.am-toast.is-error {
    background: #cc0000;
}

.header-icon .badge.is-bump {
    animation: am-bump .4s ease;
}

@keyframes am-bump {
    50% { transform: scale(1.35); }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1200px) {
    .catalog-toolbar {
        gap: 18px;
    }

    .product-specs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .catalog-sidebar__head {
        display: none;
    }

    .am-filter {
        display: contents;
    }

    .catalog-filter--categories {
        max-height: 320px;
    }
}

@media (max-width: 768px) {
    .catalog-toolbar__label {
        width: 100%;
        margin: 0;
    }

    .catalog-filter--categories {
        max-height: 200px;
    }

    .js-am-grid .product-image {
        height: 130px;
    }

    .catalog-products__grid.is-list .product-card {
        grid-template-columns: 90px minmax(0, 1fr);
    }

    .catalog-products__grid.is-list .product-info {
        grid-template-columns: 1fr;
        padding: 10px 40px 10px 6px;
    }

    .catalog-products__grid.is-list .product-footer {
        grid-column: 1;
        grid-row: auto;
        justify-content: space-between;
        padding-top: 6px;
    }

    .catalog-products__grid.is-list .product-title {
        font-size: 10px;
    }

    .product-rrc {
        font-size: 8px;
    }

    .product-purchase__top > strong {
        font-size: 22px;
    }

    .product-purchase__bottom .payment-marks {
        width: 100%;
        margin-left: 0;
    }

    .cart-items {
        padding: 0 10px;
    }

    .cart-line__remove {
        top: 12px;
        right: 0;
        opacity: 1;
        transform: none;
    }

    .am-toast {
        right: 12px;
        bottom: 12px;
        left: 12px;
        max-width: none;
    }
}

/* ===== Раздел каталога: размеры по макету 1920 ===== */
.catalog-layout { grid-template-columns: 287px minmax(0, 1fr); gap: 21px; }
.catalog-sidebar { gap: 21px; }
.catalog-sidebar__head, .catalog-toolbar { min-height: 54px; font-size: 18px; font-weight: 500; letter-spacing: -.03em; }
.catalog-toolbar { gap: 58px; margin-bottom: 21px; }
.catalog-view__btn { width: 22px; height: 22px; }

.catalog-filter { padding: 24px; gap: 18px; font-size: 18px; letter-spacing: -.03em; }
.catalog-filter--categories { max-height: 690px; padding: 25px 24px 25px 27px; }
.catalog-filter--categories ul { padding-left: 27px; }
.catalog-filter--categories li { padding: 0; margin-bottom: 28px; font-size: 18px; font-weight: 500; line-height: 1.2; color: #000; }
.catalog-filter--categories li:last-child { margin-bottom: 0; }
.catalog-filter--categories li.is-active::before { left: -28px; }
.catalog-filter--brands { gap: 21px; }
.catalog-filter--brands label { gap: 18px; }
.catalog-filter--brands input[type="radio"] { width: 20px; height: 20px; }
.catalog-filter--brands input[type="radio"]:checked { border-width: 6px; }
.catalog-filter--switches label { min-height: 54px; }
.catalog-filter--switches label span { width: 54px; height: 24px; }
.catalog-filter--switches label span::before { width: 16px; height: 16px; top: 4px; left: 5px; }
.catalog-filter--switches input:checked + span::before { left: 33px; }
.catalog-filter h2, .am-price h2 { font-size: 18px; }
.price-inputs { gap: 15px; }
.price-inputs label { font-size: 15px; }
.price-inputs input { padding: 17px 12px; font-size: 16px; }
.filter-reset { min-height: 57px; font-size: 16px; }

.catalog-products__grid { gap: 16px; }
.catalog-products__grid .js-am-grid .product-image,
.catalog-products__grid.js-am-grid .product-image { height: 247px; padding: 18px; }
.catalog-products__grid .product-info { padding: 18px 21px 21px; }
.catalog-products__grid .product-code,
.catalog-products__grid .product-title { font-size: 14px; font-weight: 500; line-height: 1.2; text-transform: none; color: #26313e; margin: 0; }
.catalog-products__grid .product-title { min-height: 68px; }
.catalog-products__grid .product-price { font-size: 22px; font-weight: 600; color: #3a4656; }
.catalog-products__grid .btn-cart { width: 55px; height: 55px; font-size: 34px; }
.catalog-products__grid .product-favorite { width: 30px; height: 30px; top: 12px; right: 12px; }
.catalog-pagination { gap: 33px; font-size: 18px; }
.catalog-pagination a { min-width: 36px; height: 36px; }
.catalog-bottom .section-link { font-size: 18px; }
.breadcrumbs { font-size: 16px; }

@media (max-width: 1600px) {
    .catalog-layout { grid-template-columns: 250px minmax(0, 1fr); }
    .catalog-products__grid .btn-cart { width: 46px; height: 46px; font-size: 28px; }
}

.breadcrumbs__sep {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 1em;
    margin: 0 !important;
}

.breadcrumbs__sep::before {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

/* ===== Карточка товара: размеры по макету ===== */
.product-page .breadcrumbs { font-size: 18px; }
.product-page .product-detail { grid-template-columns: minmax(0, 597px) minmax(0, 1fr); gap: 76px; }
.product-page .product-gallery__main { min-height: 0; aspect-ratio: 1; }
.product-page .product-gallery__thumbs { gap: 18px; margin-top: 17px; }
.product-page .product-gallery__thumb { aspect-ratio: 1; }

.product-page .product-detail__title { margin-bottom: 44px; font-size: 36px; font-weight: 700; line-height: 1.15; color: #0b2380; }

.product-page .product-specs { gap: 30px 24px; margin-bottom: 44px; }
.product-page .product-specs > div { gap: 10px; }
.product-page .product-specs span { font-size: 18px; font-weight: 400; color: #9aa5b4; }
.product-page .product-specs strong { font-size: 18px; font-weight: 500; color: #14161f; line-height: 1.25; }

.product-page .volume-prices h2 { margin-bottom: 16px; font-size: 18px; font-weight: 700; color: #0b2380; }
.product-page .volume-prices p { margin-bottom: 14px; font-size: 18px; font-weight: 500; line-height: 1.3; color: #14161f; }
.product-page .volume-prices p span { margin-bottom: 10px; font-size: 18px; font-weight: 400; color: #9aa5b4; }

.product-page .product-purchase { margin-top: 44px; }
.product-page .product-purchase__top { margin-bottom: 26px; }
.product-page .product-purchase__top > strong { font-size: 36px; font-weight: 600; color: #3a4656; }
.product-page .product-purchase__top > span { font-size: 18px; font-weight: 500; color: #14161f; }
.product-page .product-purchase__bottom { gap: 18px; }
.product-page .quantity-control { min-width: 134px; height: 56px; }
.product-page .quantity-control button,
.product-page .quantity-control span { font-size: 18px; font-weight: 500; }
.product-page .product-purchase__bottom > .btn { min-width: 232px; min-height: 56px; font-size: 16px; font-weight: 500; }
.product-page .payment-marks { gap: 24px; }
.product-page .payment-mir { font-size: 26px; }
.product-page .payment-visa { font-size: 28px; }
.product-page .am-pay { width: 44px; height: 28px; }
.product-page .am-pay--mc { background: radial-gradient(circle at 14px 14px, #eb001b 13px, transparent 13.5px), radial-gradient(circle at 30px 14px, #f79e1b 13px, transparent 13.5px); }
.product-page .am-pay--maestro { background: radial-gradient(circle at 14px 14px, #eb001b 13px, transparent 13.5px), radial-gradient(circle at 30px 14px, #00a2e5 13px, transparent 13.5px); }

@media (max-width: 1200px) {
    .product-page .product-detail { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; }
    .product-page .product-specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .product-page .product-detail { grid-template-columns: 1fr; gap: 24px; }
    .product-page .product-detail__title { font-size: 24px; margin-bottom: 24px; }
    .product-page .product-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
    .product-page .product-specs span,
    .product-page .product-specs strong,
    .product-page .volume-prices p,
    .product-page .volume-prices p span,
    .product-page .product-purchase__top > span { font-size: 14px; }
    .product-page .product-purchase__top > strong { font-size: 26px; }
}


/* ===== Корзина и блоки «Рекомендуем»: размеры по макету ===== */
.cart-page .breadcrumbs { font-size: 18px; }
.cart-page__title,
.recommended-products .section-title,
.cart-recommendations .section-title { font-size: 34px; font-weight: 700; color: #0b2380; letter-spacing: -.01em; }
.cart-page__title { margin-bottom: 34px; }

.cart-layout { grid-template-columns: minmax(0, 1fr) 443px; gap: 18px; }
.cart-items { padding: 0 30px; }
.cart-line { grid-template-columns: 117px minmax(0, 1fr) auto 134px; gap: 0 24px; min-height: 188px; padding: 26px 0; }
.cart-line__description h2 { margin-bottom: 22px; font-size: 17px; font-weight: 600; line-height: 1.25; color: #14161f; }
.cart-line__description span { margin-bottom: 4px; font-size: 17px; color: #9aa5b4; }
.cart-line__description strong { font-size: 17px; font-weight: 500; color: #14161f; }
.cart-line__price { font-size: 34px; font-weight: 600; color: #3a4656; }
.cart-line > .quantity-control { min-width: 134px; height: 56px; }
.cart-line > .quantity-control button,
.cart-line > .quantity-control span { font-size: 18px; font-weight: 500; }
.cart-line__stock { font-size: 17px; color: #9aa5b4; }
.cart-line__remove { right: -24px; width: 22px; height: 22px; background-size: 12px; }

.cart-summary { padding: 28px 30px 26px; }
.cart-summary h2 { margin-bottom: 30px; font-size: 17px; font-weight: 600; color: #14161f; }
.cart-summary__row { font-size: 17px; }
.cart-summary__row strong { font-size: 26px; }
.cart-summary__total { margin: 24px 0 26px; padding-top: 24px; }
.cart-summary__total strong { font-size: 34px; }
.cart-summary > .btn { min-height: 56px; font-size: 16px; font-weight: 600; }
.cart-summary > p { margin-top: 22px; font-size: 16px; line-height: 1.35; }

.recommended-products,
.cart-recommendations { margin-top: 100px; }
.recommended-products .section-header,
.cart-recommendations .section-header { margin-bottom: 34px; }
.recommended-products .products__grid,
.cart-recommendations .products__grid { gap: 16px; }

/* карточки во всех сетках — как в разделе */
.js-am-grid .product-image { height: 247px; padding: 18px; }
.js-am-grid .product-info { padding: 18px 21px 21px; }
.js-am-grid .product-code,
.js-am-grid .product-title { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.2; text-transform: none; color: #26313e; }
.js-am-grid .product-title { min-height: 68px; }
.js-am-grid .product-price { font-size: 22px; font-weight: 600; color: #3a4656; }
.js-am-grid .btn-cart { width: 55px; height: 55px; font-size: 34px; }
.js-am-grid .product-favorite { top: 12px; right: 12px; width: 30px; height: 30px; }
.catalog-more .section-link,
.catalog-bottom .section-link { font-size: 18px; }

@media (max-width: 1600px) {
    .cart-layout { grid-template-columns: minmax(0, 1fr) 380px; }
    .cart-line__price { font-size: 28px; }
    .js-am-grid .btn-cart { width: 46px; height: 46px; font-size: 28px; }
}
@media (max-width: 1200px) {
    .cart-layout { grid-template-columns: 1fr; }
    .cart-line { grid-template-columns: 90px minmax(0, 1fr) auto 120px; gap: 0 16px; }
    .cart-line__price { font-size: 24px; }
}
@media (max-width: 768px) {
    .cart-page__title,
    .recommended-products .section-title,
    .cart-recommendations .section-title { font-size: 24px; }
    .cart-items { padding: 0 14px; }
    .cart-line { grid-template-columns: 70px minmax(0, 1fr) auto; gap: 8px 12px; min-height: 0; padding: 16px 0; }
    .cart-line__description h2 { margin-bottom: 8px; font-size: 13px; }
    .cart-line__description span,
    .cart-line__description strong,
    .cart-line__stock { font-size: 12px; }
    .cart-line__price { font-size: 18px; }
    .cart-line > .quantity-control { min-width: 104px; height: 40px; }
    .cart-summary { padding: 18px; }
    .cart-summary__total strong { font-size: 26px; }
    .js-am-grid .product-image { height: 130px; padding: 10px; }
    .js-am-grid .product-info { padding: 10px; }
    .js-am-grid .product-code,
    .js-am-grid .product-title { font-size: 11px; }
    .js-am-grid .product-title { min-height: 40px; }
    .js-am-grid .product-price { font-size: 15px; }
    .js-am-grid .btn-cart { width: 34px; height: 34px; font-size: 22px; }
}

.breadcrumbs > a,
.breadcrumbs > strong {
    margin: 0 !important;
}

/* ===== Баннер cookie ===== */
.am-cookie {
    position: fixed;
    z-index: 900;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 18px 0;
    background: #061544;
    box-shadow: 0 -6px 24px rgba(6, 21, 68, .25);
    color: #d9e2fb;
    transition: transform .3s ease, opacity .3s ease;
}

.am-cookie.is-hidden {
    opacity: 0;
    transform: translateY(100%);
}

.am-cookie__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.am-cookie__text {
    max-width: 1000px;
    font-size: 15px;
    line-height: 1.45;
}

.am-cookie__text a {
    color: #fff;
    text-decoration: underline;
}

.am-cookie__btn {
    flex-shrink: 0;
    min-width: 180px;
    min-height: 48px;
    font-size: 15px;
}

@media (max-width: 768px) {
    .am-cookie {
        padding: 14px 0;
    }

    .am-cookie__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .am-cookie__text {
        font-size: 12px;
    }

    .am-cookie__btn {
        min-height: 42px;
        font-size: 13px;
    }
}

/* ===== Карточка: наведение и счётчик «− 1 x цена +» ===== */
.product-card:hover .product-title a { text-decoration: underline; text-decoration-color: #1e88ff; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.btn-cart:hover { transform: none; }
.product-card:hover .btn-cart { background: #990000; }
.product-footer { position: relative; }
.am-qtybar {
    --qb: 55px;
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    height: var(--qb);
    align-items: center;
    justify-content: space-between;
    border-radius: 3px;
    background: var(--primary-red);
    color: #fff;
    user-select: none;
    /* свёрнута до размера кнопки «+» и выезжает из неё влево */
    clip-path: inset(0 0 0 calc(100% - var(--qb)) round 3px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: clip-path .3s ease, opacity .2s ease, visibility 0s linear .3s;
}

.product-card.is-in-basket:hover .am-qtybar {
    clip-path: inset(0 round 3px);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: clip-path .3s ease, opacity .15s ease, visibility 0s;
}

@media (hover: none) {
    .product-card.is-in-basket .am-qtybar {
        clip-path: inset(0 round 3px);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}
.am-qtybar button { width: 56px; height: 100%; flex-shrink: 0; color: #fff; font-size: 28px; line-height: 1; }
.am-qtybar button:hover { background: rgba(0, 0, 0, .15); }
.am-qtybar button:active { background: #990000; }
.am-qtybar__text { overflow: hidden; font-size: 18px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.am-qtybar__text b { font-weight: 600; }
@media (max-width: 1600px) {
    .am-qtybar { --qb: 46px; }
    .am-qtybar button { width: 46px; font-size: 24px; }
    .am-qtybar__text { font-size: 16px; }
}
@media (max-width: 768px) {
    .am-qtybar { --qb: 34px; }
    .am-qtybar button { width: 32px; font-size: 18px; }
    .am-qtybar__text { font-size: 11px; }
}

.product-card:hover {
    transform: none;
    box-shadow: 0 22px 30px -12px rgba(6, 21, 68, .45);
}

.product-image {
    overflow: hidden;
}

/* ===== Кнопки −/+ во всех счётчиках: по краям, число по центру ===== */
.quantity-control.js-am-qty { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: stretch; justify-content: stretch; padding: 0; overflow: hidden; }
.quantity-control.js-am-qty > * { display: flex; width: auto; min-width: 0; height: auto; align-items: center; justify-content: center; line-height: 1; }
.quantity-control.js-am-qty button:hover { background: rgba(255, 255, 255, .14); }
.quantity-control.js-am-qty button:active { background: rgba(0, 0, 0, .18); }

.product-purchase__sum:not(:empty) { margin-top: 14px; color: #526070; font-size: 17px; }

/* ===== Корзина: крестик удаления в своей колонке ===== */
.cart-line { grid-template-columns: 117px minmax(0, 1fr) auto 134px 24px; }
.cart-line__remove { position: static; grid-column: 5; grid-row: 1; justify-self: end; transform: none; }
@media (max-width: 1200px) { .cart-line { grid-template-columns: 90px minmax(0, 1fr) auto 120px 24px; } }
@media (max-width: 768px) {
    .cart-line { grid-template-columns: 70px minmax(0, 1fr) auto; }
    .cart-line__remove { position: absolute; top: 12px; right: 0; grid-column: auto; grid-row: auto; }
}

/* ===== «В корзине: N шт. на сумму» ===== */
.product-purchase__incart { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; width: 100%; margin-top: 18px; padding: 14px 18px 14px 58px; border-radius: 4px; background: #fff; box-shadow: 0 4px 14px rgba(14, 31, 62, .08); color: #526070; font-size: 16px; }
.product-purchase__incart[hidden] { display: none; }
.product-purchase__incart::before { position: absolute; top: 50%; left: 18px; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: #0637d5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / 14px; content: ""; }
.product-purchase__incart b { color: #14161f; font-weight: 600; }
.product-purchase__incart a { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 9px 16px; border: 1px solid #0c2d88; border-radius: 3px; color: #0c2d88; font-size: 14px; font-weight: 600; text-decoration: none; transition: all .2s ease; }
.product-purchase__incart a::after { content: "→"; }
.product-purchase__incart a:hover { background: #0c2d88; color: #fff; }

/* ===== Фото товара крупно ===== */
.product-gallery__main img { cursor: zoom-in; }
.am-lightbox { position: fixed; z-index: 2000; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(6, 21, 68, .92); }
.am-lightbox.is-open { display: flex; animation: am-lb-in .2s ease; }
@keyframes am-lb-in { from { opacity: 0; } }
.am-lightbox__stage { position: relative; line-height: 0; }
.am-lightbox__img { display: block; max-width: min(1200px, calc(100vw - 160px)); max-height: min(900px, calc(100vh - 120px)); border-radius: 4px; background: #fff; object-fit: contain; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.am-lightbox__close, .am-lightbox__nav { position: absolute; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .14) no-repeat center; transition: background-color .2s ease; }
.am-lightbox__close:hover, .am-lightbox__nav:hover { background-color: rgba(255, 255, 255, .28); }
.am-lightbox__close { top: -10px; right: -62px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='%23fff' stroke-width='2'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); background-size: 20px; }
.am-lightbox__nav { top: 50%; margin-top: -24px; background-size: 13px; }
.am-lightbox__nav--prev { left: -62px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 14' fill='none' stroke='%23fff' stroke-width='2'%3E%3Cpath d='M7 1L1 7l6 6'/%3E%3C/svg%3E"); }
.am-lightbox__nav--next { right: -62px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 14' fill='none' stroke='%23fff' stroke-width='2'%3E%3Cpath d='M1 1l6 6-6 6'/%3E%3C/svg%3E"); }
.am-lightbox.is-single .am-lightbox__nav { display: none; }
.am-lightbox__count { position: absolute; bottom: -34px; left: 50%; transform: translateX(-50%); color: #d9e2fb; font-size: 15px; line-height: 1.4; }
@media (max-width: 768px) {
    .am-lightbox__img { max-width: calc(100vw - 20px); max-height: calc(100vh - 140px); }
    .am-lightbox__close { top: -54px; right: 0; width: 42px; height: 42px; }
    .am-lightbox__nav { top: auto; bottom: -56px; margin: 0; width: 42px; height: 42px; }
    .am-lightbox__nav--prev { left: 0; }
    .am-lightbox__nav--next { right: 0; }
    .am-lightbox__count { bottom: -44px; }
}

.am-lightbox:not(.is-single) .am-lightbox__img { cursor: pointer; }
.am-lightbox.is-hover-prev .am-lightbox__nav--prev,
.am-lightbox.is-hover-next .am-lightbox__nav--next { background-color: rgba(255, 255, 255, .32); }


/* ===== Текстовые страницы: политика, согласие ===== */
.doc-page .breadcrumbs { font-size: 18px; }
.am-doc { padding: 44px 50px; border-radius: 4px; background: #fff; color: #26313e; font-size: 17px; line-height: 1.55; }
.am-doc h2 { margin: 36px 0 14px; color: #0b2380; font-size: 22px; font-weight: 700; line-height: 1.25; }
.am-doc h2:first-child { margin-top: 0; }
.am-doc p { margin-bottom: 12px; }
.am-doc ul { margin: 0 0 14px; padding-left: 0; }
.am-doc ul li { position: relative; margin-bottom: 8px; padding-left: 22px; }
.am-doc ul li::before { position: absolute; top: .7em; left: 4px; width: 6px; height: 6px; border-radius: 50%; background: #0637d5; content: ""; }
.am-doc a { color: #0637d5; text-decoration: underline; }
.am-doc__date { color: #9aa5b4; font-size: 15px; }
.am-doc ul.am-doc__requisites li { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; padding: 10px 0; margin: 0; border-bottom: 1px solid #e3e8ef; }
.am-doc ul.am-doc__requisites li::before { display: none; }
.am-doc__requisites span { color: #9aa5b4; }
.am-doc__table { width: 100%; margin: 6px 0 16px; border-collapse: collapse; font-size: 16px; }
.am-doc__table th, .am-doc__table td { padding: 14px 16px; border: 1px solid #e3e8ef; text-align: left; vertical-align: top; }
.am-doc__table th { background: #f4f7fd; color: #0b2380; font-weight: 600; }
@media (max-width: 768px) {
    .am-doc { padding: 22px 18px; font-size: 14px; }
    .am-doc h2 { margin-top: 26px; font-size: 17px; }
    .am-doc ul.am-doc__requisites li { grid-template-columns: 1fr; gap: 2px; }
    .am-doc__table, .am-doc__table tbody, .am-doc__table tr, .am-doc__table td { display: block; width: 100%; }
    .am-doc__table thead { display: none; }
    .am-doc__table tr { margin-bottom: 12px; border: 1px solid #e3e8ef; }
    .am-doc__table td { border: 0; border-bottom: 1px solid #e3e8ef; font-size: 14px; }
    .am-doc__table td:last-child { border-bottom: 0; color: #657281; }
}

/* ===== Каталог списком ===== */
.catalog-products__grid.is-list { gap: 12px; }
.catalog-products__grid.is-list .product-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; }
.catalog-products__grid.is-list .product-image { height: 130px; padding: 12px; }
.catalog-products__grid.is-list .product-info { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 1fr auto auto 1fr; column-gap: 40px; row-gap: 0; align-self: stretch; padding: 20px 76px 20px 12px; }
.catalog-products__grid.is-list .product-code { grid-column: 1; grid-row: 2; margin: 0 0 6px; color: #9aa5b4; font-size: 15px; font-weight: 500; }
.catalog-products__grid.is-list .product-title { grid-column: 1; grid-row: 3; min-height: 0; height: auto; margin: 0; font-size: 17px; font-weight: 500; line-height: 1.3; }
.catalog-products__grid.is-list .product-footer { grid-column: 2; grid-row: 1 / -1; align-self: center; gap: 28px; margin: 0; padding: 0; }
.catalog-products__grid.is-list .product-price { min-width: 150px; align-items: flex-end; font-size: 24px; text-align: right; }
.catalog-products__grid.is-list .product-favorite { top: 50%; right: 22px; margin-top: -15px; }
.catalog-products__grid.is-list .product-badges { top: 10px; left: 10px; }
@media (max-width: 768px) {
    .catalog-products__grid.is-list .product-card { grid-template-columns: 90px minmax(0, 1fr); }
    .catalog-products__grid.is-list .product-image { height: 90px; padding: 6px; }
    .catalog-products__grid.is-list .product-info { grid-template-columns: 1fr; padding: 10px 40px 10px 4px; }
    .catalog-products__grid.is-list .product-code { font-size: 11px; }
    .catalog-products__grid.is-list .product-title { font-size: 13px; }
    .catalog-products__grid.is-list .product-footer { grid-column: 1; grid-row: auto; justify-content: space-between; padding-top: 6px; }
    .catalog-products__grid.is-list .product-price { min-width: 0; align-items: flex-start; font-size: 16px; text-align: left; }
    .catalog-products__grid.is-list .product-favorite { top: 10px; right: 8px; margin-top: 0; }
}

/* ===== Характеристики товара: колонки по количеству полей ===== */
.product-page .product-specs { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 26px 32px; }
.product-page .product-specs span { white-space: nowrap; }
.product-page .product-specs__wide { grid-column: 1 / -1; }
@media (max-width: 768px) {
    .product-page .product-specs { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 18px 16px; }
    .product-page .product-specs span { white-space: normal; }
}

/* ===== Счётчики в шапке: ровный круг ===== */
.header-icon .badge {
    display: flex;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 10px;
    line-height: 1;
}

.header-icon .badge[hidden] {
    display: none;
}

/* ===== Избранное: плавное удаление карточки ===== */
.product-card.is-removing {
    opacity: 0;
    transform: scale(.94);
    pointer-events: none;
    transition: opacity .35s ease, transform .35s ease;
}

/* ===== Поиск в шапке ===== */
.header__search { position: relative; }
.header__search .search-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.header__search.is-loading .search-btn .icon-search { animation: am-search-pulse .8s ease-in-out infinite; }
@keyframes am-search-pulse { 50% { opacity: .3; } }
.am-search-drop { position: absolute; z-index: 130; top: calc(100% + 6px); right: 0; left: 0; max-height: min(640px, calc(100vh - 220px)); overflow-y: auto; border-radius: 4px; background: #fff; box-shadow: 0 24px 60px rgba(6, 21, 68, .35); color: #14161f; animation: am-search-in .16s ease; overscroll-behavior: contain; }
.am-search-drop[hidden] { display: none; }
@keyframes am-search-in { from { opacity: 0; transform: translateY(-4px); } }
.am-search-drop mark { padding: 0 1px; border-radius: 2px; background: rgba(255, 214, 0, .55); color: inherit; }
.am-sr__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 14px 22px; border-bottom: 1px solid #e3e8ef; background: #fff; color: #9aa5b4; font-size: 14px; }
.am-sr__head a { color: #0637d5; font-weight: 600; }
.am-sr__head a::after { content: " →"; }
.am-sr__item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 12px 22px; border-bottom: 1px solid #f0f3f7; transition: background .12s ease; }
.am-sr__item:hover, .am-sr__item.is-active { background: #f4f7fd; }
.am-sr__item.is-active { box-shadow: inset 3px 0 0 #0637d5; }
.am-sr__img { display: flex; width: 72px; height: 72px; align-items: center; justify-content: center; border-radius: 3px; background: #fff; }
.am-sr__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.am-sr__body { display: flex; min-width: 0; flex-direction: column; gap: 8px; }
.am-sr__title { color: #14161f; font-size: 16px; font-weight: 500; line-height: 1.3; }
.am-sr__meta { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.am-sr__chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 3px 9px; border-radius: 3px; background: #eef2f8; color: #26313e; font-size: 13px; font-weight: 600; letter-spacing: .01em; }
.am-sr__chip i { color: #9aa5b4; font-size: 12px; font-style: normal; font-weight: 400; }
.am-sr__chip--analog { background: #fff4d6; }
.am-sr__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; white-space: nowrap; }
.am-sr__side b { color: #3a4656; font-size: 18px; font-weight: 600; }
.am-sr__side em { color: #9aa5b4; font-size: 14px; font-style: normal; font-weight: 500; }
.am-sr__stock { display: inline-flex; align-items: center; gap: 6px; color: #9aa5b4; font-size: 13px; }
.am-sr__stock::before { width: 7px; height: 7px; border-radius: 50%; background: #c3cddb; content: ""; }
.am-sr__stock.is-in::before { background: #20b25a; }
.am-sr__more { display: block; padding: 16px 22px; color: #0637d5; font-size: 15px; font-weight: 600; text-align: center; }
.am-sr__more:hover { background: #f4f7fd; }
.am-sr__empty { display: flex; flex-direction: column; gap: 6px; padding: 26px 22px; color: #9aa5b4; font-size: 14px; }
.am-sr__empty b { color: #14161f; font-size: 16px; font-weight: 600; }
.am-search-summary { margin: -14px 0 26px; color: #526070; font-size: 17px; }
.am-search-summary b { color: #14161f; }
@media (max-width: 768px) {
    .am-search-drop { position: fixed; top: 110px; right: 10px; left: 10px; max-height: calc(100vh - 130px); }
    .am-sr__head, .am-sr__item { padding-right: 12px; padding-left: 12px; }
    .am-sr__item { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; }
    .am-sr__img { width: 52px; height: 52px; }
    .am-sr__title { font-size: 14px; }
    .am-sr__side { grid-column: 2; flex-direction: row; align-items: center; gap: 12px; }
    .am-sr__side b { font-size: 15px; }
}


/* ---------- Лейблы «новинка / акция / хит продаж» ---------- */
.product-badges {
    top: 16px;
    left: 16px;
    right: 64px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px;
    pointer-events: none;
}

.badge {
    display: inline-flex;
    height: 30px;
    padding: 0 11px;
    align-items: center;
    border-radius: 3px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-transform: lowercase;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(0, 19, 127, .18);
}

.badge-new  { background: linear-gradient(90deg, #ff0000 0%, #ff4f1f 100%); }
.badge-sale { background: linear-gradient(90deg, #0033ff 0%, #3a78ff 100%); }
.badge-hit  { background: linear-gradient(90deg, #00137f 0%, #2b44c9 100%); }

/* в списке картинка маленькая — лейблы строкой над артикулом */
.catalog-products__grid.is-list .product-badges {
    position: static;
    grid-column: 2;
    margin: 14px 0 -6px;
}

.catalog-products__grid.is-list .product-badges ~ .product-image {
    grid-row: 1 / span 2;
}

.catalog-products__grid.is-list .badge {
    height: 24px;
    padding: 0 9px;
    font-size: 13px;
    box-shadow: none;
}

/* карточка товара: лейблы поверх главного фото */
.product-gallery__main { position: relative; }

.product-gallery__main .product-badges {
    position: absolute;
    z-index: 2;
    top: 24px;
    left: 24px;
    right: 24px;
    display: flex;
}

.product-gallery__main .badge {
    height: 38px;
    padding: 0 18px;
    font-size: 18px;
}

@media (max-width: 767px) {
    .product-badges { top: 7px; left: 7px; right: 34px; gap: 3px; }
    .badge { height: 18px; padding: 0 6px; font-size: 10px; box-shadow: none; }
    .product-gallery__main .product-badges { top: 12px; left: 12px; }
    .product-gallery__main .badge { height: 26px; padding: 0 10px; font-size: 13px; }
}




/* =====================================================================
   О компании — /about/  (макет 1920, контент 1520)
   ===================================================================== */
.am-about {
    position: relative;
    overflow: hidden;
    padding: 40px 0 133px;
    background:
        radial-gradient(640px 560px at calc(50% + 740px) 880px, rgba(5, 58, 222, .7), transparent 72%),
        radial-gradient(980px 760px at calc(50% - 680px) 3040px, rgba(6, 52, 214, .72), transparent 72%),
        #071d79;
    color: #fff;
}

body:has(.am-about) .newsletter { background: #071d79; }

.am-about__inner { position: relative; }
.am-about__inner > *:not(.am-about__deco) { position: relative; z-index: 1; }

/* декоративный круг со штриховкой слева, как в макете */
.am-about__deco {
    position: absolute;
    z-index: 0;
    top: 994px;
    left: -498px;
    width: 1000px;
    height: 1400px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1400' fill='none' stroke='%233a6cff' stroke-opacity='.32' stroke-width='1'%3E%3Cdefs%3E%3CclipPath id='c'%3E%3Cpath d='M500 240a460 460 0 0 1 0 920z'/%3E%3C/clipPath%3E%3Cpattern id='h' width='14' height='14' patternUnits='userSpaceOnUse' patternTransform='rotate(45)'%3E%3Cpath d='M0 0v14'/%3E%3C/pattern%3E%3C/defs%3E%3Ccircle cx='500' cy='700' r='460'/%3E%3Cpath d='M500 0v1400M0 700h940'/%3E%3Crect x='500' y='240' width='460' height='920' fill='url(%23h)' stroke='none' clip-path='url(%23c)'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
    pointer-events: none;
}

/* видео: пока картинка, кнопка «плей» поверх */
.am-about__video {
    overflow: hidden;
    aspect-ratio: 1520 / 789;
    border-radius: 4px;
    background: #020c45;
}

.am-about__video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.am-about__play {
    position: absolute;
    top: 47.4%;
    left: 50%;
    width: 242px;
    height: 242px;
    transform: translate(-50%, -50%);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 242 242'%3E%3Ccircle cx='121' cy='121' r='116.5' fill='none' stroke='%23fff' stroke-width='9'/%3E%3Cpath d='M101 82.5 159 121l-58 38.5z' fill='%23fff' stroke='%23fff' stroke-width='8' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
    transition: transform .3s ease, filter .3s ease;
}

.am-about__play:hover {
    transform: translate(-50%, -50%) scale(1.06);
    filter: drop-shadow(0 0 24px rgba(120, 170, 255, .55));
}

.am-about__mark,
.am-feedback__mark {
    position: absolute;
    width: 61px;
    height: 61px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 62 62' fill='none' stroke='%23fff' stroke-width='1.8'%3E%3Cellipse cx='31' cy='31' rx='29' ry='14' transform='rotate(45 31 31)'/%3E%3Cellipse cx='31' cy='31' rx='29' ry='14' transform='rotate(-45 31 31)'/%3E%3C/svg%3E") no-repeat center / contain;
    pointer-events: none;
}

.am-about__mark { right: 45px; bottom: 42px; }

/* тексты */
.am-about__title {
    margin: 0;
    color: #fff;
    font-size: 48px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: none;
}

.am-about__story > .am-about__title { margin: 67px 0 30px; }

.am-about__cols {
    display: grid;
    grid-template-columns: 766px minmax(0, 1fr);
}

.am-about__text { max-width: 630px; }
.am-about__cols > .am-about__text + .am-about__text { max-width: 600px; }

.am-about__text p,
.am-about__mission-text,
.am-about__stat span,
.am-about__value p {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 400;
    line-height: 23px;
}

.am-about__text p + p { margin-top: 23px; }

/* миссия */
.am-about__mission { margin-top: 126px; }

.am-about__target {
    position: absolute;
    top: -132px;
    right: 61px;
    width: 556px;
    height: auto;
    pointer-events: none;
}

.am-about__mission .am-about__title { margin-bottom: 24px; }
.am-about__mission-text { max-width: 850px; }

.am-about__lead {
    max-width: 800px;
    margin: 150px 0 0;
    color: #2881ff;
    font-size: 34px;
    font-weight: 600;
    line-height: 42px;
}

/* цифры */
.am-about__stats,
.am-about__timeline .container {
    display: grid;
    grid-template-columns: 770px 462px minmax(0, 1fr);
}

.am-about__stats { margin-top: 49px; }

.am-about__stat strong {
    display: block;
    color: #fff;
    font-size: 152px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.02em;
    white-space: nowrap;
}

.am-about__stat strong small {
    margin-left: .12em;
    font-size: .62em;
    font-weight: 600;
    letter-spacing: 0;
}

.am-about__stat span { display: block; margin-top: 12px; }

/* линия с точками под цифрами — до правого края экрана */
.am-about__timeline { position: relative; z-index: 1; margin-top: 58px; }
.am-about__timeline .container { height: 10px; }

.am-about__timeline i {
    position: relative;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    border-radius: 50%;
    background: #2881ff;
}

.am-about__timeline i:first-child::before {
    position: absolute;
    top: 4.5px;
    left: 5px;
    width: 100vw;
    height: 1px;
    background: #2881ff;
    content: "";
}

/* преимущества */
.am-about__values {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 615px 617px minmax(0, 1fr);
    row-gap: 95px;
    margin-top: 135px;
}

.am-about__icon {
    display: flex;
    height: 128px;
    align-items: flex-end;
}

.am-about__icon img {
    width: auto;
    max-height: 100%;
}

.am-about__value h3 {
    margin: 44px 0 13px;
    color: #fff;
    font-size: 34px;
    font-weight: 600;
    line-height: 42px;
}

.am-about__value p { max-width: 360px; }

@media (max-width: 1600px) {
    .am-about__cols { grid-template-columns: 50% minmax(0, 1fr); }
    .am-about__text { padding-right: 40px; }
    .am-about__stats,
    .am-about__timeline .container { grid-template-columns: 50% 30% minmax(0, 1fr); }
    .am-about__values { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; }
    .am-about__target { width: 440px; top: -90px; right: 0; }
    .am-about__mission-text { max-width: calc(100% - 480px); }
    .am-about__stat strong { font-size: 120px; }
}

@media (max-width: 1200px) {
    .am-about__deco { display: none; }
    .am-about__story > .am-about__title { margin-top: 50px; }
    .am-about__title { font-size: 40px; }
    .am-about__mission { margin-top: 80px; }
    .am-about__target { width: 320px; top: -20px; }
    .am-about__mission-text { max-width: calc(100% - 340px); }
    .am-about__lead { margin-top: 90px; font-size: 28px; line-height: 36px; }
    .am-about__stat strong { font-size: 90px; }
    .am-about__value h3 { font-size: 26px; line-height: 32px; margin-top: 28px; }
    .am-about__values { margin-top: 90px; row-gap: 70px; }
}

@media (max-width: 768px) {
    .am-about { padding: 16px 0 60px; }
    .am-about__play { width: 80px; height: 80px; }
    .am-about__mark { right: 12px; bottom: 12px; width: 28px; height: 28px; }
    .am-about__title { font-size: 28px; }
    .am-about__story > .am-about__title { margin: 32px 0 16px; }
    .am-about__cols { grid-template-columns: 1fr; row-gap: 18px; }
    .am-about__text { max-width: none; padding-right: 0; }
    .am-about__cols > .am-about__text + .am-about__text { max-width: none; }
    .am-about__text p,
    .am-about__mission-text,
    .am-about__stat span,
    .am-about__value p { font-size: 14px; line-height: 19px; }
    .am-about__text p + p { margin-top: 14px; }
    .am-about__mission { display: flex; flex-direction: column; margin-top: 40px; }
    .am-about__mission-text { order: 1; }
    .am-about__target { order: 2; }
    .am-about__lead { order: 3; }
    .am-about__target { position: static; display: block; width: 220px; margin: 24px auto 0; }
    .am-about__mission .am-about__title { margin-bottom: 14px; }
    .am-about__mission-text { max-width: none; }
    .am-about__lead { margin-top: 36px; font-size: 20px; line-height: 26px; }
    .am-about__stats { grid-template-columns: 1fr 1fr; gap: 24px 16px; margin-top: 24px; }
    .am-about__stat:first-child { grid-column: 1 / -1; }
    .am-about__stat strong { font-size: 64px; }
    .am-about__stat span { margin-top: 6px; }
    .am-about__timeline { display: none; }
    .am-about__values { grid-template-columns: 1fr 1fr; gap: 36px 16px; margin-top: 48px; }
    .am-about__icon { height: 64px; }
    .am-about__value h3 { margin: 16px 0 8px; font-size: 18px; line-height: 22px; }
}

/* =====================================================================
   Контакты — /contacts/
   ===================================================================== */
.am-contacts { padding-bottom: 75px; background: #e1e8f0; }
.am-contacts .breadcrumbs { margin-bottom: 0; font-size: 18px; }

.am-contacts__title {
    margin: 38px 0 52px;
    color: #001572;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.am-contacts__layout {
    display: grid;
    grid-template-columns: 600px minmax(0, 1fr);
    align-items: stretch;
    gap: 20px;
}

.am-contacts__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.am-office {
    padding: 24px 35px 31px;
    border-radius: 4px;
    background: #fff;
}

.am-office h2 {
    margin: 0 0 36px;
    color: #000;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
}

.am-office dl { margin: 0; }

.am-office dt,
.am-office dd {
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    line-height: 22px;
}

.am-office dt { color: #9aa5b4; }
.am-office dt:not(:first-child) { margin-top: 17px; }
.am-office dd { margin-top: 8px; color: #000; }
.am-office dd a { white-space: nowrap; }
.am-office dd a:hover { color: #0637d5; }

.am-contacts__side {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 23px;
}

.am-contacts__map {
    position: relative;
    min-height: 420px;
    flex: 1;
    overflow: hidden;
    border-radius: 4px;
    background: #f2f1ee;
}

.am-contacts__map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* форма обратной связи */
.am-feedback {
    position: relative;
    min-height: 530px;
    overflow: hidden;
    padding: 24px 40px 40px;
    border-radius: 4px;
    background: #002dec;
    color: #fff;
}

.am-feedback__body {
    position: relative;
    z-index: 2;
    width: 361px;
}

.am-feedback__title {
    margin: 0;
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
}

.am-feedback__subtitle {
    margin: 5px 0 28px;
    color: #fff;
    font-size: 12px;
    line-height: 15px;
}

.am-feedback__form {
    display: flex;
    flex-direction: column;
}

.am-feedback__form input[type="text"],
.am-feedback__form input[type="email"],
.am-feedback__form textarea {
    display: block;
    width: 100%;
    height: 50px;
    margin-bottom: 20px;
    padding: 0 20px;
    border: 2px solid #fff;
    border-radius: 2px;
    background: #fff;
    color: #14161f;
    font: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color .2s ease;
}

.am-feedback__form textarea {
    height: 105px;
    margin-bottom: 15px;
    padding: 14px 20px;
    resize: vertical;
}

.am-feedback__form ::placeholder { color: #9aa5b4; font-size: 12px; }
.am-feedback__form input:focus,
.am-feedback__form textarea:focus { border-color: #ff0000; }

.am-feedback__check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #fff;
    font-size: 12px;
    line-height: 15px;
    cursor: pointer;
}

.am-feedback__check input {
    position: relative;
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    appearance: none;
}

.am-feedback__check input:checked::after {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23002dec' stroke-width='2.4'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7'/%3E%3C/svg%3E") no-repeat center / 16px;
    content: "";
}

.am-feedback__check input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.am-feedback__check span { padding-top: 2px; }
.am-feedback__check a { text-decoration: underline; }

.am-feedback__btn {
    width: 100%;
    height: 50px;
    margin-top: 24px;
    border-radius: 3px;
    background: #ff0000;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    transition: background .2s ease, box-shadow .2s ease;
}

.am-feedback__btn:hover { box-shadow: 0 12px 20px -4px rgba(0, 0, 0, .45); }
.am-feedback__btn:active { background: #990000; box-shadow: none; }

.am-feedback__ok,
.am-feedback__error {
    padding: 14px 16px;
    border-radius: 3px;
    font-size: 14px;
    line-height: 1.4;
}

.am-feedback__ok { background: rgba(255, 255, 255, .14); }
.am-feedback__error { margin-bottom: 16px; background: #ff0000; }

.am-feedback__frame {
    position: absolute;
    z-index: 0;
    border: 1px solid rgba(110, 150, 255, .7);
    pointer-events: none;
}

.am-feedback__frame--1 { top: 25px; left: 484px; width: 212px; height: 212px; }
.am-feedback__frame--2 { top: 185px; left: 585px; width: 286px; height: 286px; }

.am-feedback__img {
    position: absolute;
    z-index: 1;
    top: 92px;
    left: 508px;
    width: 319px;
    height: auto;
    pointer-events: none;
}

.am-feedback__mark { top: 23px; right: 23px; width: 34px; height: 34px; }

@media (max-width: 1600px) {
    .am-contacts__layout { grid-template-columns: 520px minmax(0, 1fr); }
    .am-feedback__frame--1 { left: auto; right: 220px; }
    .am-feedback__frame--2 { left: auto; right: 32px; }
    .am-feedback__img { left: auto; right: 70px; }
}

@media (max-width: 1200px) {
    .am-contacts__layout { grid-template-columns: 1fr; }
    .am-contacts__list { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .am-contacts .breadcrumbs { font-size: 13px; }
    .am-contacts { padding-bottom: 30px; }
    .am-contacts__title { margin: 20px 0 20px; font-size: 24px; }
    .am-contacts__list { grid-template-columns: 1fr; gap: 12px; }
    .am-office { padding: 18px 18px 20px; }
    .am-office h2 { margin-bottom: 16px; font-size: 18px; }
    .am-office dt, .am-office dd { font-size: 14px; line-height: 19px; }
    .am-office dt:not(:first-child) { margin-top: 12px; }
    .am-office dd { margin-top: 4px; }
    .am-office dd a { white-space: normal; }
    .am-feedback { min-height: 0; padding: 22px 18px 24px; }
    .am-feedback__body { width: auto; }
    .am-feedback__frame, .am-feedback__img { display: none; }
    .am-feedback__mark { top: 16px; right: 16px; width: 26px; height: 26px; }
    .am-contacts__map { min-height: 320px; }
}

/* карта: без скролла колесом, пока по ней не кликнули */
.am-contacts__map-lock {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 24px;
    background: transparent;
    cursor: pointer;
}

.am-contacts__map-lock span {
    padding: 10px 18px;
    border-radius: 3px;
    background: rgba(6, 21, 68, .85);
    color: #fff;
    font-size: 15px;
    opacity: 0;
    transition: opacity .2s ease;
}

.am-contacts__map-lock:hover span,
.am-contacts__map-lock:focus-visible span { opacity: 1; }

.am-contacts__map.is-active .am-contacts__map-lock { display: none; }

@media (hover: none) {
    .am-contacts__map-lock span { opacity: 1; font-size: 13px; }
}

/* обложка «видео» на главной — как на странице «О компании», только мельче */
.am-about__video { position: relative; }
.am-about__video--home .am-about__play { width: 120px; height: 120px; }
.am-about__video--home .am-about__mark { right: 20px; bottom: 20px; width: 36px; height: 36px; }
@media (max-width: 768px) {
    .am-about__video--home .am-about__play { width: 64px; height: 64px; }
    .am-about__video--home .am-about__mark { right: 10px; bottom: 10px; width: 24px; height: 24px; }
}