/* ===== VARIABLES ===== */
:root {
  --sky: #0ea5e9;
  --sky-dark: #0284c7;
  --sky-light: #e0f2fe;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --green: #10b981;
  --green-dark: #059669;
  --bg: #ffffff;
  --bg-alt: #f0f9ff;
  --bg-dark: #1d2a3b;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(14,165,233,.10);
  --shadow-lg: 0 8px 40px rgba(14,165,233,.18);
  --transition: .2s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 600;
  transition: var(--transition); cursor: pointer; border: 2px solid transparent; line-height: 1.2;
}
.btn-primary { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn-sky { background: var(--sky); color: #fff; border-color: var(--sky); }
.btn-sky:hover { background: var(--sky-dark); border-color: var(--sky-dark); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.15); }
.btn-outline-dark { background: transparent; border-color: var(--sky); color: var(--sky); }
.btn-outline-dark:hover { background: var(--sky-light); }
.btn-green { background: var(--green); color: #fff; border-color: var(--green); }
.btn-green:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-white { background: #fff; color: var(--sky-dark); border-color: #fff; }
.btn-white:hover { background: var(--sky-light); }
.btn-full { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== SECTION ===== */
.section { padding: 72px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: #fff; }
.section--dark .section-sub { color: rgba(255,255,255,.65); }
.section-tag { display: inline-block; background: var(--sky-light); color: var(--sky-dark); font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 12px; border-radius: 4px; margin-bottom: 12px; }
.section-title { font-size: clamp(24px,4vw,36px); font-weight: 800; line-height: 1.2; margin-bottom: 12px; }
.section-sub { color: var(--muted); font-size: 17px; margin-bottom: 40px; max-width: 640px; }
.section--dark .section-title { color: #fff; }

/* ===== REVEAL ANIMATION ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== HEADER ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: #1d2a3b;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  height: 64px;
}
.header-logo { font-size: 22px; font-weight: 900; color: #fff; letter-spacing: -.5px; flex-shrink: 0; display: flex; align-items: center; }
.header-logo span { color: var(--orange); }
.header-logo img { height: 42px; display: block; }
.header-nav { display: flex; gap: 4px; margin: 0 auto; }
.header-nav a { color: rgba(255,255,255,.8); font-size: 14px; font-weight: 500; padding: 6px 12px; border-radius: 6px; transition: var(--transition); }
.header-nav a:hover, .header-nav a.active { color: #fff; background: rgba(255,255,255,.1); }
.header-phone-wrap { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; }
.header-phone { color: #fff; font-size: 15px; font-weight: 700; }
.header-phone-label { color: rgba(255,255,255,.5); font-size: 11px; }
.header-cta { background: var(--orange); color: #fff; padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 700; flex-shrink: 0; transition: var(--transition); }
.header-cta:hover { background: var(--orange-dark); }
.header-cart { position: relative; display: flex; align-items: center; gap: 6px; color: #fff; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,.2); transition: var(--transition); flex-shrink: 0; }
.header-cart:hover { background: rgba(255,255,255,.1); }
.cart-count { position: absolute; top: -6px; right: -6px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 800; width: 20px; height: 20px; border-radius: 50%; display: none; align-items: center; justify-content: center; }

/* ===== BURGER ===== */
.burger { display: none; flex-direction: column; gap: 5px; padding: 4px; margin-left: auto; }
.burger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: var(--transition); }
@media(max-width:900px) {
  .header-nav, .header-phone-wrap, .header-cta { display: none; }
  .burger { display: flex; }
}

/* ===== NAV DRAWER ===== */
.nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 200; opacity: 0; pointer-events: none; transition: opacity .3s; }
.nav-overlay.open { opacity: 1; pointer-events: all; }
.nav-drawer { position: fixed; top: 0; left: 0; bottom: 0; width: 280px; background: var(--bg-dark); z-index: 201; transform: translateX(-100%); transition: transform .3s ease; padding: 0; display: flex; flex-direction: column; }
.nav-drawer.open { transform: none; }
.nav-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.nav-drawer-close { color: rgba(255,255,255,.7); font-size: 20px; padding: 4px; }
.nav-drawer ul { padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.nav-drawer ul a { display: block; color: rgba(255,255,255,.85); padding: 12px 16px; border-radius: 8px; font-size: 15px; }
.nav-drawer ul a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-drawer-footer { margin-top: auto; padding: 20px; border-top: 1px solid rgba(255,255,255,.08); }
.nav-drawer-footer .label { color: rgba(255,255,255,.5); font-size: 12px; margin-bottom: 6px; }
.nav-drawer-footer a { color: #fff; font-size: 17px; font-weight: 700; display: block; }

/* ===== CART DRAWER ===== */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 300; opacity: 0; pointer-events: none; transition: opacity .3s; }
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 400px; max-width: 100vw; background: #fff; z-index: 301; transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column; box-shadow: -4px 0 40px rgba(0,0,0,.2); }
.cart-drawer.open { transform: none; }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.cart-header h2 { font-size: 20px; font-weight: 800; }
.cart-close { font-size: 22px; color: var(--muted); padding: 4px; }
.cart-close:hover { color: var(--text); }
.cart-body { flex: 1; overflow-y: auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.cart-empty { color: var(--muted); text-align: center; padding: 40px 0; font-size: 15px; }
.cart-item { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--bg-alt); border-radius: var(--radius-sm); }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.cart-item-price { font-size: 15px; font-weight: 800; color: var(--orange); }
.cart-item-remove { color: var(--muted); font-size: 16px; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.cart-item-remove:hover { background: #fee2e2; color: #ef4444; }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-top: 2px solid var(--border); font-weight: 800; font-size: 18px; }
.cart-total-label { color: var(--muted); }
.cart-total-price { color: var(--text); }
.cart-form { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.cart-form label { font-size: 13px; font-weight: 600; color: var(--muted); display: block; margin-bottom: 4px; }
.cart-form input, .cart-form textarea { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; transition: var(--transition); }
.cart-form input:focus, .cart-form textarea:focus { outline: none; border-color: var(--sky); }
.cart-form textarea { resize: none; height: 70px; }
.cart-footer { padding: 16px 24px 24px; border-top: 1px solid var(--border); }
.cart-success { text-align: center; padding: 24px 0; display: none; }
.cart-success-icon { font-size: 3rem; margin-bottom: 12px; }
.cart-success h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.cart-success p { color: var(--muted); font-size: 14px; }

/* ===== CALLBACK MODAL ===== */
#callbackModal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 400; align-items: center; justify-content: center; padding: 20px; }
#callbackModal.open { display: flex; }
.cb-box { background: #fff; border-radius: 20px; padding: 36px; max-width: 420px; width: 100%; position: relative; }
.cb-close { position: absolute; top: 16px; right: 16px; font-size: 20px; color: var(--muted); }
.cb-box h2 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.cb-box .sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.cb-box .form-group { margin-bottom: 14px; }
.cb-box .form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--muted); }
.cb-box .form-group input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; }
.cb-box .form-group input:focus { outline: none; border-color: var(--sky); }
.form-check { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--muted); cursor: pointer; margin-bottom: 16px; }
.form-check input { margin-top: 2px; flex-shrink: 0; }
.cb-submit { width: 100%; padding: 14px; background: var(--orange); color: #fff; border-radius: var(--radius-sm); font-size: 15px; font-weight: 700; }
.cb-submit:hover { background: var(--orange-dark); }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 8px; max-width: 800px; margin: 0 auto; }
.faq-item { border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q { width: 100%; text-align: left; padding: 18px 20px; font-size: 15px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff; transition: var(--transition); }
.faq-q:hover { background: var(--bg-alt); }
.faq-arrow { transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s; font-size: 14px; color: var(--muted); padding: 0 20px; }
.faq-item.open .faq-a { max-height: 200px; padding: 0 20px 18px; }

/* ===== FORM ===== */
.form-section { background: linear-gradient(135deg, var(--sky-dark) 0%, var(--sky) 100%); padding: 72px 0; }
.form-wrap { background: #fff; border-radius: 20px; padding: 48px; max-width: 560px; margin: 0 auto; box-shadow: var(--shadow-lg); }
.form-title { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.form-sub { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--muted); }
.form-control { width: 100%; padding: 13px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 15px; transition: var(--transition); }
.form-control:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(14,165,233,.12); }
.form-control.textarea { height: 100px; resize: none; }
.form-submit { width: 100%; padding: 16px; font-size: 16px; font-weight: 800; }
.form-success { display: none; text-align: center; padding: 32px 0; }
.form-success-icon { font-size: 3rem; margin-bottom: 12px; }
.form-note { margin-top: 16px; font-size: 12px; color: var(--muted); text-align: center; }

/* ===== FOOTER ===== */
.footer { background: var(--bg-dark); color: rgba(255,255,255,.8); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 48px; padding-bottom: 48px; }
.footer-logo { font-size: 20px; font-weight: 900; color: #fff; display: inline-flex; align-items: center; }
.footer-logo span { color: var(--orange); }
.footer-logo img { height: 26px; display: block; }
.footer-desc { font-size: 13px; color: rgba(255,255,255,.5); margin-top: 10px; line-height: 1.6; }
.footer-nav h4, .footer-contact h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.5); margin-bottom: 14px; }
.footer-nav ul { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { font-size: 13px; color: rgba(255,255,255,.65); transition: var(--transition); }
.footer-nav a:hover { color: #fff; }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 12px; }
.footer-contact-icon { font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.footer-contact-label { font-size: 11px; color: rgba(255,255,255,.4); }
.footer-contact-value { font-size: 14px; font-weight: 600; color: #fff; }
.footer-contact-value a { color: #fff; }
.footer-links { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.footer-links a { font-size: 12px; color: rgba(255,255,255,.4); transition: var(--transition); }
.footer-links a:hover { color: rgba(255,255,255,.7); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255,255,255,.35); }
.footer-bottom a { color: rgba(255,255,255,.35); }
.footer-bottom a:hover { color: rgba(255,255,255,.7); }

/* ===== MOBILE BAR ===== */
.mobile-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 99; background: var(--bg-dark); border-top: 1px solid rgba(255,255,255,.1); padding: 10px 16px 14px; gap: 10px; }
@media(max-width:768px) { .mobile-bar { display: flex; } }

/* ===== RESPONSIVE ===== */
@media(max-width:768px) {
  .section { padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .form-wrap { padding: 28px 20px; }
  .cart-drawer { width: 100vw; }
}
