:root {
  --ink: #1c2630;
  --muted: #5d6c78;
  --line: #d8e2e8;
  --paper: #f7fafb;
  --white: #ffffff;
  --blue: #28679a;
  --green: #3b7b5d;
  --gold: #b77a22;
  --shadow: 0 18px 45px rgba(27, 45, 58, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

a {
  color: var(--blue);
}

img,
iframe {
  max-width: 100%;
}

table {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(360px, 2fr) minmax(230px, auto);
  gap: 20px;
  align-items: center;
  padding: 16px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  color: var(--ink);
  text-decoration: none;
}

.brand span {
  display: block;
  font-size: 22px;
  font-weight: 700;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

nav a {
  padding: 8px 10px;
  color: var(--ink);
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
}

nav a[aria-current="page"],
nav a:hover {
  background: #e5f0f6;
  color: var(--blue);
}

.header-tools {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.header-contact {
  display: grid;
  gap: 4px;
  justify-items: end;
  font-size: 14px;
}

.language-switch {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  background: #eef4f7;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.language-switch a {
  min-width: 38px;
  padding: 5px 8px;
  color: var(--ink);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.language-switch a[aria-current="true"] {
  color: var(--white);
  background: var(--blue);
}

.intro {
  min-height: 430px;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 66px clamp(20px, 7vw, 96px);
  background:
    linear-gradient(90deg, rgba(15, 32, 42, 0.84), rgba(27, 69, 92, 0.64)),
    url("/images/shapka.jpg") center top / cover no-repeat;
  color: var(--white);
}

.eyebrow {
  margin: 0;
  color: #c9e5f6;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  max-width: 850px;
  margin: 0;
  font-size: 44px;
  line-height: 1.1;
}

.lead {
  max-width: 780px;
  margin: 0;
  color: #eef6fa;
  font-size: 18px;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  color: var(--white);
  background: var(--green);
}

.button.secondary {
  color: var(--ink);
  background: var(--white);
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 24px clamp(20px, 7vw, 96px);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.service-card {
  min-height: 112px;
  padding: 18px;
  color: var(--ink);
  background: #f4f8fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}

.service-card span {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
}

.service-card small {
  color: var(--muted);
}

.content-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 28px;
  width: min(1180px, calc(100% - 40px));
  margin: 34px auto 54px;
  align-items: start;
}

.side-panel {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 10px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.side-panel strong {
  font-size: 18px;
}

.article-body {
  min-width: 0;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.article-body h2 {
  margin-top: 0;
  font-size: 24px;
}

.article-body p,
.article-body li,
.article-body span,
.article-body div {
  font-size: 16px !important;
  line-height: 1.65 !important;
}

.article-body table {
  width: auto !important;
  overflow: auto;
}

.seo-expansion {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.seo-expansion h2 {
  margin: 26px 0 12px;
}

.seo-expansion h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0;
}

.seo-grid > div {
  padding: 18px;
  background: #f4f8fa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  padding: 14px 16px;
  background: #f8fbfc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-list p {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 7vw, 96px);
  color: var(--white);
  background: #1d3444;
}

@media (max-width: 900px) {
  .site-header {
    position: static;
    grid-template-columns: 1fr;
  }

  .header-tools,
  .header-contact {
    justify-items: start;
  }

  h1 {
    font-size: 34px;
  }

  .service-strip,
  .content-shell,
  .seo-grid {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }
}

@media (max-width: 560px) {
  .intro {
    padding: 46px 18px;
  }

  h1 {
    font-size: 28px;
  }

  .article-body {
    padding: 18px;
  }

  .site-footer {
    display: grid;
  }
}
