/* ── Toast-уведомления ── */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    z-index: 9999;
    padding: 16px 28px;
    border-radius: 100px;
    background: var(--green-dark, #06653d);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.35s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.error {
    background: #c0392b;
}

/* ── Анимация появления секций при скролле (только с JS) ── */
.js .section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* hero всегда видим */
.hero {
    opacity: 1;
    transform: none;
}

/* ── Улучшенный фокус для accessibility ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--green, #0b8f55);
    outline-offset: 2px;
    border-radius: 4px;
}


/* ── Печать ── */
@media print {
    .header,
    .language-switcher,
    .mobile-menu-button,
    .hero-buttons,
    .contact-form,
    .footer {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 40px 0;
    }

    .section,
    .js .section {
        padding: 30px 0;
        opacity: 1;
        transform: none;
    }
}
/* ── Кнопка «наверх» ── */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 50%;
    background: var(--green, #0b8f55);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--green-dark, #06653d);
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.25);
}

@media (max-width: 600px) {
    .scroll-to-top {
        bottom: 20px;
        right: 16px;
        width: 42px;
        height: 42px;
    }
}
/* ── Сообщения формы ── */
.form-message {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 8px;
    display: none;
}

.form-message.success {
    display: block;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-message.error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ── Honeypot (скрытое антиспам-поле) ── */
._honey-row {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* ── Кнопка отправки: disabled ── */
button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}