:root {
  --bg: #fdfdfd;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #666666;
  --accent: #4da6ff;
  --border: #e0e0e0;
  --ok: #2e8b57;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
}
/* Global image reset — добавить один раз вверху */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

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

.skip-link {
  position: absolute;
  left: -999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: #fff;
  color: #000;
  padding: .5rem;
  z-index: 1000;
}

.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(6px);
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .8rem 0;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent), var(--ok));
  color: #000;
  font-weight: 900;
  font-size: 1.6rem;
  border-radius: 8px;
  margin-right: 0.5rem;
}

.brand-name { font-size: 1.35rem !important; font-weight: 800 !important;line-height: 1.2;
  margin: 0; /* убираем нижний отступ */
}

.tagline    { font-size: 1rem !important;
            color: var(--muted);margin: 0; /* убираем верхний отступ */
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-toggle {
  display: none;
}
.menu {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}
.menu.open {
  display: flex;
  flex-direction: column;
  background: var(--card);
  position: absolute;
  right: 1rem;
  top: 60px;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: .8rem;
}

.hero {
  padding: 2.5rem 0 1.5rem; /* уменьшили отступы */
  background: radial-gradient(1000px 400px at 10% -10%, #eaf6ff, transparent);
}
.hero h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 0 0 .5rem;
}
.cta-group {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: .7rem 1rem;
  border: 1px solid var(--border);
  border-radius: .6rem;
  color: var(--text);
  text-decoration: none;
}
.btn.small {
  padding: .4rem .7rem;
  font-size: .9rem;
}
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--ok));
  color: #000;
  font-weight: 700;
  border: none;
}

.section { padding: 1.25rem 0 !important; 
}
.section.alt {
  background: #f5faff;
}

.section p {
  margin-top: 0;
}
.section p:last-child {
  margin-bottom: 0;
}
.section + .section {
  padding-top: 1.5rem;
}

.grid {
  display: grid;
  gap: 1rem;
}
.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card h4,
.price-card h4 {
  font-size: 1rem !important;      /* ~16px */
  margin: 0.35rem 0 !important;
}

/* Центровка списков */
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;             /* центрируем содержимое */
  padding: 0;
  list-style: none;
}

.pill-list li {
  background: #f7fbff;                 /* бледнее */
  border: 1px solid var(--border);     /* лёгкая рамка */
  border-radius: .6rem;
  padding: .45rem .75rem;              /* компактнее */
  font-size: .95rem;                   /* меньше */
  font-weight: 600;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.pill-list li:hover {
  background: #eaf4ff;
  border-color: var(--accent);
}  
/* Список в About */
.section.alt .pill-list {
  justify-content: center;   /* фамилии по центру */
}
.microcopy {
  color: var(--muted);
  font-size: .9rem;
}
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1rem 0;
}
.site-footer nav {
  display: flex;
  gap: 1rem;
}

.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  background: var(--card);
  border: 1px solid var(--border);
  padding: .8rem;
  border-radius: .8rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
  z-index: 200;
}
.cookie-banner.hidden {
  display: none;
}

.contact-form {
  display: grid;
  gap: .6rem;
  max-width: 520px;
}
.contact-form label {
  display: grid;
  gap: .35rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: .7rem;
  border-radius: .6rem;
  border: 1px solid var(--border);
  background: #ffffff;
  color: #1a1a1a;
}

.notice {
  margin-top: .5rem;
  font-size: .95rem;
}
.notice.success {
  color: #8be28b;
}
.notice.error {
  color: #ff9aa2;
}

.hidden {
  display: none;
}
/* Баннеры в секциях — десктоп (фиксируем форму и предел) */
.hero > .container > img,
#xero > .container > img,
#about > .container > img,
#pricing > .container > img {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 16 / 9;   /* единая форма на десктопе */
  max-height: 420px;      /* верхний предел по высоте */
  object-fit: cover;
  object-position: center;
  margin-top: 12px;
}

@media (max-width:800px) {
  .grid.three { grid-template-columns: 1fr; }
  .menu { display: none; }
  .nav-toggle { display: block; margin-left: auto; }

  /* ЕДИНЫЙ СТИЛЬ ДЛЯ КРУПНЫХ КАРТИНОК СЕКЦИЙ — МОБИЛА */
  .hero > .container > img,
  #xero > .container > img,
  #about > .container > img,
  #pricing > .container > img {
    aspect-ratio: 4 / 3;   /* на мобиле чуть выше, читается лучше */
    max-height: 320px;     /* предел по высоте на мобиле */
    object-fit: cover;
  }
} /* end media */

/* Картинки в карточках (Industries) — ровные */
.card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}
/* =======================
   Заголовки — иерархия
   ======================= */

h1 {
  font-size: clamp(2rem, 4vw, 2.5rem); /* 32–40px */
  font-weight: 700;
  margin: 0;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem); /* 28–36px */
  font-weight: 600;
  margin: 1rem 0;
}

h3 {
  font-size: clamp(1.5rem, 2.5vw, 1.75rem); /* 24–28px */
  font-weight: 600;
  margin: 1.2rem 0 .8rem;
}

h4 {
  font-size: 1.2rem; /* около 19px */
  font-weight: 600;
  margin: .6rem 0;
}
/* ===== Section headings (badge) — blue outline ===== */
main .section > .container > h3 {
  display: inline-block;
  padding: .35rem .9rem;
  margin: 1rem auto 1.2rem;
  background: #eef7ff !important;        /* бледно-голубой фон */
  border: 2px solid var(--accent) !important; /* ГОЛУБАЯ РАМКА */
  border-radius: .6rem;
  color: var(--text);
  font-size: 1.05rem !important;          /* компактный размер */
  font-weight: 700 !important;            /* поярче */
  box-shadow: 0 0 0 3px rgba(77,166,255,.08) inset; /* мягкое свечение */
}
/* === Reviews section === */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.review-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.review-text {
  margin: 0 0 8px;
  font-style: italic;
  line-height: 1.5;
}

.review-author {
  font-size: 14px;
  color: #555;
}

.reviews-cta {
  margin-top: 14px;
  font-size: 14px;
}

/* Dark mode tweak (если у тебя используется prefers-color-scheme) */
@media (prefers-color-scheme: dark) {
  .review-card { background:#111418; border-color:#222831; color:#e8eaee; }
  .review-author { color:#b8c0cc; }
}
