/* ===================================================================
   base.css
   Общая база темы: reset, переменные, типографика, header, footer,
   общие секции, базовые утилиты WordPress, мобильная навигация.
   =================================================================== */

/* MAIN */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --green: #2a7d34;
    --green-l: #3a9e47;
    --green-d: #1a5223;
    --green-bg: #f0f8f1;
    --accent: #e8f5e9;
    --white: #fff;
    --text: #1a1a1a;
    --text-m: #444;
    --text-l: #777;
    --border: #e0e0e0;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.09);
    --shadow-l: 0 2px 12px rgba(0, 0, 0, 0.06);
    --radius: 14px;
    --radius-s: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Montserrat", sans-serif;
    color: var(--text);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ─── BREADCRUMB ─── */
.breadcrumb {
    background: #f7f7f7;
    border-bottom: 1px solid #eee;
    padding: 9px 0;
    font-size: 13px;
    color: var(--text-l);
}

.breadcrumb-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 6px;
    align-items: center;
}

.breadcrumb a {
    color: var(--green);
}

.breadcrumb span {
    color: #bbb;
}

/* ─── TOPBAR ─── */
.topbar {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 7px 0;
}

.topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 22px;
}

.topbar-phone {
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
}

.topbar-phone:hover {
    color: var(--green);
}

.online {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #4caf50;
    font-weight: 600;
}

.online-dot {
    width: 7px;
    height: 7px;
    background: #4caf50;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }
}

.socials {
    display: flex;
    gap: 14px;
    align-items: center;
}

.soc {
    --s: 24px;
    --icon: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.soc:hover {
    color: var(--green);
}

.soc svg {
    width: var(--icon);
    height: var(--icon);
    fill: #fff;
}

.soc {
    position: relative;
    padding-left: calc(var(--s) + 6px);
}

.soc::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: var(--s);
    height: var(--s);
    border-radius: 50%;
    transform: translateY(-50%);
    background: #999;
}

.soc svg {
    position: absolute;
    left: 0;
    top: 50%;
    width: var(--icon);
    height: var(--icon);
    transform: translate(calc((var(--s) - var(--icon)) / 2), -50%);
}

.soc--wa::before {
    background: #25d366;
}

.soc--tg::before {
    background: #2aabee;
}

.soc--mx::before {
    display: none;
}

.soc--mx svg {
    width: var(--s);
    height: var(--s);
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    fill: initial;
}

.socials--footer {
    justify-content: end;
    margin-top: 24px;
}

.socials--footer .soc {
    --s: 44px;
    --icon: 22px;
}

/* ─── FOOTER ─── */
footer {
    background: var(--text);
    color: #fff;
    padding: 48px 0 28px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 36px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo img {
    height: 38px;
    width: auto;
}

.footer-logo-name {
    font-weight: 800;
    font-size: 12px;
    color: #aaa;
    text-transform: uppercase;
    max-width: 160px;
    line-height: 1.4;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.footer-contacts a {
    color: #ccc;
    font-size: 15px;
    font-weight: 600;
}

.footer-contacts a:hover {
    color: #fff;
}

.footer-socials {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
}

.footer-soc {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.footer-soc:hover {
    transform: scale(1.1);
}

.footer-soc svg {
    width: 16px;
    height: 16px;
    fill: #fff;
}

.footer-divider {
    border: none;
    border-top: 1px solid #333;
    margin-bottom: 22px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #666;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-bottom a {
    color: #888;
}

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

/* ─── NAV ─── */
nav {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 200;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.logo .custom-logo {
    width: 60px !important;
    height: 60px !important;
    flex: 0 0 60px;
    object-fit: contain;
}

.logo-name {
    font-weight: 800;
    font-size: 12px;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1.35;
}

.nav-menu {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    position: relative;
    padding-bottom: 3px;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green);
    transition: width 0.25s;
}

.nav-menu a:hover {
    color: var(--green);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-phone {
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
}

.nav-phone:hover {
    color: var(--green);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-weight: 700;
    font-size: 14px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-green {
    background: var(--green);
    color: #fff;
    padding: 12px 22px;
}

.btn-green:hover {
    background: var(--green-d);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(42, 125, 52, 0.35);
}

.btn-green-outline {
    background: transparent;
    color: var(--green);
    border: 2px solid var(--green);
    padding: 10px 20px;
}

.btn-green-outline:hover {
    background: var(--green);
    color: #fff;
}

.btn-white {
    background: #fff;
    color: var(--green);
    padding: 14px 28px;
    font-size: 15px;
}

.btn-white:hover {
    background: #e8f5e9;
}

.btn-big {
    padding: 16px 34px;
    font-size: 16px;
    border-radius: 35px;
}

/* ─── SECTION COMMON ─── */
section {
    padding: 72px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-tag {
    display: inline-block;
    background: var(--accent);
    color: var(--green);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px;
}

.section-sub {
    font-size: 17px;
    color: var(--text-m);
    line-height: 1.6;
    max-width: 640px;
}

/* ─── FORM ─── */
.form-section {
    background: linear-gradient(135deg, var(--green-d) 0%, var(--green) 60%, #3db84a 100%);
    color: #fff;
}

.form-section .section-title {
    color: #fff;
}

.form-section .section-sub {
    color: rgba(255, 255, 255, 0.8);
}

.form-wrap {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 60px;
    align-items: start;
    margin-top: 48px;
}

.form-gifts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fg-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 8px 16px;
}

.fg-em {
    font-size: 26px;
}

.fg-txt {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
}

.step-form {
    background: #fff;
    border-radius: 20px;
    padding: 36px 32px;
}

.step-indicator {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.step-dot {
    height: 5px;
    flex: 1;
    border-radius: 4px;
    background: #e0e0e0;
    transition: background 0.3s;
    border: 0;
    cursor: pointer;
    padding: 0;
}

.step-dot.active {
    background: var(--green);
}

.step-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-l);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.step-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 22px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-m);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 13px 16px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
    background: #fafafa;
    color: var(--text);
}

.form-control:focus {
    border-color: var(--green);
    background: #fff;
}

.form-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.form-option {
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-m);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    background: #fafafa;
}

.form-option:hover,
.form-option.selected {
    border-color: var(--green);
    background: var(--accent);
    color: var(--green);
}

.form-nav {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    align-items: center;
}

.btn-form-next {
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 13px 28px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
}

.btn-form-next:hover {
    background: var(--green-d);
}

.btn-form-back {
    background: transparent;
    color: var(--text-l);
    border: 2px solid var(--border);
    border-radius: 30px;
    padding: 11px 20px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-form-back:hover {
    border-color: var(--green);
    color: var(--green);
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

#stepDone {
    display: none;
}

#stepDone.active {
    display: block;
}

.step-text-block {
    font-size: 14px;
    color: var(--text-m);
    line-height: 1.6;
}

/* ─── FORM CONTACT Остались вопросы ─── */

.cf-form-done,
#contactFormDone {
    display: none;
}

.cf-form-done.is-visible,
#contactFormDone.is-visible {
    display: block;
}

.cf-form-done-box,
#contactFormDone .cf-form-done-box {
    text-align: center;
    padding: 28px 20px 12px;
}

.cf-form-done-icon,
#contactFormDone .cf-form-done-icon {
    font-size: 56px;
    line-height: 1;
    margin-bottom: 16px;
}

.cf-form-done-title,
#contactFormDone .cf-form-done-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--green);
    margin-bottom: 12px;
}

.cf-form-done-text,
#contactFormDone .cf-form-done-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-m);
    max-width: 520px;
    margin: 0 auto;
}

.checkbox-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--text-m);
}

.checkbox-line input {
    width: 17px;
    height: 17px;
    accent-color: var(--green);
    margin-top: 1px;
    flex-shrink: 0;
    cursor: pointer;
}

.checkbox-line a {
    color: var(--green);
}

/* ─── SECTION POPUP ─── */
.step-popup {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.step-popup.open {
    display: flex;
}

.step-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    /* backdrop-filter: blur(6px); */
}

.step-popup-dialog {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100vw - 48px));
    max-height: min(860px, calc(100vh - 48px));
    margin: 0;
    padding: 48px;
    overflow: auto;
    border-radius: 24px;
    background: linear-gradient(135deg, #10351a 0%, #1e5c27 45%, #2f8a3b 100%);
    box-shadow: 0 32px 100px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.step-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.form-wrap--popup {
    min-height: auto;
}

.messenger-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.msg-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 88px;
    min-height: 52px;
    padding: 10px 14px;
    border-radius: 14px;
    border: none;
    background: rgba(120, 120, 120, 0.5);
    color: #fff;
    opacity: 0.5;
    cursor: pointer;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.msg-btn:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.msg-btn:focus,
.msg-btn:focus-visible {
    outline: none;
    box-shadow: none;
}

.msg-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.msg-btn-text {
    display: flex;
    align-items: center;
}

.msg-btn-label {
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.msg-btn.selected {
    opacity: 1;
    transform: translateY(-1px);
    border-color: transparent;
}

.msg-btn.msg-wa.selected {
    background: #25d366;
}

.msg-btn.msg-tg.selected {
    background: #2aabee;
}

.msg-btn.msg-mx.selected {
    background: linear-gradient(135deg, #4cf 0%, #53e 62%, #93d 100%);
}

.popup-step-next[disabled],
.main-step-next[disabled],
#popupSubmitBtn[disabled],
#mainSubmitBtn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(0.15);
    box-shadow: none !important;
}

.popup-step-next[disabled]:hover,
.main-step-next[disabled]:hover,
#popupSubmitBtn[disabled]:hover,
#mainSubmitBtn[disabled]:hover {
    transform: none;
}

/* ─── SCROLL ANIMATE ─── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.reveal.visible,
.reveal.revealed {
    opacity: 1;
    transform: none;
}

/* ─── WordPress: align images ─── */
.wp-block-image {
    margin: 0;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin-right: 1.5em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
}

/* ─── Mobile nav burger ─── */
.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    background: none;
    border: none;
}

.nav-burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.25s;
}

.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 500;
}

.mobile-nav.open {
    display: block;
}

.mobile-nav-panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
    background: #fff;
    padding: 24px 20px 32px;
    overflow-y: auto;
}

.mobile-nav-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-topbar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 48px 0 20px;
    border-bottom: 1px solid #eee;
}

.mobile-nav-phone {
    display: block;
    font-weight: 800;
    font-size: 22px;
    color: var(--green);
}

.mobile-nav-online {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #4caf50;
    font-weight: 600;
}

.mobile-nav-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.mobile-nav-socials .soc {
    font-size: 14px;
}

.mobile-nav-menu {
    list-style: none;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.mobile-nav-menu a {
    display: block;
    padding: 14px 16px;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.2;
    color: var(--text);
    border-radius: 12px;
}

.mobile-nav-menu a:hover {
    background: var(--green-bg);
    color: var(--green);
}

.mobile-nav-cta {
    margin-top: 32px;
    width: 100%;
    min-height: 52px;
}

body.mobile-nav-open {
    overflow: hidden;
}

/* ─── RESPONSIVE: base ─── */
@media (max-width: 1024px) {
    .topbar {
        display: none;
    }

    .nav-burger {
        display: flex !important;
    }

    .btn-precheck {
        display: none !important;
    }

    .section-title {
        font-size: 26px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-wrap {
        grid-template-columns: 1fr;
    }

    .footer-socials {
        justify-content: flex-start;
    }

    .footer-logo {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .socials.socials--footer {
        margin-top: 24px;
        margin-bottom: 12px;
        justify-content: center;
    }

    .nav-menu {
        display: none;
    }

    .nav-phone {
        display: none;
    }

    .topbar-inner {
        flex-wrap: wrap;
        gap: 8px;
    }

    .nav-inner {
        padding: 0 14px;
        height: 68px;
        display: flex;
        align-items: center;
        gap: 8px;
        overflow: hidden;
    }

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

    .logo-name {
        flex: 1 1 0;
        min-width: 0;
        text-align: center;
        white-space: normal;
        overflow: hidden;
        overflow-wrap: anywhere;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        line-height: 1.2;
        font-size: 0.82em;
    }

    .nav-burger {
        flex: 0 0 auto;
        width: 48px;
    }

    .step-popup {
        padding: 8px;
    }

    .step-popup-dialog {
        width: 100%;
        max-height: calc(100vh - 16px);
        margin: 0;
        padding: 14px;
        border-radius: 16px;
    }
}
