:root {
  --sand-page: #e8dfd0;
  --sand-paper: #faf5ec;
  --sand-terra: #c4552d;
  --sand-pill: #f0d9b5;
  --sand-cocoa: #4a2f1b;
  --sand-line: #d9c7a8;
  --sand-cream: #fff6e6;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--sand-page);
  color: var(--sand-cocoa);
  font-family: "Source Sans 3", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--sand-terra);
}

.sand-page {
  min-height: 100vh;
  width: 100%;
  background: var(--sand-page);
}

.sand-shell {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  background: var(--sand-paper);
  padding: 20px 16px 8px;
  min-height: 100vh;
}

.terra-hero {
  text-align: center;
  padding-bottom: 8px;
}

.terra-kicker {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--sand-terra);
}

.terra-title {
  margin: 0 0 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: 28px;
  line-height: 1.2;
  color: var(--sand-cocoa);
}

.terra-spec {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--sand-cocoa);
}

.hero-figure {
  position: relative;
  margin: 0;
  border: 1px solid var(--sand-line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 12px;
}

.stamp-badge {
  position: absolute;
  top: 14px;
  right: 10px;
  z-index: 2;
  padding: 8px 12px;
  background: var(--sand-terra);
  color: var(--sand-cream);
  border: 3px solid var(--sand-cream);
  border-radius: 6px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  transform: rotate(-6deg);
  box-shadow: 0 3px 10px rgba(74, 47, 27, 0.25);
}

.sand-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  margin: 18px 0;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--sand-terra);
  color: var(--sand-cream);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(196, 85, 45, 0.3);
}

.block-title {
  margin: 24px 0 14px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.25;
  color: var(--sand-cocoa);
}

.video-block,
.what-block,
.spec-block,
.gallery-block,
.service-block,
.order-panel {
  margin-top: 8px;
}

.video-frame {
  width: 100%;
  border: 1px solid var(--sand-line);
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}

.video-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
}

.what-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.photo-tile {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--sand-line);
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(74, 47, 27, 0.06);
}

.photo-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 14px;
  background: var(--sand-paper);
}

.pill-tag {
  display: inline-block;
  margin: -20px 0 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--sand-pill);
  color: var(--sand-cocoa);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(74, 47, 27, 0.15);
}

.pill-right {
  align-self: flex-end;
  margin-right: 6px;
}

.pill-left {
  align-self: flex-start;
  margin-left: 6px;
}

.feature-block {
  margin-top: 24px;
}

.feature-lead {
  margin: 0 0 16px;
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  font-size: 19px;
  line-height: 1.5;
}

.wide-photo {
  margin: 0 0 16px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--sand-line);
  background: #fff;
}

.wide-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 10px;
}

.feature-note {
  margin: 0 0 14px;
  font-size: 16px;
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.spec-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 86px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--sand-line);
  border-radius: 14px;
}

.spec-name {
  font-size: 15px;
  color: var(--sand-terra);
  font-weight: 600;
}

.spec-value {
  font-size: 16px;
  color: var(--sand-cocoa);
  line-height: 1.35;
}

.spec-note {
  margin: 12px 0 0;
  font-size: 15px;
}

.perk-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0 8px;
}

.perk-pill {
  margin: 0;
  padding: 14px 20px;
  max-width: 88%;
  border-radius: 999px;
  background: var(--sand-pill);
  color: var(--sand-cocoa);
  font-weight: 700;
  font-size: 16px;
}

.perk-right {
  align-self: flex-end;
  text-align: right;
}

.perk-left {
  align-self: flex-start;
  text-align: left;
}

.gallery-strip {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 12px;
  padding: 4px 2px 12px;
  -webkit-overflow-scrolling: touch;
}

.gallery-frame {
  flex: 0 0 85%;
  scroll-snap-align: center;
  margin: 0;
  border: 1px solid var(--sand-line);
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
}

.gallery-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 10px;
}

.service-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--sand-line);
}

.service-dot {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--sand-pill);
  font-size: 22px;
}

.service-title {
  margin: 0 0 2px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
}

.service-text {
  margin: 0;
  font-size: 16px;
}

.price-block {
  margin: 24px 0 0;
  padding: 22px 16px;
  text-align: center;
  background: var(--sand-cocoa);
  color: var(--sand-cream);
  border-radius: 14px;
}

.price-tag {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--sand-pill);
}

.price-figure {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: 44px;
  line-height: 1.15;
  color: var(--sand-cream);
}

.price-note {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--sand-pill);
}

.order-panel {
  padding: 8px 0 12px;
}

.order-sub {
  margin: 0 0 14px;
  font-size: 16px;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field-input {
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border: 1px solid var(--sand-line);
  border-radius: 14px;
  background: #fff;
  color: var(--sand-cocoa);
  font-family: inherit;
  font-size: 16px;
}

.field-input::placeholder {
  color: #8a7458;
}

.field-input:focus {
  outline: 2px solid var(--sand-terra);
  outline-offset: 1px;
}

.order-submit {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 14px;
  background: var(--sand-terra);
  color: var(--sand-cream);
  font-family: inherit;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
}

.consent-line {
  margin: 12px 0 0;
  font-size: 14px;
  text-align: center;
}

.site-footer {
  margin-top: 24px;
  padding: 24px 16px 28px;
  background: var(--sand-cocoa);
  color: var(--sand-cream);
  text-align: center;
  font-size: 15px;
}

.site-footer a {
  color: var(--sand-pill);
}

.footer-brand {
  margin: 0 0 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 22px;
}

.footer-contact {
  margin: 0 0 4px;
}

.footer-links {
  margin: 14px 0 10px;
  line-height: 2;
}

.sep {
  color: var(--sand-line);
  margin: 0 4px;
}

.footer-copy,
.footer-cookie {
  margin: 4px 0;
  font-size: 14px;
  color: var(--sand-line);
}

/* Сторінки подяки і політик */
.legal-page {
  padding: 8px 0 12px;
}

.legal-title {
  margin: 12px 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: 28px;
  line-height: 1.2;
}

.legal-date {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--sand-terra);
  font-weight: 600;
}

.legal-section h2 {
  margin: 22px 0 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
}

.legal-section p {
  margin: 0 0 10px;
  font-size: 16px;
}

.legal-contact {
  margin: 14px 0;
  padding: 14px 16px;
  background: var(--sand-pill);
  border-radius: 14px;
  font-size: 15px;
}

.legal-contact p {
  margin: 0 0 4px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 20px;
  margin: 16px 0 8px;
  border-radius: 14px;
  background: var(--sand-terra);
  color: var(--sand-cream);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  width: 100%;
  text-align: center;
}

.thank-title {
  margin: 20px 0 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: 30px;
  line-height: 1.2;
  text-align: center;
}

.thank-text {
  margin: 0 0 12px;
  font-size: 17px;
  text-align: center;
}

.thank-pill {
  display: block;
  margin: 18px auto 0;
  padding: 14px 20px;
  max-width: 88%;
  border-radius: 999px;
  background: var(--sand-pill);
  color: var(--sand-cocoa);
  font-weight: 700;
  font-size: 16px;
  text-align: center;
}

@media (min-width: 380px) {
  .spec-grid {
    gap: 12px;
  }
}