/* === Variables & reset === */
:root{
  --bg:#0F1216;
  --panel:#12161C;
  --text:#FFFFFF;
  --muted:#C9CDD2;
  --accent:#FF7A00;
  --border:#1B2230;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:Inter,Arial,'DejaVu Sans','Noto Sans',system-ui,sans-serif}
img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
.container{max-width:1120px;margin:0 auto;padding:0 20px}

/* === Header === */
.header{
  position:sticky;
  top:0;
  background:#0e1318f2;
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--border);
  z-index:20;
}
.header__wrap{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:8px;
  align-items:center;
  min-width:0;
  padding:14px 0;
}
.brand{display:flex;align-items:center;gap:12px;min-width:0}
.brand img{width:40px;height:40px}
.brand__name{font-weight:800;letter-spacing:.3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* === Navigation === */
.nav{
  justify-self:end;
  display:flex; /* десктоп */
  align-items:center;
  gap:10px;
}
.nav a{color:var(--muted);font-size:15px;text-decoration:none}

/* === Buttons === */
.btn{
  display:inline-block;
  padding:12px 18px;
  border-radius:12px;
  background:var(--accent);
  color:#111;
  font-weight:700;
  border:none;
  text-decoration:none;
  transition: all 0.2s ease;
}
.btn:hover{opacity:0.85;}

.btn--ghost{
  background:#1a1f27;
  color:var(--text);
  border:1px solid #283041;
}
.btn--ghost:hover{background:#202434;}

/* Phone button in mobile menu */
.phone-btn{
  font-weight:bold;
  color:#fff;
  background:var(--accent);
  padding:6px 12px;
  border-radius:6px;
  text-decoration:none;
  text-align:center;
}
.phone-btn:hover{opacity:0.85;}

/* Burger button */
.menu-btn{
  display:none; /* скрыт на десктоп */
  flex-direction:column;
  gap:5px;
  border:none;
  background:transparent;
  cursor:pointer;
}
.menu-btn span{
  display:block;
  width:25px;
  height:3px;
  background:#fff;
  border-radius:2px;
}
/* Burger animation */
.menu-btn.open span:nth-child(1){
  transform: rotate(45deg) translate(5px,5px);
}
.menu-btn.open span:nth-child(2){
  opacity:0;
}
.menu-btn.open span:nth-child(3){
  transform: rotate(-45deg) translate(5px,-5px);
}

/* === Sections === */
.section{padding:56px 0;border-top:1px solid var(--border)}
.section h2{font-size:28px;margin:0 0 20px}

/* Hero */
.hero{padding:88px 0 32px;background:radial-gradient(1200px 480px at 10% -10%, rgba(255,122,0,.10), transparent 70%);min-height:0}
.hero .badge{display:inline-flex;align-items:center;gap:10px;background:#10151c;border:1px dashed var(--accent);padding:10px 14px;border-radius:10px;max-width:100%;word-break:break-word}
.hero h1{font-size:clamp(28px,6.2vw,44px);line-height:1.18;margin:16px 0 12px}
.hero p{max-width:760px;color:var(--muted);font-size:clamp(15px,3.8vw,18px);line-height:1.55;margin:0}
.hero__cta{display:flex;gap:12px;margin-top:20px;flex-wrap:wrap}

/* Grid & cards */
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.card{background:var(--panel);border:1px solid #202838;border-radius:14px;padding:18px;display:block}
.card h3{margin:8px 0 8px;font-size:18px}
.card p{margin:0;color:var(--muted)}
.card .icon{width:88px;height:88px;object-fit:contain;margin-bottom:10px}

/* Prices */
.prices{background:var(--panel);border:1px solid var(--border);border-radius:14px;padding:8px 14px}
.prices .row{display:grid;grid-template-columns:1fr auto;gap:12px;border-bottom:1px dashed #2c3444;padding:12px 0}
.prices .row:last-child{border-bottom:none}
.prices .row:has(> div:target){background-color: rgba(255,122,0,0.15); border-left:4px solid var(--accent); padding-left:10px}
.prices .row:has(> div:target) div:first-child{color:var(--accent); font-weight:700}

/* Gallery */
.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.gallery .ph{background:#10151c;border:1px solid #273447;border-radius:14px;aspect-ratio:4/3;display:flex;align-items:center;justify-content:center}

/* Contact */
.contact{display:grid;grid-template-columns:1.5fr 1fr;gap:20px}
.form input,.form textarea{width:100%;padding:14px 16px;border-radius:12px;background:#121821;color:var(--text);border:1px solid #232b38}
.form textarea{min-height:120px;resize:vertical}

/* Footer */
.footer{padding:28px 0;color:var(--muted);border-top:1px solid var(--border)}

/* === Responsive === */
@media (max-width:1024px){
  .grid{grid-template-columns:1fr 1fr}
  .gallery{grid-template-columns:1fr 1fr}
  .contact{grid-template-columns:1fr}
}
@media (max-width:560px){
  .grid,.gallery{grid-template-columns:1fr}
  .hero h1{font-size:32px}
}

/* === Mobile menu === */
@media (max-width:768px){
  .nav{
    display:none; /* скрыто по умолчанию */
    position:absolute;
    top:70px;
    left:0;
    right:0;
    background:#1f2937;
    flex-direction:column;
    gap:10px;
    padding:15px;
    z-index:100;
  }
  .nav.active{display:flex}
  .menu-btn{display:flex}
}