@font-face {
  font-family: "Neue Montreal";
  src: url("../assets/font/NeueMontreal-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Neue Montreal";
  src: url("../assets/font/NeueMontreal-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Neue Montreal";
  src: url("../assets/font/NeueMontreal-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
}

:root {
  --bg: #f6f3f1;
  --surface: rgba(255, 255, 255, 0.96);
  --surface-strong: #ffffff;
  --text: #26191b;
  --muted: #6f6260;
  --line: rgba(65, 35, 40, 0.11);
  --primary: #b8334f;
  --primary-dark: #7d2034;
  --accent: #f4e3e6;
  --accent-strong: #faf4f5;
  --success: #1f8f5f;
  --error: #c73d5d;
  --shadow: 0 18px 44px rgba(32, 18, 21, 0.06);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Neue Montreal", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, #f8f5f3 0%, #fcfbfa 30%, #f5f2ef 100%);
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.hero-wrap {
  position: relative;
  overflow: hidden;
  padding: 32px 0 88px;
  border-bottom: 1px solid rgba(65, 35, 40, 0.08);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 72px 0 0;
}

.eyebrow,
.section-kicker,
.footer-kicker,
.service-badge {
  margin: 0 0 14px;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-title {
  max-width: 900px;
  margin: 0;
  font-family: "ivypresto-display", serif;
  font-size: clamp(3.2rem, 7vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero-title span {
  display: block;
  margin-top: 18px;
  color: var(--primary-dark);
  font-size: clamp(1.25rem, 2.3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  max-width: 700px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.13rem;
  line-height: 1.7;
}

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

.hero-card,
.step,
.contest-card,
.product-card,
.contacts,
.summary,
.footer-card,
.service-offline,
.success-state,
.process-note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.hero-card,
.step,
.contacts,
.summary,
.footer-card,
.service-offline,
.success-state,
.process-note {
  padding: 24px;
}

.hero-card,
.step,
.process-note,
.summary-item,
.footer-card {
  background: #fff;
}

.hero-card strong,
.step h3,
.summary h3,
.contacts h3,
.product-title {
  font-size: 1.1rem;
}

.hero-card p,
.step p,
.contest-card p,
.section-copy,
.privacy-note,
.summary-head p,
.footer-copy,
.footer-card p,
.product-copy,
.product-note,
.visual-note,
.gallery-caption,
.variant-caption,
.error,
.product-feedback,
.product-cart-state {
  color: var(--muted);
  line-height: 1.6;
}

.hero-cta,
.submit-btn,
.add-to-cart-btn,
.option-btn,
.summary-remove-btn,
.stepper-btn {
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  margin-top: 34px;
  padding: 0 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary) 0%, #cb546f 100%);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(125, 32, 52, 0.16);
}

.hero-cta:hover,
.submit-btn:hover,
.add-to-cart-btn:hover {
  transform: translateY(-2px);
}

.process-section,
.contest-section,
.order-section {
  padding: 32px 0 88px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2,
.contest-card h2,
.site-footer h2 {
  margin: 0;
  font-family: "ivypresto-display", serif;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.section-copy {
  margin: 14px 0 0;
  font-size: 1rem;
}

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

.step {
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 700;
}

.process-note {
  margin-top: 22px;
}

.contest-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(255, 250, 250, 1), rgba(247, 241, 241, 1)),
    var(--surface);
}

.section-heading-tight {
  margin-bottom: 36px;
}

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

.product-card {
  overflow: hidden;
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 1 / 0.88;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, #fbf8f7, #f1ece9);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  padding: 18px 18px 20px;
}

.product-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.product-price {
  white-space: nowrap;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.product-copy {
  margin: 10px 0 0;
  font-size: 0.98rem;
}

.field-group + .field-group {
  margin-top: 16px;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.options-row,
.size-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.option-btn {
  border: 1px solid rgba(141, 23, 54, 0.14);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 11px 16px;
}

.option-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(125, 32, 52, 0.14);
}

.product-note,
.visual-note,
.variant-caption,
.gallery-caption {
  margin: 10px 0 0;
  font-size: 0.9rem;
}

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

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

.mug-choice {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(141, 23, 54, 0.14);
  border-radius: 18px;
  background: #fff;
  color: var(--text);
  text-align: left;
}

.mug-choice img {
  width: 100%;
  aspect-ratio: 1 / 0.9;
  object-fit: cover;
  border-radius: 14px;
}

.mug-choice span {
  font-size: 0.92rem;
  line-height: 1.4;
}

.mug-choice.active {
  border-color: var(--primary);
  box-shadow: 0 10px 24px rgba(125, 32, 52, 0.08);
}

.mug-gallery figure {
  margin: 0;
}

.mug-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
}

.variant-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 6px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
}

.stepper-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--accent-strong);
  color: var(--primary-dark);
  font-size: 1.3rem;
}

.stepper-value {
  min-width: 18px;
  text-align: center;
  font-weight: 700;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.add-to-cart-btn,
.submit-btn {
  min-height: 54px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, #cb546f 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(125, 32, 52, 0.16);
}

.product-cart-state,
.product-feedback {
  margin: 0;
  font-size: 0.9rem;
}

.product-feedback.is-error,
.error {
  color: var(--error);
}

.product-feedback.is-success {
  color: var(--success);
}

.contacts,
.summary {
  margin-top: 28px;
}

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

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

input,
textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(141, 23, 54, 0.14);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(196, 37, 78, 0.18);
  border-color: rgba(196, 37, 78, 0.4);
}

.privacy-note {
  margin: 18px 0 0;
  font-size: 0.92rem;
}

.summary-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}

.summary-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.summary-item-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.summary-item-title {
  font-weight: 700;
}

.summary-item-meta {
  font-size: 0.92rem;
  color: var(--muted);
}

.summary-item-side {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 8px;
}

.summary-remove-btn {
  border: 0;
  background: transparent;
  color: var(--primary-dark);
  padding: 0;
}

.summary-empty,
.summary-total {
  margin: 18px 0 0;
}

.summary-total {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.summary-error {
  margin-top: 16px;
}

.submit-btn {
  width: 100%;
  margin-top: 24px;
}

.service-offline,
.success-state {
  margin-top: 18px;
}

.success-state {
  display: none;
}

.site-footer {
  padding: 0 0 42px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 0.9fr;
  gap: 18px;
}

.footer-copy {
  max-width: 480px;
}

.footer-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--primary-dark);
  font-weight: 700;
}

.footer-link {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  text-decoration: none;
}

.footer-address {
  margin: 14px 0 0;
}

.reveal {
  opacity: 1;
  transform: none;
}

@media (max-width: 1024px) {
  .hero-points,
  .steps,
  .products-grid,
  .footer-grid,
  .contest-card {
    grid-template-columns: 1fr;
  }

  .summary-head,
  .product-top {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 720px) {
  .hero-wrap {
    padding-bottom: 60px;
  }

  .hero-content {
    padding-top: 40px;
  }

  .process-section,
  .contest-section,
  .order-section {
    padding-bottom: 64px;
  }

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

  .hero-card,
  .step,
  .contacts,
  .summary,
  .footer-card,
  .product-body,
  .service-offline,
  .success-state,
  .process-note,
  .contest-card {
    padding: 20px;
  }

  .summary-item {
    flex-direction: column;
  }

  .summary-item-side {
    align-items: start;
  }
}
