/* Qayda — фирменный стиль. Только системные шрифты, никаких внешних CDN. */

:root {
  --teal: #04A8B0;
  --teal-dark: #038189;
  --teal-soft: #E2F6F7;
  --ink: #0F2B2C;
  --body: #354747;
  --muted: #7A8B8B;
  --bg: #F1F4F4;
  --card: #FFFFFF;
  --line: #E3E9E9;
  --radius: 20px;
  --radius-sm: 14px;
  --wrap: 1120px;
  --shadow: 0 2px 10px rgba(15, 43, 44, .05);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; margin: 0 0 12px; }
h2 { font-size: clamp(23px, 3vw, 30px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 700; }

a { color: var(--teal-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--teal); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 10; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

/* ---------- Шапка ---------- */

.site-header {
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5;
  backdrop-filter: saturate(180%) blur(10px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }

.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.logo-mark {
  width: 22px; height: 22px; border-radius: 7px;
  background: var(--teal);
  box-shadow: inset 0 0 0 4px #fff, 0 0 0 2px var(--teal);
}
.logo-text { font-size: 21px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }

.site-nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.site-nav a { color: var(--body); text-decoration: none; }
.site-nav a:hover { color: var(--teal-dark); }
.site-nav .lang {
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px;
  background: #fff; color: var(--teal-dark); font-weight: 600;
}

/* ---------- Герой ---------- */

.hero { padding: 56px 0 20px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }

.kicker {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--teal-dark); font-weight: 600; font-size: 15px; margin-bottom: 14px;
}
.pin {
  width: 0; height: 0; display: inline-block;
  border-left: 9px solid var(--teal); border-top: 5px solid transparent; border-bottom: 5px solid transparent;
  transform: rotate(-35deg);
}

.lead { font-size: 19px; color: var(--body); margin: 0 0 14px; max-width: 34em; }
.hero-note { color: var(--muted); font-size: 15px; margin: 0 0 26px; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 16px;
  background: var(--teal); color: #fff; text-decoration: none;
}
.store:hover { background: var(--teal-dark); color: #fff; }
.store-soon { background: #fff; color: var(--muted); border: 1px solid var(--line); font-weight: 500; }

/* ---------- Макет телефона ---------- */

.hero-phone { display: flex; justify-content: center; }
.phone {
  width: 300px; height: 612px; border-radius: 44px; background: #10312F; padding: 10px;
  position: relative; box-shadow: 0 26px 50px rgba(15, 43, 44, .22);
}
.phone-notch {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 26px; border-radius: 999px; background: #10312F; z-index: 2;
}
.phone-screen {
  height: 100%; border-radius: 35px; background: var(--bg); overflow: hidden;
  display: flex; flex-direction: column; position: relative;
}

.app-top {
  background: #fff; border-radius: 0 0 22px 22px; padding: 52px 18px 16px; position: relative;
}
.app-city { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 12px; font-weight: 600; }
.app-avatar {
  position: absolute; right: 18px; top: 48px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--teal-soft); color: var(--teal-dark); font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.app-title { font-size: 22px; font-weight: 800; margin: 6px 0 2px; }
.app-subtitle { color: var(--muted); font-size: 12px; margin: 0; }

.app-list { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.app-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.app-photo { height: 92px; position: relative; }
.photo-0 { background: linear-gradient(135deg, #E8B76A, #C77C3E 55%, #8E5326); }
.photo-1 { background: linear-gradient(135deg, #CFE0CB, #8FA98A 55%, #5C7359); }
.app-discount {
  position: absolute; left: 10px; top: 10px; background: var(--teal); color: #fff;
  font-size: 13px; font-weight: 800; padding: 5px 11px; border-radius: 999px;
}
.app-badge {
  position: absolute; right: 10px; top: 10px; background: #EFE9BF; color: #6B6335;
  font-size: 9px; font-weight: 700; letter-spacing: .06em; padding: 5px 9px; border-radius: 999px;
}
.app-card-body { padding: 10px 13px 13px; display: flex; flex-direction: column; gap: 3px; }
.app-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.app-kind { font-size: 11px; color: var(--muted); }
.app-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 5px; }
.app-check { font-size: 11px; color: var(--body); }
.app-distance { font-size: 10px; color: var(--muted); background: #F2F4F4; border-radius: 999px; padding: 3px 8px; }

.app-tabs {
  height: 62px; background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; padding: 0 26px; position: relative;
}
.app-tab { font-size: 10px; color: var(--muted); }
.app-tab.active { color: var(--teal-dark); font-weight: 600; }
.app-scan {
  position: absolute; left: 50%; top: -18px; transform: translateX(-50%);
  width: 54px; height: 54px; border-radius: 50%; background: var(--teal);
  display: flex; align-items: center; justify-content: center;
  border: 4px solid #fff; box-shadow: 0 6px 16px rgba(4, 168, 176, .4);
}

/* ---------- Шаги ---------- */

.steps { padding: 46px 0 8px; scroll-margin-top: 84px; }
.steps h2, .features h2 { margin: 0 0 24px; }

.step-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step {
  background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  counter-increment: step;
}
.step::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; margin-bottom: 14px;
  background: var(--teal-soft); color: var(--teal-dark); font-weight: 700; font-size: 16px;
}
.step h3 { margin: 0 0 6px; }
.step p { margin: 0; font-size: 16px; }

/* ---------- Преимущества ---------- */

.features { padding: 46px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; font-size: 15px; color: var(--body); }

/* ---------- Партнёрам ---------- */

.partners { padding: 8px 0 60px; }
.partners-inner {
  background: var(--teal); color: #fff; border-radius: 26px; padding: 34px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.partners h2 { color: #fff; margin: 0 0 8px; }
.partners p { margin: 0; max-width: 52ch; color: rgba(255, 255, 255, .92); }
.cta {
  background: #fff; color: var(--teal-dark); font-weight: 700; text-decoration: none;
  padding: 14px 26px; border-radius: 999px; white-space: nowrap;
}
.cta:hover { background: #F0FBFB; color: var(--teal-dark); }

/* ---------- Юридические страницы ---------- */

.doc { max-width: 740px; padding-top: 40px; padding-bottom: 56px; }
.doc h1 { font-size: clamp(26px, 4vw, 34px); }
.doc h2 { font-size: 22px; margin: 34px 0 10px; }
.doc h3 { font-size: 18px; margin: 24px 0 8px; }
.doc p, .doc li { font-size: 17px; }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin-bottom: 7px; }

.revision {
  display: inline-block; background: var(--teal-soft); color: var(--teal-dark);
  font-weight: 600; font-size: 15px; padding: 7px 14px; border-radius: 999px; margin: 0 0 22px;
}
.contact-block { background: var(--card); border-radius: var(--radius-sm); padding: 16px 18px; box-shadow: var(--shadow); }

.contact-card {
  background: var(--card); border-radius: var(--radius); padding: 20px 22px;
  box-shadow: var(--shadow); border-left: 4px solid var(--teal); margin: 0 0 14px;
}
.contact-card p { margin: 0 0 8px; font-size: 17px; }
.contact-card p:last-child { margin-bottom: 0; }
.contact-card strong { color: var(--ink); }
.contact-card a { font-weight: 600; }
.contact-hours { color: var(--muted); font-size: 15px; }

.table-wrap { overflow-x: auto; margin: 0 0 18px; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; background: var(--card); border-radius: var(--radius-sm); overflow: hidden; font-size: 16px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--teal-soft); color: var(--ink); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }

.doc-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; }

/* ---------- Форма удаления ---------- */

.delete-form {
  background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin: 22px 0 8px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: 16px; }
.field input[type="tel"], .field input[type="text"], .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: #FBFCFC; border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.hint { display: block; color: var(--muted); font-size: 14px; margin-top: 6px; }

.field-check { display: flex; align-items: flex-start; gap: 10px; }
.field-check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--teal); flex: 0 0 auto; }
.field-check label { font-weight: 400; color: var(--body); margin: 0; }

/* honeypot: скрыто от людей, доступно ботам */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.delete-form button {
  background: var(--teal); color: #fff; border: 0; border-radius: 999px;
  padding: 14px 28px; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
}
.delete-form button:hover { background: var(--teal-dark); }

.notice { border-radius: var(--radius-sm); padding: 16px 18px; margin: 20px 0; }
.notice-success { background: var(--teal-soft); border: 1px solid #B8E7EA; }
.notice-success h2 { margin: 0 0 6px; font-size: 20px; }
.notice-success p { margin: 0; }
.notice-error { background: #FDECEC; border: 1px solid #F5C6C6; color: #8A2B2B; }

/* ---------- Подвал ---------- */

.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 34px 0; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 26px; align-items: start; }
.footer-brand p { margin: 6px 0 0; color: var(--muted); font-size: 15px; max-width: 30ch; }
.footer-links { display: flex; flex-direction: column; gap: 9px; font-size: 15px; }
.footer-links a { color: var(--body); text-decoration: none; }
.footer-links a:hover { color: var(--teal-dark); text-decoration: underline; }
.footer-contact { font-size: 15px; }
.rights { color: var(--muted); font-size: 14px; margin: 10px 0 0; }

/* ---------- Адаптив ---------- */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .hero-phone { order: -1; }
  .step-grid, .feature-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero { padding-top: 34px; }
  .site-nav { gap: 14px; font-size: 14px; }
  .nav-how { display: none; }
  .step-grid, .feature-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .partners-inner { padding: 26px; }
  .cta { width: 100%; text-align: center; }
  .doc { padding-top: 28px; }
  .doc p, .doc li { font-size: 16px; }
  table { font-size: 15px; }
  th, td { padding: 9px 11px; }
}

@media (max-width: 380px) {
  .phone { width: 274px; height: 560px; }
}

@media print {
  .site-header, .site-footer, .doc-nav, .delete-form { display: none; }
  body { background: #fff; }
}
