/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: #111; color: #f0f0f0; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* === VARIABLES === */
:root {
  --orange: #FF6A00;
  --orange-dark: #e05a00;
  --graphite: #1a1a1a;
  --graphite-light: #252525;
  --graphite-mid: #2e2e2e;
  --white: #ffffff;
  --gray: #aaa;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

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

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: 8px; font-weight: 600;
  font-size: 15px; transition: all 0.2s; cursor: pointer; border: 2px solid transparent;
}
.btn--orange { background: var(--orange); color: #fff; }
.btn--orange:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn--outline { border-color: var(--orange); color: var(--orange); background: transparent; }
.btn--outline:hover { background: var(--orange); color: #fff; }
.btn--lg { padding: 16px 36px; font-size: 17px; border-radius: 10px; }

/* === HEADER === */
.header {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(17,17,17,0.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid #2a2a2a;
}
.header__inner {
  display: flex; align-items: center; gap: 32px;
  height: 70px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo__icon { font-size: 26px; }
.logo__text { font-size: 22px; font-weight: 800; color: var(--orange); letter-spacing: -0.5px; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { font-size: 14px; font-weight: 500; color: #ccc; transition: color 0.2s; }
.nav a:hover { color: var(--orange); }
.header__phone { font-size: 14px; padding: 10px 20px; white-space: nowrap; }
.burger { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }

/* === HERO === */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(135deg, #111 0%, #1a1a1a 50%, #200d00 100%);
  padding-top: 70px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,106,0,0.12) 0%, transparent 70%);
}
.hero__inner { display: flex; align-items: center; gap: 60px; padding: 80px 20px; }
.hero__content { flex: 1; }
.hero__content h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.hero__content h1 { background: linear-gradient(135deg, #fff 60%, var(--orange)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero__content p { font-size: 18px; color: #aaa; margin-bottom: 36px; max-width: 480px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero__badges { display: flex; gap: 16px; flex-wrap: wrap; }
.badge { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #ccc; }
.badge span { color: var(--orange); font-weight: 700; }
.hero__visual { flex: 0 0 300px; display: flex; justify-content: center; }
.hero__key-icon { font-size: 180px; filter: drop-shadow(0 0 40px rgba(255,106,0,0.3)); animation: float 3s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-20px)} }

/* === SECTIONS === */
.section { padding: 90px 0; }
.section--dark { background: var(--graphite-light); }
.section__title {
  font-size: clamp(28px, 4vw, 42px); font-weight: 800; text-align: center;
  margin-bottom: 60px; position: relative;
}
.section__title::after {
  content: ''; display: block; width: 60px; height: 4px;
  background: var(--orange); border-radius: 2px; margin: 16px auto 0;
}

/* === SERVICES === */
.services__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.service-card {
  background: var(--graphite-light); border-radius: var(--radius);
  padding: 32px; border: 1px solid #2a2a2a;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius);
  background: radial-gradient(ellipse at 50% 0%, rgba(255,106,0,0.18) 0%, transparent 70%);
  opacity: 0; transition: opacity 0.3s ease;
  pointer-events: none;
}
.services__grid .service-card:hover { border-color: var(--orange); transform: translateY(-6px); box-shadow: 0 12px 40px rgba(255,106,0,0.25), 0 0 0 1px rgba(255,106,0,0.3); background: #1f1f1f; }
.services__grid .service-card:hover::before { opacity: 1; }
.service-card__icon { font-size: 36px; margin-bottom: 16px; }
.service-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: #fff; }
.service-card p { font-size: 14px; color: #888; line-height: 1.7; }

/* === PRICES === */
.prices__table { max-width: 800px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; border: 1px solid #333; }
.prices__header { display: flex; justify-content: space-between; padding: 16px 24px; background: var(--orange); font-weight: 700; font-size: 15px; }
.prices__row { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid #2a2a2a; background: var(--graphite-mid); transition: background 0.2s; }
.prices__row:last-child { border-bottom: none; }
.prices__row:hover { background: #333; }
.prices__row span:first-child { font-size: 15px; }
.price-tag { color: var(--orange); font-weight: 700; font-size: 16px; white-space: nowrap; }
.prices__note { text-align: center; margin-top: 24px; color: #888; font-size: 14px; }

/* === ABOUT === */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about__text p { font-size: 16px; color: #bbb; line-height: 1.9; }
.about__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.stat { background: var(--graphite-light); border-radius: var(--radius); padding: 28px; text-align: center; border: 1px solid #2a2a2a; }
.stat__num { display: block; font-size: 42px; font-weight: 800; color: var(--orange); line-height: 1; }
.stat__label { display: block; font-size: 13px; color: #888; margin-top: 8px; }

/* === CONTACTS === */
.contacts__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.contact-card {
  background: var(--graphite-mid); border-radius: var(--radius); padding: 36px; text-align: center; border: 1px solid #333;
  position: relative; overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.contact-card::before {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius);
  background: radial-gradient(ellipse at 50% 0%, rgba(255,106,0,0.18) 0%, transparent 70%);
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.contacts__grid .contact-card:hover { border-color: var(--orange); transform: translateY(-6px); box-shadow: 0 12px 40px rgba(255,106,0,0.25), 0 0 0 1px rgba(255,106,0,0.3); background: #333; }
.contacts__grid .contact-card:hover::before { opacity: 1; }
.contact-card__icon { font-size: 40px; margin-bottom: 16px; }
.contact-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; color: #fff; }
.contact-card a { color: var(--orange); font-size: 18px; font-weight: 600; display: block; margin-bottom: 6px; }
.contact-card p { color: #aaa; font-size: 15px; }
.contact-card small { color: #666; font-size: 13px; display: block; margin-top: 6px; }
.socials { display: flex; gap: 12px; justify-content: center; margin-top: 8px; flex-wrap: wrap; }
.social-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; transition: all 0.2s; }
.social-btn svg { flex-shrink: 0; }
.social-btn.vk { background: #4C75A3; color: #fff; }
.social-btn.vk:hover { background: #3d6090; }
.social-btn.tg { background: #2AABEE; color: #fff; }
.social-btn.tg:hover { background: #1a9ad6; }
.social-btn.max { background: linear-gradient(135deg, #FF3CAC, #784BA0, #2B86C5); color: #fff; }
.social-btn.max:hover { background: linear-gradient(135deg, #e02f99, #663d8a, #2271a8); transform: translateY(-1px); }

/* === FOOTER === */
.footer { background: #0d0d0d; border-top: 1px solid #222; padding: 24px 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #555; }
.footer__admin { color: #333; transition: color 0.2s; }
.footer__admin:hover { color: var(--orange); }

/* === ADMIN === */
.admin-body { background: #1a1a1a; min-height: 100vh; font-family: 'Inter', sans-serif; }
.admin-header { background: #111; padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--orange); }
.admin-header h1 { font-size: 20px; color: var(--orange); font-weight: 700; }
.admin-header a { color: #888; font-size: 14px; }
.admin-header a:hover { color: var(--orange); }
.admin-content { max-width: 1100px; margin: 40px auto; padding: 0 24px; }
.admin-section { background: #222; border-radius: 12px; padding: 32px; margin-bottom: 32px; border: 1px solid #2e2e2e; }
.admin-section h2 { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px solid #333; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; color: #888; margin-bottom: 6px; font-weight: 500; }
.form-group input, .form-group textarea {
  width: 100%; background: #1a1a1a; border: 1px solid #333; border-radius: 8px;
  padding: 12px 16px; color: #fff; font-size: 14px; font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--orange); }
.form-group textarea { resize: vertical; min-height: 100px; }
.btn--save { background: var(--orange); color: #fff; padding: 12px 32px; border: none; border-radius: 8px; font-weight: 700; font-size: 15px; cursor: pointer; transition: background 0.2s; }
.btn--save:hover { background: var(--orange-dark); }
.btn--danger { background: #c0392b; color: #fff; padding: 8px 18px; border: none; border-radius: 6px; font-size: 13px; cursor: pointer; }
.btn--add { background: #27ae60; color: #fff; padding: 10px 24px; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; margin-bottom: 20px; }
.alert { padding: 14px 20px; border-radius: 8px; margin-bottom: 24px; font-size: 14px; }
.alert--success { background: rgba(39,174,96,0.15); border: 1px solid #27ae60; color: #2ecc71; }
.service-row { display: grid; grid-template-columns: 2fr 3fr 1fr auto; gap: 12px; align-items: start; margin-bottom: 16px; padding: 16px; background: #1a1a1a; border-radius: 8px; border: 1px solid #2a2a2a; }
.login-wrap { display: flex; justify-content: center; align-items: center; min-height: 100vh; }
.login-box { background: #222; border-radius: 16px; padding: 48px 40px; width: 380px; border: 1px solid #2e2e2e; }
.login-box h1 { font-size: 24px; font-weight: 800; color: var(--orange); margin-bottom: 8px; }
.login-box p { color: #777; font-size: 14px; margin-bottom: 32px; }

/* === SCROLL REVEAL === */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* === HEADER SCROLLED === */
.header { transition: box-shadow 0.3s, padding 0.3s; }
.header.scrolled { box-shadow: 0 4px 32px rgba(0,0,0,0.6); }

/* === ACTIVE NAV LINK === */
.nav a.active { color: var(--orange); }

/* === MOBILE === */
@media (max-width: 768px) {
  .nav, .header__phone { display: none; }
  .burger { display: block; margin-left: auto; }
  .nav.open { display: flex; flex-direction: column; position: fixed; top: 70px; left: 0; right: 0; background: #111; padding: 20px; gap: 20px; border-bottom: 1px solid #222; }
  .hero__inner { flex-direction: column; padding: 60px 20px; text-align: center; }
  .hero__visual { display: none; }
  .hero__actions, .hero__badges { justify-content: center; }
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .service-row { grid-template-columns: 1fr; }
}
