/* Site overrides — Magistral (кириллица), mobile menu, header stacking */

/* MagistralC.woff2 — только латиница; для русского используем Magistral.TTF */
@font-face {
    font-family: "Magistral";
    src: url("../fonts/magistral/Magistral.TTF") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Magistral";
    src: url("../fonts/magistral/Magistral%20Bold.TTF") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --magistral: "Magistral", sans-serif;
    --bs-brand-2: #FA850C;
    --bs-brand-2-dark: #FA850C;
    --bs-brand-2-darken: #D96F09;
    --bs-brand-2-light: #3d2810;
    --bs-button-bg: #FA850C;
    --bs-link-hover-color: #A35A08;
    --bs-primary-rgb: 250, 133, 12;
    --bs-background-2: #A6ABBD;
}

/* Жёстко прошитые в main.css оттенки старого brand-2 */
.page-loader {
    border-color: var(--bs-link-hover-color);
}

.page-loader::after {
    border-color: var(--bs-brand-2-darken) transparent;
}

input:checked + .slider {
    background-color: var(--bs-brand-2);
}

a.icon-socials:hover svg path {
    fill: var(--bs-brand-2);
}

h1,
h2,
h3,
h4,
h5,
h6,
.heading-1,
.heading-2,
.heading-3,
.heading-4,
.heading-5,
.heading-6,
.text-primary,
.text-md-bold {
    font-family: var(--magistral);
}

h1,
h2,
h3,
h4,
h5,
h6,
.heading-1,
.heading-2,
.heading-3,
.heading-4,
.heading-5,
.heading-6,
.text-primary,
.text-md-bold,
.header .main-menu > li > a,
.header .top-bar .phone-head,
.header .top-bar .email-head,
.header .top-bar .text-unlock,
.btn,
.footer h6,
.footer .menu-footer a,
.mobile-menu > li > a,
nav[aria-label="Хлебные крошки"] a,
nav[aria-label="Хлебные крошки"] [itemprop="name"],
.service-price-card__title {
    letter-spacing: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.heading-1,
.heading-2,
.heading-3,
.heading-4,
.heading-5,
.heading-6 {
    font-weight: 400;
}

.header .main-menu > li > a {
    font-family: var(--magistral);
    font-weight: 400;
}

.header .top-bar .phone-head,
.header .top-bar .email-head,
.header .top-bar .text-unlock {
    font-family: var(--magistral);
}

.btn {
    text-transform: uppercase;
    font-family: var(--magistral);
}

.btn.btn-primary,
.btn.btn-primary2 {
    padding: 12px 22px;
    font-family: var(--magistral);
    border: none !important;
}

.btn.btn-primary:hover,
.btn.btn-primary:focus,
.btn.btn-primary2:hover,
.btn.btn-primary2:focus {
    border: none !important;
    box-shadow: none;
}

.header .btn-signin {
    font-weight: 700;
}

.footer h6,
.footer .menu-footer a {
    font-family: var(--magistral);
    font-weight: 400;
}

.footer p.neutral-400 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer p.neutral-400 a:hover {
    color: var(--bs-brand-2);
}

.footer .footer-bottom a {
    color: var(--bs-brand-2) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer .footer-bottom a:hover {
    color: #fff !important;
}

.mobile-menu > li > a {
    font-family: var(--magistral);
    font-weight: 400;
}

nav[aria-label="Хлебные крошки"] a,
nav[aria-label="Хлебные крошки"] [itemprop="name"] {
    font-family: var(--magistral);
    font-weight: 700;
}

.body-overlay-1 {
    pointer-events: none;
    z-index: 1008;
}

.mobile-menu-active .body-overlay-1 {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.45);
}

.mobile-header-wrapper-style,
.sidebar-canvas-wrapper {
    transform: translateX(100%);
    z-index: 1010;
}

.mobile-header-wrapper-style.sidebar-visible,
.mobile-header-wrapper-style.sidebar-canvas-visible,
.sidebar-canvas-wrapper.sidebar-visible,
.sidebar-canvas-wrapper.sidebar-canvas-visible {
    transform: translateX(0);
}

@media (min-width: 1400px) {
    .mobile-header-wrapper-style {
        display: none;
    }
}

.mobile-menu-active {
    overflow: hidden;
}

.mobile-menu-active .header .burger-icon {
    visibility: hidden;
    pointer-events: none;
}

/* Бургер в одной строке с логотипом: absolute схлопывает .header-right на мобильных */
@media (max-width: 1399.98px) {
    .header .main-header .header-right {
        width: auto;
        min-width: 0;
        padding-right: 0;
        flex-shrink: 0;
    }

    .header .main-header .header-right .burger-icon {
        position: relative;
        top: auto;
        right: auto;
    }
}

.mobile-header-wrapper-style .mobile-header-wrapper-inner .mobile-header-logo .burger-icon {
    display: inline-block;
    background-image: none;
}

.mobile-header-wrapper-style .mobile-header-wrapper-inner .mobile-header-logo .burger-icon > span {
    display: block;
}

.mobile-menu li.has-children > .sub-menu {
    display: none;
}

.mobile-menu li.has-children.active > .sub-menu {
    display: block;
}

.mobile-menu li.has-children > .menu-expand {
    cursor: pointer;
}

/* Прайс-лист моделей GEELY — аккордеон на <details>/<summary> */
.service-price-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-price-card {
    border: 1px solid var(--bs-neutral-200, #e4e4e4);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-price-card:has(details[open]) {
    border-color: var(--bs-brand-2);
    box-shadow: 0 8px 24px rgba(250, 133, 12, 0.12);
}

.service-price-card details {
    margin: 0;
}

.service-price-card details > summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    user-select: none;
    background-color: var(--bs-background-card, #fff);
    border-bottom: 1px solid transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.service-price-card details > summary::-webkit-details-marker,
.service-price-card details > summary::marker {
    display: none;
    content: "";
}

.service-price-card details > summary:hover {
    background-color: var(--bs-neutral-100, #f5f5f5);
}

.service-price-card details > summary:focus {
    outline: none;
}

.service-price-card details > summary:focus-visible {
    outline: 2px solid var(--bs-brand-2);
    outline-offset: -2px;
}

.service-price-card details[open] > summary {
    border-bottom-color: var(--bs-neutral-200, #e4e4e4);
    background-color: var(--bs-neutral-100, #f5f5f5);
}

.service-price-card details > summary::after {
    content: "";
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background-color: var(--bs-brand-2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M8 3.5V12.5M3.5 8H12.5' stroke='%23101010' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.service-price-card details[open] > summary::after {
    transform: rotate(45deg);
    background-color: var(--bs-brand-2-darken);
}

.service-price-card__title {
    font-family: var(--magistral, "Magistral", sans-serif);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    text-transform: uppercase;
    color: var(--bs-neutral-1000, #101010);
    margin: 0;
}

.service-price-card details .table-responsive {
    border-top: 0;
    background-color: var(--bs-background-card, #fff);
}

.service-price-table {
    margin-bottom: 0;
}

.service-price-table tbody tr {
    border-bottom: 1px solid var(--bs-neutral-100, #f0f0f0);
}

.service-price-table tbody tr:last-child {
    border-bottom: 0;
}

.service-price-table tbody tr:hover {
    background-color: var(--bs-neutral-100, #f8f8f8);
}

.service-price-table td {
    padding: 14px 20px;
    vertical-align: middle;
    font-size: 15px;
    line-height: 1.5;
    color: var(--bs-neutral-700, #4d4d4d);
    border: 0;
}

.service-price-table td:last-child {
    white-space: nowrap;
    font-weight: 700;
    color: var(--bs-neutral-1000, #101010);
}

.service-price-card details > p,
.service-price-card details > ul,
.service-price-card details > .answer-content {
    padding-left: 20px;
    padding-right: 20px;
    margin-top: 0;
}

.service-price-card details > p:last-child,
.service-price-card details > ul:last-child,
.service-price-card details > .answer-content:last-child {
    padding-bottom: 18px;
}

.service-price-card details > p + p,
.service-price-card details > .answer-content p {
    padding-left: 0;
    padding-right: 0;
}

.service-price-card details a {
    color: var(--bs-brand-2, #fa850c);
    text-decoration: underline;
}

@media (max-width: 575.98px) {
    .service-price-card details > summary {
        padding: 16px;
    }

    .service-price-card__title {
        font-size: 1rem;
    }

    .service-price-table td {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* Header: корзина и профиль */
.header-account-tools {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.header-cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.header-cart-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    text-decoration: none;
}

.header:not(.header-fixed) .header-cart-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

.header-cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--bs-brand-2, #ffc107);
    color: #111;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.header-profile-dropdown {
    position: relative;
}

.header-profile-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.header-profile-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 220px;
    padding: 8px 0;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    z-index: 1000;
}

.header-profile-dropdown.is-open .header-profile-menu {
    display: block;
}

.header-profile-menu a {
    display: block;
    padding: 10px 16px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.header-profile-menu a:hover {
    background: #f3f4f6;
    color: #111;
}

.header-profile-menu .header-profile-logout {
    border-top: 1px solid #eee;
    margin-top: 4px;
    padding-top: 12px;
    color: #b91c1c;
}

.mobile-menu-divider {
    height: 1px;
    margin: 12px 0;
    background: rgba(0, 0, 0, 0.08);
    list-style: none;
}

.order-card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.order-card-link:hover .text-md-bold {
    color: var(--bs-brand-2, #ffc107);
}

.cart-remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.cart-remove-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.breadcrumb-home-icon {
    transform: translateY(4px);
}

/* Hero-баннер страницы модели (image_hero из geely_models) */
.model-hero-banner {
    min-height: 280px;
}

.model-hero-banner .model-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.model-hero-banner .model-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 20, 25, 0.82) 0%, rgba(15, 20, 25, 0.35) 100%);
}

/* Cookie consent */
.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10050;
    padding: 12px 16px 16px;
    pointer-events: none;
}

.cookie-consent__panel,
.cookie-consent__settings {
    pointer-events: auto;
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    background: rgba(26, 35, 50, 0.66);
    border: 1px solid rgba(45, 58, 79, 0.66);
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    color: #e8eef7;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cookie-consent__settings {
    margin-top: 10px;
}

.cookie-consent__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #a8b8cc;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, background 0.15s ease;
}

.cookie-consent__close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.cookie-consent__panel .cookie-consent__text {
    padding-right: 36px;
}

.cookie-consent__settings .cookie-consent__settings-title {
    padding-right: 36px;
}

.cookie-consent__text {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.55;
    color: #c5d0e0;
}

.cookie-consent__text a {
    color: #7eb8ff;
    text-decoration: underline;
}

.cookie-consent__actions,
.cookie-consent__settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.cookie-consent__settings-title {
    margin: 0 0 10px;
    font-weight: 600;
}

.cookie-consent__option {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.45;
    color: #c5d0e0;
    cursor: pointer;
}

.cookie-consent__option span {
    min-width: 0;
}

/* Перебиваем глобальный input { width:100%; height:50px } из main.css */
.cookie-consent__option input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    max-width: 18px;
    margin: 2px 0 0 !important;
    padding: 0 !important;
    border-radius: 4px;
    border: 1px solid #6b7c93;
    background: #0f1419;
    box-shadow: none !important;
    flex: none;
    appearance: auto;
    -webkit-appearance: checkbox;
    accent-color: var(--bs-brand-2, #fa850c);
    cursor: pointer;
    vertical-align: top;
}

.cookie-consent__option input[type="checkbox"]:disabled {
    opacity: 0.75;
    cursor: default;
}

.pd-consent-field .form-check-input {
    margin-top: 0.2em;
}

.pd-consent-field a {
    text-decoration: underline;
}

.legal-doc h5 {
    margin-bottom: 0.5rem;
}

.legal-requisites {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 10px 16px;
    margin: 0;
}

.legal-requisites dt {
    font-weight: 600;
    color: var(--bs-neutral-1000, #111);
}

.legal-requisites dd {
    margin: 0;
    color: var(--bs-neutral-500, #666);
}

@media (max-width: 575px) {
    .legal-requisites {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .legal-requisites dt {
        margin-top: 8px;
    }
}

.to-calculator .form-control {
    min-height: 48px;
}

.to-calculator-select {
    position: relative;
}

.to-calculator-select select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding-right: 52px;
    cursor: pointer;
    background-color: var(--bs-background-card, #fff);
}

.to-calculator-select::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    pointer-events: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background-color: var(--bs-brand-2, #fa850c);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M8 3.5V12.5M3.5 8H12.5' stroke='%23101010' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.to-calculator-select:focus-within::after {
    background-color: var(--bs-brand-2-darken, #e0750a);
}

.to-estimate-table th {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.to-estimate-table td {
    font-size: 14px;
    vertical-align: middle;
}

.to-estimate__grand {
    background: linear-gradient(135deg, rgba(250, 133, 12, 0.08), rgba(250, 133, 12, 0.02));
    border: 1px solid rgba(250, 133, 12, 0.2);
}

.to-estimate__total {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--bs-brand-2, #fa850c);
    line-height: 1.2;
}

.sitemap-public {
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.sitemap-public ul {
    list-style: none;
    margin: 8px 0 0;
    padding-left: 1.25rem;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.sitemap-public__item + .sitemap-public__item {
    margin-top: 8px;
}

.sitemap-public a {
    color: var(--bs-neutral-1000, #111);
    text-decoration: none;
}

.sitemap-public a:hover {
    color: var(--bs-brand-2, #fa850c);
    text-decoration: underline;
}

/* Главная hero-1: смартфоны (iPhone, Pixel) — 60px от нижнего края шапки */
@media only screen and (max-width: 767.98px) {
    .block-banner-home1.hero-1 {
        padding-top: calc(var(--home-header-height, 112px) + 60px);
        min-height: auto;
        padding-bottom: 2rem;
    }

    .block-banner-home1.hero-1 h1 {
        font-size: 2rem;
        line-height: 1.25;
        margin-bottom: 1rem;
    }

    .block-banner-home1.hero-1 .hero-1-cta,
    .block-banner-home1.hero-1 .container > .mt-4.d-flex {
        display: none !important;
    }
}

.booking-phone-actions {
    --booking-btn-h: 44px;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    max-width: 100%;
}

.booking-phone-actions:has(.btn-sm) {
    --booking-btn-h: 40px;
}

.booking-phone-actions > .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--booking-btn-h);
    height: var(--booking-btn-h);
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1.2 !important;
    border: none !important;
    box-shadow: none !important;
    flex-shrink: 0;
}

.booking-phone-actions > .btn.btn-primary2 {
    padding-left: 18px;
    padding-right: 18px;
    font-size: 13px !important;
}

.booking-phone-actions > .btn.btn-primary {
    padding-left: 22px;
    padding-right: 22px;
    font-size: 14px !important;
}

.btn.btn-phone-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--booking-btn-h, 44px);
    min-width: var(--booking-btn-h, 44px);
    height: var(--booking-btn-h, 44px);
    padding: 0;
    border-radius: 12px;
    background-color: var(--bs-brand-2, #FA850C);
    color: #fff !important;
    border: none !important;
    text-decoration: none;
    flex-shrink: 0;
    line-height: 1;
    opacity: 1;
    box-shadow: none !important;
}

.btn.btn-phone-call:hover,
.btn.btn-phone-call:focus {
    background-color: var(--bs-brand-2-darken, #D96F09);
    color: #fff !important;
    border: none !important;
    box-shadow: none !important;
}

.btn.btn-phone-call .fa {
    font-size: 18px;
}

.booking-phone-actions:has(.btn-sm) .btn.btn-phone-call {
    border-radius: 10px;
}

.booking-phone-actions:has(.btn-sm) .btn.btn-phone-call .fa {
    font-size: 16px;
}

@media (min-width: 992px) {
    .booking-phone-actions.justify-content-lg-end {
        justify-content: flex-end;
    }
}
