/* ============================================================
   KALINA GROUP — Фирменный стиль «Гжель»
   Палитра: Кобальт #1A3A8F | Синь #4A6FC4 | Лазурь #7A9FE0
            Туман #B0C4E8 | Фарфор #E6EEF8 | Белый #FFFFFF
            Ночь #0D2166 | Графит #5F5E5A
   Шрифт: Inter (Google Fonts)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cobalt:   #1A3A8F;
  --blue:     #4A6FC4;
  --sky:      #7A9FE0;
  --mist:     #B0C4E8;
  --porcelain:#E6EEF8;
  --bg:       #F7F9FC;
  --white:    #FFFFFF;
  --night:    #0D2166;
  --graphite: #5F5E5A;
  --border:   #DDE3F0;
  --text:     #1A1A2E;
  --text-mid: #5F5E5A;
  --text-dim: #888780;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-sm: 0 1px 3px rgba(26,58,143,.08);
  --shadow-md: 0 4px 16px rgba(26,58,143,.12);

  --nav-h: 64px;
  --max-w: 1120px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Typography ── */
h1 { font-size: clamp(28px, 4vw, 48px); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: clamp(22px, 3vw, 34px); font-weight: 700; line-height: 1.2; }
h3 { font-size: 18px; font-weight: 600; line-height: 1.3; }
h4 { font-size: 14px; font-weight: 600; }

.section-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--sky);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  color: var(--cobalt);
  margin-bottom: 32px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s ease;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--cobalt);
  color: var(--white);
}
.btn-primary:hover { background: #142d72; }

.btn-outline {
  background: transparent;
  color: var(--cobalt);
  border: 1.5px solid var(--cobalt);
}
.btn-outline:hover { background: var(--porcelain); }

.btn-white {
  background: var(--white);
  color: var(--cobalt);
}
.btn-white:hover { background: var(--porcelain); }

.btn-white-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.5);
}
.btn-white-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 0.5px solid var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav__logo-wordmark { display: flex; flex-direction: column; }
.nav__logo-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--cobalt);
  letter-spacing: -0.03em;
  line-height: 1;
}
.nav__logo-sub {
  font-size: 9px;
  font-weight: 300;
  color: var(--sky);
  letter-spacing: 5px;
  margin-top: 1px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a {
  font-size: 13px;
  color: var(--text-mid);
  font-weight: 500;
  transition: color .15s;
}
.nav__links a:hover,
.nav__links a.active { color: var(--cobalt); }

.nav__cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav__tel {
  font-size: 13px;
  font-weight: 600;
  color: var(--cobalt);
}

/* Hamburger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cobalt);
  border-radius: 2px;
  transition: all .2s;
}

.nav__mobile {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--white);
  z-index: 99;
  padding: 24px 32px;
  flex-direction: column;
  gap: 4px;
  border-top: 0.5px solid var(--border);
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-size: 17px;
  font-weight: 600;
  color: var(--cobalt);
  padding: 12px 0;
  border-bottom: 0.5px solid var(--border);
}
.nav__mobile .btn { margin-top: 16px; width: 100%; justify-content: center; }

/* ── Wave divider ── */
.wave {
  width: 100%;
  height: 10px;
  display: block;
}

/* ── Logo SVG (gzhel hexagon) ── */
.logo-svg { width: 40px; height: 40px; flex-shrink: 0; }

/* ── Page Hero ── */
.page-hero {
  background: var(--cobalt);
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 300px;
  height: 300px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56'%3E%3Cpolygon points='28,4 50,16 50,40 28,52 6,40 6,16' fill='none' stroke='white' stroke-width='1.5'/%3E%3Ccircle cx='28' cy='4' r='4' fill='white'/%3E%3Ccircle cx='50' cy='16' r='4' fill='white'/%3E%3Ccircle cx='50' cy='40' r='4' fill='white'/%3E%3Ccircle cx='28' cy='52' r='4' fill='white'/%3E%3Ccircle cx='6' cy='40' r='4' fill='white'/%3E%3Ccircle cx='6' cy='16' r='4' fill='white'/%3E%3Ccircle cx='28' cy='28' r='6' fill='white'/%3E%3C/svg%3E") no-repeat center;
  opacity: .06;
}

.page-hero .breadcrumb {
  font-size: 12px;
  color: var(--sky);
  margin-bottom: 12px;
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero .lead {
  font-size: 15px;
  color: var(--mist);
  max-width: 560px;
  line-height: 1.7;
}

/* ── Cards ── */
.card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .2s;
}
.card:hover { box-shadow: var(--shadow-md); }

.card__head {
  background: var(--cobalt);
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.card__icon {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
  font-size: 18px;
}

.card__head-title { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 3px; }
.card__head-sub   { font-size: 11px; color: var(--mist); }

.card__body { padding: 18px 22px; }

.card__list { display: flex; flex-direction: column; gap: 10px; }
.card__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.5;
}
.card__list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.card__foot {
  padding: 12px 22px;
  border-top: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card__price { font-size: 12px; color: var(--sky); font-weight: 500; }
.card__link  { font-size: 12px; color: var(--cobalt); font-weight: 600; }
.card__link:hover { text-decoration: underline; }

/* ── Partner cards ── */
.partner-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  text-align: center;
  transition: box-shadow .2s;
}
.partner-card:hover { box-shadow: var(--shadow-md); }

.partner-card__icon {
  width: 52px;
  height: 52px;
  background: var(--porcelain);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 24px;
  color: var(--cobalt);
}

.partner-card__name  { font-size: 14px; font-weight: 700; color: var(--cobalt); margin-bottom: 4px; }
.partner-card__level { font-size: 10px; color: var(--sky); letter-spacing: 1px; font-weight: 600; margin-bottom: 10px; }
.partner-card__desc  { font-size: 11px; color: var(--text-dim); line-height: 1.6; }

/* ── Contact info blocks ── */
.contact-block {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-block__icon {
  width: 38px;
  height: 38px;
  background: var(--porcelain);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  color: var(--cobalt);
}

.contact-block__title { font-size: 13px; font-weight: 600; color: var(--cobalt); margin-bottom: 4px; }
.contact-block__text  { font-size: 12px; color: var(--text-mid); line-height: 1.6; }
.contact-block__text a { color: var(--blue); }
.contact-block__text a:hover { text-decoration: underline; }

/* ── Form ── */
.form { display: flex; flex-direction: column; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 600; color: var(--text-mid); }

.field input,
.field textarea,
.field select {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color .15s;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(74,111,196,.12);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--text-dim); }

/* ── Cert cards (certifications) ── */
.cert-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.cert-card__icon {
  width: 40px;
  height: 40px;
  background: var(--cobalt);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
  font-size: 18px;
}

.cert-card__title { font-size: 13px; font-weight: 600; color: var(--cobalt); margin-bottom: 3px; }
.cert-card__sub   { font-size: 11px; color: var(--sky); }

/* ── Process steps ── */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--border);
}

.step { padding: 0 12px; text-align: center; position: relative; }

.step__num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--porcelain);
  border: 2px solid var(--mist);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--cobalt);
  margin: 0 auto 12px;
  position: relative;
  z-index: 1;
  transition: all .2s;
}

.step__num.done {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: var(--white);
}

.step__label { font-size: 12px; font-weight: 600; color: var(--cobalt); margin-bottom: 4px; }
.step__desc  { font-size: 11px; color: var(--text-dim); line-height: 1.5; }

/* ── Stats bar ── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--cobalt);
}

.stat {
  padding: 28px 20px;
  text-align: center;
  border-right: 0.5px solid rgba(255,255,255,.12);
}
.stat:last-child { border-right: none; }

.stat__num   { font-size: 32px; font-weight: 800; color: var(--white); line-height: 1; }
.stat__label { font-size: 11px; color: var(--sky); margin-top: 6px; letter-spacing: 0.5px; }

/* ── CTA banner ── */
.cta-banner {
  background: var(--cobalt);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-banner__title { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.cta-banner__sub   { font-size: 13px; color: var(--mist); }

/* ── Footer ── */
.footer {
  background: var(--night);
  color: var(--white);
  padding: 48px 0 24px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer__brand p {
  font-size: 13px;
  color: var(--sky);
  margin-top: 14px;
  line-height: 1.7;
  max-width: 240px;
}

.footer__col-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--mist);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col ul a {
  font-size: 13px;
  color: var(--sky);
  transition: color .15s;
}
.footer__col ul a:hover { color: var(--white); }

.footer__contacts { display: flex; flex-direction: column; gap: 8px; }
.footer__contacts li {
  font-size: 13px;
  color: var(--sky);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.footer__contacts li span:first-child {
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}

.footer__bottom {
  padding-top: 24px;
  border-top: 0.5px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--blue);
}

.footer__wave {
  width: 100%;
  height: 8px;
  display: block;
  margin-bottom: 0;
}

/* ── Sections ── */
.section { padding: 72px 0; }
.section--light { background: var(--white); }
.section--bg    { background: var(--bg); }

/* ── Grid helpers ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ── Tabler icons (loaded via CDN in HTML) ── */
.ti { font-size: inherit; }

/* ── Gzhel ornament separator ── */
.gzhel-wave {
  display: block;
  width: 100%;
  height: 10px;
  background: none;
}

/* ── Reqs block ── */
.reqs-block {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}
.reqs-block h4 { color: var(--cobalt); margin-bottom: 10px; font-size: 13px; }
.reqs-block dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; }
.reqs-block dt { font-size: 11px; color: var(--text-dim); padding: 1px 0; }
.reqs-block dd { font-size: 11px; color: var(--text-mid); padding: 1px 0; }

/* ── Notification / alert ── */
.alert {
  border-left: 3px solid var(--blue);
  background: var(--porcelain);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 14px 18px;
  font-size: 13px;
  color: var(--cobalt);
  line-height: 1.6;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .step { display: flex; align-items: flex-start; gap: 16px; text-align: left; padding: 12px 0; border-bottom: 0.5px solid var(--border); }
  .step__num { margin: 0; flex-shrink: 0; }
}

@media (max-width: 768px) {
  :root { --nav-h: 56px; }
  .container { padding: 0 20px; }
  .nav__links, .nav__cta .btn, .nav__tel { display: none; }
  .nav__burger { display: flex; }
  .section { padding: 48px 0; }
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .stat { border-right: 0.5px solid rgba(255,255,255,.12); border-bottom: 0.5px solid rgba(255,255,255,.12); }
  .stat:nth-child(2), .stat:nth-child(4) { border-right: none; }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: none; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
  .page-hero { padding: 40px 0 32px; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
