/* SYI.kz — новая главная (/new/). Один файл, без зависимостей от старых CSS. */
:root {
  --bg: #fbf7f0;
  --surface: #ffffff;
  --ink: #1e2230;
  --muted: #6b6f7b;
  --line: #ebe3d6;
  --brand: #155e54;
  --brand-ink: #ffffff;
  --brand-soft: #e3efec;
  --gold: #c28a2c;
  --gold-soft: #f6ead3;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(30, 34, 48, .08);
  --head: "Montserrat", system-ui, sans-serif;
  --body: "Onest", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; padding-bottom: 96px; }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0; }
.n-wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.n-muted { color: var(--muted); margin: .4rem 0 1.4rem; }
.n-h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
.n-h3 { font-size: 1.1rem; margin: 2rem 0 .8rem; }

/* buttons */
.n-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 0; cursor: pointer;
  background: var(--brand); color: var(--brand-ink); font: 700 1rem var(--head); padding: .9rem 1.5rem;
  border-radius: 999px; text-decoration: none; transition: transform .15s, box-shadow .15s, opacity .15s; }
.n-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(21, 94, 84, .25); }
.n-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.n-btn--lg { font-size: 1.1rem; padding: 1.05rem 1.9rem; }
.n-btn--sm { font-size: .9rem; padding: .6rem 1.1rem; }
.n-btn--ghost { background: var(--surface); color: var(--brand); border: 2px solid var(--brand); }

/* header */
.n-top { position: sticky; top: 0; z-index: 20; background: rgba(251, 247, 240, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.n-top__in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.n-logo { font: 800 1.35rem var(--head); color: var(--ink); text-decoration: none; letter-spacing: .02em; }
.n-logo span { color: var(--gold); }
.n-top__nav { display: flex; align-items: center; gap: 14px; }
.n-lang a { font: 600 .85rem var(--head); color: var(--muted); text-decoration: none; padding: 4px 6px; border-radius: 6px; }
.n-lang a.is-on { color: var(--ink); background: var(--gold-soft); }
.n-link { color: var(--ink); text-decoration: none; font-weight: 500; }
@media (max-width: 560px) { .n-link, .n-top .n-btn--sm { display: none; } }

/* hero */
.n-hero { padding: 48px 0 32px; }
.n-hero__in { display: grid; gap: 32px; align-items: center; }
.n-kicker { display: inline-block; margin: 0 0 1rem; padding: .35rem .8rem; border-radius: 999px; background: var(--gold-soft); color: #8a5d12; font: 600 .85rem var(--head); }
.n-hero h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); font-weight: 800; }
.n-lead { font-size: 1.15rem; color: var(--muted); margin: 1rem 0 1.6rem; max-width: 34rem; }
.n-points { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.n-points li { color: var(--muted); font-size: .95rem; }
.n-points li::before { content: "✓ "; color: var(--brand); font-weight: 700; }
.n-hero__art { display: flex; justify-content: center; }
@media (min-width: 900px) { .n-hero { padding: 72px 0 48px; } .n-hero__in { grid-template-columns: 1.15fr .85fr; } }

/* phone frame */
.n-phone { position: relative; width: 300px; max-width: 100%; aspect-ratio: 9 / 18.5; border-radius: 38px; background: #111; padding: 10px; box-shadow: 0 25px 60px rgba(30, 34, 48, .22); }
.n-phone img, .n-phone iframe { width: 100%; height: 100%; border: 0; border-radius: 29px; background: #fff; object-fit: cover; }
.n-phone__empty { position: absolute; inset: 10px; border-radius: 29px; background: linear-gradient(160deg, var(--brand-soft), var(--gold-soft)); display: flex; align-items: center; justify-content: center; text-align: center; padding: 30px; color: var(--muted); font-weight: 500; }
.n-phone--hero { transform: rotate(3deg); }

/* how */
.n-how { padding: 24px 0 40px; }
.n-steps { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 16px; }
.n-steps li { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.n-steps b { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font: 700 1rem var(--head); margin-bottom: .7rem; }
.n-steps h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.n-steps p { margin: 0; color: var(--muted); }
@media (min-width: 760px) { .n-steps { grid-template-columns: repeat(3, 1fr); } }

/* questionnaire */
.n-build { padding: 40px 0; background: linear-gradient(180deg, var(--bg), #f5eee2); }
.n-build__in { display: grid; gap: 32px; }
@media (min-width: 980px) { .n-build__in { grid-template-columns: minmax(0, 1fr) 340px; } }
.n-card { border: 0; margin: 0 0 16px; padding: 20px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.n-card legend { float: left; width: 100%; padding: 0; margin-bottom: 14px; font: 700 1.05rem var(--head); display: flex; align-items: center; gap: 10px; }
.n-card legend + * { clear: both; }
.n-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gold-soft); color: #8a5d12; font-size: .9rem; }
.n-sub { margin: 14px 0 8px; font-size: .9rem; color: var(--muted); }
.n-help { margin: 6px 0 0; font-size: .85rem; color: var(--muted); }
.n-input { width: 100%; font: 500 1rem var(--body); color: var(--ink); background: #fcfaf6; border: 1.5px solid var(--line); border-radius: 12px; padding: .85rem 1rem; outline: none; transition: border-color .15s, box-shadow .15s; }
.n-input + .n-input { margin-top: 10px; }
.n-input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); background: #fff; }
.n-input--big { font: 700 1.25rem var(--head); }
.n-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.n-field span { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 4px; }

.n-types { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 620px) { .n-types { grid-template-columns: repeat(3, 1fr); } }
.n-type { position: relative; cursor: pointer; border-radius: 14px; overflow: hidden; border: 2px solid transparent; background: #f3ede3; }
.n-type input, .n-chip input, .n-seg input, .n-addon input, .n-style input { position: absolute; opacity: 0; pointer-events: none; }
.n-type__img { display: block; aspect-ratio: 4 / 3; background-size: cover; background-position: center; }
.n-type__name { display: block; padding: 8px 10px; font: 600 .92rem var(--head); }
.n-type:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.n-type:has(input:checked) .n-type__name::after { content: " ✓"; color: var(--brand); }
.n-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.n-chip span { display: inline-block; padding: .5rem .9rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-weight: 500; font-size: .92rem; }
.n-chip:has(input:checked) span { border-color: var(--brand); background: var(--brand); color: #fff; }
.n-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.n-seg span { display: inline-block; padding: .6rem 1rem; border-radius: 12px; border: 1.5px solid var(--line); cursor: pointer; font-weight: 500; }
.n-seg label:has(input:checked) span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.n-type:has(input:focus-visible), .n-chip:has(input:focus-visible) span, .n-seg label:has(input:focus-visible) span,
.n-addon:has(input:focus-visible), .n-style:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }

.n-preview-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.n-status { color: var(--muted); font-size: .9rem; }
.n-status.is-ok { color: var(--brand); }
.n-status.is-err { color: #b3261e; }

/* live phone (desktop) */
.n-live { display: none; }
@media (min-width: 980px) {
  .n-live { display: block; }
  .n-live__sticky { position: sticky; top: 88px; display: flex; flex-direction: column; align-items: center; }
  .n-live__cap { margin: 0 0 10px; font: 600 .9rem var(--head); color: var(--muted); }
  .n-build .n-preview-bar #n-preview-btn { display: none; }
}

/* constructor */
.n-options { padding: 48px 0 32px; }
.n-free { background: var(--brand-soft); border-radius: var(--radius); padding: 18px 22px; }
.n-free h3 { font-size: 1rem; color: var(--brand); margin-bottom: .5rem; }
.n-free ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; color: #2d4a45; font-size: .95rem; }
.n-free li::before { content: "• "; color: var(--brand); }
.n-styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; }
.n-style { position: relative; cursor: pointer; text-align: center; }
.n-style__thumb { display: block; aspect-ratio: 9 / 16; border-radius: 14px; background-size: cover; background-position: top center; border: 2px solid var(--line); box-shadow: var(--shadow); }
.n-style__name { display: block; margin-top: 6px; font: 600 .82rem var(--head); }
.n-style__tag { position: absolute; top: 6px; left: 6px; font: 700 .7rem var(--head); padding: 3px 7px; border-radius: 999px; background: #fff; color: var(--brand); }
.n-style__tag.is-paid { background: var(--gold); color: #fff; }
.n-style:has(input:checked) .n-style__thumb { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.n-addons { display: grid; gap: 12px; margin-top: 2rem; }
@media (min-width: 760px) { .n-addons { grid-template-columns: 1fr 1fr; } }
.n-addon { position: relative; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; cursor: pointer;
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px; transition: border-color .15s, background .15s; }
.n-addon__icon { font-size: 1.6rem; text-align: center; }
.n-addon__body b { display: block; font: 700 1rem var(--head); }
.n-addon__body small { color: var(--muted); font-size: .88rem; }
.n-addon__price { font: 700 1rem var(--head); color: var(--gold); white-space: nowrap; }
.n-addon:has(input:checked) { border-color: var(--brand); background: #f4faf8; }
.n-addon:has(input:checked) .n-addon__price::before { content: "✓ "; color: var(--brand); }

/* faq */
.n-faq { padding: 32px 0 48px; }
.n-faq details { background: var(--surface); border-radius: 14px; padding: 16px 20px; margin-top: 10px; box-shadow: var(--shadow); }
.n-faq summary { cursor: pointer; font: 600 1rem var(--head); }
.n-faq p { margin: .6rem 0 0; color: var(--muted); }

/* sticky total */
.n-total { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(30, 34, 48, .08); padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)); }
.n-total__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.n-total__sum span { display: block; font-size: .8rem; color: var(--muted); }
.n-total__sum strong { font: 800 1.35rem var(--head); }
.n-total__cta { display: flex; align-items: center; gap: 14px; }
.n-total__cta small { max-width: 280px; color: var(--muted); font-size: .78rem; line-height: 1.35; }
@media (max-width: 720px) { .n-total__cta small { display: none; } }

.n-foot { padding: 24px 0; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); }

/* preview modal */
.n-modal { border: 0; padding: 16px; border-radius: 24px; background: var(--bg); max-height: 96vh; }
.n-modal::backdrop { background: rgba(20, 22, 30, .6); }
.n-modal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-family: var(--head); }
.n-modal__head button { border: 0; background: var(--surface); width: 36px; height: 36px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.n-phone--modal { width: min(340px, 86vw); max-height: 82vh; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .n-btn, .n-input { transition: none; } .n-phone--hero { transform: none; } }

/* подвал: ссылки на посадочные по видам тоя */
.n-foot__types { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: 0 0 .9rem; }
.n-foot__types a { color: inherit; opacity: .85; }

/* Заглушка телефона прячется атрибутом hidden, но display:flex выше его перебивал —
   превью загружалось, а надпись «Анкетаны толтырыңыз» оставалась поверх. */
[hidden] { display: none !important; }

/* поля под вид тоя — под карточками «Той түрі» */
.n-details { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed rgba(0,0,0,.12); }
.n-details .n-field--age { max-width: 120px; }
@media (max-width: 560px) { .n-details { grid-template-columns: 1fr; } }
.n-maps { display: grid; gap: 8px; margin-top: 8px; }
.n-other { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.n-other .n-sub { margin: 0; }
.n-other select { flex: 1 1 220px; max-width: 360px; }
