/* ====== ОБЩИЕ СТИЛИ ДЛЯ ПУБЛИЧНЫХ СТРАНИЦ ====== */
/* Навигация, подвал, скролл-прогресс, кнопка "наверх", базовые стили */

:root {
    --primary: #1a1a2e;
    --primary-light: #2d2d44;
    --accent: #facc15;
    --accent-hover: #fde047;
    --accent-dark: #ca8a04;
    --text: #1a1a2e;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--bg-light);
    overflow-x: hidden;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Анимации */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

.animate-on-scroll { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.animate-on-scroll.animate-on-scroll__visible { opacity: 1; transform: translateY(0); }

/* Scroll Progress */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-hover)); z-index: 2000; transform-origin: left; transform: scaleX(0); transition: transform 0.1s ease; }

/* Navigation */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); transition: var(--transition); padding: 12px 0; }
.nav.scrolled { padding: 8px 0; box-shadow: var(--shadow); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav__logo { font-size: 1.25rem; font-weight: 700; color: var(--primary); text-decoration: none; line-height: 1.3; }
.nav__logo-sub { font-size: 0.7rem; color: var(--text-light); font-weight: 400; }
.nav__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.nav__phone { text-decoration: none; color: var(--text); font-weight: 600; font-size: 0.9rem; transition: var(--transition); }
.nav__phone:hover { color: var(--accent-dark); }
.nav__cta { padding: 8px 16px; border-radius: var(--radius); text-decoration: none; font-weight: 600; transition: var(--transition); border: none; cursor: pointer; font-family: inherit; font-size: 0.85rem; white-space: nowrap; background: var(--accent); color: var(--primary); }
.nav__cta:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(250, 204, 21, 0.3); }

/* Footer */
.footer { background: #050814; color: rgba(255, 255, 255, 0.7); padding: 50px 0 24px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer__logo { font-size: 1.2rem; font-weight: 700; color: white; margin-bottom: 6px; line-height: 1.3; }
.footer__logo-sub { font-size: 0.75rem; color: rgba(255, 255, 255, 0.5); font-weight: 400; margin-bottom: 14px; }
.footer__text { line-height: 1.6; margin-bottom: 20px; font-size: 0.9rem; }
.footer__social { display: flex; gap: 14px; }
.footer__social a { width: 38px; height: 38px; background: rgba(255, 255, 255, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; text-decoration: none; transition: var(--transition); }
.footer__social a:hover { background: var(--accent); transform: translateY(-3px); }
.footer__title { font-weight: 600; color: white; margin-bottom: 16px; font-size: 1rem; }
.footer__links { list-style: none; }
.footer__links li { margin-bottom: 10px; }
.footer__links a { color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: var(--transition); font-size: 0.9rem; }
.footer__links a:hover { color: var(--accent); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 24px; text-align: center; font-size: 0.85rem; }

/* Back to top */
.back-to-top { position: fixed; bottom: 24px; right: 24px; width: 48px; height: 48px; background: linear-gradient(135deg, var(--accent), var(--accent-hover)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); cursor: pointer; box-shadow: 0 4px 20px rgba(250, 204, 21, 0.4); transition: var(--transition); z-index: 999; opacity: 0; visibility: hidden; transform: translateY(20px); }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-5px) scale(1.1); box-shadow: 0 8px 30px rgba(250, 204, 21, 0.5); }

/* Responsive Navigation & Footer */
@media (max-width: 768px) {
    .nav { padding: 6px 0; }
    .nav__inner { flex-direction: row; flex-wrap: wrap; gap: 6px; align-items: center; }
    .nav__actions { width: auto; justify-content: flex-start; }
    .nav__logo { font-size: 1rem; }
    .nav__logo-sub { font-size: 0.6rem; }
    .nav__phone { font-size: 0.8rem; }
    .nav__cta { padding: 6px 12px; font-size: 0.78rem; }
    .nav__inner > div:first-child { gap: 8px; }
    .nav__inner > div:first-child img { height: 32px !important; }
    .footer__grid { grid-template-columns: 1fr; gap: 28px; }
}