@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

/* === Variables === */
:root {
  --bg-primary: #141414;
  --bg-card: #1D1D1F;
  --bg-card-hover: #2a2a2c;
  --text-primary: #FDFDFD;
  --text-secondary: rgba(253,253,253,0.6);
  --text-muted: rgba(253,253,253,0.4);
  --accent-green: #34C759;
  --accent-telegram: #229ED9;
  --border-subtle: rgba(253,253,253,0.1);
  --border-hover: rgba(253,253,253,0.4);
  --radius-card: 28px;
  --radius-btn: 8px;
  --radius-pill: 100px;
  --shadow-card: 0 8px 24px rgba(0,0,0,0.4);
  --shadow-hover: 0 24px 56px rgba(0,0,0,0.5);
  --font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --transition-base: 0.3s ease;
  --transition-bounce: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* === Reset === */
* { box-sizing: border-box; margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--font-family); cursor: pointer; }
img { max-width: 100%; height: auto; }

body {
  background-color: var(--bg-primary);
  font-family: var(--font-family);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.no-scroll { overflow: hidden; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-card); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--bg-card-hover); }

/* === Scroll Reveal === */
.v-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.v-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.hover-lift {
  transition: transform var(--transition-bounce), box-shadow var(--transition-bounce);
}
.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
@media (prefers-reduced-motion: reduce) {
  .v-reveal, .hover-lift {
    transition: none !important;
    animation: none !important;
  }
  .v-reveal { opacity: 1; transform: none; }
}

/* === Header === */
.site-header {
  background-color: var(--bg-card);
  border-radius: 16px;
  width: calc(100% - 40px);
  margin: 20px auto 0;
  overflow: visible;
  position: sticky;
  top: 20px;
  z-index: 100;
}
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  height: 90px;
  overflow: visible;
}
.header-left { display: flex; align-items: center; flex-shrink: 0; }
.logo { max-height: 147px; max-width: 500px; object-fit: contain; }
.header-right { display: flex; align-items: center; gap: 32px; flex-shrink: 0; }
.btn-request {
  background-color: var(--text-primary);
  color: var(--bg-card);
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
  display: inline-block;
}
.btn-request:hover { opacity: 0.9; }
.contact-info { display: flex; flex-direction: column; align-items: flex-start; }
.phone { color: var(--text-primary); font-size: 16px; font-weight: 600; letter-spacing: 0.3px; }
.phone:hover { opacity: 0.8; }
.schedule { font-size: 12px; color: var(--text-secondary); margin-top: 4px; text-align: right; }
.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; gap: 32px; align-items: center; }
.nav-item { position: relative; }
.nav-link {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
  transition: color var(--transition-base);
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link:hover { color: rgba(253,253,253,0.8); }
.arrow-icon { width: 14px; height: 14px; transition: transform var(--transition-base); }
.has-dropdown:hover .arrow-icon { transform: rotate(180deg); }
.dropdown-list {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 0;
  min-width: 240px;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 1000;
}
.has-dropdown:hover .dropdown-list {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-list::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  border-left: 1px solid var(--border-subtle);
  z-index: -1;
}
.dropdown-list::after {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  height: 12px;
}
.dropdown-link {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  display: block;
  padding: 10px 24px;
  transition: background-color 0.2s, padding-left 0.2s;
  white-space: nowrap;
  text-align: center;
}
.dropdown-link:hover { background-color: rgba(253,253,253,0.1); padding-left: 32px; }

/* Burger */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  padding: 8px;
  flex-shrink: 0;
  z-index: 600;
}
.burger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* === Mobile Menu === */
.mob-menu {
  position: fixed;
  inset: 0;
  background: #FDFDFD;
  z-index: 9999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.mob-menu.active {
  display: flex;
  transform: translateX(0);
}
.mob-menu__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.mob-menu__close:hover { background: rgba(29,29,31,0.06); }
.mob-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  padding: 60px 24px 16px;
}
.mob-menu__nav a {
  color: #1D1D1F;
  font-size: 20px;
  font-weight: 700;
  padding: 11px 32px;
  text-align: center;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  border-radius: 12px;
  width: 100%;
}
.mob-menu__nav a:hover { background: rgba(29,29,31,0.05); }
.mob-menu__cta {
  margin-top: 12px;
  width: calc(100% - 48px);
  background: #1D1D1F !important;
  color: #FDFDFD !important;
  border-radius: 14px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 700;
  min-height: 54px;
}
.mob-menu__cta:hover { opacity: 0.85; }
.mob-menu__group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mob-menu__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: none;
  border: none;
  color: #1D1D1F;
  font-size: 20px;
  font-weight: 700;
  padding: 11px 32px;
  min-height: 44px;
  border-radius: 12px;
  transition: background 0.2s;
}
.mob-menu__toggle:hover { background: rgba(29,29,31,0.05); }
.mob-arrow { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.25s ease; }
.mob-menu__group.open .mob-arrow { transform: rotate(180deg); }
.mob-menu__sub {
  display: none;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0 16px 4px;
  gap: 2px;
}
.mob-menu__group.open .mob-menu__sub { display: flex; }
.mob-menu__sub a {
  color: rgba(29,29,31,0.7) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  padding: 9px 24px !important;
  min-height: 40px;
  border-radius: 10px;
}

/* === Footer === */
.site-footer {
  background-color: var(--bg-card);
  color: var(--text-primary);
  padding: 40px 40px 24px;
  border-radius: 24px 24px 0 0;
  width: calc(100% - 40px);
  margin: 0 auto;
}
.footer-container {
  width: calc(100% - 40px);
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 80px;
}
.footer-logo { max-height: 180px; margin-bottom: 24px; }
.footer-slogan { font-size: 18px; font-weight: 700; line-height: 1.4; opacity: 0.9; }
.footer-heading { font-size: 18px; font-weight: 700; margin-bottom: 24px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-nav ul { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a, .footer-link { color: var(--text-primary); font-size: 15px; opacity: 0.6; transition: opacity 0.2s, transform 0.2s; display: inline-block; }
.footer-nav a:hover, .footer-link:hover { opacity: 1; transform: translateX(4px); }
.footer-text { font-size: 15px; opacity: 0.6; margin-bottom: 12px; }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--border-subtle); text-align: center; font-size: 13px; opacity: 0.4; }
.footer-btn { display: inline-block; margin-top: 20px; }

/* === Telegram Button === */
.tg-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid rgba(253,253,253,0.15);
  border-radius: var(--radius-pill);
  padding: 14px 20px;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform var(--transition-bounce), box-shadow 0.3s;
}
.tg-float:hover { border-color: var(--border-hover); background: var(--bg-card-hover); transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,0.4); }
.tg-float svg { width: 20px; height: 20px; flex-shrink: 0; }
.tg-float-label { font-size: 14px; font-weight: 600; color: var(--text-primary); white-space: nowrap; }

/* === Page Hero === */
.page-section { width: calc(100% - 40px); margin: 60px auto 0; }
.page-hero { padding: 60px 0 48px; text-align: center; }
.page-label { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 20px; }
.page-title { font-size: 56px; font-weight: 800; color: var(--text-primary); margin: 0 0 20px 0; line-height: 1.1; letter-spacing: -0.02em; }
.page-subtitle { font-size: 20px; font-weight: 500; color: rgba(253,253,253,0.5); margin: 0 auto; max-width: 600px; }

/* === Responsive === */
@media (max-width: 1024px) {
  .header-right { gap: 20px; }
  .nav-list { gap: 20px; flex-wrap: wrap; justify-content: center; }
  .page-title { font-size: 42px; }
}
@media (max-width: 768px) {
  .burger-btn { display: flex !important; }
  .header-divider { display: none !important; }
  .main-nav { display: none !important; }
  .header-right { display: none !important; }
  .slogan { display: none !important; }
  .site-header { position: sticky !important; top: 0 !important; border-radius: 0 !important; width: 100% !important; margin: 0 !important; z-index: 500 !important; }
  .main-header { height: 80px !important; padding: 0 20px !important; }
  .logo { max-height: 104px !important; max-width: 240px !important; }
  .page-title { font-size: 32px; }
  .tg-float { bottom: 20px; right: 20px; width: 52px; height: 52px; padding: 0; justify-content: center; }
  .tg-float-label { display: none; }
  .site-footer { width: 100% !important; border-radius: 0 !important; padding: 32px 20px 20px !important; }
  .footer-container { grid-template-columns: 1fr !important; gap: 28px !important; text-align: center !important; }
  .footer-brand { display: flex !important; flex-direction: column !important; align-items: center !important; }
  .footer-nav ul { align-items: center !important; }
  .footer-logo { max-height: 80px !important; }
}
