* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17321f;
  background: #f7f3e8;
}

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

button,
input,
select {
  font: inherit;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 243, 232, 0.92);
  border-bottom: 1px solid rgba(23, 50, 31, 0.08);
  backdrop-filter: blur(12px);
}

.header-row {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.header-link {
  font-size: 14px;
  color: #456356;
}

.header-cta,
.primary-btn,
.secondary-btn {
  height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

.header-cta,
.primary-btn {
  background: #237a45;
  color: #fff;
  box-shadow: 0 18px 38px rgba(35, 122, 69, 0.18);
}

.secondary-btn {
  background: #17321f;
  color: #fff7e6;
}

.hero {
  padding: 42px 0 56px;
  background:
    radial-gradient(circle at top left, rgba(244, 190, 68, 0.16), transparent 30%),
    linear-gradient(180deg, #f7f3e8 0%, #f5efde 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 560px);
  gap: 40px;
  align-items: center;
}

.hero-badge,
.section-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(244, 190, 68, 0.18);
  color: #7a5910;
  font-size: 13px;
  font-weight: 700;
}

.hero-copy h1 {
  margin: 18px 0 16px;
  font-size: 62px;
  line-height: 1.01;
  letter-spacing: 0;
  max-width: 720px;
}

.hero-text {
  max-width: 620px;
  margin: 0 0 28px;
  color: #577065;
  font-size: 19px;
  line-height: 1.65;
}

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

.hero-price {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #456356;
}

.hero-price strong {
  font-size: 32px;
  line-height: 1;
  color: #17321f;
}

.hero-price span {
  font-size: 14px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.stat {
  min-height: 108px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 50, 31, 0.08);
}

.stat strong {
  display: block;
  font-size: 28px;
  line-height: 1.1;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: #577065;
  font-size: 14px;
  line-height: 1.45;
}

.hero-media-frame {
  position: relative;
  min-height: 620px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(29, 48, 37, 0.18);
  border: 1px solid rgba(23, 50, 31, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(250, 246, 234, 0.95));
}

.hero-official-image {
  position: absolute;
  right: -12px;
  bottom: -10px;
  width: min(100%, 620px);
  height: auto;
  object-fit: contain;
}

.hero-offer-card {
  position: absolute;
  left: 24px;
  top: 24px;
  z-index: 1;
  width: min(320px, calc(100% - 48px));
  padding: 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(28, 53, 40, 0.12);
}

.hero-offer-kicker {
  color: #557160;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-offer-price {
  margin-top: 8px;
  font-size: 44px;
  line-height: 1;
  font-weight: 800;
  color: #17321f;
}

.hero-offer-note {
  margin-top: 10px;
  color: #526a5f;
  font-size: 14px;
  line-height: 1.55;
}

.benefits {
  padding: 18px 0 22px;
}

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

.benefit-card {
  padding: 24px;
  border-radius: 18px;
  background: #fffdf8;
  border: 1px solid rgba(23, 50, 31, 0.08);
}

.benefit-card h2 {
  margin: 16px 0 10px;
  font-size: 22px;
  line-height: 1.16;
}

.benefit-card p {
  margin: 0;
  color: #597267;
  font-size: 15px;
  line-height: 1.6;
}

.offer-section {
  padding: 28px 0 28px;
}

.offer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 26px;
  align-items: start;
}

.offer-copy-block {
  padding: 28px;
  border-radius: 26px;
  background: #17321f;
  color: #f8f3e7;
  min-height: 100%;
}

.offer-copy-block h2 {
  margin: 18px 0 14px;
  font-size: 42px;
  line-height: 1.05;
}

.offer-copy-block p {
  margin: 0 0 26px;
  color: #d0ddd5;
  font-size: 16px;
  line-height: 1.7;
}

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

.gallery-card {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(23, 50, 31, 0.08);
  background: #fff;
  box-shadow: 0 14px 34px rgba(29, 48, 37, 0.12);
}

.gallery-card-large {
  grid-column: 1 / -1;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.closing-cta {
  padding: 12px 0 76px;
}

.closing-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff7e4 0%, #f2eddc 100%);
  border: 1px solid rgba(23, 50, 31, 0.08);
}

.closing-shell h2 {
  margin: 0 0 8px;
  font-size: 38px;
  line-height: 1.05;
}

.closing-shell p {
  margin: 0;
  color: #5a7267;
  font-size: 16px;
}

.mirror-overlay-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 21, 16, 0.66);
  backdrop-filter: blur(8px);
  z-index: 1000;
}

.mirror-overlay-backdrop.is-open {
  display: flex;
}

.mirror-overlay-modal {
  width: min(100%, 456px);
  max-height: min(92vh, 760px);
  overflow: auto;
  padding: 20px;
  border-radius: 24px;
  background: #fffdf7;
  box-shadow: 0 32px 70px rgba(8, 20, 14, 0.28);
}

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

.mirror-overlay-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.02;
  color: #17321f;
}

.mirror-overlay-sub {
  margin-top: 12px;
  color: #5f786b;
  font-size: 14px;
  line-height: 1.55;
}

.mirror-overlay-close {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 0;
  border-radius: 999px;
  background: #f1efe5;
  color: #17321f;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.mirror-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.mirror-field.full {
  grid-column: 1 / -1;
}

.mirror-label {
  display: block;
  margin-bottom: 8px;
  color: #355541;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.mirror-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #d8dfd6;
  border-radius: 12px;
  background: #fff;
  color: #17321f;
}

.mirror-input:focus {
  outline: none;
  border-color: #237a45;
  box-shadow: 0 0 0 3px rgba(35, 122, 69, 0.12);
}

.mirror-meta {
  margin-top: 8px;
  color: #6d8479;
  font-size: 12px;
  line-height: 1.5;
}

.mirror-status {
  min-height: 20px;
  margin-top: 14px;
  color: #355541;
  font-size: 13px;
}

.mirror-status.error {
  color: #b22b2b;
}

.mirror-actions {
  margin-top: 14px;
}

.mirror-btn {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 700;
}

.mirror-btn-primary {
  background: #237a45;
  color: #fff;
}

.mirror-loading-state,
.mirror-error-state {
  padding: 14px 2px 6px;
  text-align: center;
}

.mirror-spinner {
  width: 44px;
  height: 44px;
  margin: 6px auto 0;
  border: 4px solid rgba(35, 122, 69, 0.14);
  border-top-color: #237a45;
  border-radius: 999px;
  animation: spin 1s linear infinite;
}

.mirror-error-icon {
  width: 60px;
  height: 60px;
  margin: 4px auto 18px;
  border-radius: 999px;
  background: #fff0ee;
  position: relative;
}

.mirror-error-icon::before,
.mirror-error-icon::after {
  content: "";
  position: absolute;
  top: 29px;
  left: 17px;
  width: 26px;
  height: 3px;
  border-radius: 999px;
  background: #d44c42;
}

.mirror-error-icon::before {
  transform: rotate(45deg);
}

.mirror-error-icon::after {
  transform: rotate(-45deg);
}

.mirror-error-copy {
  font-size: 28px;
  line-height: 1.08;
  font-weight: 800;
  color: #17321f;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1024px) {
  .hero-grid,
  .offer-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 50px;
  }

  .hero-media-frame {
    min-height: 540px;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .header-row,
  .header-actions,
  .hero-actions,
  .closing-shell {
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-copy h1,
  .offer-copy-block h2,
  .closing-shell h2 {
    font-size: 36px;
  }

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

  .hero-media-frame {
    min-height: 440px;
  }

  .hero-offer-card {
    position: relative;
    left: auto;
    top: auto;
    width: calc(100% - 24px);
    margin: 12px;
  }

  .hero-official-image {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 8px;
  }

  .hero-stats,
  .offer-gallery,
  .mirror-grid {
    grid-template-columns: 1fr;
  }

  .mirror-overlay-backdrop {
    padding: 10px;
  }

  .mirror-overlay-modal {
    width: 100%;
    max-height: 94vh;
    padding: 18px 16px;
    border-radius: 20px;
  }

  .mirror-overlay-title,
  .mirror-error-copy {
    font-size: 24px;
  }
}
