:root {
  --bg-base: #f6f3ef;
  --bg-elevated: rgba(255, 255, 255, 0.72);
  --text: #1a1716;
  --text-soft: #5c5450;
  --muted: #8a817c;
  --accent: #c45c6a;
  --accent-hover: #a84856;
  --accent-soft: rgba(196, 92, 106, 0.12);
  --line: rgba(26, 23, 22, 0.08);
  --shadow-sm: 0 1px 2px rgba(26, 23, 22, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 23, 22, 0.08);
  --shadow-lg: 0 20px 50px rgba(26, 23, 22, 0.12);
  --radius-card: 20px;
  --radius-pill: 999px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--bg-base);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -30%, rgba(196, 92, 106, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 10%, rgba(180, 160, 200, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 0% 30%, rgba(255, 210, 190, 0.18), transparent 45%);
  background-attachment: fixed;
  min-height: 100vh;
}

.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4rem) 1.25rem clamp(2rem, 4vw, 3rem);
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: auto 50% -40% 50%;
  transform: translateX(-50%);
  width: min(90vw, 520px);
  height: 280px;
  background: radial-gradient(circle, rgba(196, 92, 106, 0.22) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hero-badge--brand {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}

.hero-lead {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--text-soft);
  font-weight: 400;
  max-width: 28rem;
  margin-inline: auto;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem clamp(3rem, 6vw, 4rem);
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr minmax(160px, 240px);
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding: 0.65rem;
  border-radius: var(--radius-card);
  background: var(--bg-elevated);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

input,
select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder {
  color: var(--muted);
}

input:focus,
select:focus {
  outline: none;
  border-color: rgba(196, 92, 106, 0.45);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%238a817c' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.25rem;
}

.catalog-section {
  margin-top: 0.25rem;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  position: relative;
}

.section-head h2::after {
  content: "";
  display: block;
  margin-top: 0.4rem;
  width: 2.5rem;
  height: 3px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--accent), rgba(196, 92, 106, 0.35));
}

.section-sub {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
}

.meta {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  color: var(--text-soft);
  font-weight: 500;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.35rem;
}

.card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.35s cubic-bezier(0.34, 1.26, 0.64, 1),
    box-shadow 0.35s ease,
    border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(196, 92, 106, 0.18);
}

.card-photo {
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #f0e8e4 0%, #e8ddd8 100%);
  overflow: hidden;
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.33, 1, 0.68, 1);
}

.card:hover .card-photo img {
  transform: scale(1.06);
}

.card > h3,
.card > .desc,
.card > .card-weight,
.card > .card-bottom {
  padding-left: 1.15rem;
  padding-right: 1.15rem;
}

.card > .card-bottom {
  padding-bottom: 1.15rem;
}

.card > h3 {
  padding-top: 1rem;
}

.card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card .desc {
  margin: 0;
  margin-top: 0.35rem;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.45;
  min-height: 2.6rem;
}

.card-weight,
.summary-weight {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.card-weight-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.weight-select {
  width: 100%;
  max-width: 9rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
}

.weight-select:focus {
  outline: 2px solid rgba(196, 92, 106, 0.35);
  outline-offset: 1px;
  border-color: var(--accent);
}

.summary-weight {
  margin-top: 0.5rem;
}

.summary-weight .weight-select {
  max-width: 7.5rem;
}

.card-bottom {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.75rem;
  padding-top: 1rem;
}

.price-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.price {
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.price-per {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

.order-btn {
  flex-shrink: 0;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.62rem 1.15rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 14px rgba(196, 92, 106, 0.35);
}

.order-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.order-btn:active {
  transform: translateY(0);
}

.order-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--accent);
}

.empty-msg {
  grid-column: 1 / -1;
  margin: 0;
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-soft);
  font-size: 1rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-card);
  border: 1px dashed var(--line);
}

@media (max-width: 700px) {
  .toolbar {
    grid-template-columns: 1fr;
  }

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

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

.page-design .design-header {
  text-align: center;
  padding: clamp(1.5rem, 4vw, 2.5rem) 1.25rem 1rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.back-link:hover {
  opacity: 0.85;
  text-decoration: underline;
}

.design-header h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.design-intro {
  max-width: 26rem;
  margin-inline: auto;
}

.design-main {
  padding-top: 0;
}

.order-summary {
  margin-bottom: 2rem;
}

.order-summary-inner {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-card);
  background: var(--bg-elevated);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.order-summary-photo {
  flex-shrink: 0;
  width: 120px;
  height: 75px;
  border-radius: 12px;
  overflow: hidden;
  background: #eee;
}

.order-summary-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-summary-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.order-summary-name {
  margin: 0.15rem 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.order-summary-meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.design-error {
  padding: 1.5rem;
  border-radius: var(--radius-card);
  background: #fff5f5;
  border: 1px solid rgba(196, 92, 106, 0.25);
  color: var(--text);
}

.design-error a {
  color: var(--accent);
  font-weight: 600;
}

.design-section {
  margin-top: 0.5rem;
}

.design-grid {
  margin-bottom: 1.75rem;
}

button.card.design-card {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  width: 100%;
  cursor: pointer;
}

button.card.design-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--accent);
}

.design-card.card > .desc {
  padding-bottom: 1.15rem;
}

.design-card--selected {
  border-color: var(--accent) !important;
  box-shadow:
    0 0 0 4px var(--accent-soft),
    var(--shadow-lg) !important;
}

.design-card--selected:hover {
  border-color: var(--accent) !important;
}

.design-actions {
  display: flex;
  justify-content: center;
}

.design-continue {
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(196, 92, 106, 0.35);
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.design-continue:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.design-continue:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.design-toast {
  margin: 1.25rem auto 0;
  max-width: 36rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--text-soft);
  text-align: center;
}

.page-order .order-form-section {
  max-width: 32rem;
  margin: 0 auto 2rem;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.35rem 1.25rem 1.5rem;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.order-form-title {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.form-required {
  color: var(--accent);
}

.order-form input,
.order-form textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fff;
  color: var(--text);
}

.order-form textarea {
  resize: vertical;
  min-height: 5rem;
}

.order-form input:focus,
.order-form textarea:focus {
  outline: none;
  border-color: rgba(196, 92, 106, 0.45);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.order-submit {
  width: 100%;
  margin-top: 0.35rem;
}

.order-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.order-send-error {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: #fff5f5;
  border: 1px solid rgba(196, 92, 106, 0.35);
  color: #8b2e3a;
  font-size: 0.88rem;
  line-height: 1.4;
}

.order-success {
  max-width: 32rem;
  margin: 0 auto 2rem;
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-card);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  text-align: center;
}

.order-success h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.order-success p {
  margin: 0 0 1.25rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.seo-block {
  max-width: 36rem;
  margin: 2.5rem auto 2rem;
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-card);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
}

.seo-block h2 {
  margin: 1.25rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.seo-block h2:first-child {
  margin-top: 0;
}

.seo-block p {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.seo-steps {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.site-footer {
  text-align: center;
  padding: 1.5rem 1rem 2.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0.35rem 0;
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .order-summary-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .order-summary-photo {
    width: 100%;
    height: 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .card-photo img,
  .order-btn {
    transition: none;
  }

  .card:hover {
    transform: none;
  }

  .card:hover .card-photo img {
    transform: none;
  }

  .design-card:hover {
    transform: none;
  }

  .design-continue:hover:not(:disabled) {
    transform: none;
  }
}
