


.site-footer {
    background-color: var(--color-white);
    --footer-text-size: clamp(15px, 1.25vw, 18px);
    overflow-x: clip;
}


.footer__separator {
    width: 100%;
    height: 1px;
    background-color: var(--color-accent);
}


/* Figma: left block 0–780px, right block 810–1165px (from 35px container) */
.footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 772px) minmax(0, 388px);
    justify-content: space-between;
    column-gap: 40px;
    padding-top: 45px;               /* Figma: footer content starts 45px below separator */
    padding-bottom: 64px;
    align-items: start;
}

.footer__left {
    max-width: 500px;
    min-width: 0;
}


.footer__newsletter-desc {
    font-family: var(--font-base);
    font-size: var(--footer-text-size);
    font-weight: var(--weight-regular);
    color: var(--color-primary);
    line-height: 22px;
    letter-spacing: -0.03em;
    max-width: 500px;
    margin-bottom: var(--space-5);
}

.footer__newsletter-row {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-bottom: var(--space-3);
    max-width: 500px;
}

.footer__newsletter-input {
    flex: 1 1 0;
    min-width: 0;
    height: 38px;
    font-family: var(--font-base);
    font-size: var(--footer-text-size);
    color: var(--color-gray);
    background: transparent;
    border: 1px solid var(--color-accent);
    border-radius: 5px;
    padding: 0 var(--space-4);
    outline: none;
    transition: border-color var(--transition-base);
}

.footer__newsletter-input:focus {
    border-color: var(--color-accent-dark);
}

.footer__newsletter-btn {
    width: 182px;
    height: 38px;
    flex-shrink: 0;
    font-family: var(--font-base);
    font-size: var(--footer-text-size);
    font-weight: var(--weight-medium);
    letter-spacing: -0.03em;
    color: var(--color-secondary);
    background-color: var(--color-accent);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color var(--transition-base);
}

.footer__newsletter-btn:hover {
    background-color: var(--color-accent-dark);
}

.footer__newsletter-msg {
    margin: 8px 0 0;
    font-family: var(--font-base);
    font-size: var(--footer-text-size);
    line-height: 1.4;
    letter-spacing: -0.03em;
}

.footer__newsletter-msg[hidden] {
    display: none !important;
}

.footer__newsletter-msg--success {
    color: var(--color-accent-dark, #c04a00);
}

.footer__newsletter-msg--error {
    color: #b00020;
}


.footer__consent {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    cursor: pointer;
    max-width: 500px;
}

.footer__consent-check {
    width: 14px;
    height: 14px;
    border: 0.7px solid var(--color-accent);
    border-radius: 1px;
    flex-shrink: 0;
    margin-top: 1px;
    accent-color: var(--color-accent);
    cursor: pointer;
}

.footer__consent-link {
    font-family: var(--font-base);
    font-size: var(--footer-text-size);
    font-weight: var(--weight-regular);
    color: var(--color-primary);
    text-decoration: underline;
    letter-spacing: -0.03em;
    line-height: 22px;
    transition: color var(--transition-base);
}

.footer__consent-link:hover {
    color: var(--color-accent);
}


.footer__qr-section {
    margin-top: 56px;
}

.footer__qr-group {
    display: flex;
    align-items: flex-start;
    gap: 58px;
}

.footer__qr-codes {
    display: flex;
    gap: 13px;                       /* Figma: 181-37-131 = 13px between boxes */
    flex-shrink: 0;
}

.footer__qr-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

/* Gray placeholder box (Figma: bg-[#767676]) */
.footer__qr-box {
    width: 131px;
    height: 131px;
    background-color: #767676;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-family: var(--font-base);
    font-size: 12px;
}

.footer__qr-img {
    width: 131px;
    height: 131px;
    object-fit: contain;
    display: block;
}

.footer__qr-label {
    font-family: var(--font-base);
    font-size: var(--footer-text-size);
    font-weight: var(--weight-regular);
    color: var(--color-primary);
    letter-spacing: -0.03em;
    line-height: 22px;
}

.footer__qr-desc {
    font-family: var(--font-base);
    font-size: var(--footer-text-size);
    font-weight: var(--weight-regular);
    color: var(--color-gray);
    letter-spacing: -0.03em;
    line-height: 22px;
    max-width: 265px;
}


.footer__nav-columns {
    display: grid;
    grid-template-columns: minmax(0, max-content) minmax(0, max-content);
    justify-content: space-between;
    column-gap: clamp(24px, 6vw, 98px);
    width: 100%;
    max-width: 388px;
    min-width: 0;
    justify-self: end;
    align-items: flex-start;
    padding-top: 0;
}

.footer__nav-col {
    display: flex;
    flex-direction: column;
    overflow: visible;
}


.footer__nav-title {
    font-family: var(--font-base);
    font-size: var(--footer-text-size);
    font-weight: var(--weight-medium);
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-5);
}

.footer__nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
}

/* Column links list */
.footer__nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.footer__nav-list li a {
    font-family: var(--font-base);
    font-size: clamp(14px, 1.15vw, 17px);
    font-weight: var(--weight-regular);
    color: var(--color-gray);
    letter-spacing: -0.02em;
    line-height: 22px;
    max-width: 238px;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: break-word;
    transition: color var(--transition-base);
}

/* Keep nav links on one line only where there's guaranteed room */
@media (min-width: 1025px) {
    .footer__nav-list li a {
        white-space: nowrap;
        max-width: none;
    }
}

.footer__nav-list li a:hover {
    color: var(--color-accent);
}

.footer__nav-item--docs {
    position: relative;
    display: block;
}

.footer__nav-docs-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 100%;
    max-width: 238px;
    padding: 0 18px 0 0;
    border: 0;
    background: transparent;
    font-family: var(--font-base);
    font-size: clamp(14px, 1.15vw, 17px);
    font-weight: var(--weight-regular);
    color: var(--color-gray);
    letter-spacing: -0.02em;
    line-height: 22px;
    text-align: left;
    cursor: pointer;
    transition: color var(--transition-base);
}

.footer__nav-docs-toggle::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 6px;
    height: 10px;
    transform: translateY(-50%) rotate(0deg);
    transform-origin: center;
    transition: transform var(--transition-base);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='7' viewBox='0 0 4 7' fill='none'%3E%3Cpath d='M1 1L3 3.5L1 6' stroke='%23888888' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.footer__nav-item--docs.is-open .footer__nav-docs-toggle::after {
    transform: translateY(-50%) rotate(90deg);
}

.footer__nav-docs-toggle:hover {
    color: var(--color-accent);
}

.footer__nav-sublist {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 3;
    list-style: none;
    display: none;
    flex-direction: column;
    gap: 8px;
    min-width: 100%;
    margin: 0;
    padding: 8px 16px 10px 12px;
    background-color: var(--color-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.footer__nav-item--docs.is-open .footer__nav-sublist {
    display: flex;
}

.footer__nav-sublist li a {
    font-size: clamp(13px, 1.1vw, 16px);
    line-height: 1.5;
    white-space: normal;
}

@media (min-width: 1025px) {
    .footer__nav-docs-toggle {
        max-width: none;
        white-space: nowrap;
    }

    .footer__nav-sublist li a {
        white-space: nowrap;
    }
}


/* Figma: two filled orange circles, 29×29, radius-full, below ПОКУПАТЕЛЯМ */
.footer__social-circles {
    display: flex;
    gap: 8px;
    margin-top: 44px;
}

.footer__social-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 0;
    background-color: transparent;
    color: inherit;
    text-decoration: none;
    transition: opacity var(--transition-base);
    flex-shrink: 0;
}

.footer__social-circle svg {
    display: block;
    width: 28px;
    height: 28px;
}

.footer__social-circle:hover {
    background-color: transparent;
    opacity: 0.78;
}

.footer__mobile-logo-link {
    display: none;
}

.footer__mobile-logo-text {
    display: block;
}


/* Mid + mobile footer layout lives in responsive.css (loads last, overrides
   here). Keep only safety guards in this file. */
.footer__inner,
.footer__nav-columns,
.footer__left {
    min-width: 0;
}
