/* ============================================
   AVGIS — Minimal premium landing (2026)
   - Белый фон, белые блоки, синие границы
   ============================================ */

/* Design tokens */
:root{
  --bg: #ffffff;
  --card: #ffffff;
  --text: #0b1220;
  --muted: #475467;

  /* синие границы/акцент */
  --line: rgba(27, 78, 216, .40);
  --accent: #1d4ed8;
  --accent2: #1d4ed8;

  --shadow: 0 10px 24px rgba(16,24,40,.08);
  --r: 18px;
  --max: 1080px;
  --focus: rgba(29,78,216,.65);
}

/* Base */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *{transition:none !important; animation:none !important}
}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color:var(--text);
  line-height:1.55;
  text-rendering: optimizeLegibility;
}
img{max-width:100%; height:auto; display:block}
a{color:inherit; text-decoration:none}
a:hover{text-decoration:underline}
.container{
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}
.sr-only{
  position:absolute;
  width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
.muted{color:var(--muted)}
.small{font-size: 13px}

/* Skip link */
.skip-link{
  position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left:16px; top:16px; width:auto; height:auto; padding:10px 12px;
  background:var(--card); border:1px solid var(--line); border-radius:12px; z-index:9999;
  outline: 2px solid var(--focus);
}

/* Header */
.site-header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.85);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px;
  padding: 14px 0;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight: 850;
  letter-spacing: .4px;
}
.brand-mark{
  display:inline-flex; align-items:center; justify-content:center;
  width:34px; height:34px; border-radius:12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: var(--shadow);
  color:#ffffff;
  font-weight: 900;
}
.brand-text{font-size: 15px}

/* Nav */
.site-nav{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
}
.nav-link{
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--muted);
}
.nav-link:hover, .nav-link:focus{
  color: var(--text);
  border-color: var(--line);
  background: #ffffff;
  outline:none;
  text-decoration:none;
}
/* CTA в меню: строгая мини-плашка */
.nav-link--cta{
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--card);
  font-weight: 800;
  box-shadow: none;
}

.nav-link--cta:hover,
.nav-link--cta:focus{
  background: rgba(29,78,216,.06);
  border-color: rgba(29,78,216,.55);
  text-decoration: none;
}


/* Mobile menu toggle */
.nav-toggle{
  display:none;
  width:42px; height:42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  cursor:pointer;
}
.nav-toggle:focus{outline:2px solid var(--focus); outline-offset:2px}
.nav-toggle-lines{
  display:block;
  width:18px; height:2px;
  background: currentColor;
  margin: 0 auto;
  position: relative;
}
.nav-toggle-lines::before,
.nav-toggle-lines::after{
  content:"";
  position:absolute;
  left:0; right:0;
  height:2px;
  background: currentColor;
}
.nav-toggle-lines::before{top:-6px}
.nav-toggle-lines::after{top:6px}

@media (max-width: 920px){
  .nav-toggle{display:inline-flex; align-items:center; justify-content:center}
  .site-nav{
    position:absolute;
    right:16px;
    top: 64px;
    display:none;
    width: min(360px, calc(100% - 32px));
    padding: 10px;
    border-radius: var(--r);
    border: 1px solid var(--line);
    background: #ffffff;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }
  .site-nav.is-open{display:flex}
  .nav-link{justify-content:flex-start}
}

/* Sections */
.section{padding: 38px 0}
/* Section-alt: без смены фона, только рамка и «воздух» */
.section-alt{
  background: transparent;
}

.section-alt .container{
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
}

/* чуть больше воздуха на широких экранах */
@media (min-width: 920px){
  .section-alt .container{
    padding: 22px 18px;
  }
}

.section-head{
  display:grid;
  gap:8px;
  margin-bottom: 14px;
}
.section-head h2{
  margin:0;
  font-size: clamp(20px, 2.5vw, 28px);
  letter-spacing: -0.01em;
}

/* Hero */
.hero{padding: 56px 0 28px}
.hero-grid{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 920px){
  .hero-grid{grid-template-columns: 1fr}
}
.hero-card{
  padding: 22px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}
.eyebrow{
  margin:0 0 10px;
  display:inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  font-size: 13px;
}
.hero-card h1{
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.lead{
  margin: 0 0 14px;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 18px);
}
.hero-actions{
  display:flex; flex-wrap:wrap; gap:10px;
  margin-top: 14px;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  font-weight: 800;
  cursor:pointer;
}
.btn:hover{transform: translateY(-1px); text-decoration:none}
.btn:active{transform:none}
.btn:focus{outline: 2px solid var(--focus); outline-offset: 2px}
.btn-primary{
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color:#ffffff;
}
.btn-ghost{
  color: var(--text);
}

.chips{
  display:flex; flex-wrap:wrap; gap:8px;
  list-style:none;
  padding:0;
  margin: 16px 0 0;
}
.chip{
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  font-size: 13px;
  color: color-mix(in srgb, var(--text) 80%, var(--muted));
}

.stats{
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.stat dt{font-size: 12px; color: var(--muted)}
.stat dd{margin: 2px 0 0; font-weight: 900}

.hero-note{ margin: 12px 0 0; }

/* Media card */
.hero-media{
  padding: 18px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  display:grid;
  gap: 12px;
}
.media{
  margin:0;
  overflow:hidden;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: #ffffff;
}
.media img{
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* mini контакты */
.contact-mini{
  display:flex; flex-wrap:wrap; gap:8px; align-items:center;
  color: var(--muted);
}
.mini-link{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  text-decoration:none;
}
.mini-link:hover{text-decoration:none; color:var(--text)}

/* Cards / grids */
.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 920px){ .grid-2{grid-template-columns: 1fr} }

.card{
  padding: 18px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}
.card h3{margin:0 0 10px; font-size: 18px}
.card p{margin:0}

.checklist{
  list-style:none;
  padding:0; margin:0;
  display:grid; gap: 10px;
}
.checklist li{
  padding-left: 28px;
  position: relative;
  color: var(--muted);
}
.checklist li::before{
  content:"✓";
  position:absolute;
  left:0; top:0;
  width:20px; height:20px;
  display:inline-flex;
  align-items:center; justify-content:center;
  border-radius: 10px;
  background: rgba(29,78,216,.10);
  border: 1px solid var(--line);
  color: color-mix(in srgb, var(--text) 85%, var(--muted));
}

/* Services grid */
.grid-4{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 1024px){ .grid-4{grid-template-columns: repeat(2, 1fr)} }
@media (max-width: 620px){ .grid-4{grid-template-columns: 1fr} }

.service{
  padding: 16px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}
.service-icon{
  width: 38px; height: 38px;
  border-radius: 14px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(29,78,216,.10);
  border: 1px solid var(--line);
  margin-bottom: 10px;
}
.service h3{margin: 0 0 8px; font-size: 16px}
.service p{margin:0}

/* Gallery */
.gallery{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 920px){ .gallery{grid-template-columns: 1fr} }
.shot{
  margin:0;
  overflow:hidden;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow);
}
.shot img{
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* ===== Icons + wide contacts ===== */
.icon {
  width: 18px;
  height: 18px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}
.icon-wrap{
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent);
  flex: 0 0 auto;
}
.icon-wrap--max{
  font-weight: 900;
  letter-spacing: .4px;
  font-size: 12px;
}

/* Contacts full width */
.contacts-card{ width:100%; }
.contacts-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom: 14px;
}
.contacts-title{ margin:0; }
.contacts-subtitle{ margin: 6px 0 0; }

.contacts-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.contacts-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}
@media (max-width: 820px){
  .contacts-grid{ grid-template-columns: 1fr; }
}
.contact-item{
  display:flex;
  gap: 12px;
  align-items:center;
  padding: 12px 12px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: #fff;
}
.contact-text .label{
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 2px;
}
.contacts-hint{ margin-top: 14px; }

/* Footer */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 26px 0 34px;
  color: var(--muted);
}
.footer-inner{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  align-items: center;
  justify-content: space-between;
}
/* Чуть строже типографика меню */
.site-nav{ gap: 6px; }
.nav-link{
  padding: 7px 10px;
  border-radius: 999px;
}

.nav-link:hover, .nav-link:focus{
  background: rgba(29,78,216,.04);
  border-color: rgba(29,78,216,.25);
}
