@charset "UTF-8";

:root {
    color-scheme: light;
    --ink: #152923;
    --muted: #4e6259;
    --green: #146144;
    --green-dark: #104d36;
    --lime: #e2f1be;
    --paper: #f7f8f4;
    --white: #fff;
    --line: #dce5dc;
    --radius: 20px;
    font-family: system-ui, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, h3 { line-height: 1.08; }
h1, h2 { text-wrap: balance; letter-spacing: -.045em; }
h1 { font-size: clamp(2rem, 8.9vw, 3.8rem); font-weight: 780; }
h2 { font-size: clamp(1.8rem, 7.4vw, 3.15rem); font-weight: 760; }
h3 { font-size: 1.13rem; letter-spacing: -.015em; }
p { color: var(--muted); }
a { color: var(--green); text-underline-offset: .2em; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #228760; outline-offset: 3px; }
:target { scroll-margin-top: 20px; }
.icon { display: block; width: 22px; height: 22px; flex: none; }
.wrap { width: min(100% - 32px, 1200px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 4; top: 8px; left: 8px; padding: 12px; background: var(--white); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; min-width: 0; overflow-wrap: anywhere; }
.brand-mark, .header-link { flex: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--green); color: var(--lime); font-size: 1.55rem; font-weight: 900; font-style: italic; }
.brand-image { width: auto; max-width: min(150px, 20vw); height: 44px; object-fit: contain; }
.brand-text { min-width: 0; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: .95rem; line-height: 1.12; font-weight: 850; letter-spacing: .055em; }
.brand small { color: var(--muted); font-size: .69rem; margin-top: 2px; }

.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 50px; padding: 10px 16px; border: 1px solid transparent; border-radius: 11px;
    text-decoration: none; text-align: center; font-size: .94rem; font-weight: 720; line-height: 1.25;
    cursor: pointer; transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.button .icon { width: 19px; height: 19px; }
.button--outline { color: var(--green-dark); border-color: #bdcec1; background: transparent; }
.button--outline:hover { background: #edf3eb; border-color: var(--green); }
.button--primary { color: var(--white); background: var(--green); }
.button--primary:hover { background: var(--green-dark); }
.button--primary:focus-visible { outline-offset: 4px; }
.button--primary:active { background: #0c3b29; }
.button:disabled { color: #4e6259; background: #e6ede6; cursor: not-allowed; }
.header-link { min-height: 44px; padding-inline: 10px; gap: 6px; font-size: .82rem; }
.header-number { display: none; }
.header-link .icon { width: 16px; height: 16px; }

.hero { padding-block: 25px 48px; }
.hero-grid { display: grid; gap: 18px; }
.hero-copy { min-width: 0; }
.eyebrow { color: var(--green-dark); display: flex; align-items: center; gap: 8px; font-size: .72rem; line-height: 1.3; text-transform: uppercase; letter-spacing: .105em; font-weight: 780; }
.eyebrow span { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #4b9d70; }
.hero h1 { margin-top: 11px; text-wrap: pretty; }
.hero h1 span { color: var(--green); }
.hero-intro { max-width: 35rem; margin-top: 12px; }
.hero-offer { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; margin-top: 16px; padding-block: 10px; border-block: 1px solid var(--line); }
.hero-offer > div { display: grid; align-content: center; padding-right: 13px; }
.hero-offer > div + div { border-left: 1px solid var(--line); padding: 0 0 0 13px; }
.offer-price { display: block; line-height: 1; font-size: clamp(1.5rem, 7.8vw, 2.35rem); letter-spacing: -.06em; font-weight: 810; }
.offer-installment { max-width: 13ch; color: var(--green-dark); font-size: 1rem; line-height: 1.2; }
.hero-offer small { color: var(--muted); font-size: .72rem; margin-top: 4px; }

.lead-form { min-width: 0; align-self: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.lead-form h2 { font-size: clamp(1.2rem, 5.4vw, 1.54rem); text-wrap: pretty; letter-spacing: -.035em; margin-bottom: 5px; }
.form-intro { margin-bottom: 10px; font-size: .88rem; line-height: 1.35; }
.form-fields { display: grid; gap: 7px 10px; }
.form-fields label { display: grid; grid-template-columns: auto 1fr; gap: 4px; align-items: baseline; font-size: .81rem; font-weight: 680; }
.form-fields label span { color: var(--muted); font-weight: 450; }
.form-fields input { grid-column: 1 / -1; width: 100%; min-height: 45px; padding: 9px 11px; border: 1px solid #bfcec2; border-radius: 9px; background: var(--paper); color: var(--ink); font-size: 1rem; font-weight: 450; scroll-margin-block: 16px; }
.form-fields input::placeholder { color: #5a6a62; }
.form-fields input[aria-invalid="true"] { border-color: #9f3931; }
.form-button { width: 100%; margin-top: 10px; }
.agreement { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; font-size: .76rem; line-height: 1.45; }
.agreement label { padding-block: 6px; min-height: 28px; cursor: pointer; }
.agreement input { width: 18px; height: 18px; flex: none; margin: 4px 0 0; accent-color: var(--green); cursor: pointer; }
.form-note, .form-offline, .form-status { font-size: .75rem; line-height: 1.45; }
.form-status:empty { display: none; }
.form-status, .form-offline { margin-top: 8px; font-weight: 670; }
.form-status[data-state="error"] { color: #96332a; }
.form-status[data-state="success"] { color: var(--green-dark); }
.trap { position: absolute; inset-inline-start: 0; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; pointer-events: none; }

.hero-visual { min-width: 0; }
.photo { position: relative; display: grid; place-items: center; isolation: isolate; overflow: hidden; border-radius: 16px; aspect-ratio: 8 / 5; background: #e1ece2; color: var(--green-dark); }
.photo img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.photo-art { display: grid; place-items: center; width: 56px; aspect-ratio: 1; border: 1px solid #a5c5ad; border-radius: 16px; }
.photo-art .icon { width: 30px; height: 30px; }
.photo-label { position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; gap: 6px; max-width: calc(100% - 20px); border-radius: 6px; background: #f8faf3; color: var(--green-dark); padding: 5px 7px; font-size: .72rem; font-weight: 690; line-height: 1.2; }
.photo-label .icon { width: 13px; height: 13px; }
.photo--car_second { background: #edf0e4; }
.photo--instructor { background: #dce9e1; }
.photo--classroom { background: #eaece1; }
.photo--hero { aspect-ratio: 5 / 3; border-radius: var(--radius); background: #124c39; color: #e1f2bc; }
.photo--hero:has(.photo-art)::before, .photo--hero:has(.photo-art)::after {
    content: ""; position: absolute; z-index: -1; left: -19%; top: 5%; width: 144%; height: 86%;
    border: 1px solid #7ea98d; border-radius: 50%; transform: rotate(-31deg);
}
.photo--hero:has(.photo-art)::after { left: -10%; top: 14%; width: 127%; height: 68%; border-style: dashed; }
.photo--hero .photo-art { width: clamp(78px, 16vw, 155px); border-radius: 27%; background: #215f48; border-color: #6e9e80; transform: rotate(-8deg); }
.photo--hero .photo-art .icon { width: 62%; height: 62%; stroke-width: 1.15; transform: rotate(8deg); }
.photo--hero .photo-label { left: 14px; bottom: 14px; padding: 8px 10px; }

.section { padding-block: 52px; }
.section--white { background: var(--white); }
.section-head { margin-bottom: 23px; }
.section-head .eyebrow { margin-bottom: 10px; }
.section-head > p:not(.eyebrow) { margin-top: 12px; }
.price-grid { display: grid; gap: 9px; }
.price-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.price-card h3 { font-size: .9rem; line-height: 1.25; max-width: 10.5rem; }
.price-card p { color: var(--ink); white-space: nowrap; font-size: clamp(1.5rem, 6vw, 3rem); font-weight: 810; letter-spacing: -.06em; line-height: 1; }
.price-card--green { background: var(--lime); border-color: #cfdfa7; }
.price-card--green p { color: var(--green-dark); }
.price-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; }
.price-card p small { font-size: .78rem; font-weight: 650; letter-spacing: normal; }
.price-details { display: grid; justify-items: start; gap: 10px; }
.installment-note { padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--green-dark); font-weight: 700; font-size: .9rem; }
.program-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.program-grid article { padding: 12px 9px 14px; border-top: 1px solid #bdcec1; overflow-wrap: anywhere; }
.program-grid .icon { width: 33px; height: 33px; padding: 6px; border-radius: 8px; color: var(--green-dark); background: #e1ece2; margin-bottom: 11px; }
.program-grid h3 { font-size: 1rem; line-height: 1.2; }
.program-grid p { font-size: .9rem; margin-top: 5px; line-height: 1.35; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
.gallery figcaption { font-size: .9rem; font-weight: 690; margin-top: 7px; }
.gallery .photo { aspect-ratio: 1; }

.reviews { display: grid; gap: 12px; }
.review { display: flex; flex-direction: column; background: var(--white); padding: 18px; min-width: 0; border: 1px solid var(--line); border-radius: 14px; overflow-wrap: anywhere; }
.review blockquote { white-space: pre-line; }
.review-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 10px; margin-bottom: 9px; font-size: .84rem; color: var(--muted); }
.review-meta span { color: var(--green-dark); font-weight: 700; }
.review-author { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 14px; }
.review-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.review-author .icon { display: inline-block; width: 14px; height: 14px; vertical-align: middle; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding-block: 9px; cursor: pointer; list-style: none; font-weight: 680; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { display: grid; flex: none; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #eaf1e7; color: var(--green); }
.faq summary .icon { width: 16px; height: 16px; transition: transform .18s ease; }
.faq details[open] .icon { transform: rotate(45deg); }
.faq details p { padding: 0 38px 13px 0; }

.contacts { background: #e5eee5; }
.contact-layout { display: grid; gap: 20px; }
.address { display: flex; align-items: flex-start; gap: 9px; font-style: normal; }
.address > .icon { color: var(--green-dark); }
.address a, .contact-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.address a .icon, .contact-link .icon { width: 15px; height: 15px; }
.contact-link { margin-right: 12px; }
.footer { padding-block: 23px; background: var(--white); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .86rem; }
.footer-inner strong { font-size: 1rem; letter-spacing: .05em; }
.footer-legal { display: grid; align-content: start; gap: 6px; }
.legal { max-width: 760px; padding-block: 32px 64px; }
.legal-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.legal h1 { margin: 18px 0; overflow-wrap: anywhere; }
.legal h2 { font-size: 1.45rem; margin: 24px 0 8px; }
.legal p { margin-block: 10px; overflow-wrap: anywhere; }
.legal .draft { border-left: 4px solid var(--green); padding: 10px 14px; background: #e5eee5; }

@media (min-width: 415px) {
    .header-call { display: none; }
    .header-number { display: inline; }
    .lead-form { padding: 17px; }
    .header-link { padding-inline: 14px; }
}

@media (min-width: 460px) {
    .form-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 620px) {
    .wrap { width: min(100% - 64px, 1200px); }
    .hero { padding-top: 35px; }
    .section { padding-block: 68px; }
    .section-head { margin-bottom: 28px; }
    .hero h1 { max-width: 16ch; }
    .hero-offer > div { padding-right: 20px; }
    .hero-offer > div + div { padding-left: 20px; }
    .lead-form { padding: 20px; }
    .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .price-card { display: flex; flex-direction: column; align-items: flex-start; min-height: 128px; padding: 16px; }
    .price-card h3 { font-size: 1rem; max-width: 100%; }
    .gallery { gap: 20px; }
    .gallery .photo { aspect-ratio: 8 / 5; }
    .program-grid { gap: 16px; }
    .program-grid article { padding: 14px 10px 16px; }
    .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 800px) {
    .reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); column-gap: clamp(20px, 4.5vw, 65px); }
    .hero-copy { grid-column: 1; }
    .hero h1 { font-size: clamp(2.45rem, 4.6vw, 4.1rem); }
    .hero-visual { grid-column: 2; grid-row: 1 / 3; }
    .photo--hero { height: 100%; min-height: 460px; aspect-ratio: auto; }
    .photo--hero .photo-label { left: 20px; bottom: 20px; }
    .hero-intro { font-size: 1.08rem; }
    .program-layout, .faq-layout, .contact-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); }
    .contact-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .price-card { min-height: 146px; padding: 19px; }
}

@media (min-width: 1120px) {
    .hero { padding-block: 46px 60px; }
    .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); row-gap: 23px; }
    .hero h1 { max-width: none; font-size: clamp(3.15rem, 4vw, 3.5rem); line-height: 1.04; }
    .hero-intro { margin-top: 16px; }
    .hero-offer { padding-block: 15px; margin-top: 20px; }
    .header-inner { min-height: 80px; }
    .brand-mark { width: 44px; height: 44px; }
    .brand strong { font-size: 1.03rem; }
    .brand small { font-size: .76rem; }
    .section { padding-block: 80px; }
    .section-head { margin-bottom: 30px; }
    .price-grid { gap: 16px; }
    .price-card { padding: 23px; min-height: 163px; }
    .program-grid article { padding: 16px 12px 19px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
