:root {
    --dark-color: 27, 27, 27;
    --bs-dark-rgb: var(--dark-color);
    --white-color: 255, 255, 255;
    --primary-color: 243, 178, 0;
    --bs-primary-rgb: var(--primary-color);
    --font-family: "Manrope", sans-serif;
    --anim: 0.4s ease;
}

body {
    color: rgb(var(--dark-color));
    font-family: var(--font-family);
}

img, svg {
    max-width: 100%;
    height: auto;
}

svg {
    fill: currentColor;
}

a, button {
    color: inherit;
}

.slider-pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 15px;
}

.slider-pagination__bullet {
    width: 24px;
    height: 4px;
    background-color: rgb(var(--dark-color));
    opacity: 0.2;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-pagination__bullet--active {
    opacity: 1;
}

.burger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background-color: transparent;
    width: 40px;
    height: 40px;
}

.burger::after, .burger::before {
    content: '';
}

.burger::after, .burger::before, .burger-line {
    width: 100%;
    height: 4px;
    background-color: rgb(var(--dark-color));
    border-radius: 50px;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.accordion__descr {
    display: none;
    padding: 24px;
}

.accordion__descr--active {
    display: block;
    padding: 24px;
}

.accordion__button {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.accordion__caption {
    text-align: start;
}

.accordion__icon {
    width: 12px;
    height: 12px;
    color: inherit;
    fill: currentColor;
    rotate: -90deg;
    transition: transform var(--anim);
}

.accordion__button {
    background: white;
    border: 1px solid lightgray;
    padding: 16px;
    width: 100%;
    border-radius: 4px;
}

.accordion__item--active .accordion__button {
    background-color: rgb(var(--primary-color));
    color: rgb(var(--white-color));
    border-color: transparent;
}

.accordion__item--active .accordion__icon {
    rotate: 0deg;
}

.accordion__item--active .accordion__descr {
    display: block;
}

.title {
    font-size: 40px;
    font-weight: 600;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    padding: 16px 24px;
    border-radius: 10px;
    border: 1px solid rgb(var(--primary-color));
    background-color: rgb(var(--primary-color));
    text-transform: uppercase;
    font-weight: 500;
    transition: border-color var(--anim), color var(--anim), background-color var(--anim);
}

.button--border {
    background-color: transparent;
    border-color: rgb(var(--dark-color));
}

.button:hover {
    background-color: rgb(var(--dark-color));
    color: rgb(var(--white-color));
    border-color: rgb(var(--dark-color));
}

.picture-image {
    position: relative;
    padding-bottom: 70%;
    display: block;
    width: 100%;
}

.picture-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.picture-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.picture-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.picture-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header {
    z-index: 100;
}

.menu-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    padding: 16px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color var(--anim), color var(--anim);
}

.menu-link:hover {
    background-color: rgb(var(--white-color));
}

.hero-item {
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
}

.hero-description {
    font-size: 24px;
}

.hero-advantages {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.hero-advantage {
    flex: 1 0 auto;
    width: 230px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-advantage__icon {
    flex: 0 0 auto;
    width: 32px;
}

.hero-advantage__name {
    font-weight: 500;
}

.hero-advantage__descr {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 2px;
}

.hero-advantage__link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    flex: 1 0 auto;
}

.hero-form {
    background: rgba(var(--dark-color), 0.85);
    backdrop-filter: blur(8px);
    max-width: 440px;
    width: 100%;
}

.hero-form__title {
    font-size: 1.5rem;
    font-weight: 600;
}

.hero-form__line {
    width: 60px;
    height: 2px;
    background: rgb(var(--white-color));
}

.hero-form__subtitle {
    font-size: 0.95rem;
    color: rgb(var(--primary-color));
    margin-bottom: 0;
}

.hero-form .form-control {
    background: rgba(var(--white-color), 0.15);
    border: 1px solid rgba(var(--white-color), 0.25);
    color: rgb(var(--white-color));
}

.hero-form .form-control::placeholder {
    color: rgba(var(--white-color), 0.5);
}

@media (max-width: 991.98px) {
    .hero-form {
        margin-top: 0.5rem;
    }
}

.catalog-item__name {
    font-size: 24px;
    font-weight: 500;
    transition: color var(--anim);
}

.catalog-item__name:hover {
    color: rgb(var(--primary-color))
}

.catalog-item__price {
    font-size: 18px;
}

.feedback-item__name {
    font-weight: 500;
    font-size: 24px;
}

.feedback-item__description {
    font-size: 18px;
}

.about-advantage {
    flex: 1 0 auto;
    width: 340px;
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgb(var(--dark-color), 0.1);
    border-radius: 5px;
    transition: background-color var(--anim), border-color var(--anim), color var(--anim);
}

.about-advantage__icon {
    flex: 0 0 auto;
    width: 48px;
}

.about-advantage__name {
    font-weight: 600;
}

.about-advantage:hover {
    background-color: rgb(var(--dark-color));
    color: rgb(var(--white-color));
}

.gallery-slider .swiper-wrapper {
    max-height: 700px;
}

.gallery-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.map::after {
    content: attr(data-map-caption);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(var(--dark-color), 0.7);
    color: rgb(var(--white-color));
    font-size: 24px;
    opacity: 0;
    transition: opacity var(--anim), visibility var(--anim);
}

.map:hover::after {
    opacity: 1;
}

.map-wrapper {
    pointer-events: none;
}

.map.active > .map-wrapper {
    pointer-events: auto;
}

.map.active::after {
    opacity: 0;
    visibility: hidden;
}

.footer-menu__link {
    transition: opacity var(--anim);
    text-decoration: none;
    opacity: 0.75;
    font-weight: 300;
    font-size: 18px;
}

.footer-title {
    font-size: 18px;
}

.footer-menu {
    gap: 10px;
}

.footer-menu__link:hover {
    opacity: 1;
}

.footer-contacts {
    gap: 10px;
}

.footer-contact {
    font-size: 18px;
}

@media (max-width: 1399px) {
    .catalog-item__name {
        font-size: 20px;
    }

    .feedback-item__name {
        font-size: 20px;
    }

    .feedback-item__description {
        font-size: 16px;
    }

    .gallery-slider .swiper-wrapper {
        max-height: 650px;
    }
}

@media (max-width: 991px) {
    .hero-item {
        min-height: 470px;
    }

    .gallery-slider .swiper-wrapper {
        max-height: 480px;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 40px;
    }

    .catalog-item__name {
        font-size: 18px;
    }

    .catalog-item__price {
        font-size: 14px;
    }

    .gallery-slider .swiper-wrapper {
        max-height: 350px;
    }
}

@media (max-width: 575px) {
    body {
        font-size: 14px;
    }

    .title {
        font-size: 24px;
        font-weight: 600;
    }

    .header-phone {
        font-size: 14px;
    }

    .header-email {
        font-size: 12px;
    }

    .header-logo {
        max-width: 90px;
    }

    .hero-title {
        font-size: 24px;
    }

    .gallery-slider .swiper-wrapper {
        max-height: 530px;
    }

    .about-advantage {
        flex: 1 0 auto;
        width: 280px;
        display: flex;
        gap: 16px;
        align-items: center;
        padding: 16px;
        border: 1px solid rgb(var(--dark-color), 0.1);
        border-radius: 5px;
        transition: background-color var(--anim), border-color var(--anim), color var(--anim);
    }
}

@media (max-width: 400px) {
    .gallery-slider .swiper-wrapper {
        max-height: 350px;
    }
}
.logo img {
    max-height: 73px;
}
.woocommerce .products ul::after, 
.woocommerce .products ul::before, 
.woocommerce ul.products::after, 
.woocommerce ul.products::before{
    display: none;
}
.woocommerce nav.woocommerce-pagination ul{
    border:none;
}

.woocommerce nav.woocommerce-pagination ul li{
    border-right:none;
}
.site-footer {
    margin-top: clamp(40px, 6vw, 80px);
    padding-block: clamp(40px, 5vw, 64px);
    overflow: hidden;
}

.site-footer .row > * {
    min-width: 0;
}

.site-footer__column {
    height: 100%;
    min-width: 0;
}

.site-footer__logo,
.site-footer__logo .custom-logo-link {
    display: inline-flex;
    max-width: 100%;
}

.site-footer__logo img,
.site-footer__logo .custom-logo {
    display: block;
    width: auto;
    max-width: min(100%, 240px);
    height: auto;
    max-height: 72px;
    object-fit: contain;
}

.site-footer__description,
.footer-copy,
.footer-contact,
.site-footer .footer-menu__link {
    color: rgba(255, 255, 255, 0.72);
}

.site-footer__description {
    max-width: 32rem;
    font-size: 0.9375rem;
    line-height: 1.65;
}

.site-footer .footer-title {
    margin: 0 0 16px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

.site-footer .footer-menu,
.site-footer .footer-contacts {
    gap: 10px;
}

.site-footer .footer-menu__link,
.site-footer .footer-contact {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    padding-block: 2px;
    font-style: normal;
    line-height: 1.55;
    overflow-wrap: anywhere;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a.footer-menu__link:hover,
.site-footer a.footer-menu__link:focus-visible,
.site-footer a.footer-contact:hover,
.site-footer a.footer-contact:focus-visible {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer__cta {
    width: 100%;
    max-width: 260px;
}

.ural-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.ural-lead-form {
    position: relative;
}

.ural-lead-form .form-label__caption small,
.modal-subtitle {
    color: #6c757d;
    font-size: 0.8125rem;
    font-weight: 400;
}

.ural-lead-form textarea {
    min-height: 104px;
    resize: vertical;
}

.ural-lead-form .ural-form-message:empty {
    display: none;
}

.ural-lead-form .ural-form-message {
    padding: 10px 12px;
    border-radius: 8px;
    background: #f8d7da;
    color: #842029;
}

.ural-lead-form button[type="submit"] {
    min-height: 50px;
    background: #b98200;
    border: 1px solid #b98200;
    color: #fff;
    font-weight: 700;
}

.ural-lead-form button[type="submit"]:hover,
.ural-lead-form button[type="submit"]:focus-visible {
    background: #966a00;
    border-color: #966a00;
}

.ural-lead-form button[type="submit"]:disabled {
    cursor: wait;
    opacity: 0.68;
}

@media (max-width: 767.98px) {
    .site-footer {
        margin-top: 32px;
        padding-block: 36px;
    }

    .site-footer .footer-title {
        margin-bottom: 12px;
    }

    .site-footer__cta {
        max-width: none;
    }

    #modal .modal-dialog {
        margin: 12px;
    }

    #modal .modal-content {
        max-height: calc(100dvh - 24px);
    }

    #modal .modal-header,
    #modal .ural-lead-form {
        padding: 18px !important;
    }

    #modal .ural-lead-form {
        gap: 12px !important;
    }

    #modal .form-control {
        padding: 12px !important;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .site-footer .row {
        row-gap: 36px !important;
    }
}

/* Dnisha smart lead form v2: compact mobile flow with a permanently visible action. */
#modal .modal-dialog-scrollable .modal-content {
    max-height: min(calc(100dvh - 24px), var(--dnisha-visual-height, 100dvh));
}

#modal .ural-lead-form {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 !important;
    gap: 0 !important;
    overflow: hidden;
}

#modal .dnisha-form-scroll {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-padding-block: 16px;
    -webkit-overflow-scrolling: touch;
}

#modal .dnisha-submit-bar {
    flex: 0 0 auto;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid #e6e6e6;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(8px);
}

#modal .dnisha-submit-bar .form-privacy {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 0.8125rem;
    line-height: 1.3;
}

#modal .dnisha-submit-bar .form-privacy input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

#modal .dnisha-response-window {
    margin-top: 7px;
    color: #5f6368;
    font-size: 0.75rem;
    line-height: 1.35;
}

#modal .dnisha-submit-bar button[type="submit"] {
    width: 100%;
    min-height: 52px;
    margin-top: 9px;
}

#modal .dnisha-contact-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

#modal .dnisha-contact-tab {
    position: relative;
    margin: 0;
}

#modal .dnisha-contact-tab input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
}

#modal .dnisha-contact-tab span {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border: 1px solid #cfd3d7;
    border-radius: 10px;
    background: #fff;
    color: #343a40;
    font-size: 0.875rem;
    font-weight: 650;
    text-align: center;
    cursor: pointer;
}

#modal .dnisha-contact-tab input:checked + span {
    border-color: #b98200;
    background: #fff7dc;
    color: #5c4300;
    box-shadow: inset 0 0 0 1px #b98200;
}

#modal .dnisha-contact-tab input:focus-visible + span {
    outline: 3px solid rgba(185, 130, 0, 0.25);
    outline-offset: 2px;
}

#modal .dnisha-contact-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#modal [data-contact-panel][hidden] {
    display: none !important;
}

#modal .dnisha-add-contact {
    align-self: flex-start;
    min-height: 36px;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: #775600;
    font-size: 0.875rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#modal .dnisha-order-details {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    background: #fff;
}

#modal .dnisha-order-details summary {
    min-height: 48px;
    padding: 13px 14px;
    color: #353535;
    font-weight: 650;
    cursor: pointer;
}

#modal .dnisha-order-details__body {
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 0 14px 14px;
}

#modal .dnisha-draft-note {
    color: #6c757d;
    font-size: 0.75rem;
}

#modal .ural-request-context {
    padding: 10px 12px;
    font-size: 0.875rem;
    line-height: 1.45;
}

#modal .ural-request-context strong {
    display: inline;
    margin-right: 4px;
}

#modal .dnisha-drawing-upload {
    position: relative;
}

#modal .dnisha-upload-input {
    position: absolute !important;
    inline-size: 1px !important;
    block-size: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
}

#modal .dnisha-upload-button {
    display: flex;
    min-height: 52px;
    align-items: center;
    padding: 12px 14px;
    border: 1px dashed #a77700;
    border-radius: 10px;
    background: #fffaf0;
    color: #5e4600;
    font-weight: 650;
    cursor: pointer;
}

#modal .dnisha-upload-button::before {
    content: "📎";
    margin-right: 9px;
    font-size: 1.15rem;
}

#modal .dnisha-drawing-upload .form-text {
    margin-top: 6px;
    overflow-wrap: anywhere;
}

#modal .dnisha-upload-input:focus-visible + .dnisha-upload-button,
#modal .dnisha-upload-button:focus-within {
    outline: 3px solid rgba(185, 130, 0, 0.25);
    outline-offset: 2px;
}

@media (max-width: 767.98px) {
    #modal .modal-dialog {
        min-height: calc(var(--dnisha-visual-height, 100dvh) - 16px);
        margin: 8px;
    }

    #modal .modal-content {
        max-height: calc(var(--dnisha-visual-height, 100dvh) - 16px);
        border-radius: 12px !important;
    }

    #modal .modal-header {
        flex: 0 0 auto;
        padding: 12px 14px !important;
    }

    #modal .modal-title {
        display: -webkit-box;
        margin-right: 8px;
        overflow: hidden;
        font-size: 1.05rem;
        line-height: 1.3;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    #modal .modal-subtitle {
        margin-top: 4px;
        line-height: 1.35;
    }

    #modal .dnisha-form-scroll {
        gap: 11px;
        padding: 12px 14px;
    }

    #modal .dnisha-submit-bar {
        padding-inline: 14px;
    }

    #modal .form-control {
        min-height: 48px;
    }

    #modal textarea.form-control {
        min-height: 88px;
    }
}


/* ============================================================
   Мобильная шапка — правка 01.09.2026
   Было: высота 170 px, логотип 160×73, телефон и e-mail
   переносились на вторую строку под логотип.
   ============================================================ */
@media (max-width: 991.98px) {
    .header-main {
        flex-wrap: nowrap;
        gap: 12px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .header-logo {
        display: flex;
        align-items: center;
        flex: 0 0 auto;
    }

    .header-logo img,
    .header-main .custom-logo {
        max-height: 44px;
        width: auto;
        height: auto;
    }

    /* Порядок элементов: логотип слева, телефон, бургер у правого края. */
    .header-main > .header-logo {
        order: 1;
    }

    .header-main > .header-group {
        order: 2;
    }

    .header-main > .header-contact {
        order: 3;
    }

    .header-main > .d-block.d-lg-none {
        order: 4;
    }

    .header-contact {
        margin-left: auto;
        gap: 8px;
        min-width: 0;
    }

    .header-contact__info {
        align-items: flex-end;
    }

    .header-email {
        display: none;
    }

    .header-phone {
        font-size: 16px;
        line-height: 1.2;
        white-space: nowrap;
        padding: 6px 0;
    }

    .burger {
        flex: 0 0 auto;
        width: 32px;
        height: 32px;
        gap: 5px;
    }

    .burger::after,
    .burger::before,
    .burger-line {
        height: 3px;
    }
}

@media (max-width: 359.98px) {
    .header-logo img,
    .header-main .custom-logo {
        max-height: 36px;
    }

    .header-phone {
        font-size: 14px;
    }
}

/* ============================================================
   Блок «Прикрепить чертёж» из плагина заявок.
   Плагин создаёт разметку скриптом, но не отдаёт к ней ни одного стиля:
   нативное поле выбора файла оставалось видимым рядом с собственной
   подписью (два интерфейса сразу), а на тёмной форме первого экрана
   подпись и подсказка рисовались тёмным по тёмному и не читались.
   ============================================================ */
.dnisha-drawing-upload {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

/* Нативное поле прячем от глаз, но оставляем в потоке для клавиатуры
   и скринридеров: подпись связана с ним через for, клик работает. */
.dnisha-upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.dnisha-upload-button {
    display: inline-block;
    max-width: 100%;
    padding: 10px 16px;
    border: 1px solid rgba(27, 27, 27, 0.25);
    border-radius: 8px;
    background: transparent;
    color: #1b1b1b;
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.3;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.dnisha-upload-button:hover {
    border-color: #ffa500;
    background: rgba(255, 165, 0, 0.08);
}

.dnisha-upload-input:focus-visible + .dnisha-upload-button {
    outline: 2px solid #ffa500;
    outline-offset: 2px;
}

.dnisha-upload-button.is-filled {
    border-color: #ffa500;
    background: rgba(255, 165, 0, 0.12);
}

.dnisha-drawing-upload .form-text {
    margin: 0;
    font-size: 0.8125rem;
    color: rgba(27, 27, 27, 0.65);
}

/* Тёмная форма первого экрана: там всё наоборот - фон графитовый. */
.hero-form .dnisha-upload-button {
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

.hero-form .dnisha-upload-button:hover,
.hero-form .dnisha-upload-button.is-filled {
    border-color: #ffa500;
    background: rgba(255, 165, 0, 0.15);
}

.hero-form .dnisha-drawing-upload .form-text {
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================================
   Согласие на обработку персональных данных.
   Такие же правила уже были написаны, но только для формы в модальном
   окне (#modal .dnisha-submit-bar). Во всех остальных формах, включая
   форму первого экрана, чекбокс оставался нативным блочным элементом:
   текст переносился под квадратик, а попасть по нему пальцем на телефоне
   было тяжело. Распространяем оформление на все формы.
   ============================================================ */
.form-privacy {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 0.8125rem;
    line-height: 1.35;
    cursor: pointer;
}

.form-privacy input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: #ffa500;
    cursor: pointer;
}

/* Иконка заявки в шапке. Пустая - серая, с позициями - темная с оранжевым счетчиком. */
.ural-cart-box {
    display: flex;
    align-items: center;
}
.ural-cart-link__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: #6c757d;
    text-decoration: none;
    transition: color .15s ease, background-color .15s ease;
}
.ural-cart-link__btn:hover,
.ural-cart-link__btn:focus-visible {
    color: #1d1d1d;
    background: rgba(0, 0, 0, .05);
}
.ural-cart-link__btn.is-filled {
    color: #1d1d1d;
}
.ural-cart-link__icon {
    display: block;
}
.ural-cart-link__count {
    position: absolute;
    top: 2px;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 10px;
    background: #f3b200;
    color: #1d1d1d;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    border: 2px solid #fff;
}
@media (max-width: 767.98px) {
    .ural-cart-link__btn {
        width: 40px;
        height: 40px;
    }
}

/* Защита от застрявшей в браузере старой версии этого блока:
   раньше вместо иконки была кнопка с двумя подписями. */
.ural-cart-link__text {
    display: none !important;
}

/* ============================================================
   Шапка: логотип и горизонтальное меню
   ============================================================ */

/* Логотип был сплющен: на картинку одновременно действовали max-width от
   родителя и max-height. Браузер сначала ужимал ширину до 160px, потом
   отдельно обрезал высоту до 73px, и пропорция 195x99 ломалась.
   Теперь размер задает только высота, ширина считается сама. */
.header-logo img,
.header-main .custom-logo {
    width: auto;
    height: 73px;
    max-width: none;
    object-fit: contain;
}

@media (max-width: 991.98px) {
    .header-logo img,
    .header-main .custom-logo {
        height: 44px;
    }
}

@media (max-width: 359.98px) {
    .header-logo img,
    .header-main .custom-logo {
        height: 36px;
    }
}

/* Меню раскладывается на всю ширину контейнера, а не жмется влево. */
@media (min-width: 992px) {
    .menu-list {
        justify-content: space-between;
        gap: 0;
    }
}

/* Адрес в шапке ломался на две строки. Индекс убран, а строке разрешено
   не переноситься: блок берет столько ширины, сколько ему нужно. */
@media (min-width: 992px) {
    .header-address-block {
        flex: 0 0 auto;
    }
    .header-address,
    .header-clock {
        white-space: nowrap;
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .header-address,
    .header-clock {
        font-size: 13px;
    }
}

/* На ноутбуках девять пунктов в 16 пунктов шрифта не помещались в одну строку
   и меню разъезжалось на два ряда. Уменьшаем кегль и отступы по ширине экрана. */
@media (min-width: 1200px) and (max-width: 1499.98px) {
    .menu-list .menu-link {
        font-size: 15px;
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .menu-list .menu-link {
        font-size: 13px;
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* Мобильная шапка должна держаться в одну строку. На узких экранах логотип,
   телефон, иконка заявки и кнопка меню переставали помещаться и кнопка меню
   уезжала на второй ряд, из-за чего шапка становилась вдвое выше. */
@media (max-width: 991.98px) {
    .header-main {
        flex-wrap: nowrap;
        gap: 10px;
    }
    .header-contact {
        gap: 10px;
    }
    .header-phone {
        white-space: nowrap;
    }
}

@media (max-width: 419.98px) {
    .header-main,
    .header-contact {
        gap: 8px;
    }
    .header-phone {
        font-size: 15px;
    }
    .header-logo img,
    .header-main .custom-logo {
        height: 38px;
    }
    .ural-cart-link__btn {
        width: 34px;
        height: 34px;
    }
    .ural-cart-link__icon {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 359.98px) {
    .header-phone {
        font-size: 14px;
    }
    .header-logo img,
    .header-main .custom-logo {
        height: 34px;
    }
}

/* ============================================================
   Контраст текста по WCAG AA.
   Фирменный оранжевый оставлен как есть для плашек, кнопок и
   рамок. Перекрашены только надписи: желтый #f3b200 на белом
   давал контраст 1.88 при норме 4.5 и на солнце не читался,
   белый текст на оранжевой кнопке - 1.97.
   ============================================================ */
:root {
    /* тот же оранжевый, но темнее: на белом дает 5.07 */
    --primary-ink: 173, 87, 0;
}

/* оранжевые подписи, ссылки и цены на светлом фоне */
.text-primary {
    color: rgb(var(--primary-ink)) !important;
}

/* в первом экране и на темных блоках фон темный,
   там оставляем яркий фирменный оттенок */
.hero .text-primary,
.geo-hero .text-primary,
.catalog-hero .text-primary,
.bg-dark .text-primary,
.text-bg-dark .text-primary {
    color: rgb(var(--primary-color)) !important;
}

/* надписи на закрашенных кнопках: белый на оранжевом не читался */
.button:not(.button--border) {
    color: rgb(var(--dark-color));
}

.button:not(.button--border):hover {
    color: rgb(var(--white-color));
}

/* приглушенный серый: было 4.45, стало 5.78 */
.text-secondary {
    color: #5c636a !important;
}
