/* ============================================================
   Ariel — base.css
   Mass-market clean design. Брендирование — через CSS-переменные из render.php.
   Mobile-first. Без сборщика — vanilla CSS.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

body {
    margin: 0;
    font-family: var(--font-body, -apple-system, sans-serif);
    font-size: 16px;
    line-height: 1.55;
    color: #222;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, picture, video, svg { max-width: 100%; display: block; }
picture { display: block; }

img.lazy-img {
    background: #eef2f5;
    opacity: 0;
    transition: opacity .35s ease;
}
img.lazy-img.is-loaded {
    opacity: 1;
}

a { color: var(--brand, #222); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
    font-family: var(--font-head, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.75rem); }
h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1vw + 1rem, 1.4rem); }

p { margin: 0 0 1em; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    margin-bottom: 1.2em;
    position: relative;
    padding-bottom: 0.4em;
}
.section-title::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    background: var(--accent, #ff7a00);
    position: absolute;
    bottom: 0;
    left: 0;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    text-decoration: none;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
    background: var(--accent, #ff7a00);
    color: #fff;
    border-color: var(--accent, #ff7a00);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary {
    background: transparent;
    color: #222;
    border-color: #e8ebed;
}
.btn-secondary:hover { background: #f5f5f5; }

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}
.btn-accent {
    background: var(--accent, #ff7a00);
    color: #fff;
    border-color: var(--accent, #ff7a00);
}
.btn-accent:hover { filter: brightness(1.08); }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.site-header.is-scrolled {
    background: rgba(255,255,255,.97);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom-color: #e8ebed;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
}

.site-header:not(.is-scrolled) .brand { color: #fff; }
.site-header:not(.is-scrolled) .header-nav a { color: rgba(255,255,255,.9); }
.site-header:not(.is-scrolled) .header-phone { color: #fff; }
.site-header:not(.is-scrolled) .header-msg-btn { background: rgba(255,255,255,.15); color: #fff; }
.site-header:not(.is-scrolled) .hamburger span { background: #fff; }
.site-header:not(.is-scrolled) .header-cta {
    background: transparent;
    border-color: rgba(255,255,255,.6);
    color: #fff;
}

.site-header.is-scrolled .brand { color: #222; }
.site-header.is-scrolled .header-nav a { color: #4a5560; }
.site-header.is-scrolled .header-phone { color: #222; }
.site-header.is-scrolled .header-cta {
    background: var(--accent, #ff7a00);
    border-color: var(--accent, #ff7a00);
    color: #fff;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 20px;
}
.brand {
    font-family: var(--font-head, -apple-system, sans-serif);
    font-size: 22px;
    font-weight: 700;
    color: #222;
    text-decoration: none;
    white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.header-nav {
    display: none;
    gap: 28px;
    flex: 1;
    justify-content: center;
}
.header-nav a {
    color: #4a5560;
    font-size: 14px;
    font-weight: 500;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}
.header-phone {
    color: #222;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
}
.header-cta { display: none; }

@media (min-width: 768px) {
    .header-nav { display: flex; }
}
@media (min-width: 1024px) {
    .header-cta { display: inline-flex; }
}

/* ---------- header-msg-btn (WA/TG в хедере) ---------- */
.header-msg-btn {
    display: none;
    width: 36px; height: 36px;
    align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(0,0,0,0.06);
    color: #222;
    border: 0;
    text-decoration: none;
    transition: background .15s;
    flex-shrink: 0;
}
.header-msg-btn:hover { background: rgba(0,0,0,0.12); text-decoration: none; }
.header-msg-btn--tg { color: #229ed9; }
@media (min-width: 640px) {
    .header-msg-btn { display: flex; }
}

/* ---------- hamburger ---------- */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    width: 36px; height: 36px;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}
.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: #222;
    border-radius: 2px;
    transition: transform .22s ease, opacity .15s ease;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 768px) {
    .hamburger { display: none; }
}

/* ---------- mobile-menu ---------- */
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 16px 20px 24px;
    background: #fff;
    border-bottom: 1px solid #e8ebed;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 99;
}
.mobile-menu.is-open { display: flex; }
@media (min-width: 768px) {
    .mobile-menu { display: none !important; }
}
.mobile-menu a {
    padding: 10px 12px;
    color: #222;
    font-size: 16px;
    border-radius: 6px;
    text-decoration: none;
}
.mobile-menu a:hover { background: #f5f5f5; }
.mobile-menu-phone {
    font-weight: 700 !important;
    font-size: 18px !important;
    color: #222 !important;
    margin-top: 8px;
}
.mobile-menu-wa {
    color: #25d366 !important;
}
.mobile-menu .btn {
    margin-top: 10px;
    width: 100%;
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
    display: none;
}
@media (max-width: 767px) {
    .sticky-cta {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 88;
        padding: 12px 16px;
        background: var(--accent, #ff7a00);
        box-shadow: 0 -2px 12px rgba(0,0,0,.15);
    }
    .sticky-cta .btn {
        width: 100%;
        background: #fff;
        color: var(--accent, #ff7a00);
        font-weight: 700;
        font-size: 16px;
        padding: 14px;
    }
}

/* ---------- Reveal animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- fade-up ---------- */
.fade-up {
    animation: fadeUp .5s ease both;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- section-intro ---------- */
.section-intro {
    color: #666;
    font-size: 16px;
    margin: -0.6em 0 1.8em;
    max-width: 640px;
}

/* ---------- Contacts ---------- */
.contacts {
    padding: 80px 0;
    background: var(--cream, #f6f1e7);
}
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
@media (min-width: 768px) {
    .contacts-grid { grid-template-columns: 1fr 1.4fr; }
}
.contacts-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.contacts-phone {
    font-size: 26px;
    font-weight: 700;
    color: #222;
}
.contacts-email {
    font-size: 16px;
    color: #666;
}
.contacts-address,
.contacts-hours {
    color: #666;
    margin: 0;
}
.contacts-map {
    aspect-ratio: 16 / 10;
    border-radius: 6px;
    overflow: hidden;
    background: #f2f3f5;
}
.contacts-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.contacts-map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a98a3;
    font-size: 14px;
    text-align: center;
    padding: 20px;
}
.contacts-form-note {
    margin-top: 32px;
    padding: 14px 18px;
    background: #fff8e1;
    border: 1px dashed #f0d97a;
    border-radius: 6px;
    color: #6b5c20;
    font-size: 13px;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #222;
    color: rgba(255,255,255,0.7);
    padding: 48px 0 32px;
    margin-top: 60px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}
@media (min-width: 768px) {
    .footer-inner { grid-template-columns: 1.6fr 1fr; align-items: start; }
}
.footer-col p { margin: 0 0 8px; font-size: 14px; }
.footer-company {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
}
.footer-requisites {
    font-size: 13px;
    line-height: 1.5;
}
.footer-copyright {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    margin-top: 14px !important;
}
.footer-socials {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.footer-social {
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 14px;
    transition: background .15s;
}
.footer-social:hover {
    background: rgba(255,255,255,0.1);
    text-decoration: none;
}

/* ---------- Code ---------- */
code {
    background: rgba(0,0,0,0.05);
    padding: 1px 5px;
    border-radius: 3px;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.88em;
}
