/* print3d — стили. Без внешних шрифтов и библиотек. Сначала мобильная вёрстка. */
:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --text: #1c1d21;
  --muted: #5d6069;
  --line: #e3e3df;
  --accent: #e8590c;
  --accent-ink: #ffffff;
  --accent-soft: #fff1e8;
  --ok: #2b8a3e;
  --err: #c92a2a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 24px rgba(0,0,0,.05);
  --wrap: 1080px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131417; --surface: #1c1d22; --text: #ececee; --muted: #a3a6ae;
    --line: #2d2f36; --accent: #ff7a33; --accent-ink: #1a0d05; --accent-soft: #2a1d15;
    --ok: #51cf66; --err: #ff6b6b; color-scheme: dark;
  }
}

/* Языки: показываем только выбранный. По умолчанию (без JS) — русский. */
html[data-lang="ru"] body [lang="et"],
html[data-lang="et"] body [lang="ru"] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* Шапка */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; }
.brand svg { width: 28px; height: 28px; color: var(--accent); }
.nav { display: none; gap: 18px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--text); }
.lang { margin-left: auto; display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.lang button {
  border: 0; background: transparent; color: var(--muted); font: inherit; font-size: .85rem; font-weight: 600;
  padding: 4px 12px; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
@media (min-width: 860px) { .nav { display: flex; } .lang { margin-left: 8px; } }

/* Секции */
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--line); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 46ch; }
.hero { padding: 48px 0 56px; }
.hero .wrap { display: grid; gap: 32px; align-items: center; }
.hero-art { border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); padding: 24px; }
.hero-art svg { width: 100%; height: auto; color: var(--accent); }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 1.2fr 1fr; } .hero { padding: 80px 0; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 650;
  text-decoration: none; cursor: pointer; min-height: 48px;
}
.btn:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn[disabled] { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.grid { display: grid; gap: 16px; }
@media (min-width: 680px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grid.four { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 560px) and (max-width: 899px) { .grid.four { grid-template-columns: 1fr 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.card .ico svg { width: 24px; height: 24px; }
.card ul { margin: 0; padding-left: 1.2em; color: var(--muted); }

.step { position: relative; padding-top: 56px; }
.step .num {
  position: absolute; top: 18px; left: 22px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: .9rem;
}

/* Заглушки, которые владелец заменит своим текстом */
.ph {
  display: inline-block; background: #fff3bf; color: #5c3c00; border: 1px dashed #f08c00;
  padding: 0 6px; border-radius: 6px; font-weight: 700; font-family: ui-monospace, Consolas, monospace; font-size: .92em;
}

.gallery .shot {
  aspect-ratio: 4 / 3; border-radius: var(--radius); border: 1px dashed var(--line);
  background: repeating-linear-gradient(45deg, var(--surface) 0 12px, var(--bg) 12px 24px);
  display: grid; place-items: center; color: var(--muted); font-size: .9rem; text-align: center; padding: 12px;
}

details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
details + details { margin-top: 10px; }
summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details > div { padding: 0 0 16px; color: var(--muted); }

/* Форма */
form.order { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 600; font-size: .95rem; }
.req { color: var(--err); }
.hint { color: var(--muted); font-size: .85rem; }
input[type="text"], input[type="email"], input[type="number"], input[type="date"], textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 48px;
}
textarea { min-height: 140px; resize: vertical; }
input:focus-visible, textarea:focus-visible, button:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px;
}
.choice { display: grid; gap: 10px; }
@media (min-width: 560px) { .choice { grid-template-columns: 1fr 1fr; } }
.choice label {
  display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; background: var(--surface); cursor: pointer; font-weight: 500;
}
.choice input { margin-top: 5px; accent-color: var(--accent); }
.consent { display: flex; gap: 10px; align-items: flex-start; }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.drop {
  border: 2px dashed var(--line); border-radius: 12px; padding: 18px; background: var(--surface); text-align: center;
}
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop input[type="file"] { width: 100%; }
.filelist { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; text-align: left; }
.filelist li { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; padding: 6px 10px; border-radius: 8px; background: var(--bg); }
.filelist li.bad { color: var(--err); }
.msg { padding: 12px 14px; border-radius: 10px; font-weight: 600; }
.msg.err { background: color-mix(in srgb, var(--err) 12%, transparent); color: var(--err); }
.msg[hidden] { display: none; }
/* Ловушка для ботов: невидима для людей */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.contacts dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
.contacts dt { color: var(--muted); }
.contacts dd { margin: 0; }

footer { padding: 32px 0 48px; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }

/* Простые страницы (политика, спасибо, 404) */
.page { padding: 40px 0 64px; }
.page .wrap { max-width: 760px; }
.page h2 { font-size: 1.3rem; margin-top: 1.8em; }
.page ul { padding-left: 1.2em; }
.center { text-align: center; }
.big-ok { width: 72px; height: 72px; margin: 0 auto 20px; color: var(--ok); }
.order-no { font-family: ui-monospace, Consolas, monospace; background: var(--surface); border: 1px solid var(--line); padding: 2px 10px; border-radius: 8px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
