:root {
  --paper: #f4f1e9;
  --ink: #191919;
  --muted: #67645f;
  --line: rgba(25, 25, 25, .15);
  --coral: #ff5b3f;
  --yellow: #ffcc4d;
  --blue: #6f80ff;
  --white: #fffefb;
  --shadow: 0 24px 70px rgba(25, 25, 25, .13);
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }

.site-header {
  min-height: 88px;
  padding: 16px clamp(22px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 241, 233, .94);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; }
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--coral);
  display: grid;
  place-items: center;
  transform: rotate(-5deg);
  flex: 0 0 auto;
}
.brand-mark svg { width: 31px; fill: white; stroke: white; stroke-width: 3; }
.brand-mark circle { fill: var(--ink); stroke: none; }
.brand-name { font-size: .94rem; font-weight: 900; line-height: .88; letter-spacing: -.045em; }
.desktop-nav { display: flex; gap: clamp(22px, 4vw, 48px); font-weight: 700; font-size: .93rem; }
.desktop-nav a { transition: color .2s ease; }
.desktop-nav a:hover { color: var(--coral); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 18px; }
.header-reviews { display: none; font-weight: 800; font-size: .88rem; white-space: nowrap; transition: color .2s ease; }
.header-reviews:hover { color: var(--coral); }

.button {
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-weight: 800;
  font-size: .94rem;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-dark { color: white; background: var(--ink); }
.button-dark:hover { background: var(--coral); }
.button-outline { background: transparent; border-color: var(--ink); }
.button-outline:hover { color: white; background: var(--ink); }
.button-quiet { min-height: 48px; padding-inline: 18px; border-color: transparent; background: transparent; color: var(--muted); }
.button-quiet:hover { color: var(--ink); background: rgba(25,25,25,.06); }

.hero {
  min-height: 650px;
  padding: clamp(58px, 8vw, 112px) clamp(22px, 7vw, 100px) clamp(72px, 9vw, 120px);
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
  gap: clamp(45px, 7vw, 110px);
  align-items: center;
  overflow: hidden;
}
.kicker { margin: 0 0 24px; font-size: .78rem; font-weight: 900; letter-spacing: .12em; }
.kicker span { display: inline-block; width: 27px; height: 4px; margin: 0 10px 3px 0; background: var(--coral); }
.kicker b { font: inherit; }
.kicker-light { color: var(--white); }
.hero h1, .section-heading h2, .tools-section h2, .order-section h2, .modal-info h2 {
  margin: 0;
  font-size: clamp(3.25rem, 6.7vw, 7.1rem);
  line-height: .84;
  letter-spacing: -.078em;
  font-weight: 950;
}
.hero h1 em, .section-heading h2 em, .tools-section h2 em, .order-section h2 em { color: var(--coral); font-style: normal; }
.hero-text { max-width: 620px; margin: 36px 0 0; color: var(--muted); font-size: clamp(1.05rem, 1.45vw, 1.28rem); line-height: 1.55; }
.hero-actions { margin-top: 30px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.text-link { font-weight: 800; border-bottom: 1px solid var(--ink); }
.delivery-note { margin-top: 42px; display: grid; grid-template-columns: 13px auto; column-gap: 10px; align-items: center; }
.delivery-note .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--blue); grid-row: span 2; }
.delivery-note strong { font-size: .92rem; }
.delivery-note small { color: var(--muted); font-size: .78rem; }

.hero-visual { min-height: 530px; position: relative; }
.polaroid {
  position: absolute;
  margin: 0;
  padding: 14px 14px 56px;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: 10px;
}
.polaroid img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.polaroid figcaption { position: absolute; left: 18px; right: 18px; bottom: 17px; font-size: .86rem; font-weight: 900; text-align: center; line-height: 1.05; }
.polaroid-main { width: min(57%, 360px); height: 500px; left: 7%; top: 0; transform: rotate(-6deg); }
.polaroid-small { width: min(47%, 295px); height: 410px; right: 2%; bottom: 0; transform: rotate(7deg); z-index: 2; }
.sticker { position: absolute; display: grid; place-items: center; z-index: 4; color: var(--ink); box-shadow: 0 8px 0 var(--ink); }
.sticker-heart { width: 84px; height: 84px; right: 5%; top: 0; border: 3px solid var(--ink); background: var(--yellow); border-radius: 50%; font-size: 2rem; transform: rotate(9deg); }
.sticker-star { width: 66px; height: 66px; left: 0; bottom: 3%; border: 3px solid var(--ink); background: var(--blue); border-radius: 18px; font-size: 2rem; transform: rotate(-12deg); }

.marquee { overflow: hidden; background: var(--ink); color: white; border-block: 1px solid var(--ink); }
.marquee-track { width: max-content; display: flex; align-items: center; gap: 28px; padding: 15px 0; font-weight: 950; font-size: .83rem; letter-spacing: .1em; animation: marquee 28s linear infinite; }
.marquee-track b { color: var(--yellow); font-size: 1.2rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .marquee-track { animation: none; } }

.catalog-section { padding: clamp(76px, 9vw, 130px) clamp(22px, 7vw, 100px); }
.section-heading { display: grid; grid-template-columns: 1.25fr .55fr; gap: 50px; align-items: end; margin-bottom: 58px; }
.section-heading h2, .tools-section h2, .order-section h2 { font-size: clamp(3.1rem, 6vw, 6.4rem); }
.section-heading > p { max-width: 390px; margin: 0 0 6px; color: var(--muted); font-size: 1.05rem; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.product-card { min-width: 0; }
.product-card-button {
  width: 100%;
  height: 100%;
  padding: 0;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.product-card-media { aspect-ratio: 1 / 1.05; position: relative; overflow: hidden; background: #e5e0d5; border-radius: var(--radius); }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.product-card-button:hover img { transform: scale(1.04); }
.card-number { position: absolute; top: 16px; left: 16px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--white); font-size: .75rem; font-weight: 900; }
.card-open { position: absolute; right: 16px; bottom: 16px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-size: 1.5rem; transition: background .2s, transform .2s; }
.product-card-button:hover .card-open { background: var(--coral); transform: rotate(45deg); }
.product-card-body { padding: 19px 4px 0; }
.product-eyebrow { color: var(--coral); margin: 0 0 8px; font-size: .69rem; line-height: 1.25; font-weight: 900; letter-spacing: .09em; }
.product-card h3 { margin: 0; font-size: clamp(1.35rem, 2.15vw, 2rem); line-height: 1; letter-spacing: -.045em; }
.product-meta { margin-top: 14px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.product-summary { margin: 0; color: var(--muted); font-size: .92rem; max-width: 76%; }
.product-price { flex: 0 0 auto; font-weight: 900; white-space: nowrap; }

.tools-section { padding: clamp(75px, 9vw, 120px) clamp(22px, 7vw, 100px); background: var(--ink); color: white; display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(48px, 8vw, 120px); }
.tools-section h2 em { color: var(--yellow); }
.tool-links { display: grid; gap: 18px; }
.tool-card { min-height: 180px; padding: 28px; border-radius: var(--radius); color: var(--ink); display: grid; grid-template-columns: 48px 1fr auto; gap: 20px; align-items: start; transition: transform .25s ease; }
.tool-card:hover { transform: translateX(8px); }
.tool-card-yellow { background: var(--yellow); }
.tool-card-blue { background: var(--blue); }
.tool-number { font-size: .75rem; font-weight: 900; }
.tool-card strong { display: block; margin-bottom: 8px; font-size: clamp(1.55rem, 2.5vw, 2.3rem); line-height: 1; letter-spacing: -.04em; }
.tool-card p { margin: 0; max-width: 540px; line-height: 1.45; }
.tool-arrow { font-size: 2rem; line-height: 1; }

.order-section { padding: clamp(76px, 10vw, 140px) clamp(22px, 7vw, 100px); display: grid; grid-template-columns: 1fr .8fr; gap: clamp(55px, 9vw, 130px); }
.order-copy > p:not(.kicker) { max-width: 620px; color: var(--muted); font-size: 1.07rem; margin: 34px 0 0; }
.contact-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.order-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.order-steps li { padding: 25px 0; display: grid; grid-template-columns: 48px 1fr; gap: 18px; border-bottom: 1px solid var(--line); }
.order-steps li > span { color: var(--coral); font-size: .78rem; font-weight: 900; }
.order-steps strong { display: block; font-size: 1.25rem; line-height: 1.1; }
.order-steps p { margin: 8px 0 0; color: var(--muted); }
.notice { margin: 0 clamp(22px, 7vw, 100px) clamp(70px, 9vw, 110px); padding: 24px 28px; border: 1px solid var(--line); border-radius: 18px; display: grid; grid-template-columns: 100px 1fr; gap: 20px; }
.notice strong { color: var(--coral); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.notice p { margin: 0; color: var(--muted); }

.site-footer { padding: 34px clamp(22px, 5vw, 72px); border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr auto; gap: 32px; align-items: end; }
.brand-footer { align-self: start; }
.site-footer > p { margin: 0; font-weight: 800; line-height: 1.25; }
.footer-links { display: flex; flex-wrap: wrap; gap: 15px 24px; justify-content: flex-end; font-size: .84rem; font-weight: 800; }
.footer-links a, .link-button { text-decoration: underline; text-underline-offset: 4px; }
.link-button { padding: 0; border: 0; background: none; cursor: pointer; }

.product-modal { width: min(1180px, calc(100vw - 34px)); max-width: calc(100vw - 34px); max-height: calc(100dvh - 34px); padding: 0; border: 0; border-radius: 30px; background: var(--paper); color: var(--ink); box-shadow: 0 28px 100px rgba(0,0,0,.34); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.product-modal::backdrop { background: rgba(15, 15, 15, .62); backdrop-filter: blur(6px); }
.modal-close { position: sticky; float: right; top: 18px; right: 18px; z-index: 5; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--ink); color: white; cursor: pointer; font-size: 1.8rem; line-height: 1; }
.modal-layout { width: 100%; max-width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr); min-height: 690px; }
.modal-gallery { min-width: 0; max-width: 100%; padding: 26px; background: #e8e3d9; overflow: hidden; }
.modal-main-image { height: 570px; border-radius: 20px; overflow: hidden; background: #d9d2c4; }
.modal-main-image img { width: 100%; height: 100%; object-fit: contain; }
.modal-thumbs { margin-top: 14px; display: flex; gap: 10px; overflow-x: auto; padding-bottom: 2px; }
.thumb-button { width: 72px; height: 72px; padding: 0; flex: 0 0 auto; border: 3px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; background: white; }
.thumb-button.active { border-color: var(--coral); }
.thumb-button img { width: 100%; height: 100%; object-fit: cover; }
.modal-info { min-width: 0; max-width: 100%; padding: 68px 50px 48px; overflow-wrap: anywhere; }
.modal-info h2 { max-width: 100%; font-size: clamp(2.8rem, 4.4vw, 5rem); overflow-wrap: anywhere; }
.modal-price { margin: 24px 0 0; font-size: 1.4rem; font-weight: 900; }
.modal-description { margin: 28px 0 34px; white-space: pre-line; color: var(--muted); line-height: 1.58; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.modal-actions .button { min-width: 0; }
.button-max { background: var(--blue); border-color: var(--ink); }
.button-max:hover { background: #8795ff; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 999px; background: var(--ink); color: white; font-size: .9rem; font-weight: 800; opacity: 0; pointer-events: none; transition: .25s ease; z-index: 100; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Catalog editor */
.editor-page { min-height: 100vh; }
.editor-header { grid-template-columns: 1fr auto; }
.editor-header-actions { display: flex; align-items: center; gap: 10px; }
.auth-locked .editor-main { display: none; }
.auth-screen[hidden], #logout-admin[hidden] { display: none; }
.auth-screen { min-height: calc(100vh - 89px); padding: 48px 22px; display: grid; place-items: center; }
.auth-card { width: min(630px, 100%); padding: clamp(32px, 5vw, 58px); border: 1px solid var(--line); border-radius: 30px; background: rgba(255,255,255,.45); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.auth-icon { position: absolute; right: 34px; top: 34px; width: 58px; height: 58px; display: grid; place-items: center; border: 3px solid var(--ink); border-radius: 18px; background: var(--blue); color: var(--ink); font-size: 1.2rem; transform: rotate(8deg); box-shadow: 0 7px 0 var(--ink); }
.auth-card h1 { margin: 0; font-size: clamp(3.4rem, 7vw, 5.8rem); line-height: .84; letter-spacing: -.07em; }
.auth-card h1 em { color: var(--coral); font-style: normal; }
.auth-card > p:not(.kicker) { max-width: 500px; margin: 28px 0 24px; color: var(--muted); }
.auth-card form > label { display: block; margin-bottom: 8px; font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.password-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.password-row input { min-width: 0; height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--ink); font-size: 1rem; }
.password-row input:focus { outline: 3px solid rgba(111,128,255,.3); border-color: var(--blue); }
.auth-error { min-height: 24px; margin: 10px 0 0; color: #b12d20; font-weight: 800; }
.editor-main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: clamp(58px, 8vw, 105px) 0 90px; }
.editor-intro { display: grid; grid-template-columns: 1.1fr .75fr; gap: 50px; align-items: end; }
.editor-intro .kicker { grid-column: 1 / -1; margin-bottom: -10px; }
.editor-intro h1 { margin: 0; font-size: clamp(4rem, 8vw, 7.5rem); line-height: .82; letter-spacing: -.075em; }
.editor-intro h1 em { color: var(--coral); font-style: normal; }
.editor-intro > p:last-child { margin: 0; color: var(--muted); font-size: 1.05rem; }
.editor-toolbar { display: flex; gap: 12px; flex-wrap: wrap; margin: 50px 0 10px; padding: 20px 0; border-block: 1px solid var(--line); }
.editor-status { min-height: 24px; margin: 10px 0 22px; color: var(--coral); font-weight: 800; }
.editor-list { display: grid; gap: 12px; }
.editor-row { min-height: 112px; display: grid; grid-template-columns: 96px 1fr auto; gap: 22px; align-items: center; padding: 12px 16px 12px 12px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.42); }
.editor-row-image { width: 96px; height: 88px; object-fit: cover; border-radius: 13px; background: #ddd6c9; }
.editor-row-info { min-width: 0; }
.editor-row-number { color: var(--coral); font-size: .7rem; font-weight: 900; letter-spacing: .08em; }
.editor-row h2 { margin: 2px 0 4px; font-size: 1.25rem; line-height: 1.1; }
.editor-row p { margin: 0; color: var(--muted); font-size: .88rem; }
.editor-row-actions { display: flex; align-items: center; gap: 7px; }
.icon-button, .small-button, .tiny-button { border: 1px solid var(--line); background: var(--white); cursor: pointer; font-weight: 800; }
.icon-button { width: 38px; height: 38px; border-radius: 50%; }
.small-button { min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: .8rem; }
.tiny-button { min-height: 32px; padding: 0 10px; border-radius: 999px; font-size: .72rem; }
.icon-button:hover, .small-button:hover, .tiny-button:hover { border-color: var(--ink); }
.icon-button:disabled, .tiny-button:disabled { opacity: .35; cursor: default; }
.danger-button { color: #b12d20; }
.editor-help { margin-top: 48px; padding: 28px; border-radius: 20px; background: var(--ink); color: white; display: grid; grid-template-columns: 220px 1fr; gap: 28px; }
.editor-help strong { color: var(--yellow); font-size: 1.25rem; }
.editor-help ol { margin: 0; padding-left: 20px; }
.editor-help li + li { margin-top: 7px; }

.edit-dialog { width: min(760px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 0; border: 0; border-radius: 26px; background: var(--paper); color: var(--ink); box-shadow: 0 28px 100px rgba(0,0,0,.34); }
.edit-dialog::backdrop { background: rgba(15,15,15,.62); backdrop-filter: blur(5px); }
.edit-dialog form { padding: 34px; }
.edit-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 26px; }
.edit-dialog-head .kicker { margin-bottom: 10px; }
.edit-dialog-head h2 { margin: 0; font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -.06em; line-height: .9; }
.edit-dialog-head .modal-close { position: static; flex: 0 0 auto; }
.edit-dialog label { display: grid; gap: 7px; margin-bottom: 18px; font-size: .8rem; font-weight: 900; letter-spacing: .04em; }
.edit-dialog input:not([type="file"]), .edit-dialog textarea { width: 100%; border: 1px solid var(--line); border-radius: 13px; background: white; padding: 13px 14px; color: var(--ink); font-size: 1rem; line-height: 1.4; letter-spacing: 0; font-weight: 400; resize: vertical; }
.edit-dialog input:focus, .edit-dialog textarea:focus { outline: 3px solid rgba(111,128,255,.3); border-color: var(--blue); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.image-field { padding: 18px; border: 1px solid var(--line); border-radius: 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.image-field strong, .image-field small { display: block; }
.image-field small { margin-top: 3px; color: var(--muted); }
.upload-button { margin: 0 !important; padding: 10px 14px; border-radius: 999px; background: var(--blue); color: var(--ink); cursor: pointer; white-space: nowrap; }
.upload-button input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.image-editor-list { margin: 14px 0 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.image-editor-item { padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.image-editor-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 9px; }
.image-editor-item > div { margin-top: 7px; display: flex; gap: 5px; flex-wrap: wrap; }
.empty-images { grid-column: 1 / -1; color: var(--muted); }
.edit-actions { display: flex; justify-content: flex-end; gap: 12px; position: sticky; bottom: -34px; margin: 0 -34px -34px; padding: 18px 34px; background: rgba(244,241,233,.96); border-top: 1px solid var(--line); }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .header-reviews { display: inline-flex; }
  .hero { grid-template-columns: 1fr .9fr; padding-inline: 40px; }
  .hero h1 { font-size: clamp(3.6rem, 8vw, 5.8rem); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-section { grid-template-columns: 1fr; }
  .order-section { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .site-header { min-height: 72px; padding: 12px 18px; }
  .header-actions { gap: 10px; }
  .header-reviews { font-size: .78rem; }
  .header-cta { min-height: 44px; padding: 0 16px; font-size: .82rem; }
  .brand-mark { width: 39px; height: 39px; }
  .hero { min-height: auto; padding: 55px 20px 72px; grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: clamp(3.2rem, 15vw, 5rem); }
  .hero-text { margin-top: 28px; }
  .hero-visual { min-height: 440px; }
  .polaroid-main { left: 2%; width: 58%; height: 390px; }
  .polaroid-small { width: 48%; height: 325px; }
  .sticker-heart { width: 66px; height: 66px; }
  .sticker-star { width: 55px; height: 55px; }
  .catalog-section, .tools-section, .order-section { padding-inline: 20px; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; margin-bottom: 36px; }
  .section-heading h2, .tools-section h2, .order-section h2 { font-size: clamp(3rem, 13vw, 4.7rem); }
  .product-grid { grid-template-columns: 1fr; gap: 38px; }
  .product-card-media { aspect-ratio: 1 / 1; }
  .product-summary { max-width: 70%; }
  .tool-card { grid-template-columns: 34px 1fr auto; padding: 22px; min-height: 170px; }
  .notice { margin-inline: 20px; grid-template-columns: 1fr; gap: 8px; }
  .site-footer { padding: 28px 20px; grid-template-columns: 1fr; align-items: start; }
  .footer-links { justify-content: flex-start; }
  .product-modal { width: calc(100vw - 16px); max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); margin: auto; border-radius: 22px; }
  .modal-layout { display: block; width: 100%; min-height: 0; }
  .modal-gallery { width: 100%; padding: 10px; }
  .modal-main-image { width: 100%; height: min(56dvh, 430px); border-radius: 15px; }
  .modal-thumbs { width: 100%; gap: 8px; padding: 2px 0 4px; }
  .thumb-button { width: 64px; height: 64px; border-radius: 10px; }
  .modal-info { width: 100%; padding: 32px 18px 24px; }
  .modal-info h2 { font-size: clamp(2.15rem, 11vw, 3.15rem); line-height: .92; letter-spacing: -.06em; }
  .modal-price { margin-top: 18px; }
  .modal-description { margin: 24px 0 28px; font-size: 1rem; line-height: 1.55; overflow-wrap: anywhere; }
  .modal-actions { flex-direction: column; align-items: stretch; }
  .modal-actions .button { width: 100%; min-height: 50px; padding-inline: 16px; font-size: .9rem; }
  .modal-close { position: fixed; top: max(14px, env(safe-area-inset-top)); right: 14px; width: 46px; height: 46px; }
  .editor-main { width: min(100% - 28px, 1180px); padding-top: 45px; }
  .editor-intro { grid-template-columns: 1fr; gap: 24px; }
  .editor-intro .kicker { margin-bottom: 0; }
  .editor-row { grid-template-columns: 76px 1fr; align-items: start; }
  .editor-row-image { width: 76px; height: 76px; }
  .editor-row-actions { grid-column: 1 / -1; flex-wrap: wrap; }
  .editor-help { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .image-field { align-items: flex-start; flex-direction: column; }
  .image-editor-list { grid-template-columns: repeat(2, 1fr); }
  .edit-dialog form { padding: 24px; }
  .edit-actions { bottom: -24px; margin: 0 -24px -24px; padding: 14px 24px; }
  .auth-screen { min-height: calc(100vh - 72px); padding: 24px 14px; }
  .auth-icon { width: 48px; height: 48px; right: 22px; top: 22px; }
  .password-row { grid-template-columns: 1fr; }
  .password-row .button { width: 100%; }
}

@media (max-width: 520px) {
  .site-header > .brand .brand-name { display: none; }
  .header-cta { padding-inline: 13px; }
}

@media (max-width: 430px) {
  .brand-name { display: none; }
  .hero-actions, .contact-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button, .contact-actions .button { width: 100%; }
  .text-link { width: max-content; align-self: center; }
  .hero-visual { min-height: 370px; }
  .polaroid-main { height: 335px; }
  .polaroid-small { height: 280px; }
  .product-meta { align-items: flex-end; }
}
