:root {
  color-scheme: light;
  --ink: #101a22;
  --ink-soft: #24313a;
  --muted: #637078;
  --line: #e1e5e3;
  --paper: #ffffff;
  --paper-soft: #f7f8f6;
  --green: #165f37;
  --green-deep: #104b2b;
  --gold: #c99938;
  --max: 780px;
  --radius: 5px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 760;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(24, 92, 54, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a,
.button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0 18px;
  font-size: 14px;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
}

.nav-links a {
  color: var(--ink-soft);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--green);
  background: #edf5ee;
  outline: none;
}

.button {
  border: 1px solid var(--green);
  color: var(--green);
  background: #ffffff;
}

.button.primary {
  background: var(--green);
  color: #ffffff;
  border-color: var(--green);
  box-shadow: 0 12px 28px rgba(24, 92, 54, 0.14);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 475px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.hero::before,
.hero::after,
.privacy-band::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  background-image:
    linear-gradient(45deg, rgba(16, 74, 43, 0.045) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(16, 74, 43, 0.045) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(201, 153, 56, 0.055) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(201, 153, 56, 0.055) 75%);
  background-position: 0 0, 0 24px, 24px -24px, -24px 0;
  background-size: 48px 48px;
  pointer-events: none;
}

.hero::before {
  top: -1px;
  left: -13px;
}

.hero::after {
  right: -24px;
  bottom: 78px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 48px));
  height: 475px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 314px 1fr;
  gap: 18px;
}

.hero-copy {
  padding-top: 121px;
  padding-left: 42px;
}

.hero-copy h1,
.page-hero h1,
.section-title,
.page-content h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  letter-spacing: 0;
}

.hero-copy h1 {
  width: 430px;
  font-size: 56px;
  line-height: 0.98;
  transform: scaleX(0.82);
  transform-origin: left center;
}

.gold-rule {
  display: grid;
  grid-template-columns: 1fr 19px 1fr;
  align-items: center;
  gap: 16px;
  width: 291px;
  margin: 24px 0 7px;
  color: var(--gold);
}

.gold-rule::before,
.gold-rule::after,
.section-rule {
  content: "";
  height: 1px;
  background: var(--gold);
}

.gold-rule-mark {
  width: 16px;
  height: 24px;
  justify-self: center;
  border-radius: 10px 10px 3px 3px;
  background: currentColor;
  position: relative;
}

.gold-rule-mark::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: -6px;
  height: 6px;
  border-radius: 6px 6px 2px 2px;
  background: currentColor;
}

.hero-copy p {
  max-width: 310px;
  margin: 0 0 28px;
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1.42;
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.hero-actions {
  width: 300px;
  flex-wrap: nowrap;
}

.hero-actions .button {
  width: 139px;
}

.hero-scene {
  align-self: start;
  justify-self: end;
  width: 408px;
  margin: 36px -4px 0 0;
}

.section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.features-section {
  padding: 58px 0 12px;
}

.section-head {
  max-width: 580px;
  margin: 0 auto 21px;
  text-align: center;
}

.section-title {
  font-size: 25px;
  line-height: 1.12;
}

.section-rule {
  display: block;
  width: 44px;
  margin: 12px auto 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, 130px);
  justify-content: space-between;
  gap: 18px;
}

.feature-shot {
  width: 130px;
  margin: 0 0 22px;
}

.feature h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 9px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.1;
}

.feature h3 img {
  width: 28px;
  max-height: 28px;
  flex: 0 0 auto;
}

.feature p,
.check-list,
.footer-grid p,
.page-hero p,
.page-content p,
.plain-list,
.closing-line {
  color: var(--ink-soft);
}

.feature p {
  margin: 0;
  font-size: 14px;
  line-height: 1.48;
}

.privacy-band,
.ads-band {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.privacy-band::after {
  right: 14px;
  bottom: 0;
  width: 222px;
  height: 222px;
}

.split {
  min-height: 321px;
  display: grid;
  grid-template-columns: 362px 346px;
  align-items: center;
  gap: 52px;
}

.privacy-copy {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 30px;
  align-items: start;
}

.privacy-copy .section-icon {
  margin-top: 27px;
}

.section-icon {
  justify-self: center;
}

.privacy-copy .section-title {
  width: 300px;
  font-size: 30px;
  transform: scaleX(0.82);
  transform-origin: left center;
}

.privacy-copy .section-rule,
.ads-copy .section-rule {
  margin: 10px 0 0;
}

.section-intro {
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 17px 0 0;
  font-size: 14px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin: 9px 0;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--green);
  border-radius: 50%;
  background:
    linear-gradient(135deg, transparent 0 48%, var(--green) 49% 58%, transparent 59%) 4px 7px / 8px 7px no-repeat;
}

.closing-line {
  margin: 18px 0 0;
  font-size: 15px;
}

.privacy-scene {
  position: relative;
  z-index: 1;
  width: 346px;
  margin: 0;
}

.ads-layout {
  min-height: 230px;
  display: grid;
  grid-template-columns: 334px 370px;
  align-items: center;
  gap: 43px;
}

.ads-copy {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  align-items: start;
}

.ad-mark {
  margin-top: 6px;
}

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

.ads-scene {
  width: 370px;
  margin: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-grid {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 32px 0 25px;
  display: grid;
  grid-template-columns: 68px 205px 126px 125px 160px;
  gap: 20px;
  align-items: start;
}

.footer-mark img {
  margin: 1px auto 0;
}

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.1;
}

.footer-grid h3 {
  font-size: 15px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.footer-grid p {
  margin: 0 0 5px;
  font-size: 13px;
  line-height: 1.38;
}

.footer-grid a {
  color: var(--ink-soft);
  font-weight: 400;
  text-decoration: none;
}

.footer-bottom {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 15px 0 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.contact-line {
  color: var(--green);
  font-weight: 780;
}

.footer-grid a.contact-line {
  color: var(--green);
  font-weight: 780;
}

.footer-simple {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 32px 0 20px;
}

.footer-simple h2 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.footer-simple p {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 14px;
}

.footer-simple nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-simple a {
  color: var(--green);
  font-weight: 760;
  text-decoration: none;
}

.page-main {
  background:
    linear-gradient(135deg, rgba(232, 242, 231, 0.55), transparent 34%),
    #ffffff;
}

.page-hero {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0 52px;
}

.page-hero h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.98;
}

.page-hero p,
.page-content p {
  font-size: 1.16rem;
}

.page-content {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 82px;
}

.page-content section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.page-content h2 {
  margin-bottom: 10px;
  font-size: 2rem;
}

.plain-list {
  margin: 16px 0 0;
  padding-left: 22px;
}

.plain-list li {
  margin: 8px 0;
}

.not-found {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  text-align: center;
}

.not-found h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  margin: 0;
}

@media (max-width: 820px) {
  .hero {
    min-height: auto;
  }

  .hero-inner {
    height: auto;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 64px 0 54px;
  }

  .hero-copy {
    padding-top: 0;
    padding-left: 0;
  }

  .hero-copy h1 {
    width: auto;
    font-size: clamp(42px, 11vw, 52px);
    transform: none;
  }

  .hero-copy p {
    max-width: 100%;
  }

  .gold-rule {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    gap: 16px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-scene {
    justify-self: center;
    width: min(408px, 100%);
    margin: 10px auto 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .feature-shot {
    width: 110px;
    margin: 0;
  }

  .split,
  .ads-layout,
  .privacy-copy,
  .ads-copy,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .split,
  .ads-layout {
    gap: 28px;
    padding: 42px 0;
  }

  .section-icon {
    justify-self: start;
  }

  .privacy-scene,
  .ads-scene {
    width: min(100%, 370px);
    justify-self: center;
  }

  .footer-grid {
    gap: 18px;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button:hover,
  .button:focus-visible {
    transform: none;
  }
}
