:root {
  --green: #284536;
  --green-dark: #183126;
  --orange: #d9773e;
  --orange-dark: #b85b2d;
  --cream: #fff9ef;
  --sand: #f3e4cf;
  --paper: #fffdf8;
  --text: #29231f;
  --muted: #70665e;
  --line: rgba(40, 69, 54, 0.14);
  --shadow: 0 22px 60px rgba(55, 42, 30, 0.12);
  --focus-ring: #1467d8;
  --radius: 24px;
  --container: 1180px;
}

/* Общие настройки */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
}

body.lock {
  overflow: hidden;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

button:disabled {
  cursor: not-allowed;
}

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

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

.section {
  padding: 88px 0;
}

.section--paper {
  background: var(--paper);
}

.section--sand {
  background: linear-gradient(180deg, var(--sand), var(--cream));
}

/* Заголовки секций */

.section-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--orange-dark);
  background: rgba(217, 119, 62, 0.12);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 0;
  color: var(--green);
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -2px;
}

.section-heading h2 {
  margin-top: 17px;
}

.section-heading p {
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

/* Кнопки */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--green {
  color: #ffffff;
  background: var(--green);
  box-shadow: 0 12px 26px rgba(40, 69, 54, 0.2);
}

.button--green:hover {
  background: var(--green-dark);
}

.button--orange {
  color: #ffffff;
  background: var(--orange);
  box-shadow: 0 15px 30px rgba(184, 91, 45, 0.25);
}

.button--orange:hover {
  background: var(--orange-dark);
}

.button--light {
  color: var(--green);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
}

/* Шапка */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 249, 239, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 20px;
}

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

.logo-image {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 18px;
}

.main-nav {
  display: flex;
  gap: 24px;
}

.main-nav a {
  font-size: 13px;
  font-weight: 800;
}

.main-nav a:hover,
.main-nav a.active,
.main-nav a[aria-current="page"] {
  color: var(--orange-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-phone {
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--green);
}

.mobile-nav {
  display: none;
}

/* Главный экран */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 88% 16%,
      rgba(217, 119, 62, 0.23),
      transparent 28%
    ),
    radial-gradient(
      circle at 8% 88%,
      rgba(40, 69, 54, 0.14),
      transparent 26%
    ),
    linear-gradient(135deg, #fffaf2 0%, #f3e3cc 58%, #ead1ae 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(
      rgba(110, 75, 50, 0.045) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(110, 75, 50, 0.045) 1px,
      transparent 1px
    );
  background-size: 42px 42px;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  align-items: center;
  gap: 65px;
  min-height: 690px;
  padding: 64px 0 78px;
}

.hero-content {
  min-width: 0;
}

.hero h1 {
  margin: 23px 0 0;
  color: var(--green);
  font-size: clamp(54px, 6vw, 82px);
  line-height: 0.97;
  letter-spacing: -4px;
}

.hero h1 span {
  color: var(--orange-dark);
}

.hero-copy {
  max-width: 610px;
  margin: 28px 0 0;
  color: #574d45;
  font-size: 18px;
  line-height: 1.65;
}

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

.hero-actions .button {
  min-height: 56px;
  padding-inline: 27px;
}

/* Факты под кнопками */

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 32px;
  padding-top: 27px;
  border-top: 1px solid var(--line);
}

.hero-fact {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font-size: 28px;
  line-height: 1;
}

.hero-fact > span:last-child {
  display: block;
}

.hero-fact strong {
  display: block;
  font-size: 13px;
}

.hero-fact > span:last-child > span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

/* Фото главного экрана */

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 550px;
  isolation: isolate;
}

.hero-photo-frame {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 0.86;
  overflow: hidden;
  border: 8px solid rgba(245, 241, 229, 0.95);
  border-radius: 44% 44% 18% 18% / 20% 20% 12% 12%;
  background: var(--green);
  box-shadow:
    0 28px 60px rgba(37, 53, 44, 0.18),
    0 8px 18px rgba(37, 53, 44, 0.12);
  transform: rotate(1deg);
}

.hero-photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.06),
    rgba(20, 45, 35, 0.08)
  );
}

.hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.03);
}

.hero-note {
  position: absolute;
  z-index: 5;
  padding: 14px 17px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  background: rgba(255, 249, 239, 0.9);
  box-shadow: 0 18px 40px rgba(51, 42, 31, 0.18);
  backdrop-filter: blur(12px);
}

.hero-note strong,
.hero-note span {
  display: block;
}

.hero-note strong {
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 16px;
}

.hero-note span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.hero-note--top {
  top: 18px;
  left: 0;
  transform: rotate(-3deg);
}

.hero-note--bottom {
  right: 0;
  bottom: 12px;
  transform: rotate(2deg);
}

/* Полоса преимуществ */

.trust-strip {
  padding: 28px 0;
  color: #ffffff;
  background: var(--green);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.trust-item {
  padding: 10px 16px;
  text-align: center;
}

.trust-item strong,
.trust-item span {
  display: block;
}

.trust-item strong {
  font-family: Georgia, serif;
  font-size: 22px;
}

.trust-item span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

/* Информационные карточки */

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

.info-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 36px rgba(55, 42, 30, 0.07);
}

.info-card h3 {
  margin: 18px 0 0;
  color: var(--green);
  font-size: 23px;
}

.info-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.info-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #ffffff;
  background: var(--green);
  font-size: 22px;
}

/* Заголовки внутренних страниц */

.page-hero {
  padding: 84px 0 62px;
  background: linear-gradient(135deg, #fffaf2, #f1dfc4);
}

.page-hero h1 {
  margin: 18px 0 0;
  color: var(--green);
  font-size: clamp(46px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -3px;
}

.page-hero p {
  max-width: 700px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

/* Подвал */

.site-footer {
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.72);
  background: #14271f;
  font-size: 12px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-copy {
  display: grid;
  gap: 6px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 20px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 3px;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration-color: currentColor;
}

/* Адаптив главного экрана */

@media (max-width: 1050px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 30px;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 45px;
    padding: 55px 0 75px;
  }

  .hero-visual {
    min-height: 520px;
  }

  .hero-photo-frame {
    width: min(88vw, 430px);
  }

  .hero-note--top {
    top: 0;
    left: 0;
  }

  .hero-note--bottom {
    right: 0;
    bottom: -12px;
  }
}

@media (max-width: 650px) {
  .container {
    width: calc(100% - 28px);
  }

  .section {
    padding: 66px 0;
  }

  .hero-grid {
    min-height: auto;
    padding: 48px 0 58px;
  }

  .hero h1 {
    font-size: clamp(46px, 14vw, 64px);
    letter-spacing: -2px;
  }

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

  .hero-actions {
    display: grid;
  }

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

  .hero-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-visual {
    min-height: 430px;
  }

  .hero-photo-frame {
    width: min(100%, 360px);
    border-width: 6px;
  }

  .hero-note {
    padding: 10px 12px;
  }

  .hero-note strong {
    font-size: 13px;
  }

  .hero-note span {
    font-size: 9px;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 420px) {
  .hero-facts {
    grid-template-columns: 1fr;
  }

  .fact-icon {
    font-size: 25px;
  }
}

.contact-actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.contact-actions .button {
  display: inline-flex;
}
