:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --border:#e5e7eb;
  --shadow: 0 10px 30px rgba(15,23,42,.06);
  --shadow2: 0 6px 18px rgba(15,23,42,.06);
  --brand:#16a34a;
  --brandHover:#15803d;
  --link:#2563eb;
  --radius:16px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: var(--bg);
  color: var(--text);
}

a{ color:var(--link); text-decoration:none; }
a:hover{ text-decoration:underline; }

.wrap{ max-width:1120px; margin:18px auto; padding:0 14px; }

.header{
  background: var(--card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 14px;
}

.topbar{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
}

.brand a{
  color: var(--text);
  font-weight:900;
  letter-spacing:.2px;
  text-decoration:none;
  font-size:18px;
}
.brand small{
  display:block;
  color: var(--muted);
  font-weight:600;
  margin-top:2px;
  font-size:12px;
}

.nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
  align-items:center;
}

.navlink{
  display:inline-flex;
  align-items:center;
  padding:10px 12px;
  border-radius: 999px;
  border:1px solid transparent;
  color: var(--text);
  font-weight:700;
  font-size:14px;
}
.navlink:hover{
  text-decoration:none;
  background:#f1f5f9;
  border-color:#e2e8f0;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius: 999px;
  background: var(--brand);
  color:#fff;
  font-weight:900;
  border:1px solid rgba(0,0,0,.04);
  box-shadow: var(--shadow2);
}
.btn:hover{
  background: var(--brandHover);
  text-decoration:none;
}

.card{
  background: var(--card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
  padding: 16px;
  margin: 14px 0;
}

h1,h2,h3{ margin: 10px 0; letter-spacing:-.2px; }
.muted{ color: var(--muted); }

.hero{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 14px;
  align-items:stretch;
}
@media (max-width: 920px){
  .hero{ grid-template-columns:1fr; }
}

.hero h1{
  font-size: clamp(22px, 2.6vw, 34px);
  line-height:1.15;
  margin:0 0 8px;
}
.hero p{
  margin:0;
  color: var(--muted);
  line-height:1.65;
  font-size: 15px;
}

.heroBox{
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  background: #fbfcff;
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 920px){
  .grid{ grid-template-columns:1fr; }
}

.tile{
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
  box-shadow: var(--shadow2);
}
.tile h3{ margin:0 0 6px; font-size:16px; }
.tile p{ margin:0; color:var(--muted); line-height:1.55; font-size:14px; }

.thumb{
  width:100%;
  border-radius: 14px;
  border:1px solid var(--border);
  overflow:hidden;
  background:#f1f5f9;
  margin-bottom:10px;
}
.thumb img{ width:100%; height:auto; display:block; }

/* dropdown "Услуги" (без JS) */
.dropdown{
  position:relative;
}
.dropdown > summary{
  list-style:none;
  cursor:pointer;
  user-select:none;
}
.dropdown > summary::-webkit-details-marker{ display:none; }

.dropdown > summary.navlink{
  display:inline-flex;
  gap:8px;
  align-items:center;
}

.dropdown[open] > summary.navlink{
  background:#f1f5f9;
  border-color:#e2e8f0;
}

.dropdownMenu{
  position:absolute;
  right:0;
  top: 46px;
  min-width: 240px;
  max-width: 320px;
  background: var(--card);
  border:1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 50;
}
.dropdownItem{
  display:block;
  padding:10px 10px;
  border-radius: 12px;
  color: var(--text);
  font-weight:700;
}
.dropdownItem:hover{
  background:#f1f5f9;
  text-decoration:none;
}

/* mobile nav behavior */
@media (max-width: 920px){
  .dropdownMenu{
    position:static;
    box-shadow:none;
    border-radius: 12px;
    margin-top: 8px;
  }
}

.content{
  line-height:1.8;
  color: var(--text);
}
.content a{ text-decoration: underline; }

.footer{
  margin: 22px 0 18px;
  color: var(--muted);
  font-size: 13px;
}
