:root {
    --brand: #2f7d32;
    --brand-2: #52a447;
    --accent: #e8871e;
    --bg: #f7faf5;
    --surface: #ffffff;
    --surface-2: #eef4e9;
    --text: #1a2418;
    --muted: #5c6b56;
    --border: #dde6d6;
    --grad: linear-gradient(135deg, #2f7d32 0%, #52a447 100%);
    --grad-warm: linear-gradient(135deg, #e8871e 0%, #f0a94a 100%);
    --radius-1: 10px;
    --radius-2: 16px;
    --radius-3: 24px;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
    --shadow-1: 0 2px 8px rgba(47, 125, 50, 0.06);
    --shadow-2: 0 12px 32px rgba(47, 125, 50, 0.1);
    --shadow-3: 0 24px 60px rgba(47, 125, 50, 0.14);
    --container: 1180px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-weight: 400;
    background-image:
        radial-gradient(circle at 12% 8%, rgba(82, 164, 71, 0.07), transparent 42%),
        radial-gradient(circle at 88% 20%, rgba(232, 135, 30, 0.06), transparent 40%);
    background-attachment: fixed;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
}

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

h1, h2, h3 {
    font-family: var(--font-display);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.01em;
}

h1 em, h2 em, h3 em {
    font-style: italic;
    color: var(--brand);
}

/* ============ HEADER ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.logo-wrapper .logo {
    height: 46px;
    width: auto;
    object-fit: contain;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header-nav a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.header-nav a:hover {
    color: var(--brand);
}

.nav-cta {
    background: var(--grad);
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 100px;
    box-shadow: var(--shadow-1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-2);
}

/* ============ HERO ============ */
.hero {
    padding: clamp(48px, 8vw, 96px) 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.eyebrow {
    display: inline-block;
    background: var(--surface-2);
    color: var(--brand);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    margin-bottom: 24px;
}

.hero-lead {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--muted);
    max-width: 520px;
    margin-bottom: 32px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 10px 18px;
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.92rem;
    box-shadow: var(--shadow-1);
    color: var(--text);
}

.hero-chip svg {
    color: var(--brand);
}

.hero-visual {
    position: relative;
}

.hero-visual img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: var(--radius-3);
    box-shadow: var(--shadow-3);
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    border-radius: 100px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    background: var(--grad);
    color: #fff;
    box-shadow: var(--shadow-2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-3);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* ============ SECTIONS ============ */
.section {
    padding: clamp(56px, 9vw, 104px) 0;
}

.section-eyebrow {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.section h2 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    margin-bottom: 36px;
}

/* ============ COMPANY ============ */
.company {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.company-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.company-text .lead {
    font-size: 1.3rem;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.4;
}

.company-text p {
    color: var(--muted);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.company-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.stat-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-2);
    padding: 22px 18px;
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 6px;
    line-height: 1.15;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--muted);
}

.company-image img {
    width: 100%;
    aspect-ratio: 5/6;
    object-fit: cover;
    border-radius: var(--radius-3);
    box-shadow: var(--shadow-2);
}

/* ============ VACANCY ============ */
.vacancy {
    text-align: center;
}

.vacancy-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-3);
    overflow: hidden;
    text-align: left;
}

.vacancy-item {
    background: var(--surface);
    padding: 28px 26px;
}

.vacancy-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
}

.vacancy-value {
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--text);
}

/* ============ CONDITIONS ============ */
.conditions {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.conditions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.condition-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-2);
    padding: 32px 28px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.condition-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-2);
    border-color: var(--brand-2);
}

.condition-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    border-radius: var(--radius-2);
    color: var(--brand);
    margin-bottom: 20px;
}

.condition-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.condition-card p {
    color: var(--muted);
    font-size: 0.98rem;
}

/* ============ DUTIES / REQUIREMENTS ============ */
.duties-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 72px);
}

.duties-list {
    list-style: none;
}

.duties-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1.05rem;
    color: var(--text);
}

.duties-list li:last-child {
    border-bottom: none;
}

.duties-list li svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: #fff;
    background: var(--grad);
    border-radius: 50%;
    padding: 4px;
    width: 26px;
    height: 26px;
}

/* ============ BENEFITS ============ */
.benefits {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.benefit-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-3);
    padding: 40px 32px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-2);
}

.benefit-card.featured {
    background: var(--grad);
    color: #fff;
    border: none;
}

.benefit-card.featured h3,
.benefit-card.featured p {
    color: #fff;
}

.benefit-card.featured .benefit-icon {
    color: #fff;
}

.benefit-icon {
    color: var(--brand);
    margin-bottom: 22px;
}

.benefit-card h3 {
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.benefit-card p {
    color: var(--muted);
    font-size: 1rem;
}

/* ============ CONTACT ============ */
.contact-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(32px, 5vw, 56px);
    align-items: start;
}

.contact-lead {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 1rem;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-1);
    background: var(--surface);
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(47, 125, 50, 0.12);
}

.form-group textarea {
    resize: vertical;
}

.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-radius: var(--radius-1);
    margin-bottom: 24px;
    font-weight: 500;
}

.alert-success {
    background: #e8f6e6;
    color: #1e5f21;
    border: 1px solid #b8e0b4;
}

.alert-error {
    background: #fdeaea;
    color: #a32424;
    border: 1px solid #f0c0c0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-2);
    padding: 26px;
    box-shadow: var(--shadow-1);
}

.info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--brand);
}

.info-card p {
    color: var(--muted);
}

.map-wrapper {
    margin-top: 18px;
    border-radius: var(--radius-1);
    overflow: hidden;
    border: 1px solid var(--border);
}

.map-wrapper iframe {
    display: block;
}

/* ============ FOOTER ============ */
.site-footer {
    background: var(--text);
    color: #cdd6c8;
    padding: 48px 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

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

.footer-logo img {
    height: 44px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-logo p {
    font-size: 0.92rem;
    color: #9aab94;
}

.footer-text p {
    font-size: 0.9rem;
    color: #9aab94;
    text-align: right;
}

/* ============ REVEAL ANIMATION ============ */
html.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js .reveal.in {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html.js .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    * {
        scroll-behavior: auto !important;
    }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
    .hero-content,
    .company-content,
    .duties-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }
    .hero-visual {
        order: -1;
    }
    .hero-visual img {
        aspect-ratio: 16/10;
        max-height: 360px;
    }
    .conditions-grid,
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .vacancy-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .header-nav {
        gap: 14px;
    }
    .header-nav a:not(.nav-cta) {
        display: none;
    }
    .conditions-grid,
    .benefits-grid,
    .vacancy-summary,
    .company-stats,
    .form-row {
        grid-template-columns: 1fr;
    }
    .company-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-text p {
        text-align: center;
    }
}

/* --- Стили для блоков, оставшихся без оформления --- */
.hero-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-4, 20px);
    max-width: 640px;
    z-index: 2;
    position: relative;
    animation: heroTextIn 0.7s var(--ease-out, cubic-bezier(.16,1,.3,1)) both;
}

@keyframes heroTextIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-text { animation: none; }
}

.duties {
    padding: var(--space-9, 80px) 0;
    position: relative;
}

.duties-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-5, 24px);
    margin-top: var(--space-6, 36px);
}

.duties-column > * {
    background: var(--surface, #ffffff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: var(--radius-2, 6px);
    padding: var(--space-5, 24px);
    position: relative;
    transition: transform .2s var(--ease-out, ease), border-color .2s var(--ease-out, ease);
}

.duties-column > *:hover {
    transform: translateY(-3px);
    border-color: var(--brand, #4a7c3a);
}

.duties-column > *::before {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: var(--brand, #4a7c3a);
    margin-bottom: var(--space-3, 12px);
}

.contact {
    padding: var(--space-9, 80px) 0;
    position: relative;
}

.contact-form-wrapper {
    max-width: 620px;
    margin: var(--space-6, 36px) auto 0;
    background: var(--surface, #ffffff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: var(--radius-2, 6px);
    padding: clamp(24px, 4vw, var(--space-8, 56px));
    box-shadow: var(--shadow-1, 0 1px 2px rgba(0,0,0,.06));
    display: flex;
    flex-direction: column;
    gap: var(--space-4, 18px);
}

.contact-form-wrapper form {
    display: grid;
    gap: var(--space-4, 18px);
}

.contact-form-wrapper input,
.contact-form-wrapper textarea {
    width: 100%;
    padding: var(--space-3, 14px) var(--space-4, 16px);
    font: inherit;
    color: var(--text, #1a1a1a);
    background: var(--surface-2, #f6f7f5);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: var(--radius-1, 4px);
    transition: border-color .2s var(--ease-out, ease), box-shadow .2s var(--ease-out, ease);
}

.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
    outline: none;
    border-color: var(--brand, #4a7c3a);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand, #4a7c3a) 20%, transparent);
}

.contact-form-wrapper textarea {
    min-height: 120px;
    resize: vertical;
}

@media (max-width: 640px) {
    .contact-form-wrapper {
        padding: var(--space-5, 24px);
    }
}
