/* ============================================================
   MAIN.CSS — общие стили для всех страниц «Время Комфорта»
   Подключать на КАЖДОЙ странице до main.css/home.css/service.css
   ============================================================ */

/* ---------- ТОКЕНЫ (не менять на отдельных страницах) ---------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
    --blue:#0055ff;--blue-hover:#0044cc;--blue-dark:#0034b0;
    --ink:#050610;--muted:#5a6a8f;--muted-2:#7a86a5;
    --tint:#f5f8fe;--tint-2:#eef3fc;--border:#e3e9f5;
    --green:#18b85f;--green-bg:#dcf5e6;
    --red:#f0355f;--red-bg:#fde6ea;
    --orange:#f5890a;--orange-bg:#fff0d9;
    --violet:#7a3fe8;--violet-bg:#ece4fd;
    --sky:#2389ee;--sky-bg:#e2ecfe;
    --pink:#f4628a;--yellow:#f5b70a;
    --radius:24px;--radius-sm:14px;--radius-xs:10px;
    --font:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
    --shadow-sm:0 4px 14px rgba(11,27,51,.06);
    --shadow:0 8px 30px rgba(11,27,51,.08);
    --shadow-lg:0 20px 60px rgba(11,27,51,.14);
    --transition:.25s ease;
}

/* ---------- БАЗА ---------- */
html{scroll-behavior:smooth}
body{font-family:var(--font);color:var(--ink);background:#fff;line-height:1.5;-webkit-font-smoothing:antialiased;overflow-x:hidden}
a{color:inherit;text-decoration:none}
svg{display:block}
button{font-family:inherit;cursor:pointer;border:none;background:none}
.container{width:min(1320px,100% - 40px);margin-inline:auto}
::selection{background:#c9dcff;color:#071b52}
section[id],div[id]{scroll-margin-top:88px}

/* ---------- КНОПКИ ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:16px 28px;border-radius:99px;font-weight:600;font-size:16px;transition:var(--transition);white-space:nowrap;cursor:pointer}
.btn svg{width:20px;height:20px;flex-shrink:0}
.btn-primary{background:var(--blue);color:#fff}
.btn-primary:hover{background:var(--blue-hover);transform:translateY(-2px);box-shadow:0 8px 20px rgba(0,85,255,.3)}
.btn-secondary{background:rgba(255,255,255,.9);color:var(--ink);border:2px solid var(--border)}
.btn-secondary:hover{border-color:var(--blue);color:var(--blue)}
.btn-sm{padding:10px 20px;font-size:14px}
.btn-lg{padding:18px 36px;font-size:17px}
.btn:disabled{opacity:.7;cursor:wait}

/* ---------- ШАПКА ---------- */
.header{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.9);backdrop-filter:blur(14px);border-bottom:1px solid var(--border)}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:76px;gap:24px}
.logo{display:flex;align-items:center;gap:10px;flex-shrink:0}
.logo svg{height:44px;width:auto}
.nav{display:flex;gap:28px;align-items:center}
.nav a{font-size:15px;font-weight:500;color:var(--ink);transition:var(--transition)}
.nav a:hover{color:var(--blue)}
.header-actions{display:flex;align-items:center;gap:14px}
.header-phone{display:flex;flex-direction:column;align-items:flex-end;font-size:15px;font-weight:700;line-height:1.2}
.header-phone small{font-size:11px;font-weight:500;color:var(--muted-2)}
.menu-toggle{display:none;width:44px;height:44px;border-radius:12px;background:var(--tint);color:var(--ink);align-items:center;justify-content:center}
.menu-toggle svg{width:22px;height:22px}

/* ---------- ХЛЕБНЫЕ КРОШКИ ---------- */
.breadcrumbs{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:20px 0 0;font-size:13px;color:var(--muted)}
.breadcrumbs a{color:var(--muted)}
.breadcrumbs a:hover{color:var(--blue)}
.breadcrumbs .sep{color:var(--muted-2)}
.breadcrumbs .current{color:var(--ink);font-weight:500}

/* ---------- ФУТЕР ---------- */
.footer{background:#050610;color:#fff;padding:60px 0 0}
.footer-top{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:40px;padding-bottom:40px;border-bottom:1px solid rgba(255,255,255,.1)}
.footer-brand .logo{margin-bottom:14px}
.footer-brand p{font-size:14px;color:rgba(255,255,255,.6);line-height:1.6;max-width:320px}
.footer-col h4{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:rgba(255,255,255,.5);margin-bottom:16px}
.footer-col a{display:block;font-size:14px;color:rgba(255,255,255,.75);margin-bottom:10px}
.footer-col a:hover{color:#fff}
.footer-cta{background:rgba(255,255,255,.06);border-radius:16px;padding:22px;border:1px solid rgba(255,255,255,.1)}
.footer-cta h4{color:#fff;text-transform:none;letter-spacing:0;font-size:16px;margin-bottom:10px}
.footer-cta p{font-size:14px;color:rgba(255,255,255,.7);margin-bottom:14px}
.footer-cta .btn{background:var(--blue);color:#fff;width:100%;justify-content:center}
.footer-requisites{font-size:12px;color:rgba(255,255,255,.5);line-height:1.6;padding:18px 0;border-top:1px solid rgba(255,255,255,.08)}
.footer-requisites p{margin-bottom:4px}
.footer-requisites a{color:rgba(255,255,255,.65);text-decoration:underline}
.footer-social{display:flex;gap:12px;margin-top:12px}
.footer-social a{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:rgba(255,255,255,.08);color:#fff;transition:var(--transition)}
.footer-social a:hover{background:var(--blue)}
.footer-social svg{width:20px;height:20px}
.footer-bottom{padding:24px 0;display:flex;justify-content:space-between;flex-wrap:wrap;gap:14px;font-size:13px;color:rgba(255,255,255,.4)}
.footer-bottom a{color:rgba(255,255,255,.6)}

/* ---------- COOKIE-БАННЕР ---------- */
.cookie-banner{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);width:min(860px,100% - 32px);z-index:9999;background:#fff;border:1px solid var(--border);border-radius:20px;box-shadow:0 20px 60px rgba(11,27,51,.18);padding:22px 24px;display:none;animation:cookieIn .35s ease}
.cookie-banner.is-visible{display:block}
@keyframes cookieIn{from{opacity:0;transform:translate(-50%,16px)}to{opacity:1;transform:translate(-50%,0)}}
.cookie-banner h4{font-size:16px;font-weight:800;margin-bottom:6px}
.cookie-banner p{font-size:13px;color:var(--muted);line-height:1.5;margin-bottom:16px}
.cookie-banner p a{color:var(--blue);text-decoration:underline}
.cookie-actions{display:flex;flex-wrap:wrap;gap:10px}
.cookie-actions .btn{font-size:14px;padding:10px 20px}
.cookie-settings{display:none;margin-top:16px;padding-top:16px;border-top:1px solid var(--border);flex-direction:column;gap:10px}
.cookie-settings.is-open{display:flex}
.cookie-option{display:flex;align-items:flex-start;gap:10px;font-size:13px;color:var(--muted);line-height:1.4}
.cookie-option input{margin-top:3px;flex-shrink:0}
.cookie-option b{color:var(--ink);font-weight:600}
.cookie-reopen{position:fixed;left:20px;bottom:20px;z-index:9998;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#fff;border:1px solid var(--border);box-shadow:var(--shadow);color:var(--blue);cursor:pointer;transition:var(--transition)}
.cookie-reopen:hover{background:var(--tint)}
.cookie-reopen svg{width:20px;height:20px}

/* ---------- КНОПКА «НАВЕРХ» ---------- */
.to-top{position:fixed;right:24px;bottom:24px;width:48px;height:48px;border-radius:50%;background:var(--blue);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow);cursor:pointer;border:none;opacity:0;pointer-events:none;transition:var(--transition);z-index:99}
.to-top.is-visible{opacity:1;pointer-events:auto}
.to-top:hover{background:var(--blue-hover);transform:translateY(-2px)}
.to-top svg{width:22px;height:22px}

/* ---------- REVEAL-АНИМАЦИИ ---------- */
.reveal{opacity:0;transform:translateY(24px);transition:opacity .7s ease, transform .7s ease}
.reveal.is-visible{opacity:1;transform:none}

/* ---------- АДАПТИВ ОБЩИЙ ---------- */
@media (max-width:1100px){
    .footer-top{grid-template-columns:1fr 1fr;gap:32px}
}
@media (max-width:768px){
    .container{width:calc(100% - 32px)}
    .nav,.header-phone,.header-actions .btn{display:none}
    .menu-toggle{display:flex}
    .nav.nav-open{display:flex;flex-direction:column;position:absolute;top:76px;left:0;right:0;background:#fff;padding:20px;box-shadow:var(--shadow);z-index:50;border-bottom:1px solid var(--border)}
    .footer-top{grid-template-columns:1fr}
    .cookie-banner{padding:18px 16px;bottom:12px}
    .cookie-actions .btn{width:100%}
    .to-top{right:16px;bottom:16px;width:44px;height:44px}
}