:root{
  --bg:#0b1220;
  --surface:#0f1a2e;
  --card:#0f213d;
  --text:#e8eefc;
  --muted:#b9c6e3;
  --brand:#35b6ff;
  --brand2:#7c5cff;
  --line:rgba(255,255,255,.10);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 18px;
  --max: 1160px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 600px at 10% 10%, rgba(53,182,255,.25), transparent 60%),
    radial-gradient(900px 600px at 90% 10%, rgba(124,92,255,.22), transparent 55%),
    linear-gradient(180deg, #070b14 0%, #0b1220 30%, #070b14 100%);
  overflow-x:hidden;
}

a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}
.container{max-width:var(--max); margin:0 auto; padding:0 20px}
.section{padding:64px 0}
.small{font-size:.92rem}
.muted{color:var(--muted)}
.kbd{border:1px solid var(--line); padding:2px 8px; border-radius:999px; font-size:.85rem; color:var(--muted)}

.topbar{
  border-bottom:1px solid var(--line);
  background:rgba(15,26,46,.65);
  backdrop-filter: blur(10px);
}
.topbar .row{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:10px 0;
}
.topbar .contacts{display:flex; gap:14px; flex-wrap:wrap; align-items:center}
.topbar .contacts a{color:var(--muted)}
.topbar .contacts a:hover{color:var(--text)}
.brandline{display:flex; gap:10px; align-items:center}

.header{
  position:sticky; top:0; z-index:50;
  background:rgba(11,18,32,.60);
  backdrop-filter: blur(12px);
  border-bottom:1px solid var(--line);
}
.header .row{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:14px 0;
}
.logo{
  display:flex; align-items:center; gap:10px;
  font-weight:800; letter-spacing:.2px;
}
.logo img{width:34px; height:34px}
.nav{
  display:flex; align-items:center; gap:18px;
}
.nav a{
  color:var(--muted);
  padding:10px 10px;
  border-radius:999px;
}
.nav a:hover{color:var(--text); background:rgba(255,255,255,.06)}
.nav a.active{color:var(--text); background:rgba(53,182,255,.14); border:1px solid rgba(53,182,255,.25)}
.burger{
  display:none;
  width:42px; height:42px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.05);
  color:var(--text);
}
.burger:hover{background:rgba(255,255,255,.08)}
.mobile-panel{
  display:none;
  border-top:1px solid var(--line);
  background:rgba(11,18,32,.75);
}
.mobile-panel a{
  display:block;
  padding:14px 20px;
  color:var(--muted);
  border-bottom:1px solid var(--line);
}
.mobile-panel a:hover{color:var(--text); background:rgba(255,255,255,.06)}

.hero{
  position:relative;
  padding:52px 0 18px;
}
.hero .grid{
  display:grid;
  grid-template-columns: 1.12fr .88fr;
  gap:28px;
  align-items:stretch;
}
.hero h1{
  margin:0 0 12px;
  font-size: clamp(1.9rem, 2.8vw, 3.1rem);
  line-height:1.12;
}
.hero p{margin:0 0 16px; color:var(--muted); font-size:1.05rem; line-height:1.6}
.hero .cta{
  display:flex; gap:12px; flex-wrap:wrap; margin-top:18px;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.06);
  color:var(--text);
  box-shadow: var(--shadow);
}
.btn:hover{background:rgba(255,255,255,.10)}
.btn.primary{
  border-color: rgba(53,182,255,.35);
  background: linear-gradient(135deg, rgba(53,182,255,.25), rgba(124,92,255,.18));
}
.hero-card{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(15,33,61,.78), rgba(15,26,46,.65)),
    url("../img/bg-pattern.svg");
  background-size:auto;
  box-shadow: var(--shadow);
  padding:18px;
  overflow:hidden;
  position:relative;
}
.hero-card .cover{
  border-radius: 14px;
  overflow:hidden;
  border:1px solid var(--line);
  height:220px;
}
.hero-card .cover img{width:100%; height:100%; object-fit:cover}
.hero-card .list{margin:14px 0 0; padding:0; list-style:none}
.hero-card .list li{
  display:flex; gap:10px; align-items:flex-start;
  padding:10px 0;
  border-bottom:1px dashed rgba(255,255,255,.10);
}
.hero-card .list li:last-child{border-bottom:0}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  border:1px solid rgba(53,182,255,.35);
  background:rgba(53,182,255,.10);
  color:var(--text);
  padding:6px 10px;
  border-radius:999px;
  font-size:.86rem;
}

.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}
.card{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15,33,61,.85), rgba(15,26,46,.75));
  box-shadow: var(--shadow);
  overflow:hidden;
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover{transform: translateY(-4px); border-color: rgba(53,182,255,.30)}
.card .thumb{height:160px; border-bottom:1px solid var(--line)}
.card .thumb img{width:100%; height:100%; object-fit:cover}
.card .body{padding:14px 14px 16px}
.card h3{margin:0 0 6px; font-size:1.05rem}
.card p{margin:0; color:var(--muted); line-height:1.5}
.card .meta{margin-top:12px; display:flex; gap:10px; align-items:center; flex-wrap:wrap}

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
  align-items:start;
}
.panel{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15,26,46,.65);
  box-shadow: var(--shadow);
  padding:18px;
}
.panel h2{margin:0 0 12px}
.panel ul{margin:10px 0 0; padding-left:18px; color:var(--muted); line-height:1.7}
.panel li{margin:6px 0}
.panel .note{
  margin-top:10px; color:var(--muted);
  border-top:1px dashed rgba(255,255,255,.12);
  padding-top:10px;
}

.products{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}
.product{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15,33,61,.78);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.product .thumb{height:170px; border-bottom:1px solid var(--line)}
.product .thumb img{width:100%; height:100%; object-fit:cover}
.product .body{padding:14px}
.product h3{margin:0 0 6px; font-size:1.02rem}
.product p{margin:0; color:var(--muted); line-height:1.55}
.price{
  margin-top:10px;
  display:flex; justify-content:space-between; align-items:center;
  color:var(--muted);
  font-size:.92rem;
}
.hr{
  height:1px; background:var(--line);
  margin:16px 0;
}
.form{
  display:grid; gap:12px;
}
.field{
  display:grid; gap:6px;
}
input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--text);
  outline:none;
}
input:focus, textarea:focus{border-color: rgba(53,182,255,.40)}
textarea{min-height:120px; resize:vertical}
.footer{
  border-top:1px solid var(--line);
  padding:26px 0;
  color:var(--muted);
  background: rgba(11,18,32,.65);
}
.footer .row{
  display:flex; justify-content:space-between; gap:18px; flex-wrap:wrap;
}
.footer a{color:var(--muted)}
.footer a:hover{color:var(--text)}

@media (max-width: 980px){
  .hero .grid{grid-template-columns: 1fr; }
  .cards{grid-template-columns: repeat(2, 1fr);}
  .products{grid-template-columns: repeat(2, 1fr);}
  .split{grid-template-columns: 1fr;}
}
@media (max-width: 720px){
  .nav{display:none}
  .burger{display:inline-flex; align-items:center; justify-content:center}
  .cards{grid-template-columns: 1fr;}
  .products{grid-template-columns: 1fr;}
}



/* UI tweaks: hover underline + hover color */
.more-link{
  color: var(--muted);
  text-decoration: none;
  text-underline-offset: 3px;
}
.more-link:hover{
  color: var(--brand);
  text-decoration: underline;
}
/* Чтобы было удобно: подсветка и при наведении на всю карточку */
.card:hover .more-link{
  color: var(--brand);
  text-decoration: underline;
}

.price-link{
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  text-underline-offset: 3px;
}
.price-link:hover{
  color: var(--brand);
  text-decoration: underline;
}
