:root {
  --green: #1f8b49;
  --green-dark: #176c39;
  --green-soft: #e8f5ec;
  --lime: #8cc63f;
  --yellow: #ffd21f;
  --yellow-soft: #fff6c7;
  --text: #333333;
  --muted: #777777;
  --line: #e7ece6;
  --light: #f7faf4;
  --white: #ffffff;
  --shadow: 0 16px 46px rgba(28, 73, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  background:
    linear-gradient(90deg, rgba(31, 139, 73, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(31, 139, 73, 0.03) 1px, transparent 1px),
    #fbfcf8;
  background-size: 34px 34px;
}

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  color: var(--green-dark);
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1170px, calc(100% - 32px));
  margin: 0 auto;
}

.top-line {
  color: #f7f7f7;
  background: linear-gradient(90deg, #243328 0%, #33412d 100%);
  font-size: 13px;
}

.top-line__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 42px;
}

.top-phone {
  color: var(--yellow);
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(14px);
}

.header-main {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 84px;
}

.logo img {
  width: 188px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.main-nav a {
  color: #333333;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 14px;
  border-radius: 4px;
  text-transform: uppercase;
}

.main-nav a:hover {
  color: var(--green);
  background: var(--green-soft);
}

.header-button,
.message-form button,
.cta-strip a,
.hero-primary,
.hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 12px 22px;
  color: #222222;
  font-weight: 700;
  background: var(--yellow);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-button:hover,
.message-form button:hover,
.cta-strip a:hover,
.hero-primary:hover,
.hero-secondary:hover {
  color: #222222;
  background: #f0c200;
  transform: translateY(-1px);
}

.page-title {
  position: relative;
  overflow: hidden;
  padding: 34px 0 46px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #f4faef 0%, #ffffff 58%, #eef8e4 100%);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: #c3c3c3;
}

h1 {
  max-width: 900px;
  margin: 0;
  color: #222222;
  font-size: 42px;
  font-weight: 500;
  line-height: 1.25;
}

h2 {
  margin: 34px 0 16px;
  color: #222222;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
}

h3,
h4 {
  margin: 18px 0 8px;
  color: #222222;
  line-height: 1.35;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 36px;
  padding: 46px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.74fr);
  gap: 44px;
  align-items: center;
}

.hero-copy p {
  max-width: 670px;
  margin: 20px 0 0;
  color: #4d5a4d;
  font-size: 18px;
  line-height: 1.58;
}

.hero-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 12px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
  background: var(--green-soft);
  border: 1px solid #cfe8d5;
  border-radius: 4px;
  text-transform: uppercase;
}

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

.hero-secondary {
  color: var(--green-dark);
  background: var(--white);
  border: 1px solid #cfe8d5;
}

.hero-secondary:hover {
  color: var(--green-dark);
  background: var(--green-soft);
}

.hero-media {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.55fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  min-height: 390px;
  padding: 12px;
  background:
    linear-gradient(135deg, #ffffff 0%, #f5fbf0 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 4px;
}

.hero-photo {
  overflow: hidden;
  border-radius: 4px;
  background: var(--green-soft);
}

.hero-photo--main {
  grid-row: 1 / -1;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.hero-media:hover .hero-photo img {
  transform: scale(1.035);
}

.hero-badge {
  position: absolute;
  left: 30px;
  bottom: 30px;
  display: grid;
  min-width: 142px;
  padding: 14px 16px;
  color: #223126;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 4px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.hero-badge strong {
  color: var(--green-dark);
  font-size: 26px;
  line-height: 1.1;
}

.hero-badge span {
  color: #5c665d;
  font-size: 13px;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: -28px;
  position: relative;
  z-index: 2;
}

.feature-item {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature-item span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.feature-item h2 {
  margin: 0 0 8px;
  font-size: 19px;
}

.feature-item p {
  margin: 0;
  color: #607060;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.metric-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  background: #273329;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(39, 51, 41, 0.14);
}

.metric-card strong {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #273329;
  background: var(--yellow);
  border-radius: 4px;
  font-size: 18px;
}

.metric-card span {
  color: #eef5ec;
  line-height: 1.45;
}

.article {
  min-width: 0;
}

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

.article-share button {
  min-width: 36px;
  min-height: 32px;
  color: var(--white);
  font-weight: 700;
  background: var(--green);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.article-share button:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.article-image {
  display: block;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--light);
}

.article-image img {
  width: 100%;
}

.article-content {
  max-width: 820px;
}

.article-content p {
  margin: 0 0 19px;
}

.article-content .lead {
  padding: 20px 22px;
  color: #2d422f;
  font-size: 18px;
  line-height: 1.62;
  background: var(--green-soft);
  border-left: 4px solid var(--green);
  border-radius: 4px;
}

.article-content ul {
  padding-left: 22px;
  margin: 0 0 24px;
}

.article-content li {
  margin-bottom: 14px;
}

.article-content strong {
  color: #222222;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 24px;
}

.info-card {
  padding: 18px;
  background: #fbfdf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.info-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 16px;
}

.info-card p {
  margin: 0;
  color: #566356;
  font-size: 14px;
}

.source-list {
  padding: 20px 20px 8px 38px;
  background: #fffdf0;
  border: 1px solid #f3e7a4;
  border-radius: 8px;
}

.protection-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 24px;
}

.protection-grid div {
  min-width: 0;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf4 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.protection-grid span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  color: var(--white);
  font-weight: 700;
  background: var(--green);
  border-radius: 4px;
}

.protection-grid strong {
  display: block;
  margin-bottom: 8px;
  color: #223126;
}

.protection-grid p {
  margin: 0;
  color: #5d6b5e;
  font-size: 13px;
  line-height: 1.48;
}

.cta-strip {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  margin: 42px 0;
  padding: 32px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(31, 139, 73, 0.96) 0%, rgba(23, 108, 57, 0.98) 100%),
    url("../img/article-hero.png") center / cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.cta-strip h2,
.cta-strip p {
  color: var(--white);
  margin-top: 0;
}

.message-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.message-form label {
  display: grid;
  gap: 6px;
  color: #ecf7ef;
  font-size: 13px;
}

.message-form label:nth-child(3),
.message-form .form-note {
  grid-column: 1 / -1;
}

.message-form input,
.message-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 11px 12px;
  color: #222222;
  font: inherit;
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.04);
}

.message-form input:focus,
.message-form textarea:focus {
  outline: 3px solid rgba(255, 210, 31, 0.42);
  border-color: var(--yellow);
}

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

.form-note {
  min-height: 22px;
  margin: 0;
  color: #fff5b8;
}

.use-flow {
  margin: 44px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.section-heading span {
  margin-bottom: 18px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.section-heading h2 {
  margin-top: 0;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.flow-grid article {
  position: relative;
  min-height: 178px;
  padding: 18px;
  overflow: hidden;
  color: #233126;
  background: linear-gradient(180deg, #fbfdf9 0%, #eef7ec 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.flow-grid article::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 6px;
  background: var(--yellow);
  border-radius: 4px;
}

.flow-grid span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--white);
  font-weight: 700;
  background: var(--green-dark);
  border-radius: 4px;
}

.flow-grid h3 {
  margin-top: 18px;
  font-size: 17px;
}

.flow-grid p {
  margin: 0;
  color: #5d6b5e;
  font-size: 14px;
}

.related {
  margin-top: 42px;
}

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

.related article {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(31, 139, 73, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.related img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.related h3 {
  min-height: 76px;
  margin: 16px 16px 8px;
  font-size: 16px;
  font-weight: 500;
}

.related time {
  display: block;
  margin: 0 16px 18px;
  color: var(--muted);
  font-size: 13px;
}

.sidebar {
  display: grid;
  align-content: start;
  gap: 22px;
  position: sticky;
  top: 150px;
}

.side-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(31, 139, 73, 0.07);
}

.side-card h2 {
  margin-top: 0;
  font-size: 20px;
}

.side-card a {
  display: block;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.side-card.green {
  color: var(--white);
  background: var(--green);
  border: 0;
  box-shadow: var(--shadow);
}

.side-card.green h2,
.side-card.green a,
.side-card.green p {
  color: var(--white);
}

.contacts {
  padding: 56px 0;
  background:
    linear-gradient(180deg, #f7faf4 0%, #eef7ec 100%);
}

.contacts h2,
.legal h2 {
  margin-top: 0;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.contact-panel {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(31, 139, 73, 0.07);
}

.panel-label {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 6px 10px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  background: var(--green-soft);
  border-radius: 4px;
  text-transform: uppercase;
}

.contact-panel ol {
  padding-left: 20px;
}

.scheme {
  width: 100%;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.legal {
  padding: 52px 0;
  background: var(--white);
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
}

.legal-grid p {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.footer {
  color: #dfe7de;
  background: linear-gradient(90deg, #263126 0%, #333b2b 100%);
}

.footer__inner {
  display: grid;
  grid-template-columns: 190px 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 34px 0;
}

.footer img {
  width: 170px;
  padding: 10px;
  background: var(--white);
  border-radius: 8px;
}

.footer a {
  display: block;
  color: var(--yellow);
  font-weight: 700;
}

.footer span {
  display: block;
}

.cookies {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: 520px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.18);
}

.cookies.is-hidden {
  display: none;
}

.cookies__body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}

.cookies p {
  margin: 0;
  font-size: 13px;
}

.cookies__btn {
  display: block;
  width: 100%;
  margin: 5px 0;
  padding: 9px 14px;
  color: var(--white);
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 4px;
  cursor: pointer;
}

.cookies__btn--light {
  color: var(--green);
  background: var(--white);
}

@media (max-width: 980px) {
  .top-line__inner,
  .header-main,
  .main-nav {
    flex-wrap: wrap;
  }

  .header-main {
    padding: 18px 0;
  }

  .main-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .main-nav a {
    padding: 10px 8px;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .metrics,
  .feature-strip,
  .protection-grid,
  .flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-media {
    min-height: 320px;
  }

  .sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: static;
  }

  .cta-strip,
  .contacts-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 14px;
  }

  .container {
    width: min(100% - 22px, 1170px);
  }

  .top-line__inner {
    align-items: flex-start;
    padding: 10px 0;
  }

  .logo img {
    width: 156px;
  }

  .header-button {
    width: 100%;
  }

  h1 {
    font-size: 27px;
  }

  h2 {
    font-size: 21px;
  }

  .layout {
    padding-top: 30px;
  }

  .hero-grid,
  .metrics,
  .feature-strip,
  .info-cards,
  .protection-grid,
  .flow-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .hero-media {
    grid-template-columns: 1fr 1fr;
    min-height: 280px;
  }

  .hero-photo--main {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .hero-badge {
    left: 22px;
    bottom: 22px;
  }

  .metric-card {
    grid-template-columns: 48px 1fr;
  }

  .metric-card strong {
    width: 48px;
    height: 48px;
  }

  .article-share {
    flex-wrap: wrap;
  }

  .message-form,
  .related-grid,
  .sidebar,
  .footer__inner,
  .cookies__body {
    grid-template-columns: 1fr;
  }

  .cta-strip,
  .contact-panel {
    padding: 22px;
  }

  .related h3 {
    min-height: 0;
  }

  .cookies {
    right: 11px;
    bottom: 11px;
    left: 11px;
    max-width: none;
  }
}
