@font-face {
  font-family: "Open Sans";
  src: url("opensans.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("opensansbold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #125b00;
  --green-dark: #0b3f00;
  --green-soft: #e8f3e3;
  --yellow: #ffd52e;
  --gray: #f4f4f4;
  --line: #e5e5e5;
  --text: #282828;
  --muted: #777;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

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

.top-line {
  background: var(--green);
  color: #fff;
  font-size: 13px;
}

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

.top-links,
.personal-links,
.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.top-links a,
.personal-links a {
  opacity: .96;
}

.top-links a:hover,
.personal-links a:hover,
.footer-links a:hover,
.breadcrumbs a:hover {
  text-decoration: underline;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.search {
  width: 214px;
  height: 30px;
  position: relative;
}

.search input {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  padding: 0 36px 0 12px;
  background: #fff;
  color: #333;
}

.search button {
  position: absolute;
  right: 0;
  top: 0;
  width: 34px;
  height: 30px;
  border: 0;
  background: var(--yellow);
  cursor: pointer;
}

.search button::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid var(--green);
  border-radius: 50%;
  left: 10px;
  top: 7px;
}

.search button::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  background: var(--green);
  transform: rotate(45deg);
  left: 20px;
  top: 19px;
}

.logo-line {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.logo-grid {
  min-height: 105px;
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: center;
  gap: 34px;
}

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

.header-banner {
  justify-self: end;
  width: min(760px, 100%);
}

.header-banner img {
  width: 100%;
  max-height: 90px;
  object-fit: cover;
}

.nav-line {
  background: var(--yellow);
  border-bottom: 1px solid #e1b900;
}

.nav-scroll {
  display: flex;
  align-items: center;
  min-height: 47px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.nav-scroll a {
  flex: 0 0 auto;
  padding: 14px 12px;
  font-size: 14px;
  line-height: 1.2;
  color: #1e1e1e;
}

.nav-scroll a:hover,
.nav-scroll a.active {
  background: rgba(18, 91, 0, .11);
  color: var(--green-dark);
}

.breadcrumbs {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 18px 0 12px;
  color: #8a8a8a;
  font-size: 13px;
}

.breadcrumbs span::before {
  content: "/";
  margin-right: 10px;
  color: #c0c0c0;
}

.article-screen {
  padding-bottom: 48px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 770px) 350px;
  align-items: start;
  gap: 60px;
}

.article-card {
  min-width: 0;
}

.article-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

h1 {
  margin: 0 0 18px;
  color: #222;
  font-size: 36px;
  line-height: 1.2;
  font-weight: 700;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.meta-left,
.activity {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.author {
  color: #333;
  font-weight: 700;
}

.date strong {
  display: inline-block;
  color: #555;
  font-weight: 700;
}

.category {
  display: inline-block;
  padding: 5px 11px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

.views,
.comments {
  position: relative;
  padding-left: 22px;
}

.views::before,
.comments::before {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
}

.views::before {
  content: "◉";
}

.comments::before {
  content: "▢";
}

.toc {
  margin: 24px 0 28px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: #fbfbfb;
}

.toc h2 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.3;
}

.toc ul {
  margin: 0;
  padding-left: 20px;
}

.toc li {
  margin: 4px 0;
  color: var(--green);
}

.toc a {
  color: #333;
  border-bottom: 1px dotted #aaa;
}

.main-text {
  font-size: 16px;
  color: #333;
}

.main-text p {
  margin: 0 0 18px;
}

.main-text h2 {
  margin: 34px 0 16px;
  color: #202020;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
}

.main-text b {
  color: #111;
}

.alter-quote {
  margin: 0 0 20px;
  padding: 22px 26px;
  background: var(--green-soft);
  border-left: 5px solid var(--green);
  color: #1e3a17;
  font-size: 18px;
  line-height: 1.55;
}

.article-image {
  margin: 24px 0 28px;
}

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

.with-clip {
  margin: 18px 0 26px;
  padding: 20px 24px;
  background: #f7f7f7;
  border-left: 5px solid var(--yellow);
  color: #333;
  font-style: italic;
}

.wide-border {
  margin: 18px 0 24px;
  padding: 18px 22px;
  border-left: 7px solid var(--green);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  color: #333;
}

.main-text ul,
.main-text ol {
  margin: 0 0 20px;
  padding-left: 28px;
}

.main-text li {
  margin: 8px 0;
}

.bottom-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.rubric-title {
  color: #777;
}

.side-column {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 22px;
}

.lead-panel,
.read-more {
  border: 1px solid var(--line);
  background: #fff;
  padding: 24px;
}

.lead-panel {
  border-top: 5px solid var(--green);
}

.lead-panel h2,
.read-more h2 {
  margin: 0 0 10px;
  color: #222;
  font-size: 22px;
  line-height: 1.25;
}

.lead-panel p {
  margin: 0 0 18px;
  color: #5a5a5a;
}

.lead-form {
  display: grid;
  gap: 12px;
}

.lead-form label {
  display: grid;
  gap: 5px;
  color: #555;
  font-size: 13px;
}

.lead-form input,
.subscribe-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d5d5d5;
  border-radius: 0;
  padding: 0 12px;
  background: #fff;
  color: #333;
}

.lead-form button,
.subscribe-form button,
.cookie-line button {
  min-height: 42px;
  border: none;
  border-radius: 0;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.lead-form button:hover,
.subscribe-form button:hover,
.cookie-line button:hover {
  background: var(--green-dark);
}

.lead-form small {
  color: #777;
  font-size: 12px;
  line-height: 1.45;
}

.read-more {
  display: grid;
  gap: 12px;
  background: #f9f9f9;
}

.read-more a {
  color: var(--green);
  border-bottom: 1px solid #cddfca;
  padding-bottom: 10px;
}

.mail-subscribe {
  background: var(--green);
  color: #fff;
  padding: 28px 0;
}

.subscribe-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: center;
}

.mail-subscribe h2 {
  margin: 0;
  color: #fff;
  font-size: 28px;
  line-height: 1.18;
}

.subscribe-form {
  display: grid;
  grid-template-columns: 1fr 1fr 170px;
  gap: 12px;
}

.subscribe-form button {
  background: var(--yellow);
  color: #1b1b1b;
}

.subscribe-form button:hover {
  background: #e9c200;
}

.agreement {
  grid-column: 1 / -1;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.4;
}

.agreement input {
  width: auto;
  min-height: auto;
  margin-top: 3px;
}

.agreement a {
  text-decoration: underline;
}

.footer {
  color: #fff;
}

.footer-top {
  background: #2b2b2b;
}

.footer-grid {
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.contacts-data {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.contacts-data .phone {
  font-weight: 700;
}

.footer-bottom {
  background: #1f1f1f;
  color: #bfbfbf;
  padding: 22px 0;
  font-size: 13px;
  line-height: 1.55;
}

.legal p {
  margin: 0 0 10px;
}

.legal p:last-child {
  margin-bottom: 0;
}

.legal a {
  color: #fff;
  text-decoration: underline;
}

.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 96px;
  width: 42px;
  height: 42px;
  border: 0;
  background: var(--yellow);
  color: var(--green);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.cookie-line {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 18px;
  align-items: center;
  padding: 14px max(16px, calc((100vw - 1180px) / 2));
  background: rgba(255, 255, 255, .98);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(0, 0, 0, .08);
}

.cookie-line.hidden {
  display: none;
}

.cookie-text {
  color: #333;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 1040px) {
  .top-grid,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .top-actions {
    width: 100%;
    justify-content: space-between;
  }

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

  .side-column {
    position: static;
  }

  .lead-panel,
  .read-more {
    padding: 20px;
  }
}

@media (max-width: 760px) {
  .content {
    width: min(100% - 22px, 1180px);
  }

  .top-links {
    gap: 10px 14px;
  }

  .top-actions {
    display: grid;
    gap: 10px;
  }

  .search {
    width: 100%;
  }

  .logo-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 0;
  }

  .logo img {
    width: 162px;
  }

  .header-banner {
    justify-self: stretch;
  }

  .nav-scroll a {
    padding: 13px 10px;
  }

  h1 {
    font-size: 29px;
  }

  .meta-row,
  .meta-left {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .main-text {
    font-size: 15px;
  }

  .main-text h2 {
    font-size: 24px;
  }

  .alter-quote,
  .with-clip,
  .wide-border,
  .toc {
    padding: 16px;
  }

  .subscribe-grid,
  .subscribe-form {
    grid-template-columns: 1fr;
  }

  .contacts-data,
  .footer-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .cookie-line {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .scroll-top {
    right: 12px;
    bottom: 130px;
  }
}
