:root {
  color-scheme: light;
  --paper: #fff9f3;
  --cream: #f7faff;
  --white: #ffffff;
  --ink: #192f4b;
  --muted: #435875;
  --dark: #15375c;
  --wine: #c42349;
  --wine-dark: #a61e3e;
  --line: #dbe4f1;
  --blue: #2461b2;
  --sans: "Avenir Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.enhanced { display: none; }
.has-js .enhanced { display: block; }
html { scroll-behavior: smooth; }
body { margin: 0; font-size: 1rem; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: progress; opacity: .62; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: var(--sans); font-weight: 800; line-height: 1.02; letter-spacing: -.055em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.85rem); }
h3 { line-height: 1.25; }
p { overflow-wrap: break-word; }
:focus-visible { outline: 2px solid #2461b2; outline-offset: 4px; }
[id] { scroll-margin-top: 24px; }
.wrap { width: min(1120px, calc(100% - 88px)); margin-inline: auto; }
.section { padding: clamp(2.65rem, 5.7vw, 4.65rem) 0; }
.skip { position: absolute; z-index: 1; top: .75rem; left: .75rem; padding: .65rem 1rem; background: var(--white); transform: translateY(-180%); }
.skip:focus { transform: none; }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--dark); font: 850 1.6rem/1 var(--sans); letter-spacing: -.06em; text-decoration: none; white-space: nowrap; }
.brand-dot { color: var(--wine); }
.brand-mark { flex: 0 0 42px; width: 42px; height: 42px; }
nav { display: flex; align-items: center; gap: clamp(1.35rem, 4vw, 2.65rem); }
nav a, .footer-inner > a:not(.brand) { font-size: .9rem; font-weight: 550; text-decoration: none; }
nav a:hover, .footer-inner > a:not(.brand):hover { text-decoration: underline; }
.header-action { padding: .56rem .95rem; border: 1px solid #b6cdf0; border-radius: 10px; background: #eaf5ff; }

.hero { padding: clamp(.95rem, 3vw, 1.8rem) 0 0; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: center;
  gap: 1.15rem;
  padding: 0 clamp(1.8rem, 5.4vw, 4.5rem);
  border: 1px solid #cae4fc;
  border-radius: 28px;
  overflow: hidden;
  background: #def3ff;
}
.hero-copy { position: relative; z-index: 1; padding-block: clamp(1.5rem, 4vw, 3.75rem); }
.hero h1 { font-size: clamp(3rem, 6vw, 5.4rem); line-height: .98; letter-spacing: -.067em; }
.hero h1 em { color: var(--wine); font-style: normal; font-weight: 800; white-space: nowrap; }
.hero-copy > p { margin-top: .95rem; max-width: 22rem; color: #345579; font-size: clamp(1rem, 1.65vw, 1.2rem); line-height: 1.43; }
.hero-actions { display: flex; align-items: center; gap: .6rem 1rem; margin-top: 1.28rem; flex-wrap: wrap; }
.hero-actions > span { border-radius: 1.2rem; background: #fffabd; padding: .35rem .65rem; color: #5f470e; font-size: .84rem; font-weight: 750; }
.hero-figure { display: grid; position: relative; isolation: isolate; place-items: center; align-self: stretch; min-width: 0; }
.hero-figure::before { content: ""; position: absolute; z-index: -1; width: 92%; max-width: 330px; aspect-ratio: 1; border-radius: 50%; background: #bce7ff; }
.hero-figure img { width: 100%; max-width: 430px; height: 100%; max-height: 358px; object-fit: contain; object-position: center bottom; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .45rem; min-height: 46px; padding: .66rem 1.18rem; border: 1px solid transparent; border-radius: 11px; font-size: .94rem; font-weight: 650; line-height: 1.3; text-align: center; text-decoration: none; transition: background-color .16s ease, border-color .16s ease; }
.button.primary { background: var(--wine); border-color: var(--wine); color: #fffaf4; }
.button.primary:not(:disabled):hover { background: var(--wine-dark); border-color: var(--wine-dark); }
.button.secondary { background: var(--white); border-color: #acbfdc; color: var(--dark); }
.button.secondary:not(:disabled):hover { background: #e9f5ff; border-color: #4778b4; }
.button.small { min-height: 42px; font-size: .875rem; }
.button-icon { flex: 0 0 auto; display: block; }
.button.primary .button-icon { --icon-stroke: #fff5df; --icon-tray: #ae2344; --icon-fill: #f8d983; }

.generator { background: var(--cream); }
.section-intro { margin-bottom: 1.15rem; }
.section-intro p, .guide p, .questions p { margin-top: .55rem; color: var(--muted); }
.generator-layout { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr); gap: clamp(1.1rem, 3.5vw, 2.35rem); align-items: start; }
.editor, .preview { border: 1px solid var(--line); border-radius: 20px; }
.editor { padding: clamp(1.12rem, 2.9vw, 2rem); background: var(--white); box-shadow: 0 5px 18px #1945720a; }
.field { min-width: 0; margin: 0 0 1.25rem; padding: 0; border: 0; }
.field label, legend { display: block; margin: 0 0 .45rem; padding: 0; font-size: .91rem; font-weight: 700; }
input[type="text"], select, textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: .64rem .78rem;
  border: 1px solid #afc2db;
  border-radius: 10px;
  background: #fbfdff;
  color: var(--ink);
  font-size: 1rem;
}
input::placeholder, textarea::placeholder { color: #506886; opacity: 1; }
textarea { resize: vertical; min-height: 9rem; line-height: 1.48; }
select { appearance: none; padding-right: 1.8rem; background-image: linear-gradient(45deg, transparent 49%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 51%); background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
[aria-invalid="true"] { border-color: var(--wine); }
.choices, .actions, .label-row { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.choices label { position: relative; margin: 0; font-weight: 550; }
.choices input { position: absolute; height: 1px; width: 1px; margin: 0; opacity: 0; }
.choices span { display: flex; align-items: center; gap: .4rem; min-height: 41px; padding: .43rem .65rem; border: 1px solid #bccbe0; border-radius: 9px; background: var(--white); cursor: pointer; }
.choices input:checked + span { background: #ecf5ff; color: #173f77; border-color: #4f83ca; box-shadow: inset 0 0 0 1px #4f83ca; }
.choices input:focus-visible + span { outline: 2px solid var(--wine); outline-offset: 3px; }
.choices input:hover + span { border-color: #4f83ca; }
.design-field { container-type: inline-size; }
.design-choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.design-choices label { margin: 0; position: relative; min-width: 0; cursor: pointer; }
.design-choices input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.design-choices label > span { display: grid; gap: .38rem; height: 100%; padding: .32rem; border: 1px solid #c4d5ec; border-radius: 11px; background: #fff; }
.design-choices input:checked + span { border-color: #487dc7; background: #ecf5ff; box-shadow: inset 0 0 0 1px #487dc7; }
.design-choices input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 3px; }
.design-choices input:hover + span { border-color: #487dc7; }
.design-thumb { width: 100%; height: auto; aspect-ratio: 210 / 297; border: 1px solid #e5ecf5; border-radius: 5px; background: #f3f7fb; }
.design-name { padding-inline: .12rem; font-size: clamp(.75rem, 1.36vw, .86rem); line-height: 1.2; text-align: center; }
.preview-jump { display: none; margin-top: .6rem; }
@container (max-width: 344px) {
  .design-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .design-thumb { height: 98px; object-fit: contain; }
  .design-name { font-size: .86rem; }
}
.field-hint, .count, .preview-caption, .notice, .status { color: var(--muted); font-size: .875rem; }
.field-hint { margin-top: .45rem; }
.status:not(:empty) { margin-top: .65rem; }
.status[data-error], .error { color: var(--wine-dark); }
.error { font-size: .875rem; margin-top: .4rem; }
.personalization { margin-bottom: 1.25rem; border-block: 1px solid var(--line); }
summary { cursor: pointer; }
.personalization summary, .faq summary { padding: .7rem 0; font-size: .94rem; font-weight: 650; min-height: 44px; }
summary::marker { color: var(--wine); }
.details-fields { padding: .4rem 0 1rem; }
.details-fields .field { margin-bottom: .85rem; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.label-row { justify-content: space-between; margin-bottom: .35rem; }
.label-row label { margin: 0; }
.label-row.after-text { margin: .28rem 0 0; justify-content: end; }
.after-text .text-button { margin-right: auto; }
.text-button { display: inline-block; appearance: none; border: 0; background: transparent; color: var(--wine-dark); padding: .28rem 0; font-size: .875rem; font-weight: 650; line-height: 1.3; text-decoration: underline; text-underline-offset: .18em; text-align: left; }
.text-button:hover { color: var(--dark); }
.replace-note { margin-bottom: .55rem; padding: .65rem .75rem; border-radius: 9px; border: 1px solid #e3bcc4; background: #fff2f6; font-size: .89rem; }
.replace-note button { margin-right: .75rem; }
.editor-tail { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .45rem .85rem; }
.print-choice { display: inline-flex; align-items: center; gap: .45rem; min-height: 39px; font-size: .9rem; font-weight: 600; cursor: pointer; }
.print-choice input { width: 1.08rem; height: 1.08rem; accent-color: var(--blue); }
.actions { gap: .55rem; }
.notice { margin: 0 0 1rem; }

.preview { background: #ebf5ff; padding: clamp(.9rem, 2.4vw, 1.6rem); }
.preview-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin: 0 0 .8rem; }
.preview-top h3 { font-size: .95rem; }
.preview-format { color: #294e82; border-radius: 20px; padding: .42rem .65rem; background: #dbeaff; font: 700 .76rem/1 var(--sans); }
.preview-stage { display: grid; place-items: center; padding: clamp(.55rem, 1.4vw, .9rem); border: 1px solid #cbdff4; border-radius: 13px; background: #dfedff; }
.preview-stage > * { grid-area: 1 / 1; }
.preview-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 5px 15px #2b527423;
  cursor: zoom-in;
}
.preview-open img { width: 100%; height: auto; aspect-ratio: 210 / 297; }
.preview-stage[aria-busy="true"] .preview-open { opacity: .5; }
#preview-placeholder { display: grid; width: 100%; aspect-ratio: 210 / 297; place-items: center; padding: 1.1rem; text-align: center; color: var(--muted); }
.preview-caption:not(:empty) { margin-top: .62rem; line-height: 1.4; }
.preview-actions { margin-top: .92rem; }
.preview-dialog { width: min(94vw, 710px); height: max-content; max-height: 90vh; padding: 1rem; border: 1px solid #cbdff4; border-radius: 16px; background: var(--white); }
.preview-dialog::backdrop { background: #192f4bc9; }
.preview-dialog img { width: 100%; height: auto; }

.offers { margin-top: clamp(2.2rem, 6vw, 4.25rem); animation: appear .18s ease-out both; }
@keyframes appear { from { opacity: .55; transform: translateY(4px); } }
.offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.offer { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-content: center; align-items: center; gap: .72rem; min-height: 222px; border: 1px solid #f4cfbc; border-radius: 19px; background: #ffede0; padding: clamp(1rem, 2.6vw, 1.85rem); }
.offer-video { background: #e7eeff; border-color: #cbd9f1; }
.offer-copy { min-width: 0; }
.offer h3 { font: 800 clamp(1.4rem, 3.4vw, 2.1rem)/1.03 var(--sans); letter-spacing: -.045em; text-wrap: balance; }
.offer p { color: var(--muted); margin-top: .55rem; }
.offer-art { grid-column: 2; grid-row: 1 / span 2; width: 100%; height: auto; }
.offer-action { grid-column: 1; justify-self: start; max-width: 100%; padding-inline: clamp(.62rem, 1.2vw, .9rem); }
.share-button { display: inline-flex; align-items: center; gap: .35rem; }
.offers > .offer-grid + button { margin-top: 1rem; }

.guide { background: #eaf5ff; border-block: 1px solid var(--line); }
.guide h2 { margin-bottom: 1.1rem; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; padding: 0; margin: 0; list-style: none; }
.steps li { display: flex; align-items: center; gap: .65rem; padding: .72rem .85rem; border: 1px solid #d5e5f9; background: #fff; border-radius: 13px; }
.steps span { display: grid; flex: 0 0 42px; min-height: 42px; place-items: center; background: #d8eeff; border-radius: 12px; }
.steps li:nth-child(2) span { background: #ffe4cc; }
.steps li:nth-child(3) span { background: #ffe0eb; }
.steps h3 { font-size: 1rem; }
.questions-inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1.4rem, 5vw, 4rem); }
.questions { background: #fff6ed; }
.faq details { border-top: 1px solid #e9dccc; }
.faq details:last-child { border-bottom: 1px solid #e9dccc; }
.faq summary { min-height: 53px; padding-block: .88rem; font-size: 1rem; }
.faq details p { margin: 0 0 .95rem; max-width: 38rem; }
.site-footer { background: var(--cream); border-top: 1px solid var(--line); }
.footer-inner { min-height: 85px; }
.footer-inner .brand { margin-right: auto; }
.footer-inner > a:not(.brand) { margin-left: 1.2rem; }
.article-page { max-width: 770px; padding: clamp(3.4rem, 8vw, 7rem) 0; }
.article-page h1 { font-size: clamp(2.65rem, 7vw, 4.5rem); }
.article-page > p { font-size: 1.11rem; margin: 1rem 0 1.25rem; color: var(--muted); }
.example { padding-block: 2rem; border-bottom: 1px solid var(--line); }
.example h2 { font-size: clamp(1.85rem, 4vw, 2.75rem); margin-bottom: .85rem; }
.example p + p { margin-top: .6rem; }
.example a { margin-top: .9rem; }

@media (max-width: 930px) {
  .wrap { width: calc(100% - 56px); }
  .hero h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); }
  .hero-inner { gap: .6rem; }
  .choices span { padding-inline: .52rem; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 28px); }
  .section { padding-block: 2.35rem; }
  .header-inner { min-height: 61px; }
  .brand { font-size: 1.37rem; }
  .brand-mark { flex-basis: 35px; width: 35px; height: 35px; }
  nav > a:not(.header-action) { display: none; }
  .header-action { font-size: .8rem; padding: .5rem .65rem; min-height: 42px; display: flex; align-items: center; }
  .hero { padding-top: .65rem; }
  .hero-inner { padding-inline: .95rem .45rem; grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr); border-radius: 19px; }
  .hero-copy { padding-block: 1.32rem; }
  .hero h1 { font-size: clamp(1.75rem, 6.1vw, 2.8rem); }
  .hero-copy > p { font-size: .9rem; margin-top: .5rem; max-width: 17rem; }
  .hero-actions { margin-top: .7rem; gap: .42rem; }
  .hero-actions .button { min-height: 43px; font-size: .84rem; padding-inline: .7rem; }
  .hero-actions > span { font-size: .74rem; padding: .25rem .47rem; }
  .hero-figure img { max-height: 225px; object-position: center; }
  .generator { padding-top: 1.65rem; }
  .generator-layout, .offer-grid, .questions-inner { grid-template-columns: 1fr; }
  .preview-jump { display: inline-block; }
  .field-grid { grid-template-columns: 1fr; }
  .section-intro { margin-bottom: .85rem; }
  .offer { min-height: 168px; }
  .offer-art { grid-row: 1; }
  .offer-action { grid-column: 1 / -1; font-size: .88rem; }
  .steps { grid-template-columns: 1fr; }
  .footer-inner { padding-block: 1rem; flex-wrap: wrap; gap: .65rem 1rem; }
  .footer-inner .brand { width: 100%; }
  .footer-inner > a:not(.brand) { margin: 0; }
}
@media (max-width: 365px) {
  .design-choices { gap: .36rem; }
  .design-choices label > span { padding: .22rem; }
  .hero-inner { gap: .3rem; padding-inline: .7rem .25rem; }
  .hero h1 { font-size: 1.64rem; }
  .hero-actions .button { padding-inline: .56rem; }
  .editor { padding: .86rem; }
  .offer { padding: .9rem; gap: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
