/* PC Master – Стили сайта. Цвета можно менять в админ-панели (content/site.json). */
:root {
  --blue: #1f5fd6;
  --blue-dark: #0d2a5c;
  --btn: #1f5fd6;
  --hero-start: #0a1d3f;
  --hero-end: #123a80;
  --ink: #101828;
  --muted: #5b6678;
  --bg: #ffffff;
  --bg-soft: #f3f6fb;
  --line: #dde4ef;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
section[id] { scroll-margin-top: 70px; }

/* Шапка */
header { background: var(--hero-start); position: sticky; top: 0; z-index: 10; }
.bar { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 14px; }
.logo { font-weight: 800; font-size: 1.3rem; letter-spacing: .02em; color: #fff; text-decoration: none; white-space: nowrap; }
.logo span { color: #6fa3ff; }
nav { display: flex; gap: 20px; align-items: center; }
nav a { color: #fff; text-decoration: none; font-size: .95rem; opacity: .85; }
nav a:hover { opacity: 1; }
nav a.btn { opacity: 1; }
.lang {
  background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .35); border-radius: 8px;
  padding: 6px 8px; font: inherit; font-size: .88rem; cursor: pointer;
}
.lang option { color: #101828; }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 600;
  text-decoration: none; border: 2px solid var(--btn); background: var(--btn); color: #fff; font-size: 1rem;
  cursor: pointer; font-family: inherit; text-align: center;
}
.btn:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; color: var(--btn); }
.btn.small { padding: 8px 16px; font-size: .9rem; }

/* Главный экран */
.hero { background: linear-gradient(135deg, var(--hero-start) 0%, var(--hero-end) 100%); padding: 72px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.15; color: #fff; margin-bottom: 18px; }
.hero p { font-size: 1.15rem; color: #c3d3f0; margin-bottom: 28px; max-width: 520px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn { background: #fff; color: var(--hero-start); border-color: #fff; }
.hero .btn.ghost { background: transparent; color: #fff; border-color: #fff; }
.tags { display: flex; gap: 6px 14px; flex-wrap: wrap; margin-top: 26px; font-size: .9rem; color: #c3d3f0; }
.tags span::before { content: "✓ "; color: #6fa3ff; font-weight: 700; }
.hero .photo {
  width: 100%; max-width: 460px; justify-self: center; border-radius: 18px; object-fit: cover; aspect-ratio: 4 / 3;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .15); height: auto;
}

/* Блоки */
section.block { padding: 72px 0; }
section.soft { background: var(--bg-soft); }
.block h2 { font-size: 2rem; color: var(--blue-dark); margin-bottom: 8px; }
.block .lead { color: var(--muted); margin-bottom: 36px; max-width: 640px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 8px 24px rgba(16, 40, 90, .1); transform: translateY(-2px); }
.card .n {
  width: 38px; height: 38px; border-radius: 10px; background: var(--bg-soft); color: var(--blue);
  display: grid; place-items: center; font-weight: 700; margin-bottom: 14px;
}
.card .n svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.08rem; margin-bottom: 6px; color: var(--ink); }
.card p { font-size: .94rem; color: var(--muted); }

/* Товары */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 8px 16px; border-radius: 999px;
  font: inherit; font-size: .92rem; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.product { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.product.sold { opacity: .65; }
.product .pic { position: relative; background: var(--bg-soft); }
.product .pic img { width: 100%; height: 190px; object-fit: cover; display: block; }
.product .badge {
  position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700;
  background: #e8f5ec; color: #14532d;
}
.product .badge.reserved { background: #fff4d6; color: #7a5200; }
.product .badge.sold { background: #fdecec; color: #7a1f1f; }
.product .body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.product .cat { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.product h3 { font-size: 1.15rem; margin-bottom: 8px; }
.product ul { list-style: none; font-size: .93rem; margin-bottom: 10px; }
.product li { padding: 5px 0; border-top: 1px solid var(--line); }
.product .desc { color: var(--muted); font-size: .92rem; margin-bottom: 10px; }
.product .meta { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.product .price { margin-top: auto; font-size: 1.3rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 12px; }
.product .price small { font-size: .85rem; font-weight: 600; color: var(--muted); }
.small-note { color: var(--muted); font-size: .85rem; margin-top: 18px; }
.more { margin-top: 28px; }

/* Webseiten */
.webbox { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center; }
.checks { list-style: none; }
.checks li { padding: 10px 0 10px 32px; position: relative; border-bottom: 1px solid var(--line); }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }

/* Ablauf */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; counter-reset: s; }
.step { padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 700; margin-bottom: 12px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: .94rem; }

.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.why div { padding-left: 16px; border-left: 3px solid var(--blue); }
.why strong { display: block; color: var(--blue-dark); }
.why span { color: var(--muted); font-size: .95rem; }

/* Форма */
.formbox { max-width: 720px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: 0 8px 28px rgba(16, 40, 90, .07); }
.field { margin-bottom: 18px; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
.field input[type=text], .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #c4cfe0; border-radius: 10px; font: inherit; background: #fff; color: var(--ink);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(31, 95, 214, .25); border-color: var(--blue); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
fieldset { border: none; }
.radios { display: flex; gap: 22px; flex-wrap: wrap; }
.radios label { font-weight: 400; display: flex; align-items: center; gap: 8px; margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.check input { margin-top: 5px; }
.check a { color: var(--blue); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formbox button { margin-top: 8px; }
.formbox button:disabled { opacity: .6; cursor: wait; }
.after { color: var(--muted); font-size: .9rem; margin-top: 12px; }
#msg { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 10px; }
#msg.ok { display: block; background: #e8f5ec; color: #14532d; }
#msg.err { display: block; background: #fdecec; color: #7a1f1f; }

/* Контакты */
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.contacts .card a { color: var(--blue); font-weight: 600; word-break: break-all; }

footer { background: var(--blue-dark); color: #c9d6ee; padding: 28px 0; font-size: .9rem; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
footer a { color: #c9d6ee; margin-left: 16px; }

/* Юридические страницы */
.legal { padding: 56px 20px 72px; max-width: 760px; margin: 0 auto; }
.legal h1 { color: var(--blue-dark); margin-bottom: 20px; }
.legal h2 { font-size: 1.15rem; margin: 26px 0 6px; color: var(--blue-dark); }
.legal p, .legal li { color: #2a3547; margin-bottom: 8px; }
.legal ul { padding-left: 22px; }
.legal .todo { background: #fff8e1; padding: 2px 6px; border-radius: 4px; }
.legal .note { color: var(--muted); font-style: italic; margin-bottom: 14px; }

.page-head { background: var(--bg-soft); padding: 48px 0 36px; border-bottom: 1px solid var(--line); }
.page-head h1 { color: var(--blue-dark); font-size: 2.2rem; }
.page-head p { color: var(--muted); max-width: 640px; }
.status-msg { color: var(--muted); padding: 40px 0; }

@media (max-width: 760px) {
  nav a:not(.btn) { display: none; }
  .hero .wrap, .webbox { grid-template-columns: 1fr; }
  .hero { padding: 48px 0; }
  .hero .photo { max-width: 100%; }
  .row { grid-template-columns: 1fr; }
  .formbox { padding: 20px; }
  section.block { padding: 52px 0; }
}
@media (max-width: 480px) {
  nav a.btn { display: none; }
}
