:root {
  --ink: #2d171a;
  --ink-soft: #684d51;
  --muted: #8c7377;
  --paper: #f7f1f1;
  --surface: #ffffff;
  --surface-soft: #f4e6e7;
  --line: #ead7da;
  --sage: #9f2f3e;
  --sage-dark: #6f1724;
  --sage-light: #f1d9dc;
  --danger: #b94d3f;
  --success: #7e2633;
  --shadow: 0 24px 70px rgba(83, 19, 29, 0.12);
  --shadow-soft: 0 10px 35px rgba(83, 19, 29, 0.075);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before {
  position: fixed;
  z-index: -1;
  top: -220px;
  right: -180px;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: rgba(125, 25, 39, 0.1);
  content: '';
  pointer-events: none;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(159, 47, 62, 0.24);
  outline-offset: 3px;
}

.site-header {
  display: flex;
  width: min(1180px, calc(100% - 48px));
  min-height: 88px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(111, 23, 36, 0.16);
}
.site-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.site-brand__mark {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--sage-dark);
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 800;
}
.site-brand__name {
  overflow: hidden;
  max-width: 440px;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-order-link, .back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.header-order-link {
  padding: 12px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: background 160ms ease, transform 160ms ease;
}
.header-order-link:hover { background: var(--surface); transform: translateY(-1px); }
.secure-label { display: flex; align-items: center; gap: 8px; color: var(--sage-dark); font-size: 13px; font-weight: 700; }
.secure-label span, .form-security span { font-size: 19px; }

.page-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.page-shell--home { padding: 34px 0 82px; }
.eyebrow, .hero__eyebrow, .section-head__eyebrow, .package-card__label {
  color: var(--sage);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.home-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 64px;
  margin-bottom: 48px;
  align-items: end;
}
.home-intro__title {
  max-width: 760px;
  margin: 18px 0 0;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(44px, 6.3vw, 82px);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.98;
}
.home-intro__title em { color: var(--sage); font-style: normal; }
.home-intro__aside { padding-bottom: 5px; }
.home-intro__aside > p { margin: 0 0 24px; color: var(--ink-soft); font-size: 16px; line-height: 1.7; }
.home-intro__proof { display: flex; flex-wrap: wrap; gap: 16px; }
.home-intro__proof span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; }
.home-intro__proof i {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: var(--sage-dark);
  background: var(--sage-light);
  font-size: 11px;
  font-style: normal;
}
.gallery {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.gallery--hero { margin-bottom: 64px; }
.gallery__item { display: block; }
.gallery__item img { display: block; width: 100%; height: auto; }
.section-heading { display: flex; margin-bottom: 34px; align-items: end; justify-content: space-between; gap: 40px; }
.section-heading h2, .form-heading h2, .order-summary__head h1 {
  margin: 10px 0 0;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  letter-spacing: -0.045em;
}
.section-heading h2 { font-size: clamp(32px, 4vw, 52px); }
.section-heading > p { max-width: 320px; margin: 0 0 6px; color: var(--muted); line-height: 1.6; }
.packages { display: grid; gap: 24px; }
.package-section { scroll-margin-top: 24px; }
.package-card {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  min-height: 470px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.package-card__media {
  grid-column: 2;
  grid-row: 1;
  order: 2;
}
.package-card__content {
  grid-column: 1;
  grid-row: 1;
  order: 1;
}
.package-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.package-card--selected { border-color: rgba(111, 23, 36, 0.55); box-shadow: 0 20px 60px rgba(111, 23, 36, 0.14); }
.package-card__media {
  position: relative;
  display: flex;
  min-height: 440px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  background: #f1e5e6;
}
.package-card__media--empty { display: none; }
.package-card__media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.package-card__index {
  position: absolute;
  z-index: 1;
  top: 20px;
  left: 20px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 800;
}
.package-card__content { display: flex; padding: clamp(28px, 5vw, 56px); flex-direction: column; justify-content: center; gap: 17px; }
.package-card__title {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(27px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.12;
}
.package-card__description, .selected-package-card__description, .order-summary__description { color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.package-card__description p, .order-summary__description p { margin: 0 0 8px; }
.package-card__description ul, .order-summary__description ul { margin: 0; padding-left: 20px; }
.package-card__size-label { display: block; margin-bottom: 9px; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.size-options, .order-size-options { display: flex; flex-wrap: wrap; gap: 8px; }
.size-option, .order-size-option {
  min-width: 50px;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--surface);
  font-weight: 700;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease, transform 150ms ease;
}
.size-option:hover, .order-size-option:hover { border-color: var(--sage); transform: translateY(-1px); }
.size-option.is-selected, .order-size-option.is-selected { border-color: var(--sage-dark); color: #fff; background: var(--sage-dark); }
.size-option.is-selected::after, .order-size-option.is-selected::after { margin-left: 4px; content: '\2713'; }
.package-card__price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.package-card__old-price { color: #9a9f9b; font-size: 15px; text-decoration: line-through; }
.package-card__price { color: var(--ink); font-family: 'Manrope', sans-serif; font-size: 31px; font-weight: 800; letter-spacing: -0.04em; }
.package-card__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.package-card__meta-item { padding: 7px 11px; border-radius: 999px; color: var(--sage-dark); background: var(--surface-soft); font-size: 12px; font-weight: 700; }
.package-card__cta, .submit-button {
  display: flex;
  border: 0;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  background: var(--sage-dark);
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.package-card__cta { width: 100%; min-height: 55px; margin-top: 2px; border-radius: 15px; }
.package-card__cta:hover, .submit-button:hover { background: #58101b; box-shadow: 0 12px 28px rgba(88, 16, 27, 0.22); transform: translateY(-1px); }
.gallery--bottom { margin-top: 90px; }
.home-assurance { display: grid; margin-top: 30px; padding: 28px 0 0; border-top: 1px solid var(--line); grid-template-columns: repeat(3, 1fr); }
.assurance-item { display: flex; padding: 10px 28px; align-items: center; gap: 15px; border-right: 1px solid var(--line); }
.assurance-item:first-child { padding-left: 0; }
.assurance-item:last-child { border-right: 0; }
.assurance-item__icon { color: var(--sage); font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 800; }
.assurance-item strong, .assurance-item small { display: block; }
.assurance-item strong { margin-bottom: 3px; font-size: 14px; }
.assurance-item small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.site-footer {
  display: flex;
  width: min(1180px, calc(100% - 48px));
  min-height: 82px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

/* Order page */
.order-page { background: #f7f1f1; }
.site-header--order { min-height: 76px; }
.page-shell--order { padding: 28px 0 72px; }
.order-topbar { display: flex; min-height: 48px; margin-bottom: 26px; align-items: center; justify-content: space-between; gap: 30px; }
.back-link { color: var(--ink-soft); }
.back-link:hover { color: var(--ink); }
.order-progress { display: flex; align-items: center; gap: 10px; }
.order-progress span { display: inline-flex; align-items: center; gap: 7px; color: #939a95; font-size: 11px; font-weight: 700; }
.order-progress i {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-size: 10px;
  font-style: normal;
}
.order-progress b { width: 34px; height: 1px; background: var(--line); }
.order-progress .is-complete, .order-progress .is-current { color: var(--sage-dark); }
.order-progress .is-complete i { border-color: var(--sage-dark); color: #fff; background: var(--sage-dark); }
.order-progress .is-current i { border-color: var(--sage-dark); }
.order-layout { display: grid; grid-template-columns: minmax(330px, 0.72fr) minmax(520px, 1.28fr); gap: 24px; align-items: start; }
.order-layout--single {
  display: block;
  width: min(100%, 780px);
  margin: 0 auto;
}
.order-summary, .order-form-section { border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.92); box-shadow: var(--shadow-soft); }
.order-summary { position: sticky; top: 22px; overflow: hidden; padding: 34px; }
.order-summary__head h1 { margin-top: 9px; font-size: clamp(31px, 3.2vw, 44px); line-height: 1.08; }
.order-summary__head p, .form-heading p { margin: 13px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.selected-package-card {
  display: grid;
  margin-top: 28px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8f9f6;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}
.selected-package-card__media { width: 98px; height: 108px; overflow: hidden; border-radius: 13px; background: var(--surface-soft); }
.selected-package-card__media--empty { display: none; }
.selected-package-card__media--empty + .selected-package-card__content { grid-column: 1 / -1; }
.selected-package-card__media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.selected-package-card__content { min-width: 0; }
.selected-package-card__content > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.selected-package-card__title { margin: 0 0 8px; font-family: 'Manrope', sans-serif; font-size: 16px; font-weight: 700; line-height: 1.35; }
.selected-package-card__price { color: var(--sage-dark); font-family: 'Manrope', sans-serif; font-size: 20px; font-weight: 800; }
.order-summary__description { margin-top: 20px; padding: 0 3px; font-size: 13px; }
.order-summary__trust { display: flex; margin-top: 24px; padding: 15px; align-items: center; gap: 12px; border-radius: 14px; background: var(--surface-soft); }
.order-summary__trust > span { display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: #fff; background: var(--sage); font-size: 12px; }
.order-summary__trust strong, .order-summary__trust small { display: block; }
.order-summary__trust strong { margin-bottom: 2px; font-size: 12px; }
.order-summary__trust small { color: var(--muted); font-size: 11px; }
.order-form-section { padding: clamp(28px, 5vw, 52px); }
.form-heading { margin-bottom: 28px; }
.form-heading h2 { font-size: clamp(29px, 3.2vw, 42px); }
.order-size-section { margin-bottom: 25px; }
.size-picker-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #f8f9f6; transition: border-color 160ms ease, background 160ms ease; }
.size-picker-card.has-selection { border-color: rgba(111, 23, 36, 0.55); background: #fbf2f3; }
.size-picker-card__heading { display: flex; margin-bottom: 14px; align-items: center; justify-content: space-between; gap: 14px; }
.size-picker-card__label { font-size: 13px; font-weight: 800; }
.size-picker-card__status { color: var(--muted); font-size: 11px; font-weight: 700; }
.size-picker-card.has-selection .size-picker-card__status { color: var(--success); }
.order-size-option { min-width: 56px; min-height: 46px; }
.order-size-select { display: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 16px; }
.field { display: flex; min-width: 0; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label { margin: 0 0 8px 2px; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: 0;
  color: var(--ink);
  background: #fbfcfa;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.field textarea { min-height: 102px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #a1a8a3; }
.field input:focus, .field select:focus, .field textarea:focus, .phone-field:focus-within { border-color: var(--sage); background: #fff; box-shadow: 0 0 0 4px rgba(159, 47, 62, 0.09); }
.phone-field { display: flex; min-height: 54px; overflow: hidden; align-items: center; border: 1px solid var(--line); border-radius: 13px; background: #fbfcfa; transition: border-color 160ms ease, box-shadow 160ms ease; }
.phone-field > span { padding: 0 13px; border-right: 1px solid var(--line); color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.phone-field input { min-height: 52px; border: 0; border-radius: 0; background: transparent; box-shadow: none !important; }
.field-error { min-height: 20px; margin: 3px 2px 0; color: var(--danger); font-size: 11px; line-height: 1.4; }
.form-feedback { margin: 2px 0 16px; padding: 13px 15px; border-radius: 12px; font-size: 13px; font-weight: 700; }
.form-feedback.is-error { color: #923a30; background: #fae8e4; }
.form-feedback.is-success { color: var(--success); background: #e7f3ea; }
.submit-button { width: 100%; min-height: 58px; border-radius: 14px; font-size: 15px; }
.submit-button[disabled] { opacity: 0.65; cursor: wait; transform: none; }
.form-security { display: flex; margin: 14px 0 0; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 10px; text-align: center; }

/* Confirmation page compatibility */
.hero, .thanks-summary-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-soft); }
.hero { margin-top: 40px; padding: 38px; }
.hero__title, .section-head__title { margin: 10px 0 0; font-family: 'Manrope', sans-serif; font-size: clamp(32px, 4vw, 52px); letter-spacing: -0.05em; }
.hero__subtitle { max-width: 720px; margin: 12px 0 0; color: var(--muted); line-height: 1.7; }
.thanks-summary-card { margin: 24px 0 60px; padding: 32px; }
.section-head--center { text-align: center; }
.thanks-summary-grid { display: grid; margin-top: 28px; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.thanks-summary-item, .thanks-detail-panel { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #f8f9f6; }
.thanks-summary-item__label, .thanks-detail-panel__title { display: block; margin-bottom: 7px; color: var(--sage); font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.thanks-summary-item__value { font-weight: 800; }
.thanks-detail-layout { display: grid; margin-top: 12px; grid-template-columns: 1fr 1fr; gap: 12px; }
.thanks-detail-panel__content { color: var(--ink-soft); line-height: 1.7; }
.thanks-products-list__item { display: flex; padding: 10px 0; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.thanks-products-list__item:last-child { border-bottom: 0; }
.thanks-products-list__name { font-weight: 700; }
.thanks-products-list__price { color: var(--sage-dark); font-weight: 800; white-space: nowrap; }
.thanks-note { margin-top: 12px; padding: 16px; border-radius: 14px; color: var(--sage-dark); background: var(--surface-soft); line-height: 1.6; }

@media (max-width: 900px) {
  .home-intro { grid-template-columns: 1fr; gap: 28px; }
  .home-intro__aside { max-width: 580px; }
  .package-card { grid-template-columns: minmax(250px, 0.85fr) minmax(0, 1.15fr); }
  .package-card__content { padding: 30px; }
  .order-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .order-summary__description { display: none; }
  .home-assurance, .thanks-summary-grid, .thanks-detail-layout { grid-template-columns: 1fr; }
  .assurance-item, .assurance-item:first-child { padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .assurance-item:last-child { border-bottom: 0; }
}

@media (max-width: 680px) {
  :root { --radius-xl: 23px; --radius-lg: 20px; }
  .site-header, .page-shell, .site-footer { width: min(100% - 28px, 1180px); }
  .site-header { min-height: 70px; }
  .site-brand__name { max-width: 190px; font-size: 13px; }
  .site-brand__mark { width: 34px; height: 34px; flex-basis: 34px; }
  .header-order-link { padding: 10px 13px; font-size: 12px; }
  .secure-label { font-size: 11px; }
  .page-shell--home { padding: 45px 0 56px; }
  .home-intro { margin-bottom: 30px; }
  .home-intro__title { font-size: clamp(42px, 13vw, 62px); }
  .home-intro__aside > p { font-size: 14px; }
  .gallery--hero { margin-bottom: 64px; }
  .section-heading { display: block; margin-bottom: 22px; }
  .section-heading > p { margin-top: 12px; }
  .package-card { display: block; min-height: 0; }
  .package-card__media {
    display: flex;
    width: 100%;
    min-height: 0;
    height: min(92vw, 420px);
    grid-column: auto;
    grid-row: auto;
    order: 1;
  }
  .package-card__media--empty { display: none; }
  .package-card__content {
    grid-column: auto;
    grid-row: auto;
    order: 2;
  }
  .package-card__content { padding: 26px 22px 23px; gap: 15px; }
  .package-card__title { font-size: 27px; }
  .package-card__price { font-size: 27px; }
  .gallery--bottom { margin-top: 60px; }
  .site-footer { min-height: 72px; gap: 20px; }
  .site-footer span:last-child { text-align: right; }
  .page-shell--order { padding-top: 16px; }
  .order-topbar { margin-bottom: 14px; }
  .order-progress { display: none; }
  .order-summary { padding: 24px 20px; }
  .order-summary__head h1 { font-size: 32px; }
  .selected-package-card { margin-top: 20px; }
  .order-summary__trust { margin-top: 18px; }
  .order-form-section { padding: 27px 20px 24px; }
  .form-heading h2 { font-size: 30px; }
  .form-grid { grid-template-columns: 1fr; }
  .order-size-options { display: grid; grid-template-columns: repeat(3, 1fr); }
  .field--full { grid-column: auto; }
  .hero, .thanks-summary-card { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
