:root {
    --text: #111;
    --muted: #5c6570;
    --line: #d7dce2;
    --panel: #fff;
    --panel-alt: #f5f7fa;
    --accent: #000;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    background: #fff;
    font-family: Tahoma, Verdana, Segoe, sans-serif;
    line-height: 1.7;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }

.container {
    width: min(1040px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255,255,255,0.96);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    backdrop-filter: blur(10px);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.nav-toggle,
.submenu-toggle,
.flag-button {
    border: 1px solid rgba(0,0,0,0.15);
    background: #fff;
    color: var(--text);
    cursor: pointer;
}

.nav-toggle {
    display: none;
    padding: 10px 14px;
}

.menu,
.sub-menu,
.flag-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.menu-item {
    position: relative;
}

.menu-item > a,
.flag-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 0.95rem;
}

.menu-item.current > a {
    font-weight: 700;
}

.has-children > .submenu-toggle {
    display: none;
}

.sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 270px;
    padding: 10px 0;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.sub-menu li a {
    display: block;
    padding: 10px 16px;
}

.menu-item:hover > .sub-menu,
.menu-item:focus-within > .sub-menu,
.menu-item.open > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-menu .sub-menu {
    right: 0;
    left: auto;
    min-width: 72px;
}

.flag-list li a {
    display: flex;
    justify-content: center;
    padding: 8px;
}

.hero {
    min-height: 360px;
    display: flex;
    align-items: center;
    background-position: center;
    background-size: cover;
}

.hero-inner {
    padding: 96px 0;
    text-align: center;
    color: #fff;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.14;
    font-weight: 700;
}

.hero-meta {
    margin-top: 14px;
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.main-content {
    padding: 44px 0 72px;
}

.page-content {
    max-width: 900px;
    margin: 0 auto;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote,
.prose figure,
.prose hr,
.prose form,
.prose .wpforms-container {
    margin: 0 0 1.25rem;
}

.prose h2,
.prose h3,
.prose h4 {
    margin: 2rem 0 0.8rem;
    line-height: 1.2;
}

.prose hr {
    border: 0;
    border-top: 1px solid var(--line);
}

.prose blockquote {
    margin-left: 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid #000;
    background: var(--panel-alt);
}

.prose ul,
.prose ol {
    padding-left: 1.2rem;
}

.prose figure {
    text-align: center;
}

.flash {
    max-width: 900px;
    margin: 0 auto 20px;
    padding: 14px 16px;
    border-radius: 6px;
    border: 1px solid #b8dcc0;
    background: #edf9f0;
}


.blog-page .page-content ul,
.blog-page .page-content ol {
    list-style: none;
    padding-left: 0;
}

.blog-page .page-content li {
    margin-bottom: 0.6rem;
}
.post-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 36px;
}

.post-card {
    padding: 24px;
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.post-card h2 {
    margin: 0 0 12px;
    font-size: 1.35rem;
    line-height: 1.3;
}

.post-date {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}


.cta-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid #000;
    background: #000;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.cta-link:hover {
    color: #fff;
    text-decoration: none;
    opacity: 0.92;
}
.text-link,
.back-link a {
    font-weight: 700;
}

.back-link {
    max-width: 900px;
    margin: 28px auto 0;
}

.wpforms-form,
form[id^="wpforms-form-"] {
    padding: 24px;
    border: 1px solid var(--line);
    background: var(--panel-alt);
}

.wpforms-field,
.wpforms-field-row,
.wpforms-submit-container {
    margin-bottom: 16px;
}

.wpforms-field-label,
.wpforms-field-sublabel,
legend {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.wpforms-field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="url"],
textarea,
select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #b6bec7;
    background: #fff;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

input[type="radio"],
input[type="checkbox"] {
    margin-right: 8px;
}

.wpforms-field-radio ul,
.wpforms-field-checkbox ul {
    padding-left: 0;
}

.wpforms-field-radio li,
.wpforms-field-checkbox li {
    list-style: none;
    margin-bottom: 8px;
}

.wpforms-submit,
button[type="submit"] {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid #000;
    background: #000;
    color: #fff;
    cursor: pointer;
}

.wpforms-submit-spinner {
    display: none !important;
}

.wpforms-field-number-slider-hint {
    margin-top: 8px;
    color: var(--muted);
}

@media (max-width: 900px) {
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-nav {
        position: absolute;
        top: 72px;
        right: 16px;
        left: 16px;
        display: none;
        padding: 10px;
        background: #fff;
        border: 1px solid rgba(0,0,0,0.08);
        box-shadow: var(--shadow);
    }

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

    .menu {
        flex-direction: column;
        align-items: stretch;
    }

    .menu-item > a,
    .flag-button {
        justify-content: flex-start;
        width: 100%;
    }

    .has-children {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: start;
    }

    .has-children > a,
    .has-children > .flag-button {
        grid-column: 1;
    }

    .has-children > .submenu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
    }

    .sub-menu {
        position: static;
        grid-column: 1 / -1;
        min-width: 0;
        margin-top: 6px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        box-shadow: none;
    }

    .menu-item.open > .sub-menu {
        display: block;
    }

    .post-grid,
    .wpforms-field-row {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 280px;
    }

    .hero-inner {
        padding: 72px 0;
    }
}
