/* Site footer */

.site-footer {
    --footer-bg: #060b18;
    --footer-surface: #0f1628;
    --footer-border: rgba(255, 255, 255, 0.08);
    --footer-text: rgba(255, 255, 255, 0.88);
    --footer-muted: rgba(255, 255, 255, 0.55);
    --footer-accent: #7b5cf6;
    --footer-accent-hover: #9270ff;

    margin-top: auto;
    padding: 56px 0 24px;
    background: var(--footer-bg);
    color: var(--footer-text);
    font-family: 'proxima-nova', Arial, sans-serif;
}

.site-footer ul {
    list-style: none;
    padding-left: 0;
}

.site-footer ul li::before {
    content: none;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.site-footer a:hover {
    color: #fff;
}

/* Top row */

.site-footer__top {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.8fr);
    gap: 40px 32px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.site-footer__top::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--footer-surface);
    border-radius: 10px;
    border: 1px solid var(--footer-border);
    padding: 30px;
    z-index: -1;
    pointer-events: none;
}

.site-footer__brand {
    border-right: 1px solid var(--footer-border);
}

.site-footer__logo {
    display: inline-block;
    margin-bottom: 16px;
}

.site-footer__logo img {
    display: block;
    width: 170px;
    max-width: 100%;
    height: auto;
}

.site-footer__tagline {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
}

.site-footer__description {
    max-width: 360px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--footer-muted);
}

.site-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.site-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--footer-border);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.site-footer__social-link:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.site-footer__social-link img {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

/* Features */

.site-footer__features-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.site-footer__features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__feature {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.site-footer__feature-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-footer__feature-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: var(--footer-accent);
    background: rgba(123, 92, 246, 0.14);
}

.site-footer__feature-icon svg {
    display: block;
    width: 22px;
    height: 22px;
}

.site-footer__feature-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
}

.site-footer__feature-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--footer-muted);
}

/* CTA */

.site-footer__cta {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--footer-border);
}

.site-footer__cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    background: var(--footer-accent);
    cursor: default;
    opacity: 0.85;
}

.site-footer__cta-btn:hover {
    color: #fff;
    background: var(--footer-accent);
}

.site-footer__cta-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--footer-muted);
}

.site-footer__cta-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--footer-muted);
}

.site-footer__cta-link:hover {
    color: #fff;
}

/* Middle row */

.site-footer__middle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 40px;
    padding: 40px 0;
    border-bottom: 1px solid var(--footer-border);
}

.site-footer__nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding-right: 32px;
    border-right: 1px solid var(--footer-border);
}

/* Accordions */

.footer-accordion {
    border: none;
}

.footer-accordion__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    user-select: none;
}

.footer-accordion__title::-webkit-details-marker {
    display: none;
}

.footer-accordion__title::after {
    content: '';
    display: none;
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.footer-accordion[open] > .footer-accordion__title::after {
    transform: rotate(-135deg);
}

.footer-accordion__body {
    padding: 0;
}

/* Footer menus */

.footer-menu__list,
.footer-menu__list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-menu__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-menu__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    line-height: 1.3;
    color: var(--footer-text);
}

.footer-menu__link:hover {
    color: #fff;
}

.footer-menu__icon.fi {
    flex-shrink: 0;
    width: 20px;
    line-height: 15px;
    background-size: contain;
}

.footer-menu__icon {
    flex-shrink: 0;
    width: 20px;
    height: auto;
    border-radius: 2px;
    object-fit: cover;
}

/* Countries */

.footer-countries {
    min-width: 0;
}

.footer-countries__header {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--footer-border);
    color: rgba(255, 255, 255, 0.5);
    cursor: default;
}

.footer-countries__header.footer-accordion__title::after {
    display: none;
}

.footer-countries__title-inner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-countries__title-text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.footer-countries__title-icon {
    display: block;
    width: 18px;
    height: 18px;
    opacity: 0.55;
    filter: brightness(0) invert(1);
}

.footer-countries__all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--footer-accent);
    white-space: nowrap;
}

.footer-countries__all:hover {
    color: var(--footer-accent-hover);
}

.footer-countries__all svg {
    flex-shrink: 0;
}

.footer-countries__body {
    padding: 0;
}

.footer-countries__list.footer-menu__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 20px;
}

.footer-countries__list > li {
    min-width: 0;
}

.footer-countries__list .footer-menu__link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    font-size: 14px;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.82);
}

.footer-countries__list .footer-menu__link:hover {
    color: #fff;
}

.footer-countries__list .footer-menu__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.footer-countries__list .footer-menu__icon.fi {
    width: 22px;
    line-height: 16px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
    background-size: cover;
}

/* Subscribe */

.site-footer__subscribe {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.95fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 28px 32px;
    margin: 32px 0;
    padding: 28px 32px;
    border: 1px solid var(--footer-border);
    border-radius: 10px;
    background: var(--footer-surface);
}

.site-footer__subscribe-intro {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
}

.site-footer__subscribe-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #6340e8 0%, #8b5cf6 100%);
    box-shadow: 0 8px 24px rgba(123, 92, 246, 0.28);
}

.site-footer__subscribe-icon svg {
    display: block;
    width: 24px;
    height: 24px;
}

.site-footer__subscribe-copy {
    min-width: 0;
}

.site-footer__subscribe-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
}

.site-footer__subscribe-text {
    margin: 0;
    max-width: 360px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--footer-muted);
}

.site-footer__subscribe-form {
    min-width: 0;
}

.site-footer__subscribe-placeholder,
.site-footer__subscribe .wpcf7-form {
    margin: 0;
}

.site-footer__subscribe-field {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}

.site-footer__subscribe-placeholder input[type="email"],
.site-footer__subscribe .wpcf7-form input[type="email"] {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--footer-border);
    border-right: none;
    border-radius: 12px 0 0 12px;
    font-size: 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}

.site-footer__subscribe-placeholder input[type="email"]:focus,
.site-footer__subscribe .wpcf7-form input[type="email"]:focus {
    outline: none;
    border-color: rgba(123, 92, 246, 0.45);
    box-shadow: inset 0 0 0 1px rgba(123, 92, 246, 0.25);
}

.site-footer__subscribe-placeholder input[type="email"]::placeholder,
.site-footer__subscribe .wpcf7-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.site-footer__subscribe-placeholder button,
.site-footer__subscribe .wpcf7-form input[type="submit"],
.site-footer__subscribe .wpcf7-form button[type="submit"] {
    flex-shrink: 0;
    height: 48px;
    padding: 0 22px;
    border: none;
    border-radius: 0 12px 12px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    background: var(--footer-accent);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.site-footer__subscribe-placeholder button:hover,
.site-footer__subscribe .wpcf7-form input[type="submit"]:hover,
.site-footer__subscribe .wpcf7-form button[type="submit"]:hover {
    background: var(--footer-accent-hover);
}

.site-footer ul.site-footer__subscribe-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding-left: 32px;
    border-left: 1px solid var(--footer-border);
    list-style: none;
}

.site-footer__subscribe-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
}

.site-footer__subscribe-feature-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: var(--footer-accent);
    background: rgba(123, 92, 246, 0.12);
}

.site-footer__subscribe-feature-icon svg {
    display: block;
}

.site-footer__subscribe .wpcf7-checkbox {
    display: none;
}

.site-footer__subscribe .wpcf7-response-output {
    grid-column: 1 / -1;
    margin: 12px 0 0;
    color: var(--footer-text);
}

.site-footer__subscribe .wpcf7-not-valid-tip {
    margin-top: 8px;
    color: #ff8f8f;
}

/* CF7: email + submit in one row */
.site-footer__subscribe .wpcf7-form p {
    margin: 0;
}

.site-footer__subscribe .wpcf7-form .wpcf7-form-control-wrap {
    display: block;
    margin: 0;
}

.site-footer__subscribe .wpcf7-form .wrapper-btn,
.site-footer__subscribe .wpcf7-form p:has([type="submit"]) {
    display: contents;
}

.site-footer__subscribe .wpcf7-form {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.site-footer__subscribe .wpcf7-form > p {
    display: contents;
}

.site-footer__subscribe .wpcf7-form .wpcf7-spinner {
    display: none;
}

/* Legal */

.site-footer__legal {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding-top: 8px;
}

.site-footer__legal-text {
    max-width: 760px;
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: var(--footer-muted);
}

.site-footer__copyright {
    display: block;
    margin-top: 8px;
}

.site-footer__legal-nav {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.site-footer__legal-nav a {
    font-size: 12px;
    color: var(--footer-muted);
    white-space: nowrap;
}

.site-footer__legal-nav a:hover {
    color: #fff;
}

/* Desktop: accordions always expanded */

@media (max-width: 1450px) {
    .site-footer__top::before {
        content: none;
    }

    .site-footer__top {
        border-radius: 10px;
        padding: 28px 32px;
        background: var(--footer-surface);
        border: 1px solid var(--footer-border);
    }
}

@media (min-width: 992px) {
    .footer-accordion__title {
        pointer-events: none;
        cursor: default;
    }

    .footer-accordion__title::after {
        display: none;
    }

    .footer-countries__all {
        pointer-events: auto;
        cursor: pointer;
    }

    .site-footer__brand {
        border-right: none;
    }
}

/* Tablet */

@media (max-width: 1199px) {
    .site-footer__top {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer__cta {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .footer-countries__list.footer-menu__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .site-footer__subscribe {
        grid-template-columns: 1fr;
    }

    .site-footer__subscribe-features {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px 20px;
        padding: 0;
        border-left: none;
        border-top: none;
    }
}

@media (max-width: 991px) {
    .site-footer {
        padding-top: 40px;
    }

    .site-footer__top {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .site-footer__features {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .site-footer__middle {
        grid-template-columns: 1fr;
        gap: 0;
        padding-top: 8px;
    }

    .site-footer__nav {
        grid-template-columns: 1fr;
        gap: 0;
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid var(--footer-border);
    }

    .footer-nav__col,
    .footer-countries {
        border-bottom: 1px solid var(--footer-border);
    }

    .footer-countries__header {
        margin: 0;
        padding: 16px 0;
        cursor: pointer;
        pointer-events: auto;
    }

    .footer-countries__header.footer-accordion__title::after {
        display: block;
    }

    .footer-accordion__title {
        margin: 0;
        padding: 16px 0;
    }

    .footer-accordion__title::after {
        display: block;
    }

    .footer-accordion__body {
        padding-bottom: 16px;
    }

    .footer-nav__body .footer-menu__list {
        gap: 12px;
    }

    .footer-countries__list.footer-menu__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer__subscribe {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 20px;
    }

    .site-footer__subscribe-features {
        padding: 20px 0 0;
        border-left: none;
        border-top: 1px solid var(--footer-border);
    }

    .site-footer__subscribe-feature {
        white-space: normal;
    }

    .site-footer__legal {
        flex-direction: column;
    }

    .site-footer__legal-nav {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .footer-countries__list.footer-menu__list {
        grid-template-columns: 1fr;
    }

    .site-footer__subscribe-field {
        flex-direction: column;
    }

    .site-footer__subscribe-placeholder input[type="email"],
    .site-footer__subscribe .wpcf7-form input[type="email"] {
        border-right: 1px solid var(--footer-border);
        border-radius: 12px;
    }

    .site-footer__subscribe-placeholder button,
    .site-footer__subscribe .wpcf7-form input[type="submit"],
    .site-footer__subscribe .wpcf7-form button[type="submit"] {
        width: 100%;
        border-radius: 12px;
    }

    .site-footer__subscribe-features {
        flex-direction: column;
    }

    .site-footer__cta {
        gap: 24px;
    }
}
