/* GREENTIME preview: единая система карточек форматов. */
.personal-hero-link{display:inline-flex;align-items:center;gap:10px;margin-top:22px;padding-bottom:4px;border-bottom:1px solid #a8d6be;color:#007745;font-size:14px;font-weight:750;text-decoration:none}
.personal-hero-link:hover{color:#003c2c;border-color:currentColor}
.hero-prices{padding:20px;border:1px solid #dceee3;border-radius:28px;background:rgba(255,255,255,.9);box-shadow:0 25px 70px rgba(14,73,51,.1)}
.hero-prices__heading{display:flex;justify-content:space-between;gap:12px;margin:0 2px 15px;color:#708c7b;font-size:10px;font-weight:800;letter-spacing:.09em}
.hero-prices__grid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.hero-option{display:grid;grid-template-columns:minmax(0,1fr) minmax(145px,.8fr);gap:18px;align-items:stretch;min-width:0;padding:20px;border:1px solid #e0eee5;border-radius:18px;background:#fff;color:#103b2b}
.hero-option--owner{border-color:#cae9d5;background:#eaf8ef}
.hero-option__copy,.hero-option__side{min-width:0}
.hero-option__copy{display:grid;grid-template-columns:36px minmax(0,1fr);grid-template-rows:auto auto 1fr;column-gap:10px;align-content:start;align-items:center}
.hero-option__icon{display:grid;grid-row:1 / 3;place-items:center;width:36px;height:36px;border-radius:11px;background:#e7f7ec;color:#00894e;font-size:19px;font-weight:800}
.hero-option--owner .hero-option__icon{background:#cbeed8}
.hero-option__label{min-width:0;margin:0 0 3px;color:#678879;font-size:11px;font-weight:700;line-height:1.25}
.hero-option h2{min-width:0;margin:0;color:#123b2c;font-size:18px;font-weight:800;line-height:1.2;letter-spacing:-.025em;overflow-wrap:anywhere}
.hero-option__desc{grid-column:1 / -1;margin:16px 0 0;color:#527563;font-size:13px;line-height:1.55}
.hero-option__side{display:flex;flex-direction:column;align-items:stretch}
.hero-option__price{margin:0;color:#103b2b;font-size:clamp(26px,2.4vw,34px);line-height:1.1;letter-spacing:-.045em;font-weight:850;white-space:nowrap}
.hero-option__price span{color:#008b53;font-size:.72em}.hero-option__unit{margin:4px 0 14px;color:#6b8b78;font-size:12px;line-height:1.4}
.hero-option__btn{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:42px;margin-top:auto;padding:10px 12px;border-radius:11px;background:#008c50;color:#fff;font-size:12px;font-weight:800;line-height:1.3;text-decoration:none}
.hero-option__btn:hover{background:#006d3e}.hero-option__btn--light{background:#153f30}.hero-option__btn span{flex:none;font-size:16px}.hero-option__details{margin-top:10px;color:#24734b;font-size:11px;font-weight:750;line-height:1.4;text-decoration:none}
.hero-prices__note{margin:15px 2px 0;color:#718a7b;font-size:11px;line-height:1.5}
.formats{padding:96px 0 104px;background:#f5fbf7;scroll-margin-top:100px}
.formats__header{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,.55fr);gap:48px;align-items:end;margin-bottom:36px}
.formats__eyebrow{margin:0 0 15px;color:#008c50;font-size:11px;font-weight:800;letter-spacing:.14em}
.formats h2{margin:0;color:#143b2d;font-size:clamp(34px,4vw,56px);line-height:1.07;letter-spacing:-.045em;font-weight:850}.formats h2 span{color:#00965a}
.formats__intro p{margin:0 0 10px;color:#456455;font-size:15px;line-height:1.65}.formats__intro>span{display:block;color:#718a7b;font-size:12px;line-height:1.55}
.formats__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:start}
.format-card{min-width:0;overflow:hidden;border:1px solid #dcebe1;border-radius:20px;background:#fff;box-shadow:0 8px 28px rgba(18,71,43,.035);scroll-margin-top:110px}
.format-card[open]{border-color:#91d6aa;box-shadow:0 12px 32px rgba(18,99,52,.1)}
.format-card__summary{display:flex;min-height:270px;flex-direction:column;padding:23px 20px 20px;cursor:pointer;list-style:none}
.format-card__summary::-webkit-details-marker{display:none}
.format-card__kicker{display:block;min-height:30px;padding-right:0;color:#008850;font-size:10px;font-weight:800;letter-spacing:.06em;line-height:1.45;text-transform:uppercase}
.format-card__top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;min-height:52px;margin:10px 0 8px}
.format-card__title{display:block;min-width:0;color:#143b2d;font-size:20px;font-weight:800;line-height:1.2;letter-spacing:-.025em;overflow-wrap:anywhere}
.format-card__toggle{display:flex;flex:0 0 32px;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:#eaf8ef;color:#008b50;font-size:21px;font-weight:500;line-height:1;transition:background .2s,color .2s,transform .2s}
.format-card__summary:hover .format-card__toggle{background:#008b50;color:#fff}.format-card[open] .format-card__toggle{transform:rotate(45deg)}
.format-card__short{display:block;color:#607d6e;font-size:13px;line-height:1.55}
.format-card__meta{display:flex;align-items:flex-end;justify-content:space-between;gap:8px;margin-top:auto;padding-top:20px}.format-card__meta strong{min-width:0;color:#163f2f;font-size:19px;line-height:1.2;letter-spacing:-.035em;white-space:nowrap}.format-card__meta>span{min-width:0;color:#789081;font-size:11px;line-height:1.4;text-align:right}
.format-card__more{display:flex;justify-content:space-between;gap:10px;margin-top:15px;padding-top:14px;border-top:1px solid #edf4ef;color:#00894e;font-size:12px;font-weight:800;line-height:1.4}
.format-card__body{padding:0 20px 20px;color:#456655;font-size:14px;line-height:1.65}.format-card__body p{margin:0 0 14px}.format-card__note{padding:13px;border-radius:12px;background:#f1f8f3;color:#587666;font-size:12px;line-height:1.6}
.format-card__cta{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:46px;padding:12px 14px;border-radius:11px;background:#008c50;color:#fff;text-decoration:none;font-size:12px;font-weight:800;line-height:1.4}.format-card__cta:hover{background:#006d3f}
.formats__foot{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:32px;color:#6d8978;font-size:13px;line-height:1.5}.formats__foot a{color:#008650;font-weight:800;text-decoration:none}
.format-card__summary:focus-visible,.format-card__cta:focus-visible,.hero-option__btn:focus-visible,.hero-option__details:focus-visible,.personal-hero-link:focus-visible{outline:3px solid #007a48;outline-offset:-3px}
.brand__mark{width:60px;height:60px}.brand--footer .brand__mark{width:45px;height:45px}
@media(max-width:1100px){.formats__grid{grid-template-columns:repeat(2,minmax(0,1fr))}.format-card__summary{min-height:240px}}
@media(max-width:760px){.site-header__inner{gap:8px}.brand__mark{width:48px;height:48px}.brand__name{font-size:16px}.site-header__phone{font-size:11.5px}.hero-prices{padding:14px;border-radius:23px}.hero-prices__heading{font-size:9px}.formats{padding:70px 0;scroll-margin-top:80px}.formats__header{grid-template-columns:1fr;gap:18px;margin-bottom:24px}.formats__foot{justify-content:flex-start}}
@media(max-width:600px){.formats__grid{grid-template-columns:minmax(0,1fr);gap:12px}.format-card__summary{min-height:0;padding:21px 20px 18px}.format-card__kicker{min-height:0}.format-card__top{min-height:32px;align-items:center;margin:12px 0 8px}.format-card__title{font-size:20px}.format-card__short{font-size:14px}.format-card__meta{align-items:center;margin-top:18px;padding-top:0}.format-card__meta strong{font-size:20px}.format-card__meta>span{font-size:12px}.format-card__body{padding:0 20px 20px}.chat__toggle{width:48px;height:48px;justify-content:center;padding:0;font-size:0}.chat__toggle::after{content:'?';color:#04220f;font-size:22px;font-weight:800}.chat__dot{display:none}}
@media(max-width:400px){.hero-option{grid-template-columns:minmax(0,1fr) minmax(116px,.85fr);gap:10px;padding:16px 12px}.hero-option__copy{grid-template-columns:28px minmax(0,1fr);column-gap:7px}.hero-option__icon{width:28px;height:28px}.hero-option h2{font-size:15px}.hero-option__label{font-size:10px}.hero-option__price{font-size:26px}.hero-option__desc{margin-top:12px;font-size:11px}.hero-option__btn{padding:10px;font-size:10px}.hero-option__details{font-size:10px}}
@media(max-width:340px){.hero-prices__heading span:last-child{display:none}}
@media(prefers-reduced-motion:reduce){.format-card__toggle{transition:none}}

@media(min-width:761px) and (max-width:1100px){
 .site-header__inner{gap:16px}
 .nav{position:absolute;top:var(--header-h);left:0;right:0;display:none;flex-direction:column;gap:0;margin:0;padding:8px 0;background:#fff;border-bottom:1px solid var(--line);box-shadow:0 20px 40px rgba(9,62,82,.08)}
 .nav.is-open{display:flex}
 .nav__link{padding:14px 24px;font-size:16px;border-bottom:1px solid var(--line)}
 .nav__link:last-child{border-bottom:0}
 .nav__link::after{display:none}
 .site-header__actions{margin-left:auto}
 .site-header__actions .btn{display:none}
 .site-header__phone{display:inline;font-size:14px}
 .burger{display:flex}
}

/* Единая высота и горизонтальное выравнивание двух основных форматов. */
.hero-option__side{display:grid;grid-template-rows:38px 24px 42px 28px;align-content:start}
.hero-option__unit{margin:0}
.hero-option__btn{margin:0}
.hero-option__details{margin:6px 0 0}
@media(max-width:400px){.hero-option__copy{display:flex;flex-direction:column;align-items:flex-start}.hero-option__icon{display:none}.hero-option__label{margin:0 0 5px}.hero-option__desc{margin-top:12px}}



/* ── Адрес и маршрут в тестовой версии ───────────────────────────────────── */
.hero-location {
    display: inline-flex;
    font: inherit;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 10px 14px 10px 10px;
    color: #174b39;
    text-align: left;
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(18, 111, 76, .14);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(17, 71, 53, .06);
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.hero-location:hover { transform: translateY(-2px); border-color: rgba(18, 111, 76, .36); box-shadow: 0 12px 28px rgba(17, 71, 53, .1); }
.hero-location:focus-visible, .contact--directions:focus-visible, .directions-modal a:focus-visible, .directions-modal button:focus-visible { outline: 3px solid rgba(0, 143, 85, .38); outline-offset: 3px; }
.hero-location__pin { display: grid; place-items: center; width: 38px; height: 38px; color: #008e54; background: #e8f6ee; border-radius: 12px; font-size: 24px; line-height: 1; }
.hero-location__pin svg { display: block; width: 19px; height: 19px; }
.hero-location > span:nth-child(2) { display: grid; gap: 3px; }
.hero-location strong { font-size: 13px; font-weight: 800; }
.hero-location small { color: #71877c; font-size: 12px; }
.hero-location__arrow { margin-left: 4px; color: #008e54; font-size: 18px; }
.contact--directions { width: 100%; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.contact--directions:hover { transform: translateY(-5px); border-color: rgba(0, 200, 83, .45); box-shadow: var(--shadow-md); }
.contact__hint { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; color: #008b54; font-size: 13px; font-weight: 750; }

body.directions-open { overflow: hidden; }
.directions-modal[hidden] { display: none; }
.directions-modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 24px; }
.directions-modal__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(9, 28, 22, .58); backdrop-filter: blur(8px); cursor: default; }
.directions-modal__panel { position: relative; z-index: 1; width: min(900px, 100%); max-height: min(780px, calc(100vh - 48px)); max-height: min(780px, calc(100dvh - 48px)); overflow: auto; overscroll-behavior: contain; padding: 42px; color: #183d30; background: linear-gradient(145deg, #fff 35%, #f1faf5); border: 1px solid rgba(255, 255, 255, .8); border-radius: 30px; box-shadow: 0 30px 100px rgba(0, 20, 12, .28); }
.directions-modal__close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; color: #355a4a; background: #edf6f0; border: 0; border-radius: 50%; font-size: 27px; line-height: 1; cursor: pointer; }
.directions-modal__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px, 280px); align-items: center; gap: 40px; }
.directions-modal__eyebrow { margin: 0 0 14px; color: #6e8d7e; font-size: 11px; font-weight: 850; letter-spacing: .14em; }
.directions-modal__details h2 { margin: 0 42px 12px 0; color: #153d2e; font-size: clamp(30px, 4vw, 42px); line-height: 1.06; letter-spacing: -.04em; }
.directions-modal__intro { margin: 0 0 5px; color: #6b8377; font-size: 15px; }
.directions-modal__address { margin: 0 0 22px; color: #193f30; font-size: 19px; font-style: normal; font-weight: 800; }
.directions-modal__route { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding: 0 18px; color: #fff; background: #087e4d; border-radius: 15px; box-shadow: 0 10px 22px rgba(8, 126, 77, .18); text-decoration: none; font-size: 15px; font-weight: 800; transition: transform .2s ease, background .2s ease; }
.directions-modal__route:hover { transform: translateY(-2px); background: #066d42; }
.directions-modal__route span { font-size: 19px; }
.directions-modal__phone { display: inline-block; margin-top: 16px; color: #276449; font-size: 14px; font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.directions-modal__note { max-width: 360px; margin: 20px 0 0; color: #7a8e83; font-size: 12.5px; line-height: 1.55; }
.directions-modal__video-wrap { display: grid; justify-items: center; gap: 10px; }
.directions-modal__video-label { margin: 0; color: #668476; font-size: 12px; font-weight: 750; text-align: center; }
.directions-modal__video { display: block; width: min(100%, 240px); max-height: min(55vh, 470px); aspect-ratio: 9 / 16; object-fit: contain; background: #101512; border: 5px solid #fff; border-radius: 22px; box-shadow: 0 16px 40px rgba(18, 59, 43, .16); }
.directions-modal__panel :focus-visible { outline-color: rgba(0, 143, 85, .5); }

@media (max-width: 640px) {
    .hero-location { max-width: 100%; margin-top: 14px; }
    .directions-modal { align-items: end; padding: 0; }
    .directions-modal__panel { width: 100%; max-height: 91vh; max-height: 91dvh; padding: 30px 20px calc(22px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; }
    .directions-modal__close { top: 12px; right: 14px; width: 38px; height: 38px; }
    .directions-modal__layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .directions-modal__eyebrow { margin-bottom: 10px; font-size: 10px; }
    .directions-modal__details h2 { max-width: calc(100% - 42px); margin-bottom: 10px; font-size: 32px; }
    .directions-modal__intro { font-size: 14px; }
    .directions-modal__address { margin-bottom: 16px; font-size: 17px; }
    .directions-modal__route { min-height: 54px; }
    .directions-modal__phone { margin-top: 12px; }
    .directions-modal__note { margin-top: 12px; font-size: 12px; }
    .directions-modal__video-wrap { gap: 8px; }
    .directions-modal__video { width: min(44vw, 168px); max-height: 30dvh; border-width: 4px; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-location, .contact--directions, .directions-modal__route { transition: none; }
}


/* ── Ссылки на учебную площадку в меню, стоимости и подвале ───────────────── */
#contacts, #directions { scroll-margin-top: calc(var(--header-h) + 20px); }
.calc__directions {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: 14px;
    padding: 12px 14px;
    color: #204c3a;
    text-align: left;
    font: inherit;
    background: #f3faf5;
    border: 1px solid #dceee3;
    border-radius: 15px;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.calc__directions:hover { transform: translateY(-1px); background: #edf8f1; border-color: #b8dfc7; }
.calc__directions:focus-visible, .footer__directions:focus-visible { outline: 3px solid rgba(0, 143, 85, .38); outline-offset: 3px; }
.calc__directions-pin { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; color: #008e54; background: #e3f4e9; border-radius: 11px; font-size: 22px; line-height: 1; }
.calc__directions-copy { display: grid; gap: 3px; min-width: 0; }
.calc__directions-copy strong { color: #174b39; font-size: 13px; font-weight: 800; }
.calc__directions-copy small { color: #71877c; font-size: 11.5px; line-height: 1.35; }
.calc__directions-arrow { margin-left: auto; color: #008e54; font-size: 18px; }
.calc__directions-pin svg { display: block; width: 19px; height: 19px; }
.footer__directions { display: grid; gap: 4px; padding: 0; color: #526f60; text-align: left; font: inherit; background: transparent; border: 0; cursor: pointer; }
.footer__directions > span { font-size: 13px; }
.footer__directions strong { color: #008b54; font-size: 13px; font-weight: 800; }
.footer__directions strong span { margin-left: 3px; }
.footer__directions:hover strong { color: #005e3b; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
    .calc__directions { gap: 10px; padding: 11px; }
    .calc__directions-copy small { font-size: 11px; }
    .footer__directions { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .calc__directions { transition: none; }
}


/* ── Заметный адрес перед контактами ────────────────────────────────────── */
.contacts__directions {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    width: 100%;
    margin: 0 0 22px;
    padding: 20px 24px;
    color: #214b39;
    text-align: left;
    font: inherit;
    background: linear-gradient(105deg, #f1faf4, #fff 74%);
    border: 1px solid #d9eee1;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(18, 74, 51, .055);
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.contacts__directions:hover { transform: translateY(-2px); border-color: #b7dfc7; box-shadow: 0 16px 34px rgba(18, 74, 51, .09); }
.contacts__directions:focus-visible { outline: 3px solid rgba(0, 143, 85, .38); outline-offset: 3px; }
.contacts__directions-icon { display: grid; place-items: center; width: 48px; height: 48px; color: #078651; background: #e2f4e9; border-radius: 15px; }
.contacts__directions-icon svg { display: block; width: 22px; height: 22px; }
.contacts__directions-copy { display: grid; gap: 3px; min-width: 0; }
.contacts__directions-copy small { color: #779083; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.contacts__directions-copy strong { color: #173f2f; font-size: 17px; font-weight: 850; }
.contacts__directions-copy > span { color: #71877c; font-size: 13px; }
.contacts__directions-action { display: inline-flex; align-items: center; gap: 12px; padding: 12px 16px; color: #fff; background: #087e4d; border-radius: 13px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.contacts__directions-action span { font-size: 16px; }
@media (max-width: 760px) {
    .contacts__directions { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; margin-bottom: 18px; padding: 16px; border-radius: 17px; }
    .contacts__directions-icon { width: 42px; height: 42px; border-radius: 13px; }
    .contacts__directions-copy small { font-size: 10px; }
    .contacts__directions-copy strong { font-size: 15px; }
    .contacts__directions-copy > span { font-size: 12px; }
    .contacts__directions-action { grid-column: 2; justify-self: start; margin-top: 2px; padding: 10px 13px; }
}
@media (prefers-reduced-motion: reduce) {
    .contacts__directions { transition: none; }
}

/* Варианты построения маршрута */
.directions-modal__routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.directions-modal__routes .directions-modal__route { height: 100%; padding: 12px 14px; line-height: 1.3; }
.directions-modal__route--google { color: #155b3d; background: #e6f5eb; box-shadow: inset 0 0 0 1px #b9e1c9; }
.directions-modal__route--google:hover { color: #155b3d; background: #d5efde; }
@media (max-width: 460px) { .directions-modal__routes { grid-template-columns: minmax(0, 1fr); } }


/* Все вопросы и Instagram */
.faq__item[hidden], .faq__more[hidden] { display: none !important; }
.faq__more { display: flex; width: fit-content; align-items: center; justify-content: center; gap: 12px; margin: 24px auto 0; padding: 14px 20px; border: 1px solid #bfdfcd; border-radius: 14px; background: #edf8f1; color: #146443; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; transition: background .2s, border-color .2s; }
.faq__more:hover { background: #def2e5; border-color: #8fcba9; }
.faq__more:focus-visible { outline: 3px solid rgba(0,143,85,.38); outline-offset: 3px; }
.faq__more-arrow { display: inline-block; transition: transform .2s; }
.faq__more[aria-expanded="true"] .faq__more-arrow { transform: rotate(180deg); }
.contact--instagram .contact__icon { color: #087e4d; }
.contact--instagram .contact__icon svg { width: 22px; height: 22px; }
@media (max-width: 640px) { .faq__more { width: 100%; } }
