/* =========================================================
   Объектив — стили
   Палитра: кремовый фон, фиолетовый — главный цвет действий,
   лавандовый — поверхности, лаймовый — акцент (скидки, отметки).
   ========================================================= */
:root {
  --cream: #FFF1EB;
  --cream-2: #FFF8F4;
  --lime: #B9D440;
  --lime-soft: #E6F0B8;
  --lav: #BC9BF3;
  --lav-soft: #EBDFFC;
  --violet: #7360F9;
  --violet-deep: #5440E6;
  --ink: #231A5A;
  --ink-2: #5A5280;
  --line: #E7D8F7;
  --danger: #C8344F;

  --display: 'Unbounded', 'Montserrat', system-ui, sans-serif;
  --body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; outline: none; }
img { max-width: 100%; display: block; }
a { color: var(--violet-deep); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 7.4vw, 64px); }
h2 { font-size: clamp(24px, 5vw, 40px); }
h3 { font-size: clamp(18px, 3.6vw, 22px); font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- кнопки ---------- */
.btn {
  --bg: var(--violet); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 16px; text-decoration: none;
  cursor: pointer; transition: transform .15s ease, background .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--violet-deep); }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-lime { --bg: var(--lime); --fg: var(--ink); }
.btn-lime:hover { background: #A9C431; }
.btn-ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-soft { --bg: var(--lav-soft); --fg: var(--ink); }
.btn-soft:hover { background: var(--lav); }
.btn-danger { --bg: transparent; --fg: var(--danger); box-shadow: inset 0 0 0 2px currentColor; }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; display: inline-grid; place-items: center;
  background: transparent; cursor: pointer; color: var(--ink);
}
.icon-btn:hover { background: var(--lav-soft); }
.icon-btn svg { width: 24px; height: 24px; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- шапка ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.topbar.scrolled { border-color: var(--line); }
.topbar-in { display: flex; align-items: center; gap: 12px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.logo img { width: 38px; height: 38px; }
.logo span { font: 700 21px/1 var(--display); letter-spacing: -0.02em; }
.nav { display: none; gap: 4px; }
.nav a {
  padding: 10px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: 15px;
}
.nav a:hover, .nav a.active { background: var(--lav-soft); }
.top-actions { display: flex; align-items: center; gap: 4px; }
.top-cta { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; }
  .burger { display: none; }
  .top-cta { display: inline-flex; }
}

.drawer {
  position: fixed; inset: 0; z-index: 60; background: var(--violet); color: #fff;
  display: flex; flex-direction: column; padding: 16px var(--gutter) calc(24px + var(--safe-b));
  transform: translateY(-100%); visibility: hidden; transition: transform .3s cubic-bezier(.2,.8,.2,1), visibility .3s;
}
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; height: 48px; }
.drawer .icon-btn { color: #fff; }
.drawer .icon-btn:hover { background: rgba(255,255,255,.15); }
.drawer nav { display: flex; flex-direction: column; margin-top: 24px; }
.drawer nav a {
  color: #fff; text-decoration: none; font: 600 28px/1.2 var(--display); padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.2);
}
.drawer .btn { margin-top: auto; }
@media (prefers-reduced-motion: reduce) { .drawer { transition: none; } }

/* ---------- бегущая строка ---------- */
.ticker { background: var(--lime); color: var(--ink); overflow: hidden; white-space: nowrap; padding: 14px 0; }
.ticker-track { display: inline-flex; gap: 28px; animation: ticker 32s linear infinite; padding-left: 28px; }
.ticker-track span { font: 600 18px/1 var(--display); display: inline-flex; align-items: center; gap: 28px; }
.ticker-track svg { width: 18px; height: 18px; flex: none; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- главная: первый экран ---------- */
.hero { padding: 28px 0 40px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero-copy h1 { max-width: 13ch; }
.hero-copy p { margin-top: 18px; font-size: 17px; max-width: 46ch; color: var(--ink-2); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 28px; }
.hero-note { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.hero-note i { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px var(--lime-soft); }
@media (max-width: 599px) { .hero-cta .btn { width: 100%; } }
@media (min-width: 900px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
}

/* мозаика из плиток + полароиды */
.mosaic { position: relative; aspect-ratio: 1 / 1; max-width: 560px; width: 100%; margin: 0 auto; }
.tiles { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); border-radius: var(--r-lg); overflow: hidden; }
.tiles svg { width: 100%; height: 100%; display: block; }
.polaroid {
  position: absolute; background: #fff; padding: 9px 9px 34px; border-radius: 4px;
  box-shadow: 0 18px 30px -12px rgba(35, 26, 90, .35);
  width: 46%;
}
.polaroid .ph { aspect-ratio: 4/5; background: var(--lav-soft); overflow: hidden; }
.polaroid .ph img { width: 100%; height: 100%; object-fit: cover; }
.polaroid .ph svg { width: 100%; height: 100%; }
.polaroid figcaption { position: absolute; left: 12px; right: 12px; bottom: 8px; font: 600 12px/1.2 var(--display); color: var(--ink-2); }
.polaroid.p1 { left: 5%; top: 5%; transform: rotate(-7deg); }
.polaroid.p2 { right: 3%; top: 37%; transform: rotate(6deg); }
.mosaic-badge {
  position: absolute; left: 3%; bottom: -5%; width: 30%; aspect-ratio: 1; border-radius: 50%;
  background: var(--lime); color: var(--ink); display: grid; place-items: center; text-align: center;
  font: 700 clamp(14px, 3.4vw, 20px)/1.1 var(--display); transform: rotate(-10deg);
  box-shadow: 0 0 0 6px var(--cream);
}
.mosaic-badge small { display: block; font: 600 11px/1.2 var(--body); margin-top: 4px; }

/* ---------- секции ---------- */
.section { padding: 56px 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.section-head p { color: var(--ink-2); max-width: 46ch; }
@media (min-width: 900px) { .section { padding: 88px 0; } }

/* услуги */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .svc-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.svc {
  position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  border-radius: var(--r-md); overflow: hidden; background: var(--cream-2);
}
.svc-img { aspect-ratio: 4/3.4; overflow: hidden; background: var(--lav-soft); }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.svc-img svg { width: 100%; height: 100%; }
.svc:hover .svc-img img { transform: scale(1.04); }
.svc-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.svc-body h3 { font-size: 16px; }
.svc-body p { font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.svc-price { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--violet-deep); font-size: 14px; }
.svc.featured { grid-column: 1 / -1; background: var(--violet); color: #fff; }
.svc.featured .svc-body p { color: rgba(255,255,255,.85); }
.svc.featured .svc-price { color: var(--lime); }
@media (min-width: 760px) {
  .svc-body { padding: 18px 20px 22px; }
  .svc-body h3 { font-size: 19px; }
  .svc-body p { font-size: 14px; }
  .svc.featured { grid-column: 1 / -1; flex-direction: row; }
  .svc.featured .svc-img { flex: 0 0 56%; aspect-ratio: 16 / 9; }
  .svc.featured .svc-body { padding: 36px 40px; justify-content: center; gap: 12px; }
  .svc.featured h3 { font-size: 30px; }
  .svc.featured .svc-body p { font-size: 16px; -webkit-line-clamp: 4; }
  .svc.featured .svc-price { margin-top: 8px; font-size: 18px; }
}
@media (max-width: 759px) { .svc.featured .svc-img { aspect-ratio: 16/9; } }

/* как заказать */
.steps-block { background: var(--violet); color: #fff; border-radius: var(--r-lg); padding: 32px 22px; }
.steps-block h2 { color: #fff; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; background: rgba(255,255,255,.1); border-radius: var(--r-md); padding: 20px; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; }
.steps li::before {
  content: counter(s); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%;
  background: var(--lime); color: var(--ink); display: grid; place-items: center; font: 700 18px/1 var(--display);
}
.steps strong { font: 600 17px/1.3 var(--display); }
.steps span { color: rgba(255,255,255,.85); font-size: 15px; }
@media (min-width: 760px) {
  .steps-block { padding: 56px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .steps li { grid-template-columns: 1fr; padding: 24px; }
  .steps li::before { grid-row: auto; margin-bottom: 14px; }
}

/* скидка: шесть кружков */
.loyal { display: grid; gap: 28px; align-items: center; background: var(--lime); border-radius: var(--r-lg); padding: 32px 22px; }
.loyal p { margin-top: 12px; max-width: 42ch; }
.dots6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; max-width: 420px; }
.dots6 i {
  aspect-ratio: 1; border-radius: 50%; background: var(--cream); display: grid; place-items: center;
  font: 700 clamp(11px, 2.6vw, 15px)/1 var(--display); font-style: normal; color: var(--ink-2);
}
.dots6 i.on { background: var(--lav); color: var(--ink); }
.dots6 i.gift { background: var(--violet); color: #fff; }
@media (min-width: 760px) { .loyal { grid-template-columns: 1fr 1fr; padding: 56px; } }

/* промо футболок */
.tee-promo { display: grid; gap: 20px; background: var(--lav); border-radius: var(--r-lg); padding: 32px 22px 0; overflow: hidden; }
.tee-promo p { margin-top: 12px; max-width: 40ch; }
.tee-promo .btn { margin-top: 22px; }
.tee-art { position: relative; max-width: 360px; justify-self: center; width: 100%; }
.tee-art img { width: 100%; }
.tee-art .tee-print { position: absolute; left: 33%; top: 27%; width: 34%; height: 30%; border-radius: 6px; overflow: hidden; }
.tee-art .tee-print svg { width: 100%; height: 100%; }
@media (min-width: 760px) { .tee-promo { grid-template-columns: 1.1fr .9fr; padding: 56px 56px 0; align-items: end; } .tee-promo > div:first-child { padding-bottom: 56px; } }

/* контакты */
.contacts { display: grid; gap: 14px; }
.contact-card { background: var(--cream-2); border-radius: var(--r-md); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.contact-card b { font: 600 13px/1.3 var(--body); color: var(--ink-2); }
.contact-card span, .contact-card a { font: 600 18px/1.35 var(--display); color: var(--ink); text-decoration: none; }
.contact-card a:hover { color: var(--violet-deep); }
@media (min-width: 760px) { .contacts { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* ---------- подвал ---------- */
.footer { background: var(--ink); color: #E9E3FF; padding: 40px 0 calc(32px + var(--safe-b)); margin-top: 40px; }
.footer-grid { display: grid; gap: 24px; }
.footer .logo { color: #fff; }
.footer a { color: #fff; }
.footer small { color: #A9A1D6; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { text-decoration: none; font-weight: 500; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1fr auto; align-items: center; } }
body.has-bar .footer { padding-bottom: calc(120px + var(--safe-b)); }

/* ---------- страница услуги ---------- */
.page-hero { padding: 24px 0 8px; }
.crumbs { font-size: 14px; color: var(--ink-2); margin-bottom: 14px; }
.crumbs a { color: var(--ink-2); }
.page-hero h1 { font-size: clamp(28px, 6.4vw, 52px); max-width: 18ch; }
.page-hero p.lead { margin-top: 14px; font-size: 17px; color: var(--ink-2); max-width: 52ch; }
.page-cover { margin-top: 24px; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/9; background: var(--lav-soft); }
.page-cover img { width: 100%; height: 100%; object-fit: cover; }
.blocks { display: flex; flex-direction: column; gap: 32px; padding-block: 32px 24px; max-width: 760px; }
.b-heading { font-size: clamp(22px, 4.4vw, 30px); }
.b-text { font-size: 17px; line-height: 1.65; }
.b-text p + p, .b-text p + ul, .b-text ul + p { margin-top: 14px; }
.b-text ul { padding-left: 0; list-style: none; margin: 0; }
.b-text li { position: relative; padding-left: 26px; margin: 8px 0; }
.b-text li::before { content: ''; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: inset 0 0 0 2px var(--ink); }
.b-image figure { margin: 0; }
.b-image img { border-radius: var(--r-md); width: 100%; }
.b-image figcaption { font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.b-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.b-gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 1; }
.b-gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 760px) { .b-gallery { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
.price-table { background: var(--cream-2); border-radius: var(--r-md); padding: 8px 20px; }
.price-table h3 { padding: 16px 0 6px; }
.price-row { display: flex; align-items: baseline; gap: 10px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.price-row:last-child { border-bottom: 0; }
.price-row .nm { flex: 1; }
.price-row .nm small { display: block; color: var(--ink-2); font-size: 13px; }
.price-row .pr { font: 600 17px/1 var(--display); white-space: nowrap; color: var(--violet-deep); }
.callout { background: var(--lime); border-radius: var(--r-md); padding: 22px; }
.callout h3 { margin-bottom: 6px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font: 500 28px/1 var(--display); color: var(--violet); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--ink-2); }
.service-cta { position: sticky; bottom: calc(12px + var(--safe-b)); z-index: 20; display: flex; justify-content: center; padding: 8px 0 0; }
.service-cta .btn { box-shadow: 0 12px 30px -10px rgba(83, 64, 230, .6); min-width: min(100%, 360px); }

/* ---------- формы ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-weight: 600; font-size: 14px; }
.field small { color: var(--ink-2); font-size: 13px; }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: var(--r-sm);
  border: 2px solid var(--line); background: #fff; font-size: 16px; /* 16px — iPhone не будет зумить */
  transition: border-color .15s;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--violet); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23231A5A' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form-error { background: #FDE6EA; color: var(--danger); border-radius: var(--r-sm); padding: 12px 14px; font-weight: 500; font-size: 14px; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; min-height: 40px; }
.check input { width: 22px; height: 22px; accent-color: var(--violet); }

/* чипы-переключатели */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: #fff; box-shadow: inset 0 0 0 2px var(--line); font-weight: 600; font-size: 15px; cursor: pointer;
  transition: background .15s, box-shadow .15s, color .15s; user-select: none;
}
.chip input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.chip input:focus-visible + span { outline: 3px solid var(--violet); outline-offset: 2px; }
.chip input:disabled + span { opacity: .4; cursor: not-allowed; }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter); }
.chips-scroll::-webkit-scrollbar { display: none; }
.chip-sm span { min-height: 36px; padding: 0 12px; font-size: 14px; }

.stepper { display: inline-flex; align-items: center; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 2px var(--line); }
.stepper button { width: 44px; height: 44px; border: 0; background: none; font: 600 22px/1 var(--display); cursor: pointer; color: var(--ink); border-radius: 50%; }
.stepper button:hover { background: var(--lav-soft); }
.stepper input { width: 46px; text-align: center; border: 0; background: none; font-weight: 700; font-size: 16px; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ---------- конструктор печати ---------- */
.tool-head { padding: 24px 0 16px; }
.tool-head p { margin-top: 10px; color: var(--ink-2); max-width: 52ch; }
.tool-grid { display: grid; gap: 20px; padding-bottom: 40px; }
@media (min-width: 1000px) { .tool-grid { grid-template-columns: 1fr 360px; align-items: start; } }
.drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px;
  min-height: 200px; border-radius: var(--r-lg); border: 2px dashed var(--lav); background: var(--cream-2);
  padding: 28px 20px; cursor: pointer; transition: background .15s, border-color .15s;
}
.drop.over { background: var(--lav-soft); border-color: var(--violet); }
.drop svg { width: 56px; height: 56px; }
.drop strong { font: 600 19px/1.3 var(--display); }
.drop.compact { min-height: 0; flex-direction: row; padding: 16px; border-radius: var(--r-md); }
.drop.compact svg { width: 32px; height: 32px; }
.drop.compact strong { font-size: 16px; }
.drop.compact .muted { display: none; }

.defaults { background: var(--cream-2); border-radius: var(--r-md); padding: 18px; display: grid; gap: 14px; overflow: hidden; }
.defaults .lbl { font-weight: 600; font-size: 14px; margin-bottom: 8px; }

.photo-list { display: grid; gap: 12px; }
@media (min-width: 640px) { .photo-list { grid-template-columns: repeat(2, 1fr); } }
.photo {
  display: grid; grid-template-columns: 96px 1fr; gap: 12px 14px; background: #fff; border-radius: var(--r-md); padding: 12px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.photo-thumb { position: relative; width: 96px; height: 120px; border-radius: 10px; overflow: hidden; background: var(--lav-soft); display: grid; place-items: center; font: 600 12px var(--display); color: var(--ink-2); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb .prog { position: absolute; left: 0; bottom: 0; height: 5px; background: var(--lime); transition: width .2s; }
.photo-main { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.photo-top { display: flex; align-items: start; gap: 6px; }
.photo-name { flex: 1; font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-top: 10px; }
.photo-top .icon-btn { width: 38px; height: 38px; margin: -2px -4px 0 0; }
.photo-row { display: flex; gap: 8px; }
.photo-row .select { min-height: 44px; padding: 8px 36px 8px 12px; font-size: 15px; background-position: right 10px center; }
.photo-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.photo-price { font: 600 16px/1 var(--display); }
.warn { font-size: 12px; color: #9A5B00; background: #FFF0CC; padding: 4px 8px; border-radius: 6px; align-self: start; }
.photo .stepper button { width: 38px; height: 38px; font-size: 19px; }
.photo .stepper input { width: 36px; }

.summary { background: #fff; border-radius: var(--r-lg); padding: 22px; box-shadow: inset 0 0 0 1px var(--line); display: none; }
@media (min-width: 1000px) { .summary { display: block; position: sticky; top: 84px; } }
.sum-rows { display: grid; gap: 10px; margin: 16px 0; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.sum-row.disc { color: #4B6A00; font-weight: 600; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--ink); padding-top: 14px; margin-top: 4px; }
.sum-total b { font: 700 26px/1 var(--display); }
.loyal-mini { display: flex; gap: 10px; align-items: center; background: var(--lime-soft); border-radius: var(--r-sm); padding: 12px; font-size: 14px; margin-top: 14px; }
.loyal-mini .dots6 { gap: 4px; width: 120px; flex: none; }
.loyal-mini .dots6 i { font-size: 0; }

/* нижняя панель на телефоне */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: var(--ink); color: #fff;
  padding: 12px var(--gutter) calc(12px + var(--safe-b));
  display: flex; align-items: center; gap: 12px;
  border-radius: 22px 22px 0 0;
  transform: translateY(110%); transition: transform .25s ease;
}
.bar.show { transform: none; }
.bar-info { flex: 1; min-width: 0; }
.bar-info b { display: block; font: 700 20px/1.1 var(--display); }
.bar-info small { color: #C9C1F5; font-size: 13px; }
.bar .btn { min-height: 50px; }
@media (min-width: 1000px) { .bar.desk-hide { display: none; } }

/* ---------- конструктор футболок ---------- */
.tee-tool { display: grid; gap: 20px; padding-bottom: 40px; }
@media (min-width: 1000px) { .tee-tool { grid-template-columns: 1.15fr .85fr; align-items: start; } }
.stage-wrap { background: var(--cream-2); border-radius: var(--r-lg); padding: 14px; }
.stage { position: relative; width: 100%; max-width: 560px; margin: 0 auto; user-select: none; -webkit-user-select: none; touch-action: none; }
.stage > img.tpl { width: 100%; pointer-events: none; }
.print-area { position: absolute; overflow: hidden; outline: 2px dashed rgba(115, 96, 249, .7); outline-offset: 0; }
.print-area.clean { outline-color: transparent; }
.print-area img.art { position: absolute; left: 0; top: 0; transform-origin: center center; pointer-events: none; max-width: none; }
.print-area .hint { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-size: 13px; font-weight: 600; color: var(--violet-deep); padding: 8px; }
.stage-tools { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.range { display: grid; grid-template-columns: 80px 1fr; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.range input { width: 100%; accent-color: var(--violet); height: 32px; }
.tee-panel { display: grid; gap: 22px; }
.tpl-pick { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px; scrollbar-width: none; }
.tpl-pick::-webkit-scrollbar { display: none; }
.tpl-opt { flex: none; width: 92px; border: 0; background: #fff; border-radius: var(--r-sm); padding: 6px; cursor: pointer; box-shadow: inset 0 0 0 2px var(--line); text-align: center; }
.tpl-opt img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.tpl-opt span { display: block; font-size: 12px; font-weight: 600; margin-top: 4px; line-height: 1.2; }
.tpl-opt[aria-pressed="true"] { box-shadow: inset 0 0 0 3px var(--violet); }
.panel-lbl { font-weight: 700; font-size: 15px; margin-bottom: 10px; display: flex; justify-content: space-between; gap: 10px; }
.panel-lbl small { font-weight: 500; color: var(--ink-2); }

/* ---------- окна (снизу на телефоне) ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 70; background: rgba(35, 26, 90, .45); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s ease; }
.sheet {
  background: var(--cream); width: 100%; max-width: 520px; max-height: 92vh; overflow: auto;
  border-radius: 26px 26px 0 0; padding: 10px 22px calc(24px + var(--safe-b));
  animation: up .28s cubic-bezier(.2,.8,.2,1);
}
.sheet-grip { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }
.sheet-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sheet-head h2 { font-size: 24px; }
@media (min-width: 640px) {
  .sheet-bg { align-items: center; }
  .sheet { border-radius: 26px; padding: 24px 28px 28px; }
  .sheet-grip { display: none; }
}
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sheet, .sheet-bg { animation: none; } }
.tabs { display: flex; background: var(--lav-soft); border-radius: 999px; padding: 4px; margin-bottom: 20px; }
.tabs button { flex: 1; border: 0; background: none; min-height: 44px; border-radius: 999px; font-weight: 600; cursor: pointer; }
.tabs button[aria-selected="true"] { background: #fff; box-shadow: 0 2px 8px rgba(35,26,90,.1); }
.upl-list { display: grid; gap: 8px; margin: 14px 0; }
.upl-item { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.upl-item .track { flex: 1; height: 8px; border-radius: 4px; background: var(--lav-soft); overflow: hidden; }
.upl-item .track i { display: block; height: 100%; background: var(--violet); width: 0; transition: width .2s; }

.success { text-align: center; padding-block: 48px 64px; max-width: 520px; margin: 0 auto; }
.success-badge { width: 120px; height: 120px; margin: 0 auto 24px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; font: 700 30px/1 var(--display); }
.success p { margin-top: 14px; color: var(--ink-2); }
.success .btn { margin-top: 24px; }

/* ---------- кабинет ---------- */
.acct { display: grid; gap: 20px; padding-block: 24px 40px; }
@media (min-width: 900px) { .acct { grid-template-columns: 340px 1fr; align-items: start; } }
.card { background: #fff; border-radius: var(--r-lg); padding: 22px; box-shadow: inset 0 0 0 1px var(--line); }
.order-card { background: #fff; border-radius: var(--r-md); padding: 18px; box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 12px; }
.order-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.order-top h3 { font-size: 18px; }
.badge { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.st-new { background: var(--lime); color: var(--ink); }
.st-work { background: var(--lav); color: var(--ink); }
.st-ready { background: var(--violet); color: #fff; }
.st-done { background: #E8E4F2; color: var(--ink-2); }
.st-cancelled { background: #FDE6EA; color: var(--danger); }
.thumbs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.thumbs img, .thumbs .noimg { width: 60px; height: 72px; object-fit: cover; border-radius: 8px; flex: none; background: var(--lav-soft); }

/* ---------- уведомление ---------- */
.toast {
  position: fixed; left: 50%; top: calc(76px + env(safe-area-inset-top, 0px)); transform: translate(-50%, -20px); z-index: 90;
  background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 14px; font-weight: 600; font-size: 15px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--danger); }

.empty { text-align: center; padding: 40px 20px; color: var(--ink-2); }
.empty strong { display: block; font: 600 19px/1.3 var(--display); color: var(--ink); margin-bottom: 8px; }
.loading { padding: 80px 0; text-align: center; color: var(--ink-2); }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 4px solid var(--lav-soft); border-top-color: var(--violet); animation: spin .8s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(20, 14, 50, .92); display: grid; place-items: center; padding: 20px; }
.lightbox img { max-height: 90vh; border-radius: 10px; }
.lightbox .icon-btn { position: absolute; top: 14px; right: 14px; color: #fff; }

/* =========================================================
   Админка
   ========================================================= */
.admin { padding-block: 20px 60px; }
.admin-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)) 20px; padding: 2px var(--gutter); }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tabs a { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; background: #fff; box-shadow: inset 0 0 0 2px var(--line); }
.admin-tabs a.active { background: var(--ink); color: #fff; box-shadow: none; }
.admin-tabs .count { background: var(--lime); color: var(--ink); border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.admin-head h1 { font-size: clamp(24px, 5vw, 34px); }
.notice { background: #FFF0CC; border-radius: var(--r-md); padding: 14px 16px; font-size: 14px; margin-bottom: 18px; }
.notice a { font-weight: 700; }
.filters { display: grid; gap: 10px; margin-bottom: 16px; }
@media (min-width: 760px) { .filters { grid-template-columns: 1fr auto; align-items: center; } }

.a-orders { display: grid; gap: 12px; }
.a-order { background: #fff; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.a-order > summary { list-style: none; cursor: pointer; padding: 16px; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; }
.a-order > summary::-webkit-details-marker { display: none; }
.a-order .o-title { font: 600 17px/1.3 var(--display); }
.a-order .o-meta { font-size: 14px; color: var(--ink-2); }
.a-order .o-total { font: 700 18px/1 var(--display); text-align: right; }
.a-order-body { padding: 0 16px 18px; display: grid; gap: 16px; border-top: 1px dashed var(--line); padding-top: 16px; }
.o-contact { display: flex; flex-wrap: wrap; gap: 8px; }
.o-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.o-file { background: var(--cream-2); border-radius: var(--r-sm); padding: 8px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.o-file img, .o-file .noimg { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 8px; background: var(--lav-soft); display: grid; place-items: center; font-weight: 700; color: var(--ink-2); }
.o-file b { font-size: 14px; }
.o-file .btn { min-height: 38px; font-size: 13px; padding: 0 10px; }
.o-actions { display: grid; gap: 10px; }
@media (min-width: 760px) { .o-actions { grid-template-columns: 220px 1fr auto; align-items: end; } }

.a-list { display: grid; gap: 10px; }
.a-row { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: var(--r-md); padding: 10px 12px; box-shadow: inset 0 0 0 1px var(--line); }
.a-row img, .a-row .noimg { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; background: var(--lav-soft); }
.a-row .info { flex: 1; min-width: 0; }
.a-row .info b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-row .info small { color: var(--ink-2); }
.a-row .acts { display: flex; gap: 2px; }

.editor { display: grid; gap: 20px; }
@media (min-width: 1000px) { .editor { grid-template-columns: 360px 1fr; align-items: start; } .editor > .card:first-child { position: sticky; top: 84px; } }
.blk { background: #fff; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); padding: 14px; display: grid; gap: 12px; }
.blk-head { display: flex; align-items: center; gap: 6px; }
.blk-head b { flex: 1; font: 600 15px/1.2 var(--display); }
.blk-head .icon-btn { width: 38px; height: 38px; }
.blk-head .icon-btn svg { width: 20px; height: 20px; }
.blk-rows { display: grid; gap: 8px; }
.blk-row { display: grid; grid-template-columns: 1fr 110px 40px; gap: 6px; align-items: start; }
.blk-row.faq-row { grid-template-columns: 1fr 40px; }
.blk-row .input, .blk-row .textarea { min-height: 44px; padding: 8px 12px; font-size: 15px; }
.add-blocks { display: flex; flex-wrap: wrap; gap: 8px; }
.img-field { display: flex; gap: 10px; align-items: center; }
.img-field .preview { width: 84px; height: 64px; border-radius: 10px; background: var(--lav-soft); object-fit: cover; flex: none; }
.gal-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 6px; }
.gal-edit div { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; }
.gal-edit img { width: 100%; height: 100%; object-fit: cover; }
.gal-edit button { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(35,26,90,.8); color: #fff; cursor: pointer; }
.save-bar { position: sticky; bottom: 0; z-index: 25; background: color-mix(in srgb, var(--cream) 92%, transparent); backdrop-filter: blur(8px); padding: 12px 0 calc(12px + var(--safe-b)); display: flex; gap: 10px; flex-wrap: wrap; }
.save-bar .btn { flex: 1; min-width: 140px; }

.area-editor { position: relative; touch-action: none; user-select: none; -webkit-user-select: none; background: repeating-conic-gradient(#f3eef9 0 25%, #fff 0 50%) 0 0 / 20px 20px; border-radius: var(--r-md); overflow: hidden; }
.area-editor img { width: 100%; pointer-events: none; }
.area-rect { position: absolute; border: 2px dashed var(--violet); background: rgba(185, 212, 64, .28); cursor: move; }
.area-rect .hdl { position: absolute; right: -14px; bottom: -14px; width: 28px; height: 28px; border-radius: 50%; background: var(--violet); border: 3px solid #fff; cursor: nwse-resize; }
.area-rect span { position: absolute; left: 6px; top: 4px; font-size: 12px; font-weight: 700; color: var(--ink); }

.set-table { display: grid; gap: 8px; }
.set-row { display: grid; gap: 6px; grid-template-columns: 1fr 1fr 40px; align-items: center; }
.set-row.fmt { grid-template-columns: 1.4fr .7fr .7fr 1fr 40px; }
.set-row .input { min-height: 44px; padding: 8px 10px; font-size: 15px; }
.set-row.head { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.grid-2 { display: grid; gap: 14px; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.stack { display: grid; gap: 20px; }
.help { background: var(--lav-soft); border-radius: var(--r-md); padding: 16px; font-size: 14px; }
.help ol { margin: 8px 0 0; padding-left: 20px; }
.help li { margin: 4px 0; }
.desk-only { display: none; }
@media (min-width: 1000px) { .desk-only { display: block; } }

/* защита от горизонтальной прокрутки на телефоне */
.tool-grid > *, .tee-tool > *, .editor > *, .acct > * { min-width: 0; }
.photo-row .select { flex: 1; min-width: 0; }
.chip span { white-space: nowrap; }
.defaults .chips-scroll { margin: 0 -18px; padding: 2px 18px; }
html, body { overflow-x: clip; }
.stack, .tool-grid, .tee-tool, .editor, .acct, .tee-panel { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) {
  .tool-grid { grid-template-columns: minmax(0, 1fr) 360px; }
  .tee-tool { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
  .editor { grid-template-columns: 360px minmax(0, 1fr); }
}
@media (min-width: 900px) { .acct { grid-template-columns: 340px minmax(0, 1fr); } }
