/* ==========================================================
   SOFTFLOW SHARED COMPONENTS
   Header, navigation, mobile menu and footer
========================================================== */


/* ==========================================================
   HEADER
========================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    padding: 0;

    background: rgba(245, 235, 220, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header .header-inner {
    width: min(1120px, calc(100% - 48px));
    max-width: 1120px;
    min-height: 80px;

    margin: 0 auto;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;

    position: relative;
    z-index: 2;
}


/* ==========================================================
   HEADER LOGO
========================================================== */

.header .logo {
    display: block;
    flex: 0 0 auto;

    line-height: 0;
    text-decoration: none;
}

.header .logo img {
    display: block;

    width: auto;
    height: 76px;
    max-width: 150px;

    object-fit: contain;

    filter:
        drop-shadow(0 0 12px rgba(255, 210, 160, 0.45));
}


/* ==========================================================
   DESKTOP NAVIGATION
========================================================== */

.header .nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;

    margin: 0;
    padding: 0;

   font-family: "Montserrat", sans-serif;
}

.header .nav-link {
    flex: 0 0 auto;

    color: #4b2f23;
    text-decoration: none;

    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;

    white-space: nowrap;
}

.header .nav-link.active {
    color: #d6a76e;
}


/* ==========================================================
   FOOTER
========================================================== */

.footer {
    width: 100%;

    padding: 34px 0 24px;

    background: rgba(255, 245, 235, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.footer .footer-content {
    width: min(1000px, calc(100% - 48px));
    max-width: 1000px;

    margin: 0 auto;
    padding: 0;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: center;
    gap: 60px;
}

.footer .footer-left {
    min-width: 0;
}

.footer .footer-left p {
    margin: 0 0 8px;

    color: #4a2d19;
}

.footer .footer-left a {
    overflow-wrap: anywhere;
}

.footer .footer-links {
    margin-top: 14px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.footer .footer-right {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.footer .footer-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin: 0 0 18px;
}

.footer .footer-logo {
    display: block;

    width: 100%;
    max-width: 230px;

    line-height: 0;
    text-decoration: none;
}

.footer .footer-logo img {
    display: block;

    width: 100%;
    height: auto;
    max-height: 130px;

    object-fit: contain;
}

.footer .footer-payments {
    margin: 12px 0 0;

    text-align: left;
}

.footer .footer-payments img {
    display: block;

    width: 200px;
    max-width: 100%;
    height: auto;
}


/* ==========================================================
   TABLET HEADER
========================================================== */

@media (max-width: 1100px) and (min-width: 769px) {

    .header .header-inner {
        width: min(100% - 32px, 1000px);
        gap: 16px;
    }

    .header .logo img {
        height: 68px;
        max-width: 130px;
    }

    .header .nav {
        gap: 10px;
    }

    .header .nav-link {
        font-size: 14px;
        padding-left: 3px;
        padding-right: 3px;
    }
}


/* ==========================================================
   MOBILE HEADER AND MENU
========================================================== */

@media (max-width: 768px) {

    body {
        padding-top: 72px;
    }

    .header {
        min-height: 72px;
        padding: 0;
    }

    .header .header-inner {
        width: 100%;
        min-height: 72px;

        padding: 0 18px;

        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .header .logo {
        position: relative;
        z-index: 2001;
    }

    .header .logo img {
        width: auto;
        height: 62px;
        max-width: 120px;
    }

    .header .nav {
        display: none !important;
    }


    /* Burger */

    .header .burger {
        display: block;

        width: 30px;
        height: 28px;

        position: relative;
        top: auto;
        right: auto;
        z-index: 2001;

        padding: 2px;
        margin: 0;

        border: 0;
        background: transparent;

        cursor: pointer;
    }

    .header .burger span {
        display: block;

        width: 100%;
        height: 2px;

        margin: 5px 0;

        border-radius: 2px;
        background: #7a4a2a;

        transition:
            transform 0.3s ease,
            opacity 0.3s ease;
    }


    /* Burger becomes a close icon */

    .header .burger.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .header .burger.open span:nth-child(2) {
        opacity: 0;
    }

    .header .burger.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }


    /* Mobile navigation */

    .header .mobile-menu {
        display: flex;
        flex-direction: column;

        position: fixed;
        top: 82px;
        left: 50%;
        z-index: 1500;

        width: min(92%, 420px);
        max-height: calc(100vh - 100px);

        padding: 14px;
        overflow-y: auto;
        overscroll-behavior: contain;

        border: 1px solid rgba(255, 255, 255, 0.75);
        border-radius: 24px;

        background:
            linear-gradient(
                145deg,
                rgba(255, 253, 249, 0.98),
                rgba(250, 235, 218, 0.97)
            );

        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);

        box-shadow:
            0 22px 55px rgba(94, 55, 30, 0.22),
            inset 0 0 0 1px rgba(255, 255, 255, 0.5);

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transform:
            translateX(-50%)
            translateY(-12px)
            scale(0.98);

        transform-origin: top center;

        transition:
            opacity 0.3s ease,
            visibility 0.3s ease,
            transform 0.35s cubic-bezier(.22, 1, .36, 1);
    }

    .header .mobile-menu.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;

        transform:
            translateX(-50%)
            translateY(0)
            scale(1);
    }


    /* Animated light flow */

    .header .mobile-menu::before {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 0;

    border-radius: inherit;

    background:
        radial-gradient(
            circle at 12% 18%,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 225, 180, 0.78) 18%,
            rgba(219, 168, 101, 0.34) 32%,
            transparent 48%
        ),
        radial-gradient(
            circle at 86% 76%,
            rgba(199, 139, 72, 0.52) 0%,
            rgba(244, 204, 148, 0.44) 22%,
            transparent 48%
        ),
        linear-gradient(
            115deg,
            transparent 20%,
            rgba(255, 255, 255, 0.18) 36%,
            rgba(255, 255, 255, 0.72) 50%,
            rgba(232, 190, 132, 0.28) 62%,
            transparent 78%
        );

    background-size:
        175% 175%,
        165% 165%,
        220% 100%;

    filter:
        saturate(1.18)
        contrast(1.04);

    animation: mercuryFlow 5.5s ease-in-out infinite alternate;

    pointer-events: none;
}

@keyframes mercuryFlow {

    0% {
        background-position:
            0% 0%,
            100% 100%,
            -120% 0%;
    }

    35% {
        background-position:
            55% 25%,
            50% 75%,
            0% 0%;
    }

    70% {
        background-position:
            85% 70%,
            20% 30%,
            80% 0%;
    }

    100% {
        background-position:
            100% 100%,
            0% 0%,
            150% 0%;
    }
}
    


    /* Mobile links */

    .header .mobile-link {
        width: 100%;

        position: relative;
        z-index: 1;

        display: flex;
        align-items: center;
        gap: 14px;

        padding: 14px 16px;

        border: 0;
        border-bottom:
            1px solid rgba(120, 90, 60, 0.12);
        border-radius: 14px;

        background: transparent;
        box-shadow: none;

        color: #3b2a1f;
        text-decoration: none;
        font-size: 16px;
        font-weight: 500;

        opacity: 1;
        transform: none;

        transition:
            color 0.25s ease,
            background 0.25s ease,
            transform 0.25s ease;
    }

    .header .mobile-link:last-child {
        border-bottom: 0;
    }

    .header .mobile-link:hover,
    .header .mobile-link:focus-visible {
        background: rgba(255, 255, 255, 0.5);
        transform: translateX(3px);
    }

    .header .mobile-link.active {
        color: #c79551;
        font-weight: 600;

        background: rgba(255, 255, 255, 0.42);
    }

    .header .sf-icon {
        width: 24px;
        height: 24px;
        flex: 0 0 24px;

        color: currentColor;
        opacity: 0.92;
    }


    /* Footer */

    .footer {
        padding: 30px 0 24px;
    }

    .footer .footer-content {
        width: min(100% - 36px, 520px);

        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 28px;

        padding: 0;
        margin: 0 auto;

        text-align: center;
    }

    .footer .footer-left {
        width: 100%;
    }

    .footer .footer-left p {
        text-align: center;
    }

    .footer .footer-links {
        align-items: center;
    }

    .footer .footer-payments {
        display: flex;
        justify-content: center;

        text-align: center;
    }

    .footer .footer-payments img {
        width: min(170px, 100%);
        margin: 0 auto;
    }

    .footer .footer-right {
        width: 100%;

        align-items: center;
        text-align: center;
    }

    .footer .footer-logo {
        max-width: 190px;
    }
}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 420px) {

    .header .mobile-menu {
        top: 78px;
        width: calc(100% - 28px);
        max-height: calc(100vh - 92px);
    }

    .header .mobile-link {
        padding: 12px 14px;
        font-size: 15px;
    }

    .footer .footer-content {
        width: calc(100% - 32px);
    }

    .footer .footer-logo {
        max-width: 170px;
    }
}


/* ==========================================================
   REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {

    .header .mobile-menu::before,
    .footer .footer-contact-btn {
        animation: none;
    }

    .header .mobile-menu,
    .header .mobile-link,
    .header .burger span {
        transition: none;
    }
}

/* ==========================================================
   AI-КОНСУЛЬТАНТ SOFTFLOW.PRO
========================================================== */

.sf-agent,
.sf-agent * {
    box-sizing: border-box;
}

.sf-agent {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 2200;

    font-family: "Montserrat", Arial, sans-serif;
    color: #4b2f23;
}


/* Кнопка открытия */

.sf-agent-toggle {
    min-width: 68px;
    height: 68px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 0 24px;

    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 34px;

    background:
        radial-gradient(
            circle at 28% 22%,
            rgba(255, 255, 255, 0.95),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #f9dfb5,
            #c99d5e,
            #f8e4bd
        );

    color: #4b2f23;
    font: inherit;
    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 10px 30px rgba(94, 55, 27, 0.22),
        0 0 22px rgba(255, 221, 164, 0.55),
        inset 0 1px 2px rgba(255, 255, 255, 0.85);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.sf-agent-toggle:hover {
    transform: translateY(-3px);

    box-shadow:
        0 14px 34px rgba(94, 55, 27, 0.28),
        0 0 28px rgba(255, 221, 164, 0.72),
        inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

.sf-agent-toggle:focus-visible {
    outline: 3px solid rgba(177, 125, 58, 0.35);
    outline-offset: 3px;
}

.sf-agent-toggle-icon {
    font-size: 27px;
    line-height: 1;
    color: #fff8e9;

    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.95),
        0 0 14px rgba(126, 78, 28, 0.5);
}

.sf-agent-toggle-text {
    white-space: nowrap;
}


/* Окно чата */

.sf-agent-panel {
    position: absolute;
    right: 0;
    bottom: 170px;

    width: min(390px, calc(100vw - 32px));
    height: min(580px, calc(100vh - 195px));

    display: flex;
    flex-direction: column;
    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 26px;

    background: rgba(255, 250, 244, 0.98);

    box-shadow:
        0 24px 70px rgba(75, 47, 35, 0.26),
        0 0 35px rgba(240, 193, 125, 0.28);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform:
        translateY(15px)
        scale(0.97);

    transform-origin: right bottom;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;
}

.sf-agent-panel[hidden] {
    display: none !important;
}

.sf-agent-panel.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform:
        translateY(0)
        scale(1);
}


/* Шапка окна */

.sf-agent-header {
    flex: 0 0 auto;

    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding: 15px 18px;

    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(255, 255, 255, 0.9),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #f9e3c0,
            #dfb77d,
            #f7e5c8
        );

    border-bottom:
        1px solid rgba(139, 91, 45, 0.12);
}

.sf-agent-heading {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: 12px;
}

.sf-agent-logo {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.52);

    color: #b77e38;
    font-size: 23px;

    box-shadow:
        0 5px 14px rgba(94, 55, 27, 0.12),
        inset 0 0 10px rgba(255, 255, 255, 0.85);
}

.sf-agent-title {
    margin: 0;

    color: #4b2f23;
    font-size: 17px;
    font-weight: 600;
}

.sf-agent-status {
    margin: 3px 0 0;

    color: rgba(75, 47, 35, 0.7);
    font-size: 11px;
    line-height: 1.3;
}

.sf-agent-close {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.48);
    color: #68422d;

    font: inherit;
    font-size: 25px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.sf-agent-close:hover {
    background: rgba(255, 255, 255, 0.78);
    transform: rotate(5deg);
}

.sf-agent-close:focus-visible {
    outline: 2px solid rgba(139, 91, 45, 0.4);
    outline-offset: 2px;
}


/* Область сообщений */

.sf-agent-messages {
    flex: 1 1 auto;

    display: flex;
    flex-direction: column;
    gap: 12px;

    min-height: 0;
    padding: 18px;

    overflow-y: auto;
    overscroll-behavior: contain;

    background:
        radial-gradient(
            circle at 100% 0,
            rgba(245, 211, 164, 0.16),
            transparent 38%
        ),
        linear-gradient(
            180deg,
            #fffaf4,
            #fffdf9
        );

    scrollbar-width: thin;
    scrollbar-color:
        rgba(190, 143, 81, 0.55)
        transparent;
}

.sf-agent-messages::-webkit-scrollbar {
    width: 6px;
}

.sf-agent-messages::-webkit-scrollbar-thumb {
    border-radius: 6px;
    background: rgba(190, 143, 81, 0.55);
}


/* Сообщения */

.sf-agent-message {
    max-width: 86%;

    padding: 11px 14px;

    border-radius: 18px;

    font-size: 13px;
    line-height: 1.55;

    overflow-wrap: anywhere;
}

.sf-agent-message p {
    margin: 0;
}

.sf-agent-message-assistant {
    align-self: flex-start;

    border-bottom-left-radius: 6px;

    background: #ffffff;
    color: #4b2f23;

    box-shadow:
        0 5px 16px rgba(90, 55, 31, 0.09);
}

.sf-agent-message-user {
    align-self: flex-end;

    border-bottom-right-radius: 6px;

    background:
        linear-gradient(
            135deg,
            #e6c28d,
            #f8e3c0
        );

    color: #4b2f23;

    box-shadow:
        0 6px 16px rgba(126, 78, 33, 0.13);
}

.sf-agent-message-error {
    align-self: flex-start;

    border:
        1px solid rgba(160, 80, 65, 0.18);
    border-bottom-left-radius: 6px;

    background: #fff2ee;
    color: #774238;
}

.sf-agent-message-typing {
    align-self: flex-start;

    border-bottom-left-radius: 6px;

    background: #ffffff;
    color: rgba(75, 47, 35, 0.62);

    animation:
        sfAgentTyping 1.2s ease-in-out infinite;
}

@keyframes sfAgentTyping {
    0%,
    100% {
        opacity: 0.55;
    }

    50% {
        opacity: 1;
    }
}


/* Быстрые вопросы */

.sf-agent-suggestions {
    flex: 0 0 auto;

    display: flex;
    gap: 7px;

    padding: 10px 14px 6px;

    overflow-x: auto;

    background: #fffdf9;

    scrollbar-width: none;
}

.sf-agent-suggestions::-webkit-scrollbar {
    display: none;
}

.sf-agent-suggestions.is-hidden {
    display: none;
}

.sf-agent-suggestion {
    flex: 0 0 auto;

    padding: 8px 11px;

    border:
        1px solid rgba(185, 134, 70, 0.28);
    border-radius: 20px;

    background: rgba(255, 247, 235, 0.92);
    color: #68422d;

    font: inherit;
    font-size: 11px;
    font-weight: 500;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.sf-agent-suggestion:hover {
    border-color: rgba(185, 134, 70, 0.5);
    background: #f9e8cd;
}


/* Форма */

.sf-agent-form {
    flex: 0 0 auto;

    padding: 10px 14px 13px;

    border-top:
        1px solid rgba(139, 91, 45, 0.1);

    background: #fffdf9;
}

.sf-agent-label {
    position: absolute;

    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;

    overflow: hidden;
    clip: rect(0, 0, 0, 0);

    white-space: nowrap;
    border: 0;
}

.sf-agent-input-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.sf-agent-input {
    width: 100%;
    min-height: 44px;
    max-height: 120px;

    padding: 11px 14px;

    resize: none;
    overflow-y: auto;

    border:
        1px solid rgba(157, 108, 58, 0.22);
    border-radius: 17px;

    outline: none;

    background: #ffffff;
    color: #4b2f23;

    font: inherit;
    font-size: 13px;
    line-height: 1.45;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.sf-agent-input::placeholder {
    color: rgba(75, 47, 35, 0.46);
}

.sf-agent-input:focus {
    border-color: rgba(183, 126, 56, 0.55);

    box-shadow:
        0 0 0 3px rgba(224, 181, 117, 0.14);
}

.sf-agent-input:disabled {
    background: #f8f2e9;
    cursor: wait;
}

.sf-agent-send {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 2px 1px 0;

    border: 0;
    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #d4aa6d,
            #a97739
        );

    color: #ffffff;

    font: inherit;
    font-size: 18px;

    cursor: pointer;

    box-shadow:
        0 6px 15px rgba(119, 76, 34, 0.22);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.sf-agent-send:hover {
 
    transform: translateY(-2px);

    box-shadow:
        0 9px 19px rgba(119, 76, 34, 0.28);
}

.sf-agent-send:disabled {
    opacity: 0.55;
    cursor: wait;
    transform: none;
}

.sf-agent-notice {
    margin: 7px 3px 0;

    color: rgba(75, 47, 35, 0.48);
    font-size: 9px;
    line-height: 1.35;
}


/* Мобильная версия */

@media (max-width: 640px) {
    .sf-agent {
        right: 16px;
        bottom: 18px;
    }

    .sf-agent-toggle {
        width: 64px;
        min-width: 64px;
        height: 64px;

        padding: 0;
    }

    .sf-agent-toggle-text {
        display: none;
    }

    .sf-agent-panel {
        position: fixed;
        right: 12px;
        bottom: 178px;

        width: calc(100vw - 24px);
        height: min(560px, calc(100dvh - 190px));

        border-radius: 22px;

        transform-origin: right bottom;
    }

    .sf-agent-header {
        min-height: 70px;
        padding: 13px 15px;
    }

    .sf-agent-messages {
        padding: 15px;
    }

    .sf-agent-message {
        max-width: 90%;
    }
}


/* Уменьшение анимации по настройкам устройства */

@media (prefers-reduced-motion: reduce) {
    .sf-agent-toggle,
    .sf-agent-panel,
    .sf-agent-close,
    .sf-agent-send,
    .sf-agent-message-typing {
        animation: none;
        transition: none;
    }
}

/* =====================================================
   COOKIE CONSENT — SOFTFLOW.PRO
===================================================== */

.sf-cookie {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);

    width: min(760px, calc(100% - 32px));
    padding: 20px 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    background:
        radial-gradient(
            circle at 12% 20%,
            rgba(255, 255, 255, 0.92),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            rgba(255, 248, 237, 0.97),
            rgba(255, 228, 196, 0.96)
        );

    border: 1px solid rgba(201, 164, 107, 0.48);
    border-radius: 24px;

    box-shadow:
        0 18px 55px rgba(75, 47, 35, 0.2),
        inset 0 0 24px rgba(255, 255, 255, 0.65);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    color: #4b2f23;
    z-index: 5000;

    animation: sfCookieShow 0.45s ease both;
}

.sf-cookie::before {
    content: "✦";
    flex: 0 0 46px;

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.72);
    color: #b98235;
    font-size: 22px;

    box-shadow:
        0 0 18px rgba(218, 173, 116, 0.38),
        inset 0 0 12px rgba(255, 255, 255, 0.82);
}

.sf-cookie__text {
    flex: 1;
}

.sf-cookie__text strong {
    display: block;
    margin-bottom: 5px;

    font-size: 16px;
    font-weight: 700;
    color: #4b2f23;
}

.sf-cookie__text p {
    margin: 0;

    font-size: 13px;
    line-height: 1.55;
    color: rgba(75, 47, 35, 0.74);
}

.sf-cookie__text a {
    color: #8e5d2f;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sf-cookie__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.sf-cookie__button {
    min-height: 42px;
    padding: 10px 18px;

    border-radius: 24px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.sf-cookie__button:hover {
    transform: translateY(-2px);
}

.sf-cookie__button--primary {
    border: 1px solid rgba(183, 128, 54, 0.5);

    background:
        linear-gradient(
            135deg,
            #d8ae70,
            #f5d7a6
        );

    color: #4b2f23;

    box-shadow:
        0 8px 20px rgba(142, 93, 47, 0.2),
        inset 0 0 10px rgba(255, 255, 255, 0.45);
}

.sf-cookie__button--primary:hover {
    box-shadow:
        0 11px 25px rgba(142, 93, 47, 0.3),
        inset 0 0 12px rgba(255, 255, 255, 0.6);
}

.sf-cookie__button--secondary {
    border: 1px solid rgba(142, 93, 47, 0.22);
    background: rgba(255, 255, 255, 0.62);
    color: rgba(75, 47, 35, 0.76);
}

.sf-cookie__button--secondary:hover {
    background: rgba(255, 255, 255, 0.9);
}

.sf-cookie.is-closing {
    animation: sfCookieClose 0.25s ease forwards;
}

@keyframes sfCookieShow {
    from {
        opacity: 0;
        transform: translate(-50%, 24px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes sfCookieClose {
    from {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    to {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
}

@media (max-width: 640px) {
    .sf-cookie {
        bottom: 12px;
        padding: 18px;
        gap: 14px;

        align-items: flex-start;
        flex-wrap: wrap;

        border-radius: 22px;
    }

    .sf-cookie::before {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        font-size: 19px;
    }

    .sf-cookie__text {
        flex: 1 1 calc(100% - 56px);
    }

    .sf-cookie__actions {
        width: 100%;
        justify-content: flex-end;
    }

    .sf-cookie__button {
        flex: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sf-cookie,
    .sf-cookie.is-closing {
        animation: none;
    }

    .sf-cookie__button {
        transition: none;
    }
}
/* ============================================================
   СКВОЗНЫЕ ССЫЛКИ ПОД ЛОГОТИПОМ ВО ВСЕХ ФУТЕРАХ
============================================================ */
.footer-tools {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: -8px;
    font-size: 12px;
    line-height: 1.4;
}

.footer-tools a {
    position: relative;
    color: #775036;
    text-decoration: none;
    transition: color .2s ease;
}

.footer-tools a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -3px;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #bf7f31, transparent);
    transform: scaleX(0);
    transition: transform .25s ease;
}

.footer-tools a:hover,
.footer-tools a:focus-visible { color: #a36420; }
.footer-tools a:hover::after,
.footer-tools a:focus-visible::after { transform: scaleX(1); }
.footer-tools span { color: #c58a42; font-size: 8px; }

@media (max-width: 580px) {
    .footer-tools { max-width: 240px; margin: 0 auto; }
}
