:root {
  --ink: #182027;
  --muted: #62707c;
  --line: #dce3e8;
  --paper: #fbfaf6;
  --cream: #f8edc9;
  --mint: #79ddc7;
  --pink: #e97bc6;
  --lavender: #b6a1df;
  --red: #f24737;
  --orange: #f57922;
  --yellow: #f4de16;
  --green: #22bf64;
  --blue: #3b35d8;
  --focus: #0f6d7a;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-bottom: env(safe-area-inset-bottom);
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(24, 32, 39, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(24, 32, 39, 0.05) 1px, transparent 1px),
    #f4f7f7;
  background-size: 34px 34px;
}

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

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: 82vh;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.72fr);
  gap: 44px;
  align-items: center;
  padding: 34px 0 28px;
}

.hero-media {
  min-width: 0;
}

.preview-stage {
  position: relative;
  min-height: 620px;
  border: 1px solid rgba(24, 32, 39, 0.12);
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 24%, rgba(255, 255, 255, 0.8), transparent 28%),
    linear-gradient(135deg, #e9f7f8 0%, #fffaf0 58%, #e8eef1 100%);
  box-shadow: 0 24px 80px rgba(41, 53, 61, 0.14);
}

canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.stage-toolbar {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(24, 32, 39, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
}

.swatch {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(24, 32, 39, 0.16);
}

.swatch.is-active {
  box-shadow: 0 0 0 3px var(--ink);
}

.swatch[data-color="mint"] { background: var(--mint); }
.swatch[data-color="pink"] { background: var(--pink); }
.swatch[data-color="lavender"] { background: var(--lavender); }
.swatch[data-color="red"] { background: var(--red); }
.swatch[data-color="orange"] { background: var(--orange); }
.swatch[data-color="yellow"] { background: var(--yellow); }
.swatch[data-color="green"] { background: var(--green); }
.swatch[data-color="blue"] { background: var(--blue); }

.hero-copy {
  padding-bottom: 52px;
}

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

h1 {
  max-width: 10ch;
  margin-bottom: 18px;
  font-size: clamp(48px, 7vw, 90px);
  line-height: 0.94;
  letter-spacing: 0;
}

.lead {
  max-width: 34rem;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 28px 0;
}

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

.price-row strong {
  font-size: 34px;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 24px;
  list-style: none;
}

.trust-list li {
  padding: 8px 10px;
  border: 1px solid rgba(24, 32, 39, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #34414b;
  font-size: 14px;
  font-weight: 800;
}

.primary-action,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.primary-action:hover,
.submit-button:hover {
  background: #0f151a;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.customizer,
.video-section,
.gallery,
.details,
.contacts {
  padding: 54px 0;
}

.customizer {
  padding-top: 18px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 22px;
}

.section-heading h2,
.details h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1;
}

.section-heading p,
.details p {
  max-width: 34rem;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.order-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 50px rgba(41, 53, 61, 0.08);
}

label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

label span {
  color: #34414b;
  font-weight: 800;
}

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

input,
select {
  height: 50px;
  padding: 0 14px;
}

select {
  appearance: none;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, #34414b 50%),
    linear-gradient(135deg, #34414b 50%, transparent 50%);
  background-position:
    calc(100% - 19px) 50%,
    calc(100% - 13px) 50%;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}

textarea {
  resize: vertical;
  min-height: 116px;
  padding: 14px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(15, 109, 122, 0.16);
}

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

.bot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile-field {
  min-height: 65px;
}

.submit-button {
  width: fit-content;
}

.form-status {
  align-self: center;
  margin: 0;
  color: #0c6370;
  font-weight: 700;
}

.form-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.form-contact a {
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.video-frame {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(41, 53, 61, 0.12);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-note {
  margin: 12px auto 0;
  max-width: 420px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.video-note a {
  color: var(--ink);
  font-weight: 900;
}

.photo-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 28%);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.photo-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border: 3px solid transparent;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  scroll-snap-align: start;
  box-shadow: 0 12px 34px rgba(41, 53, 61, 0.12);
}

.photo-card.is-active {
  border-color: var(--ink);
}

.photo-card.is-active::after {
  content: "Обрано";
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.photo-card img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  display: block;
  object-fit: cover;
}

.photo-card span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

.details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 80px;
}

.details article {
  min-height: 190px;
  padding: 22px;
  border-top: 4px solid var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

.contacts {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-bottom: 90px;
}

.contacts h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1;
}

.contacts p {
  max-width: 32rem;
  color: var(--muted);
  line-height: 1.55;
}

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

.contact-grid a {
  min-height: 86px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 34px rgba(41, 53, 61, 0.08);
}

.contact-grid span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

code {
  white-space: nowrap;
  color: #0c6370;
}

.mobile-cta {
  display: none;
}

@media (max-width: 900px) {
  body {
    background-size: 28px 28px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 12px 0 24px;
  }

  .customizer {
    padding-top: 10px;
  }

  .hero-copy {
    order: 0;
    padding-bottom: 0;
  }

  h1 {
    max-width: 13ch;
    margin-bottom: 12px;
  }

  .preview-stage {
    min-height: auto;
  }

  .price-row {
    margin: 18px 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 10px;
  }

  .order-form,
  .details,
  .contacts {
    grid-template-columns: 1fr;
  }

  .photo-strip {
    grid-auto-columns: minmax(240px, 82%);
  }

  .details article {
    min-height: auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .page-shell {
    width: min(100% - 18px, 1180px);
  }

  h1 {
    max-width: 100%;
    font-size: 36px;
    line-height: 1;
  }

  .lead {
    font-size: 15px;
    line-height: 1.45;
  }

  .price-row strong {
    font-size: 30px;
  }

  .trust-list {
    margin-bottom: 16px;
  }

  .trust-list li {
    font-size: 13px;
  }

  .primary-action {
    display: none;
  }

  .preview-stage {
    margin-inline: -2px;
    border-radius: 8px;
    box-shadow: 0 14px 38px rgba(41, 53, 61, 0.12);
  }

  canvas {
    width: 112%;
    margin-left: -6%;
  }

  .stage-toolbar {
    left: 10px;
    right: 10px;
    bottom: 10px;
    gap: 8px;
    padding: 9px;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .swatch {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
  }

  .video-section,
  .gallery,
  .details,
  .contacts {
    padding: 34px 0;
  }

  .customizer {
    padding: 8px 0 34px;
  }

  .section-heading {
    margin-bottom: 14px;
  }

  .section-heading h2,
  .details h2 {
    font-size: 30px;
  }

  .order-form {
    gap: 13px;
    padding: 16px;
  }

  label {
    gap: 7px;
  }

  label span {
    font-size: 14px;
  }

  input,
  select {
    height: 54px;
  }

  textarea {
    min-height: 104px;
  }

  .submit-button {
    width: 100%;
    min-height: 56px;
  }

  .form-status {
    font-size: 14px;
    line-height: 1.35;
  }

  .photo-strip {
    grid-auto-columns: minmax(238px, 78%);
    gap: 10px;
  }

  .photo-card,
  .photo-card img {
    min-height: 290px;
  }

  .details {
    gap: 10px;
    padding-bottom: 38px;
  }

  .details article {
    padding: 18px;
  }

  .contacts {
    gap: 14px;
    padding-bottom: 36px;
  }

  .contacts h2 {
    font-size: 30px;
  }

  .contact-grid {
    gap: 10px;
  }

  .contact-grid a {
    min-height: 72px;
    padding: 14px;
    font-size: 16px;
  }

  .mobile-cta {
    position: fixed;
    z-index: 20;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px;
    border: 1px solid rgba(24, 32, 39, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 42px rgba(24, 32, 39, 0.18);
    backdrop-filter: blur(16px);
  }

  .mobile-cta span {
    padding-left: 8px;
    font-size: 20px;
    font-weight: 900;
  }

  .mobile-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 8px;
    color: #fff;
    background: var(--ink);
    font-weight: 900;
    text-decoration: none;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 32px;
  }

  .lead {
    font-size: 14px;
  }

  .price-row {
    margin: 14px 0;
  }

  .swatch {
    width: 38px;
    height: 38px;
  }
}
