/* ИП Опалев С.А. — стили в духе Templates #35 (d-e-n.info) */

:root {
  --teal: #1fa9a0;
  --teal-dark: #168a83;
  --teal-darker: #0f6d67;
  --teal-light: #e6f6f5;
  --ink: #26333b;
  --muted: #5d707a;
  --bg: #ffffff;
  --bg-soft: #f4f8f8;
  --card-shadow: 0 10px 30px rgba(23, 80, 78, 0.10);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* ---------- Шапка ---------- */
.site-header {
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 18px rgba(15, 109, 103, .25);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: .02em;
}
.logo:hover { text-decoration: none; }
.logo-badge {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #fff;
  color: var(--teal-dark);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: .85rem;
}
.main-nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  color: #eafaf9;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  transition: background .15s, color .15s;
}
.main-nav a:hover { background: rgba(255,255,255,.18); text-decoration: none; }
.main-nav a.active { background: #fff; color: var(--teal-dark); }

/* ---------- Подвал ---------- */
.site-footer {
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
  color: #eafaf9;
  margin-top: 70px;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  padding: 22px 0;
}
.site-footer .logo { font-size: 1rem; }
.footer-nav { margin-left: auto; display: flex; gap: 16px; flex-wrap: wrap; }
.footer-nav a { color: #eafaf9; font-size: .92rem; font-weight: 600; }
.footer-note { width: 100%; font-size: .8rem; opacity: .75; }

/* ---------- Hero ---------- */
.hero {
  padding: 84px 0 70px;
  background:
    radial-gradient(circle at 85% 15%, rgba(31,169,160,.12), transparent 42%),
    var(--bg);
  text-align: center;
}
.hero .tag {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: var(--teal-light);
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero p.lead {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 640px;
  margin: 0 auto 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--teal);
  color: #fff !important;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(31,169,160,.35);
  transition: transform .15s, background .15s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover { background: var(--teal-dark); text-decoration: none; transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--teal-dark) !important;
  border: 2px solid var(--teal);
  box-shadow: none;
}
.btn-outline:hover { background: var(--teal-light); }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Секции ---------- */
.section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.section-title { text-align: center; margin-bottom: 8px; }
.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 40px;
}
.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--teal);
  margin: 14px auto 0;
}

/* ---------- Карточки ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 30px 26px;
  transition: transform .18s, box-shadow .18s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(23,80,78,.16); }
.card-icon {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal-dark);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 28px; height: 28px; }
.card p { color: var(--muted); font-size: .95rem; flex: 1; }
.card-link {
  font-weight: 700;
  color: var(--teal-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
.card-link:hover { text-decoration: none; gap: 10px; }
.card-link::after { content: "→"; transition: inherit; }

/* ---------- Документы ---------- */
.doc-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
  transition: transform .15s;
}
.doc-item:hover { transform: translateX(4px); }
.doc-icon {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--teal-light);
  color: var(--teal-dark);
  display: grid;
  place-items: center;
}
.doc-icon svg { width: 24px; height: 24px; }
.doc-body { flex: 1; }
.doc-title { font-weight: 700; }
.doc-meta { color: var(--muted); font-size: .88rem; }
.doc-link {
  flex: none;
  font-weight: 700;
  color: var(--teal-dark);
  white-space: nowrap;
}

/* ---------- Списки-пункты ---------- */
.rule-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rule-list li {
  position: relative;
  padding: 4px 0 4px 34px;
  margin-bottom: 10px;
}
.rule-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--teal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 10px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---------- Две колонки ---------- */
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
  align-items: start;
}

/* ---------- CTA-полоса ---------- */
.cta-band {
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
  color: #fff;
  border-radius: calc(var(--radius) + 6px);
  padding: 44px 40px;
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  box-shadow: var(--card-shadow);
}
.cta-band h2 { margin: 0; }
.cta-band p { color: #d6f3f1; margin: 6px 0 0; }
.cta-band .btn { margin-left: auto; background: #fff; color: var(--teal-dark) !important; box-shadow: none; }
.cta-band .btn:hover { background: var(--teal-light); }

/* ---------- Контакты ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}
.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.contact-line .doc-icon { width: 42px; height: 42px; }
.contact-line b { display: block; }

/* ---------- Заголовок страницы ---------- */
.page-head {
  padding: 60px 0 36px;
  text-align: center;
}
.page-head p { color: var(--muted); max-width: 660px; margin: 0 auto; }
.page-head .tag {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: var(--teal-light);
  border-radius: 999px;
  padding: 5px 14px;
  font-weight: 700;
  margin-bottom: 14px;
}

@media (max-width: 640px) {
  .cta-band { padding: 30px 24px; }
  .cta-band .btn { margin-left: 0; }
  .doc-item { flex-wrap: wrap; }
}
