:root {
  color-scheme: light;
  --bg: #f4f1e8;
  --paper: #fffdf8;
  --ink: #18211e;
  --muted: #60706b;
  --line: #ded6c7;
  --pine: #245446;
  --pine-dark: #15362d;
  --berry: #9f3146;
  --gold: #d49b38;
  --ice: #dbe9e6;
  --shadow: 0 22px 54px rgba(28, 34, 31, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(145deg, rgba(36, 84, 70, 0.12), transparent 38%),
    linear-gradient(315deg, rgba(159, 49, 70, 0.08), transparent 34%),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

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

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

.site-header,
.site-footer,
.hero,
.offer-section,
.explain-section,
.subscribe-section,
.forms-section,
.contacts-section {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
}

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

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--pine);
  color: #fff;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.header-nav,
.small-note,
.cta-note,
.form-status,
.section-heading p,
.panel-heading p {
  color: var(--muted);
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.95rem;
}

.header-nav a,
.text-link {
  text-decoration: none;
}

.header-nav a:hover,
.text-link:hover {
  color: var(--berry);
}

.hero {
  display: grid;
  min-height: calc(100svh - 86px);
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  padding: 36px 0 54px;
}

.hero-copy {
  padding: 20px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--berry);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(2.65rem, 6.8vw, 5.9rem);
  line-height: 0.93;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 3.2vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 680px;
  color: #34413d;
  font-size: clamp(1.1rem, 2vw, 1.38rem);
  font-weight: 750;
}

.hero-text {
  max-width: 700px;
  color: #40504b;
  font-size: 1.05rem;
}

.hero-actions,
.inline-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-actions {
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition:
    background 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

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

.button.primary {
  background: var(--pine);
  color: #fff;
  box-shadow: 0 12px 28px rgba(36, 84, 70, 0.23);
}

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

.button.secondary {
  border-color: rgba(36, 84, 70, 0.22);
  background: rgba(255, 253, 248, 0.82);
  color: var(--pine-dark);
}

.button.wide {
  width: min(100%, 390px);
}

.hero-media {
  overflow: hidden;
  border: 1px solid rgba(36, 84, 70, 0.13);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: min(68svh, 640px);
  object-fit: cover;
  object-position: center;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 24px;
}

.offer-section,
.subscribe-section,
.forms-section,
.contacts-section {
  padding: 46px 0;
}

.offer-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
  overflow: hidden;
  border: 1px solid rgba(36, 84, 70, 0.13);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.offer-photo {
  min-height: 100%;
  background: var(--ice);
}

.offer-photo img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center;
}

.offer-content {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(22px, 4vw, 42px);
}

.offer-content.ended {
  min-height: 460px;
}

.price-list {
  display: grid;
  gap: 10px;
  margin: 4px 0;
}

.price-list div,
.stock-box {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.price-list dt {
  color: var(--muted);
}

.price-list dd {
  margin: 0;
  font-weight: 850;
}

.club-price {
  color: var(--berry);
  font-size: 1.55rem;
}

.stock-box {
  flex-wrap: wrap;
  border: 1px solid rgba(159, 49, 70, 0.2);
  border-radius: var(--radius);
  background: rgba(159, 49, 70, 0.06);
  padding: 13px;
}

.primary-cta {
  display: grid;
  gap: 8px;
}

.cta-note,
.form-status,
.small-note {
  margin: 0;
  font-size: 0.93rem;
}

.copy-message {
  display: grid;
  gap: 8px;
  border-left: 3px solid var(--gold);
  background: rgba(212, 155, 56, 0.09);
  padding: 12px 14px;
}

.copy-message p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.copy-line {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.backup-cta {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.backup-cta p {
  margin-bottom: 0;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--pine);
  font-weight: 800;
}

.explain-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: 26px;
  border-block: 1px solid var(--line);
  padding: 42px 0;
}

.explain-copy {
  color: #40504b;
  font-size: 1.04rem;
}

.channel-grid,
.forms-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.channel-link,
.form-panel,
.contacts-section {
  border: 1px solid rgba(36, 84, 70, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow);
}

.channel-link {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  text-decoration: none;
}

.channel-link:hover {
  border-color: rgba(36, 84, 70, 0.38);
}

.channel-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: var(--radius);
  background: #101820;
  color: #fff;
  font-weight: 900;
}

.channel-icon.vk {
  background: #2c66b8;
}

.channel-link strong,
.channel-link small {
  display: block;
}

.channel-link small {
  color: var(--muted);
}

.subscribe-section .small-note {
  margin-top: 16px;
}

.form-panel {
  padding: clamp(18px, 3vw, 28px);
}

.secondary-panel {
  background: rgba(255, 253, 248, 0.68);
  box-shadow: none;
}

.panel-heading {
  margin-bottom: 18px;
}

.club-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #34413d;
  font-size: 0.94rem;
  font-weight: 760;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  outline: none;
  padding: 12px 13px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--pine);
  box-shadow: 0 0 0 4px rgba(36, 84, 70, 0.13);
}

.checkbox-label {
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  font-weight: 650;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.form-status {
  min-height: 22px;
}

.form-status.success {
  color: var(--pine);
}

.form-status.error {
  color: var(--berry);
}

.contacts-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 44px;
  padding: clamp(20px, 4vw, 34px);
}

.contact-actions {
  align-items: flex-start;
  flex-direction: column;
}

.contact-actions p {
  margin-bottom: 0;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 5;
  max-width: min(390px, calc(100% - 36px));
  border-radius: var(--radius);
  background: var(--pine-dark);
  color: #fff;
  opacity: 0;
  padding: 13px 15px;
  pointer-events: none;
  transform: translateY(16px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding: 22px 0 32px;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 920px) {
  .hero,
  .offer-card,
  .explain-section,
  .forms-section,
  .contacts-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    order: -1;
  }

  .hero-media img,
  .offer-photo img {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 680px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .site-header,
  .site-footer,
  .hero,
  .offer-section,
  .explain-section,
  .subscribe-section,
  .forms-section,
  .contacts-section {
    width: min(100% - 22px, 1160px);
  }

  h1 {
    font-size: clamp(2.34rem, 13vw, 3.95rem);
  }

  .hero-actions,
  .inline-actions,
  .channel-grid {
    grid-template-columns: 1fr;
  }

  .button,
  .text-link,
  .channel-link {
    width: 100%;
  }

  .button,
  .text-link {
    justify-content: center;
  }

  .channel-grid {
    display: grid;
  }

  .price-list div {
    align-items: flex-start;
    flex-direction: column;
  }
}
