:root {
  --blue: #12315d;
  --accent: #4d7fb3;
  --graphite: #2f3a45;
  --muted: #657181;
  --line: #d7e0eb;
  --bg: #f5f8fc;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--graphite);
  background: #fff;
  line-height: 1.55;
}

a {
  text-decoration: none;
  color: inherit;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.logo img {
  width: 420px;
  max-width: 42vw;
  height: auto;
  object-fit: contain;
  display: block;
}

.nav {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  flex-shrink: 0;
}

.nav a:hover,
.nav a.active {
  color: var(--blue);
}

.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 13px 20px;
  border-radius: 6px;
  font-weight: 700;
  border: 1px solid var(--blue);
  cursor: pointer;
  font: inherit;
  text-align: center;
}

.btn:hover {
  opacity: .92;
}

.btn:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.btn.secondary {
  background: #fff;
  color: var(--blue);
  border: 1px solid var(--blue);
}

.hero {
  background: linear-gradient(135deg, #fff 0%, #f3f7fc 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 44px;
  align-items: center;
  padding: 76px 0;
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
}

.hero h1,
.page-hero h1 {
  font-size: 46px;
  line-height: 1.12;
  color: var(--blue);
  margin: 14px 0 18px;
}

.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 760px;
}

.actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-card {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(18, 49, 93, .10);
  border-radius: 12px;
  padding: 28px;
}

.hero-card h3 {
  margin-top: 0;
  color: var(--blue);
}

.hero-card ul {
  padding-left: 20px;
  margin-bottom: 0;
}

section {
  padding: 70px 0;
}

.page-hero {
  padding: 72px 0 54px;
  background: linear-gradient(135deg, #fff 0%, #f3f7fc 100%);
  border-bottom: 1px solid var(--line);
}

.section-title {
  font-size: 34px;
  line-height: 1.2;
  color: var(--blue);
  margin: 0 0 14px;
}

.section-sub {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  background: #fff;
}

.card h3 {
  margin: 0 0 12px;
  color: var(--blue);
}

.card ul {
  padding-left: 20px;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.bg {
  background: var(--bg);
}

.list {
  display: grid;
  gap: 14px;
}

.item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex: 0 0 22px;
  margin-top: 2px;
}

.process {
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.step:before {
  counter-increment: step;
  content: counter(step);
  background: var(--blue);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.price {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.price th {
  background: var(--blue);
  color: #fff;
  text-align: left;
  padding: 14px;
}

.price td {
  padding: 14px;
  border-top: 1px solid var(--line);
}

.note {
  font-size: 14px;
  color: var(--muted);
  margin-top: 14px;
}

.formbox {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 12px;
  font: inherit;
  background: #fff;
  color: var(--graphite);
}

.form textarea {
  min-height: 110px;
  resize: vertical;
}

.consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.consent input {
  width: auto;
  margin: 4px 0 0 0;
  padding: 0;
  flex: 0 0 auto;
}

.consent a,
.text-page a {
  color: var(--blue);
  text-decoration: underline;
}

.status {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 12px;
}

.text-page {
  max-width: 920px;
}

.text-page h2 {
  color: var(--blue);
  margin-top: 34px;
}

.text-page p,
.text-page li {
  color: var(--graphite);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.tag {
  display: inline-block;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.article-link {
  color: var(--blue);
  font-weight: 700;
}

.article-link:hover {
  text-decoration: underline;
}

.news-strip {
  border-left: 4px solid var(--accent);
  padding: 18px 20px;
  background: #fff;
  border-radius: 10px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.news-strip + .news-strip {
  margin-top: 14px;
}

.footer {
  background: #0f274a;
  color: #fff;
  padding: 36px 0;
}

.footer p {
  color: #cbd5e1;
  margin: 6px 0;
}

.small {
  font-size: 13px;
  color: #8290a3;
}

@media (max-width: 1120px) {
  .logo img {
    width: 350px;
    max-width: 36vw;
  }

  .nav {
    gap: 12px;
    font-size: 12px;
  }
}

@media (max-width: 900px) {
  .wrap {
    padding-left: 28px;
    padding-right: 28px;
  }

  .hero-grid,
  .grid-3,
  .grid-2,
  .formbox {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding: 54px 0 58px;
    gap: 28px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 32px;
    line-height: 1.18;
    margin-top: 16px;
    margin-bottom: 18px;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .eyebrow {
    font-size: 11px;
    line-height: 1.55;
    letter-spacing: .06em;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .lead {
    font-size: 17px;
    line-height: 1.6;
    max-width: 100%;
  }

  .actions {
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
  }

  .actions .btn {
    width: 100%;
    text-align: center;
  }

  .nav {
    display: none;
  }

  .logo img {
    width: 280px;
    max-width: 78vw;
    height: auto;
  }

  section {
    padding: 52px 0;
  }

  .page-hero {
    padding: 54px 0 42px;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding-left: 32px;
    padding-right: 32px;
  }

  .header-inner {
    padding: 10px 0;
  }

  .logo img {
    width: 255px;
    max-width: 76vw;
    height: auto;
  }

  .hero-grid {
    padding-top: 48px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 30px;
  }

  .lead {
    font-size: 16px;
  }

  .section-title {
    font-size: 28px;
  }

  .hero-card,
  .card,
  .form {
    padding: 22px;
  }

  .price {
    font-size: 14px;
  }

  .price th,
  .price td {
    padding: 12px;
  }
}

@media (max-width: 380px) {
  .wrap {
    padding-left: 26px;
    padding-right: 26px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 28px;
  }

  .lead {
    font-size: 15px;
  }

  .logo img {
    width: 230px;
    max-width: 74vw;
    height: auto;
  }
}

/* Dynamic materials page */
.materials-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.materials-refresh {
  flex: 0 0 auto;
  padding-top: 8px;
}

.materials-controls {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 22px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: var(--bg);
  margin-bottom: 18px;
}

.searchbox label,
.categorybox span {
  display: block;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 8px;
}

.searchbox input {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  background: #fff;
  color: var(--graphite);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.filter.active,
.filter:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.materials-list {
  display: grid;
  gap: 18px;
}

.material-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(18, 49, 93, .06);
}

.material-card h3 {
  color: var(--blue);
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.25;
}

.material-card p {
  margin: 0 0 12px;
}

.material-full {
  margin-top: 14px;
  padding: 16px;
  border-left: 4px solid var(--accent);
  background: var(--bg);
  border-radius: 8px;
}

.material-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
}

button.article-link {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

@media (max-width: 900px) {
  .materials-head,
  .materials-controls {
    grid-template-columns: 1fr;
  }

  .materials-head {
    flex-direction: column;
  }

  .materials-refresh,
  .materials-refresh .btn {
    width: 100%;
  }

  .material-card h3 {
    font-size: 21px;
  }
}

/* v11: изображения в разделе «Материалы» */
.material-figure {
  margin: 16px 0 16px;
}

.material-image {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
}

.material-caption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .material-image {
    max-height: 260px;
  }
}
