
/* ============================================================
     ДИЗАЙН-ТОКЕНЫ
     ============================================================ */
:root{

    --ink:        #1C2B24;
    --muted:      #5C6B63;
    --paper:      #EFF3EF;
    --card:       #FFFFFF;
    --sage:       #6FAE3E;
    --sage-dark:  #4C8A2A;
    --sage-darker:#3B6C20;
    --sage-soft:  #E7F3D9;
    --line:       #D8E1DC;
    --error:      #B3453D;

    /* Назначаем Onest на все заголовки h1, h2, h3 */
    --font-display: "Onest", "Segoe UI", sans-serif;

    /* Обычный текст остается на Inter */
    --font-body: "Inter", "Segoe UI", sans-serif;

    --radius: 14px;


    /* Цвета для Bento Dashboard */
    --bento-bg: #F4F5F7;
    --bento-surface: #FFFFFF;
    --bento-neon: #D4FF00;
    --bento-purple: #9D72FF;
    --bento-orange: #FF7A00;
    --bento-dark: #1A1D20;
    --bento-text: #111827;
    --bento-muted: #6B7280;
}

*, *::before, *::after { box-sizing:border-box; }
html, body{
    scroll-behavior:smooth;
    margin:0;
    padding:0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden; /* Жестко отрезаем всё, что пытается вылезти за ширину экрана, ломая скролл */
    background:var(--paper);
    color:var(--ink);
    font-family:var(--font-body);
    font-size:16px;
    line-height:1.55;
    -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:var(--sage-dark); }
h1,h2,h3{
    font-family:var(--font-display);
    line-height:1.12;
    margin:0 0 .5em;
    font-weight:600;
    letter-spacing:-0.01em;
}
p{ margin:0 0 1em; }

/* ============ ГЛАВНЫЙ КОНТЕЙНЕР ============ */
/* Тянем на все 100% экрана, убиваем дефолтный Tailwind-контейнер и жестко задаем отступ */
.container{
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding-left: 56px !important;
    padding-right: 56px !important;
}
@media (max-width: 768px) {
    .container {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
}
section{ padding:44px 0; }
.eyebrow{
    font-size:13px; font-weight:600; letter-spacing:.08em; text-transform:uppercase;
    color:var(--sage-dark); margin-bottom:14px; display:block;
}
.lede{ font-size:19px; color:var(--muted); max-width: 65ch; }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, summary:focus-visible, label:focus-within{
    outline: 3px solid var(--sage); outline-offset: 2px;
}

/* КНОПКИ */
.btn{
    display:inline-flex; align-items:center; justify-content:center; gap:8px;
    padding:15px 28px; border-radius:999px; font-family:var(--font-body); font-weight:600; font-size:15px;
    text-decoration:none; border:1px solid transparent; cursor:pointer;
    transition:background .15s ease, color .15s ease, transform .1s ease;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{ background:var(--sage-dark); color:#fff; }
.btn-primary:hover{ background:var(--sage-darker); }
.btn-ghost{ background:transparent; color:var(--ink); border-color:var(--line); }
.btn-ghost:hover{ border-color:var(--sage-dark); color:var(--sage-dark); }
.btn:disabled{ opacity:.6; cursor:not-allowed; }
.btn-block{ width:100%; }

/* ============ ШАПКА ============ */
header.site-header{
    position:sticky; top:0; z-index:50;
    background:var(--paper); border-bottom:1px solid var(--line);
    width: 100%;
}
.header-top{ background:var(--sage-dark); }
.header-top-row{ display:flex; align-items:center; justify-content:flex-end; gap:20px; padding:8px 0; }
.header-phones{ display:flex; align-items:center; gap:10px; }
.header-phone{ font-weight:600; color:#fff; text-decoration:none; font-size:13.5px; white-space:nowrap; }
.header-phone-secondary{ font-weight:500; color:#DCEAE0; }
.header-phone-sep{ color:#7FA98F; font-size:12px; }
.header-messengers{ display:flex; gap:8px; }
.messenger-btn{
    width:26px; height:26px; border-radius:50%; display:flex; align-items:center; justify-content:center;
    color:#fff; border:1px solid rgba(255,255,255,.35); transition:border-color .15s ease, background .15s ease; flex-shrink:0;
}
.messenger-btn svg{ width:14px; height:14px; }
.messenger-btn:hover{ border-color:#fff; background:rgba(255,255,255,.12); }

.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0; }
.logo-block { display: flex; flex-direction: column; text-decoration: none; line-height: 1.2; flex-shrink: 0; min-width: 0; }
.logo-title { font-family: var(--font-display); font-weight: 600; font-size: 24px; color: var(--ink); letter-spacing: -0.01em; white-space: nowrap; }
.logo-sub{ font-size:13px; color:var(--muted); font-weight:500; white-space:nowrap; overflow: hidden; text-overflow: ellipsis; }

nav.main-nav{ display:flex; align-items:center; gap: clamp(12px, 2vw, 26px); flex-wrap:nowrap; white-space: nowrap; }
nav.main-nav a{ color:var(--ink); text-decoration:none; font-size:14px; font-weight:500; }
nav.main-nav a:hover{ color:var(--sage-dark); }

.header-actions{ display:flex; align-items:center; gap:18px; flex-shrink:0; }
.header-actions .btn-primary{ flex-shrink:0; white-space:nowrap; }

.nav-toggle{
    display:none; background:none; border:1px solid var(--line); border-radius:10px;
    width:44px; height:44px; cursor:pointer; flex-shrink:0;
    align-items: center; justify-content: center; flex-direction: column;
}
.nav-toggle span{ display:block; width:20px; height:2px; margin:2.5px 0; background:var(--ink); transition: 0.3s ease; }

.rotate-45.translate-y-\[7px\] { transform: translateY(7px) rotate(45deg); }
.-rotate-45.-translate-y-\[7px\] { transform: translateY(-7px) rotate(-45deg); }
.opacity-0 { opacity: 0; }

.logo-sub{ display:none; }
.header-actions .btn-primary{ display:none; }
@media (min-width: 640px){ .logo-sub{ display:block; } .header-actions .btn-primary{ display:inline-flex; } }

.mobile-nav-dropdown {
    background: var(--paper);
    border-top: 1px solid var(--line);
    padding: 12px 24px 20px;
    display: none;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    width: 100%;
    left: 0;
    box-shadow: 0 15px 30px -5px rgba(0,0,0,0.1);
    z-index: 40;
}
.mobile-nav-dropdown a {
    padding: 12px 0;
    color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px;
}
.mobile-nav-dropdown a:last-child { margin-top: 8px; }
@media (min-width: 1151px){ .mobile-nav-dropdown{ display:none; } }

/* ============ ГЕРОЙ ============ */
.hero{ padding: 36px 0; overflow: hidden; }
.hero .container{ display:grid; grid-template-columns:1.2fr 0.8fr; gap: 5vw; align-items:center; }
.hero h1{ font-size:clamp(34px, 4vw, 64px); }
.hero-actions{ display:flex; gap:14px; margin-top:32px; flex-wrap:wrap; }
.hero-note{ margin-top:22px; font-size:14px; color:var(--muted); }

.breath-wrap{
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1/1;
    margin: 0 auto;
    display:flex; align-items:center; justify-content:center; position:relative;
}
.breath-wrap svg{ width:100%; height:auto; }
.breath-ring{ transform-origin:center; animation:breathe 7s ease-in-out infinite; }
.breath-ring:nth-child(2){ animation-delay:-1.6s; }
.breath-ring:nth-child(3){ animation-delay:-3.2s; }
.breath-ring:nth-child(4){ animation-delay:-4.8s; }
@keyframes breathe{ 0%,100%{ transform:scale(.86); opacity:.35; } 50%{ transform:scale(1); opacity:.85; } }

.breath-caption{
    position:absolute;
    bottom: -24px;
    left:50%; transform:translateX(-50%); font-size:13px; color:var(--muted); white-space:nowrap;
}

/* ============ ОБО МНЕ ============ */
.about-grid{ display:grid; grid-template-columns: minmax(min(100%, 300px), 450px) 1fr; gap: 5vw; align-items:center; }
.about-photo-wrap{ position:relative; aspect-ratio:4/5; border-radius:var(--radius); overflow:hidden; background:var(--sage-soft); display:flex; align-items:center; justify-content:center; }
.about-photo{ width:100%; height:100%; object-fit:cover; }

/* ============ УСЛУГИ ============ */
.services-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
}

.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5vw;
    padding: 48px 0;
    border-bottom: 1px solid var(--line);

    /* FIX 1: Выравниваем элементы строго по верхней границе блока */
    align-items: start;
}
.service-row:first-child { border-top: 1px solid var(--line); }

.service-info { padding-right: 20px; }

/* FIX 2: Заголовок и иконка на одной строке */
.service-info h3 {
    font-size: 48px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.service-info .icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--sage-soft); display: flex; align-items: center;
    justify-content: center; font-size: 20px;
    flex-shrink: 0;
}
.service-info p { color: var(--muted); font-size: 16px; margin: 0 0 12px 0; max-width: 45ch; }
.service-meta { margin-top: 20px; font-size: 15px; font-weight: 600; color: var(--sage-dark); }

.service-gallery {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 16px;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}
.service-gallery::-webkit-scrollbar { height: 6px; }
.service-gallery::-webkit-scrollbar-thumb { background: var(--sage); border-radius: 99px; }

.service-video-wrap {
    flex: 0 0 260px;
    aspect-ratio: 9/16;
    border-radius: 14px;
    overflow: hidden;
    background: var(--sage-soft);
    scroll-snap-align: start;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.service-video-wrap > div,
.service-video-wrap video,
.service-video-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

@media (max-width: 900px) {
    .service-row {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 40px 0;
        align-items: start;
    }
    .service-info { padding-right: 0; }
    .service-video-wrap { flex: 0 0 220px; }
}

/* ============ КАК ПРОХОДИТ ЗАПИСЬ ============ */
.process{ background:var(--card); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.steps{
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap:40px; margin-top:44px;
}
.step{ position:relative; padding-left:0; }
.step .num{
    font-family:var(--font-display); font-size:15px; color:var(--sage-dark); border:1px solid var(--sage-dark);
    width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; margin-bottom:16px; font-weight:600;
}
.step h3{ font-size:18px; margin-bottom:6px; }
.step p{ color:var(--muted); font-size:15px; margin:0; max-width: 40ch; }

/* ============ КОНТАКТЫ ============ */
.contact-block{ background:var(--paper); }
.contact-title{ font-size:40px; margin:0 0 28px; }
.contact-cols{
    display:grid; grid-template-columns:repeat(3, 1fr); gap:32px; margin-bottom:28px;
}
.contact-cols h3{
    margin:0 0 10px; font-family:var(--font-body); font-size:13px; font-weight:600;
    letter-spacing:.06em; text-transform:uppercase; color:var(--muted);
}
.contact-cols p{ margin:0 0 8px; font-size:16px; }
.contact-line a{
    display:inline-flex; align-items:center; gap:8px; color:var(--ink); text-decoration:none;
}
.contact-line a:hover{ color:var(--sage-dark); }
.contact-icon{ width:18px; height:18px; flex:0 0 18px; }
.map-route{
    display:inline-flex; align-items:center; gap:8px; margin-top:14px;
    padding:8px 14px; border:1px solid var(--line); border-radius:999px;
    background:#fff; font-size:14px; font-weight:600; text-decoration:none; color:var(--ink);
}
.map-route:hover{ border-color:var(--sage-dark); color:var(--sage-dark); }
.map-card{ position:relative; border-radius:20px; overflow:hidden; border:1px solid var(--line); background:#e7eee8; }
.place-map{ height:420px; width:100%; }
.map-chip{
    position:absolute; left:16px; bottom:16px; z-index:500;
    background:#fff; color:var(--ink); text-decoration:none; font-weight:600; font-size:14px;
    padding:10px 14px; border-radius:999px; box-shadow:0 8px 24px rgba(28,43,36,.12);
}
.address-note{ margin:14px 0 0; font-size:14px; color:var(--muted); max-width:62ch; }
.place-pin{
    background:var(--sage-dark); border:3px solid #fff; border-radius:50%;
    box-shadow:0 0 0 8px rgba(111,174,62,.28);
}
.leaflet-attribution-flag{ display:none !important; }

/* ============ ПОДВАЛ ============ */
footer{ padding:40px 0; }
.footer-row{ display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:16px; font-size:13px; color:var(--muted); }
.footer-row a{ color:var(--muted); }
.footer-requisites p{ margin:0 0 4px; }

/* ============ АДАПТИВНОСТЬ (МОБИЛЬНЫЕ УСТРОЙСТВА) ============ */
@media (max-width: 1150px){
    nav.main-nav{ display:none; }
    .nav-toggle{ display:flex; }
    .header-top{ display:none; }
    .hero .container{ grid-template-columns:1fr; gap: 32px; }
    .breath-wrap{ order:-1; max-width:260px; margin:0 auto 30px; }
    .about-grid{ grid-template-columns:1fr; gap: 32px; }
    .about-photo-wrap{ max-width:320px; margin:0 auto; aspect-ratio:1/1; }
    .footer-row{ flex-direction:column; }
    .contact-cols{ grid-template-columns:1fr; }
    .place-map{ height:300px; }
    .contact-title{ font-size:32px; }
    section{ padding:56px 0; }
}



.mobile-nav-dropdown.open { display: flex; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.offer-wrap { max-width: 860px; margin: 40px auto 0; }
.offer-back { color: var(--sage-dark); text-decoration: none; font-weight: 600; display: inline-block; margin-bottom: 24px; }
.offer-card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); padding: 40px 48px 48px; }
.offer-card h1 { font-size: 28px; margin-bottom: 8px; text-align: center; }
.offer-lead { color: var(--muted); margin-bottom: 32px; font-size: 15px; text-align: center; }
.offer-card h2 { font-size: 18px; margin: 22px 0 8px; }
.offer-card p { font-size: 15px; }
.offer-card .indent { padding-left: 20px; }
@media (max-width: 768px) {
    .offer-card { padding: 24px 20px 32px; }
}
