/* Base */
:root {
  --bg: #0b0b0f;
  --bg-elev: #111218;
  --text: #e9eaf0;
  --muted: #acb0bf;
  --yellow: #ffd400;
  --accent: #ffcc00;
  --card: #151723;
  --border: #23263a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.container { width: min(1120px, 92vw); margin: 0 auto; }

/* Utils */
.is-hidden { display: none !important; }

/* Header */
.yc-header {
  position: sticky; top: 0; z-index: 40;
  background: linear-gradient(180deg, rgba(11,11,15,0.9), rgba(11,11,15,0.6));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; padding: 14px 0; }
.header-phone { margin-left: 8px; color: var(--text); font-weight: 700; white-space: nowrap; }
.header-phone:hover { color: var(--yellow); }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { color: var(--muted); transition: color .2s ease; }
.nav a:hover { color: var(--text); }
.cta { background: var(--yellow); color: #111; padding: 10px 16px; border-radius: 10px; font-weight: 700; border: none; display: inline-block; }
.ghost { border: 1px solid var(--border); padding: 10px 16px; border-radius: 10px; color: var(--text); }

.burger { display:none; margin-left: 8px; width: 40px; height: 40px; background: transparent; border: 1px solid var(--border); border-radius: 10px; align-items:center; justify-content:center; gap: 4px; }
.burger span { display:block; width:20px; height:2px; background: var(--text); }
.mobile-nav { display:none; flex-direction: column; padding: 12px 16px; gap: 10px; border-bottom: 1px solid var(--border); background: var(--bg-elev); }
.mobile-nav a { color: var(--muted); }

/* Logo size */
.logo { display:inline-flex; align-items:center; }
.logo img { height: 36px; width: auto; display:block; object-fit: contain; flex: 0 0 auto; }

/* Hero */
.hero { position: relative; min-height: 82vh; display: grid; place-items: center; overflow: hidden; }
.hero .overlay { position:absolute; inset:0; background: radial-gradient(ellipse at center, rgba(0,0,0,0.1), rgba(0,0,0,0.75)); }
.hero-inner { position: relative; text-align: center; padding: 80px 0; z-index: 2; }
.hero h1 { font-size: clamp(40px, 9vw, 96px); line-height: 0.95; margin: 0 0 10px; letter-spacing: -0.02em; text-shadow: 0 2px 14px rgba(0,0,0,0.25); }
.hero p { color: var(--muted); margin: 0 auto 24px; width: min(760px, 90vw); }
.hero .hero-actions { display: flex; gap: 12px; justify-content: center; }
.hero .highlight { color: var(--yellow); text-shadow: 0 0 10px rgba(255,212,0,0.28), 0 0 24px rgba(255,212,0,0.18); animation: glowPulse 3.2s ease-in-out infinite; }
.hero-bg { position:absolute; inset:0; width:100%; height:100%; object-fit: cover; filter: saturate(1.1) contrast(1.05) brightness(0.9); }

/* Sections */
.section { padding: 80px 0; }
.section h2 { font-size: clamp(28px, 4.5vw, 44px); margin: 0 0 16px; letter-spacing: -0.01em; }
.muted { color: var(--muted); }

/* About */
.features { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0; margin: 28px 0 0; }
.features li { background: linear-gradient(180deg, #141726, #0f1220); border: 1px solid #2a2e46; border-radius: 16px; padding: 18px; display:flex; flex-direction: column; gap: 8px; box-shadow: 0 6px 24px rgba(0,0,0,0.25); }
.features li h3 { margin: 2px 0 4px; font-size: 16px; letter-spacing: 0.01em; }
.features li p { margin: 0; color: var(--muted); font-size: 14px; }
.badge { display:inline-block; align-self: flex-start; background: #2a2d42; color: var(--yellow); padding: 6px 10px; border-radius: 999px; font-size: 12px; letter-spacing: 0.02em; border: 1px solid #393f66; }

/* Process */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.step-num { width: 36px; height: 36px; display: grid; place-items: center; background: #2a2d42; color: var(--yellow); border-radius: 10px; font-weight: 800; }
.step-body h3 { margin: 0 0 4px; font-size: 16px; }
.step-body p { margin: 0; color: var(--muted); font-size: 14px; }

/* Brands */
.brands .grid { display:grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 24px; }
.brand { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; display:flex; align-items:center; gap: 12px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.brand:hover { transform: translateY(-2px); border-color: #2f3350; box-shadow: 0 6px 30px rgba(255, 212, 0, 0.06); }
.brand img { width: 28px; height: 28px; filter: grayscale(100%) brightness(1.5); }
.brand span { font-weight: 600; }

/* Contacts */
.contact-cards { display:grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; display:flex; flex-direction: column; gap: 4px; }
.card-title { color: var(--muted); font-size: 13px; }
.card-value { font-weight: 700; }
.contact-line { display:flex; align-items:center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.phone { color: inherit; }
.icon-row { display:flex; gap: 10px; margin-top: 0; flex-wrap: wrap; align-items: center; }
.icon { width: 36px; height: 36px; display:inline-flex; align-items:center; justify-content:center; border: 1px solid var(--border); border-radius: 10px; color: var(--text); transition: border-color .2s ease, transform .15s ease; }
.icon:hover { transform: translateY(-2px); border-color: #3a3f63; }
.icon svg { width: 20px; height: 20px; }
.icon.tg { color: #29a9eb; }
.icon.wa { color: #25D366; }
.icon.vb { color: #7360f2; }
.icon.ig { color: #E4405F; }
.icon.yt { color: #FF0000; }
.icon.tt { color: #00f2ea; }
.icon.tt img { filter: invert(1) brightness(1.2); }

.contact-form { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 16px; padding: 18px; display:flex; flex-direction: column; gap: 12px; }
.row { display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display:flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
input, textarea { background: #0f1020; border: 1px solid var(--border); color: var(--text); border-radius: 12px; padding: 12px 12px; font-size: 15px; outline: none; }
input[name="phone"] { letter-spacing: 0.04em; }
/* Не даём полю сообщения вылезать за границы родителя */
textarea { width: 100%; max-width: 100%; resize: vertical; min-width: 0; }
input:focus, textarea:focus { border-color: #3a3f63; box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.12); }
button.cta { cursor: pointer; }

/* Footer */
.yc-footer { border-top: 1px solid var(--border); background: #0a0b11; }
.footer-inner { display:flex; align-items:center; justify-content: space-between; padding: 18px 0; color: var(--muted); }

/* Responsive */
@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .brands .grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  .nav { display:none; }
  .burger { display:flex; }
  .mobile-nav[hidden] { display:none; }
  .mobile-nav[open] { display:flex; }
  .header-phone { display:none; }
  .features { grid-template-columns: 1fr; }
  .brands .grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
}

/* Mobile: stack hero actions to avoid two-line buttons */
@media (max-width: 560px) {
  .hero .hero-actions { flex-direction: column; align-items: stretch; }
  .cta, .ghost { width: 100%; text-align: center; white-space: nowrap; }
}

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.section, .hero-inner, .brand, .card, .contact-form { animation: fadeUp .6s ease both; }

@keyframes glowPulse {
  0% { text-shadow: 0 0 8px rgba(255,212,0,0.22), 0 0 20px rgba(255,212,0,0.12); }
  50% { text-shadow: 0 0 14px rgba(255,212,0,0.34), 0 0 36px rgba(255,212,0,0.22); }
  100% { text-shadow: 0 0 8px rgba(255,212,0,0.22), 0 0 20px rgba(255,212,0,0.12); }
}

