:root {
  color-scheme: light;
  --ink: #17342f;
  --muted: #66746f;
  --paper: #fffdf9;
  --sand: #f7f2e9;
  --line: #dedbd3;
  --brand: #087c68;
  --brand-dark: #056453;
  --accent: #e75a37;
  --success: #e5f5ee;
  --danger: #a52a2a;
  --shadow: 0 16px 42px rgba(23, 52, 47, 0.1);
  font-family: Tahoma, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

.shell {
  width: min(100% - 28px, 1080px);
  margin-inline: auto;
}

.hero {
  display: grid;
  gap: 26px;
  padding-block: 18px 44px;
}

.gallery__stage {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  background: var(--sand);
  box-shadow: var(--shadow);
}

.gallery__stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.gallery__thumbs::-webkit-scrollbar {
  display: none;
}

.gallery__thumb {
  flex: 0 0 68px;
  height: 68px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 14px;
  background: var(--sand);
  cursor: pointer;
}

.gallery__thumb[aria-current="true"] {
  border-color: var(--brand);
}

.gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--brand);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

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

h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 10vw, 3.7rem);
  line-height: 1.18;
}

h2 {
  line-height: 1.3;
}

.subheadline {
  color: var(--muted);
  font-size: 1.08rem;
}

.price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0;
}

.price {
  color: var(--accent);
  font-size: 2rem;
  line-height: 1;
}

.delivery-badge {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--success);
  color: var(--brand-dark);
  font-size: 0.86rem;
  font-weight: 800;
}

.benefits {
  display: grid;
  gap: 10px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.benefits li {
  position: relative;
  padding-right: 30px;
}

.benefits li::before {
  position: absolute;
  right: 0;
  top: 0;
  color: var(--brand);
  content: "✓";
  font-weight: 900;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 0;
  border-radius: 15px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}

.button--primary {
  width: 100%;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px rgba(8, 124, 104, 0.22);
}

.button--primary:active {
  background: var(--brand-dark);
  transform: translateY(1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.order-section {
  padding-block: 48px;
  background: var(--sand);
}

.order-grid {
  display: grid;
  gap: 22px;
}

.order-intro p:last-child {
  color: var(--muted);
}

.order-card,
.success-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 0.92rem;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 10px 12px;
  border: 1px solid #c9cec9;
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(8, 124, 104, 0.12);
}

.shipping-row {
  display: flex;
  justify-content: space-between;
  padding: 11px 13px;
  border-radius: 11px;
  background: var(--success);
  color: var(--brand-dark);
}

.form-status {
  min-height: 1.5em;
  margin: 0;
  color: var(--danger);
  font-size: 0.92rem;
  font-weight: 700;
}

.success-card {
  place-items: center;
  padding-block: 42px;
  text-align: center;
}

.success-card__icon,
.guarantee-card__icon {
  display: grid;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--success);
  color: var(--brand);
  font-size: 1.5rem;
  font-weight: 900;
}

.serial {
  margin: 0;
  padding: 9px 15px;
  border-radius: 10px;
  background: var(--sand);
}

.details-section {
  padding-block: 50px 70px;
}

.guarantee-card {
  display: flex;
  gap: 15px;
  padding: 20px;
  border: 1px solid #b8dfcf;
  border-radius: 20px;
  background: var(--success);
}

.guarantee-card h2,
.guarantee-card p {
  margin-bottom: 4px;
}

.faq-section {
  margin-top: 50px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.faq-item summary {
  padding: 16px;
  font-weight: 900;
  cursor: pointer;
}

.faq-item p {
  padding: 0 16px 16px;
  margin: 0;
  color: var(--muted);
}

.fatal-error {
  margin-block: 40px;
  padding: 20px;
  border: 1px solid #e8b3ad;
  border-radius: 14px;
  background: #fff2ef;
  color: var(--danger);
  text-align: center;
}

[hidden] {
  display: none !important;
}

@media (min-width: 760px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    align-items: center;
    gap: 54px;
    min-height: 92vh;
    padding-block: 40px;
  }

  .order-grid {
    grid-template-columns: 0.7fr 1.3fr;
    align-items: start;
    gap: 50px;
  }

  .order-card {
    grid-template-columns: 1fr 1fr;
    padding: 28px;
  }

  .field--wide,
  .shipping-row,
  .form-status {
    grid-column: 1 / -1;
  }

  .success-card {
    grid-column: 2;
  }
}
