@font-face {
    font-family: "Inter";
    src: url("../fonts/InterVariable.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: "Barlow Semi Condensed";
    src: url("../fonts/BarlowSemiCondensed-Medium.ttf") format("truetype");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Barlow Semi Condensed";
    src: url("../fonts/BarlowSemiCondensed-SemiBold.ttf") format("truetype");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

:root {
    --green: #4f8726;
    --green-dark: #3e6e1e;
    --green-deep: #123f29;
    --green-ink: #0b3220;
    --green-soft: #edf5eb;
    --lime: #93c83e;
    --graphite: #293138;
    --ink: #172128;
    --muted: #5d686e;
    --line: #d8e2dc;
    --surface: #ffffff;
    --surface-soft: #f4f7f4;
    --cream: #fff8df;
    --warning: #8a5c00;
    --shadow: 0 20px 55px rgba(24, 48, 35, 0.11);
    --shadow-soft: 0 10px 30px rgba(24, 48, 35, 0.08);
    --radius-lg: 30px;
    --radius-md: 20px;
    --radius-sm: 12px;
    --container: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 108px;
}

body {
    margin: 0;
    min-width: 0;
    color: var(--ink);
    background: var(--surface-soft);
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea {
    font-family: "Inter", Arial, Helvetica, sans-serif;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
select {
    cursor: pointer;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--ink);
    font-weight: 750;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.section {
    padding: 104px 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 10px;
    left: 10px;
    padding: 10px 16px;
    border-radius: 8px;
    color: #fff;
    background: var(--graphite);
    text-decoration: none;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid #f2b928;
    outline-offset: 4px;
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid rgba(41, 49, 56, 0.08);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
}

.header-inner {
    position: relative;
    display: grid;
    grid-template-columns: 126px 1fr auto;
    align-items: center;
    min-height: 108px;
    gap: 30px;
}

.brand {
    display: inline-flex;
    width: 100px;
    height: 100px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.brand img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.primary-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.primary-navigation a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--graphite);
    font-family: "Barlow Semi Condensed", "Inter", sans-serif;
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: 0.035em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 160ms ease, background-color 160ms ease;
}

.primary-navigation a i {
    color: var(--green);
    font-size: 0.8em;
}

.primary-navigation a:hover {
    color: var(--green-dark);
    background: var(--green-soft);
}

.header-contact {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 10px 18px;
    border: 1px solid rgba(79, 135, 38, 0.28);
    border-radius: 999px;
    color: var(--green-dark);
    font-family: "Barlow Semi Condensed", "Inter", sans-serif;
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    text-decoration: none;
    white-space: nowrap;
    transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.header-contact i {
    font-size: 1.1rem;
}

.header-contact:hover {
    color: #fff;
    border-color: var(--green-dark);
    background: var(--green-dark);
}

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.nav-toggle > span:not(.sr-only) {
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--graphite);
}

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(10, 57, 36, 0.98), rgba(18, 75, 46, 0.97)),
        repeating-linear-gradient(45deg, transparent 0 28px, rgba(255, 255, 255, 0.025) 29px 30px);
}

.hero::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    opacity: 0.13;
    background-image:
        linear-gradient(30deg, transparent 24%, rgba(255, 255, 255, 0.18) 25%, rgba(255, 255, 255, 0.18) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, 0.18) 75%, rgba(255, 255, 255, 0.18) 76%, transparent 77%),
        linear-gradient(150deg, transparent 24%, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.1) 26%, transparent 27%);
    background-size: 88px 52px;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 49, 31, 0.94) 0%, rgba(10, 57, 36, 0.84) 42%, rgba(10, 57, 36, 0.28) 68%, rgba(10, 57, 36, 0.08) 100%);
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    z-index: 1;
    border: 1px solid rgba(147, 200, 62, 0.26);
    border-radius: 50%;
    pointer-events: none;
}

.hero-shape--one {
    top: -270px;
    right: -130px;
    width: 560px;
    height: 560px;
}

.hero-shape--two {
    bottom: -330px;
    left: -180px;
    width: 620px;
    height: 620px;
}

.hero-grid {
    position: relative;
    z-index: 3;
    min-height: 610px;
    padding-top: 72px;
    padding-bottom: 76px;
}

.hero-copy {
    position: relative;
    z-index: 4;
    max-width: 720px;
}

.hero-watermark {
    position: absolute;
    z-index: 1;
    top: 50%;
    right: max(-140px, calc((100vw - var(--container)) / 2 - 90px));
    width: clamp(650px, 55vw, 900px);
    max-width: none;
    opacity: 0.55;
    clip-path: inset(0 0 31% 0);
    filter: saturate(0.9) contrast(0.98);
    transform: translate(13%,-36%);
    pointer-events: none;
    user-select: none;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 19px;
    color: #cbe994;
    font-family: "Barlow Semi Condensed", "Inter", sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
}

.eyebrow i {
    font-size: 0.9em;
}

.eyebrow--green {
    color: var(--green);
}

.hero h1 {
    max-width: 720px;
    margin-bottom: 24px;
    color: #fff;
    font-size: clamp(3.35rem, 5.3vw, 5.5rem);
    line-height: 0.98;
}

.hero h1 span,
.hero h1 em {
    display: block;
}

.hero h1 em {
    margin-top: 11px;
    color: var(--lime);
    font-style: normal;
}

.hero-lead {
    max-width: 690px;
    margin-bottom: 34px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.13rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button--primary {
    color: #fff;
    background: var(--green);
    box-shadow: 0 12px 28px rgba(46, 102, 27, 0.3);
}

.button--primary:hover {
    background: var(--green-dark);
}

.button--ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.06);
}

.button--ghost:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.13);
}

.draft-notice {
    border-bottom: 1px solid #eadcac;
    color: var(--warning);
    background: var(--cream);
}

.draft-notice-inner {
    display: flex;
    min-height: 62px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: center;
}

.draft-notice p {
    margin: 0;
    font-size: 0.82rem;
}

.section-heading {
    max-width: 700px;
    margin-bottom: 48px;
}

.section-heading--center {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.section-heading--center .eyebrow {
    justify-content: center;
}

.section-heading h2,
.about-copy h2,
.contact-copy h2,
.legal-hero h1 {
    margin-bottom: 18px;
    font-size: clamp(2.35rem, 4vw, 4.15rem);
}

.section-heading > p:last-child,
.about-intro {
    color: var(--muted);
    font-size: 1.04rem;
}

.services {
    background: var(--surface-soft);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.service-card {
    position: relative;
    display: flex;
    min-height: 380px;
    flex-direction: column;
    padding: 28px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: 0 2px 0 rgba(18, 63, 41, 0.025);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 135, 38, 0.38);
    box-shadow: var(--shadow-soft);
}

.service-card--featured {
    border-color: var(--green);
    background: linear-gradient(145deg, #fff 0%, #f3faf0 100%);
}

.featured-label {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 11px;
    border-radius: 999px;
    color: var(--green-ink);
    background: #a9d751;
    font-family: "Barlow Semi Condensed", "Inter", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.service-card-top {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.service-card--featured .service-card-top {
    padding-top: 20px;
}

.service-icon {
    display: inline-flex;
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: var(--green);
    background: var(--green-soft);
    font-size: 1.45rem;
}

.price {
    color: var(--green-dark);
    font-family: "Barlow Semi Condensed", "Inter", sans-serif;
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: 0.035em;
    text-align: right;
}

.price--individual {
    max-width: 150px;
    line-height: 1.12;
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 1.35rem;
}

.service-card > p {
    margin-bottom: 24px;
    color: #445158;
    font-size: 0.94rem;
    line-height: 1.65;
}

.service-card details {
    margin-top: auto;
}

.service-card summary {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--green-dark);
    font-size: 0.9rem;
    font-weight: 750;
    list-style: none;
    cursor: pointer;
}

.service-card summary::-webkit-details-marker {
    display: none;
}

.service-card summary span {
    display: inline-flex;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--green-soft);
    transition: transform 180ms ease, background-color 180ms ease;
}

.service-card details[open] summary span {
    color: #fff;
    background: var(--green);
    transform: rotate(45deg);
}

.service-details {
    padding: 14px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.service-details p {
    margin: 0;
}

.pricing-note {
    display: flex;
    max-width: 780px;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    margin: 28px auto 0;
    color: var(--warning);
    font-size: 0.78rem;
    text-align: center;
}

.pricing-note i {
    margin-top: 4px;
}

.about {
    background: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1fr);
    align-items: center;
    gap: 86px;
}

.about-copy h2 {
    max-width: 560px;
}

.about-intro {
    max-width: 600px;
    margin-bottom: 30px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--green-dark);
    font-weight: 750;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

.about-side {
    display: grid;
    gap: 20px;
}

.about-profile {
    max-height: 360px;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
    box-shadow: var(--shadow-soft);
}

.about-profile img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 360px;
    object-fit: cover;
}

.cooperation-steps {
    display: grid;
    gap: 13px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.cooperation-steps li {
    display: grid;
    grid-template-columns: 62px 1fr;
    align-items: center;
    gap: 20px;
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
}

.cooperation-steps li > span {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #fff;
    background: var(--green);
    font-family: "Barlow Semi Condensed", "Inter", sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.cooperation-steps strong {
    display: block;
    margin-bottom: 3px;
    font-size: 1.02rem;
}

.cooperation-steps p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.contact {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: var(--green-deep);
}

.contact::after {
    content: "";
    position: absolute;
    top: -330px;
    right: -270px;
    width: 700px;
    height: 700px;
    border: 1px solid rgba(147, 200, 62, 0.25);
    border-radius: 50%;
}

.contact-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(300px, 0.73fr) minmax(540px, 1.15fr);
    align-items: start;
    gap: 78px;
}

.contact-copy {
    padding-top: 42px;
}

.contact-copy h2 {
    max-width: 500px;
    color: #fff;
}

.contact-copy > p:not(.eyebrow):not(.contact-warning) {
    max-width: 510px;
    color: rgba(255, 255, 255, 0.83);
    font-size: 1.04rem;
}

.contact-list {
    display: grid;
    gap: 14px;
    margin-top: 36px;
}

.contact-list a {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.contact-list a > span:first-child {
    display: inline-flex;
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: #b9e66d;
    background: rgba(255, 255, 255, 0.09);
    font-size: 1.15rem;
}

.contact-list small {
    display: block;
    margin-bottom: 1px;
    color: #a5cdb4;
    font-family: "Barlow Semi Condensed", "Inter", sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-list strong {
    font-size: 1.05rem;
}

.contact-warning {
    display: flex;
    gap: 9px;
    margin-top: 30px;
    color: #d3eb83;
    font-size: 0.75rem;
}

.contact-warning i {
    margin-top: 5px;
}

.contact-form {
    padding: 38px;
    border-radius: var(--radius-lg);
    color: var(--ink);
    background: #fff;
    box-shadow: var(--shadow);
}

.form-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.form-heading p {
    margin: 0;
    font-size: 1.38rem;
    font-weight: 750;
    letter-spacing: -0.03em;
}

.form-heading span {
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--warning);
    background: var(--cream);
    font-family: "Barlow Semi Condensed", "Inter", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.field {
    min-width: 0;
}

.field--full {
    grid-column: 1 / -1;
}

.field label:first-child {
    display: block;
    margin-bottom: 7px;
    color: var(--graphite);
    font-size: 0.85rem;
    font-weight: 650;
}

.field label span[aria-hidden="true"] {
    color: var(--green);
}

.field label small {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 450;
}

.field input:not([type="checkbox"]):not([type="file"]),
.field select,
.field textarea {
    width: 100%;
    border: 1px solid #cfdbd3;
    border-radius: 12px;
    color: var(--ink);
    background: #fbfcfb;
    transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.field input:not([type="checkbox"]):not([type="file"]),
.field select {
    height: 52px;
    padding: 0 14px;
}

.field textarea {
    min-height: 136px;
    padding: 13px 14px;
    resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
    border-color: #a9beaF;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--green);
    outline: 0;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(79, 135, 38, 0.12);
}

.select-control {
    position: relative;
    display: block;
}

.select-control select {
    padding-right: 44px;
    appearance: none;
}

.select-control > i {
    position: absolute;
    top: 50%;
    right: 16px;
    color: var(--green-dark);
    font-size: 0.75rem;
    pointer-events: none;
    transform: translateY(-50%);
}

.attachment-field {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px 14px;
}

.attachment-field > label:first-child,
.attachment-field .field-hint {
    grid-column: 1 / -1;
}

.file-picker {
    display: inline-flex;
    width: fit-content;
    min-height: 44px;
    align-items: center;
    gap: 9px;
    padding: 10px 16px;
    margin: 0 !important;
    border: 1px solid rgba(79, 135, 38, 0.34);
    border-radius: 999px;
    color: var(--green-dark) !important;
    background: var(--green-soft);
    font-weight: 700 !important;
    cursor: pointer;
}

.attachment-field input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.attachment-field:focus-within .file-picker {
    outline: 3px solid #f2b928;
    outline-offset: 3px;
}

.file-summary,
.field-hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.75rem;
}

.file-summary {
    overflow-wrap: anywhere;
}

.field-hint {
    line-height: 1.45;
}

.field--honeypot {
    position: absolute;
    left: -10000px;
}

.consent-field {
    display: grid;
    grid-template-columns: 20px 1fr;
    align-items: start;
    gap: 10px;
}

.consent-field input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--green);
}

.consent-field input:focus-visible {
    outline: 3px solid #f2b928;
    outline-offset: 3px;
    box-shadow: none;
}

.consent-field label {
    margin: 0 !important;
    color: var(--muted) !important;
    font-size: 0.75rem !important;
    font-weight: 450 !important;
    line-height: 1.5;
}

.consent-field a {
    color: var(--green-dark);
    font-weight: 700;
}

.button--form {
    width: 100%;
    margin-top: 24px;
    color: #fff;
    background: var(--green);
}

.button--form:hover {
    background: var(--green-dark);
}

.form-status {
    min-height: 1.4em;
    margin: 11px 0 0;
    color: var(--muted);
    font-size: 0.72rem;
    text-align: center;
}

.site-footer {
    color: rgba(255, 255, 255, 0.78);
    background: var(--green-ink);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.55fr 0.85fr 0.85fr;
    gap: 70px;
    padding-top: 54px;
    padding-bottom: 42px;
}

.footer-brand {
    display: inline-flex;
    width: 104px;
    height: 104px;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 17px;
    background: #fff;
}

.footer-brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-grid > div:first-child p {
    max-width: 430px;
    margin: 15px 0 0;
}

.footer-grid h2 {
    margin-bottom: 15px;
    color: #fff;
    font-family: "Barlow Semi Condensed", "Inter", sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-grid > div:not(:first-child) {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

.footer-grid a:not(.footer-brand) {
    margin-bottom: 7px;
    color: #fff;
    text-underline-offset: 4px;
}

.footer-grid span {
    color: #d5e582;
    font-size: 0.73rem;
}

.footer-bottom {
    padding-top: 22px;
    padding-bottom: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.78rem;
}

/* Strona polityki prywatności */
.legal-page {
    min-height: 100vh;
    background: var(--surface-soft);
}

.legal-header {
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.legal-header .header-inner {
    grid-template-columns: 1fr auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--green-dark);
    font-weight: 700;
    text-decoration: none;
}

.legal-main {
    padding: 74px 0 104px;
}

.legal-hero {
    max-width: 790px;
    margin-bottom: 34px;
}

.legal-hero p:last-child {
    color: var(--muted);
    font-size: 1.05rem;
}

.legal-status {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px;
    margin-bottom: 26px;
    border: 1px solid #eadcac;
    border-radius: var(--radius-sm);
    color: var(--warning);
    background: var(--cream);
}

.legal-status p {
    margin: 0;
}

.legal-content {
    max-width: 940px;
}

.legal-article {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: 0 14px 44px rgba(18, 63, 41, 0.07);
}

.legal-document-header {
    padding: 34px 38px 30px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(135deg, #fff 0%, var(--surface-soft) 100%);
}

.legal-kicker {
    margin: 0 0 7px;
    color: var(--green);
    font-family: "Barlow Semi Condensed", "Inter", sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.legal-document-header h2 {
    margin-bottom: 22px;
    font-size: clamp(1.65rem, 3vw, 2.15rem);
}

.legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
}

.legal-meta div {
    min-width: 190px;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
}

.legal-meta dt {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.legal-meta dd {
    margin: 3px 0 0;
    color: var(--green-dark);
    font-weight: 700;
}

.legal-section {
    padding: 30px 38px;
    border-bottom: 1px solid var(--line);
}

.legal-section h2 {
    margin-bottom: 16px;
    color: var(--green-dark);
    font-size: 1.32rem;
}

.legal-section p,
.legal-section li {
    color: var(--muted);
}

.legal-section p:last-child,
.legal-section ul:last-child {
    margin-bottom: 0;
}

.legal-section ul {
    margin: 0 0 18px;
    padding-left: 23px;
}

.legal-section li + li {
    margin-top: 7px;
}

.legal-section a {
    color: var(--green-dark);
    font-weight: 700;
    text-underline-offset: 3px;
}

.legal-document-footer {
    padding: 30px 38px 34px;
}

.legal-document-footer .button {
    width: fit-content;
}

@media (max-width: 1040px) {
    .header-inner {
        grid-template-columns: 104px 1fr auto;
        gap: 18px;
    }

    .brand,
    .brand img {
        width: 88px;
        height: 88px;
    }

    .primary-navigation a {
        padding-inline: 10px;
        font-size: 0.92rem;
    }

    .primary-navigation a i {
        display: none;
    }

    .contact-grid {
        grid-template-columns: minmax(270px, 0.72fr) minmax(480px, 1fr);
        gap: 48px;
    }
}

@media (max-width: 860px) {
    html {
        scroll-padding-top: 86px;
    }

    .container {
        width: min(calc(100% - 32px), var(--container));
    }

    .section {
        padding: 78px 0;
    }

    .header-inner {
        grid-template-columns: 78px 1fr auto;
        min-height: 84px;
    }

    .brand,
    .brand img {
        width: 76px;
        height: 76px;
    }

    .nav-toggle {
        display: inline-flex;
        grid-column: 3;
        justify-self: end;
    }

    .header-contact {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        padding-inline: 14px;
    }

    .primary-navigation {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 4px;
        padding: 12px 16px 18px;
        border-bottom: 1px solid var(--line);
        background: #fff;
        box-shadow: 0 18px 30px rgba(20, 40, 28, 0.12);
    }

    .primary-navigation.is-open {
        display: flex;
    }

    .primary-navigation a {
        justify-content: center;
    }

    .primary-navigation a i {
        display: inline-block;
    }

    .hero-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        min-height: 590px;
        padding-top: 64px;
        padding-bottom: 68px;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-copy .eyebrow,
    .hero-actions {
        justify-content: center;
    }

    .hero-lead {
        margin-right: auto;
        margin-left: auto;
    }

    .hero::after {
        background: linear-gradient(90deg, rgba(8, 49, 31, 0.91), rgba(10, 57, 36, 0.72));
    }

    .hero-watermark {
        top: 55%;
        right: -210px;
        width: 690px;
        opacity: 0.32;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-grid {
        gap: 44px;
    }

    .contact-grid {
        gap: 42px;
    }

    .contact-copy {
        padding-top: 0;
    }

    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(calc(100% - 24px), var(--container));
    }

    .section {
        padding: 64px 0;
    }

    .header-inner {
        grid-template-columns: 68px 1fr auto;
        gap: 8px;
    }

    .brand,
    .brand img {
        width: 66px;
        height: 66px;
    }

    .header-contact {
        width: 48px;
        padding: 0;
    }

    .header-contact span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .hero-grid {
        min-height: auto;
        padding-top: 52px;
        padding-bottom: 58px;
    }

    .hero h1 {
        font-size: clamp(2.7rem, 13vw, 4rem);
    }

    .hero-lead {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-watermark {
        top: 58%;
        right: -250px;
        width: 590px;
        opacity: 0.22;
    }

    .draft-notice-inner {
        align-items: flex-start;
        text-align: left;
    }

    .draft-notice-inner i {
        margin-top: 4px;
    }

    .section-heading h2,
    .about-copy h2,
    .contact-copy h2,
    .legal-hero h1 {
        font-size: clamp(2.15rem, 10vw, 3.25rem);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 340px;
    }

    .cooperation-steps li {
        grid-template-columns: 52px 1fr;
        gap: 14px;
        padding: 18px;
    }

    .cooperation-steps li > span {
        width: 50px;
        height: 50px;
    }

    .contact-form {
        padding: 26px 20px;
        border-radius: 24px;
    }

    .form-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .field--full {
        grid-column: auto;
    }

    .attachment-field {
        grid-template-columns: 1fr;
    }

    .attachment-field > label:first-child,
    .attachment-field .field-hint {
        grid-column: auto;
    }

    .file-picker {
        width: 100%;
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-top: 46px;
    }

    .legal-header .header-inner {
        grid-template-columns: 78px 1fr;
    }

    .back-link {
        justify-self: end;
        font-size: 0.85rem;
    }

    .legal-main {
        padding: 54px 0 72px;
    }

    .legal-document-header,
    .legal-section,
    .legal-document-footer {
        padding-inline: 22px;
    }

    .legal-document-footer .button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 380px) {
    .header-contact {
        display: none;
    }

    .header-inner {
        grid-template-columns: 68px 1fr;
    }

    .nav-toggle {
        grid-column: 2;
    }

    .hero h1 {
        font-size: 2.65rem;
    }

    .eyebrow {
        font-size: 1rem;
    }

    .service-card {
        padding: 23px;
    }

    .service-card-top {
        align-items: flex-start;
    }

    .featured-label {
        font-size: 0.67rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
