/* Welcome site — warm milk + one coral accent; dark: plum-charcoal + the same coral. */
:root {
  --bg: #FBF3EA;          /* warm milk */
  --surface: #F4E6D8;     /* toasted milk */
  --text: #2A1A21;        /* deep plum ink */
  --muted: #6E5A60;
  --accent: #D9472B;      /* coral — the one accent */
  --accent-strong: #C03A1E; /* deeper coral for filled buttons: AA with white */
  --accent-ink: #FFFFFF;
  --accent-soft: #F9D9CC;
  --band: #2A1A21;        /* contacts band */
  --band-text: #FBF3EA;
  --band-muted: #D8C6BC;
  --band-accent: #FF8A6B;
  --line: rgba(42, 26, 33, .14);
  --focus: #D9472B;
  --radius-xl: 28px;
  --font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
.dark {
  --bg: #1F1519;
  --surface: #2B1F25;
  --text: #F3E7DD;
  --muted: #BCA9A4;
  --accent: #FF8466;
  --accent-strong: #FF8466;
  --accent-ink: #24151A;
  --accent-soft: #3A2328;
  --band: #2E2127;
  --band-text: #F3E7DD;
  --band-muted: #C3B0AA;
  --band-accent: #FF8466;
  --line: rgba(243, 231, 221, .14);
  --focus: #FF8466;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  overflow-x: hidden; min-height: 100dvh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* top bar */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 6px; }
.mark { width: 14px; height: 20px; border-radius: 7px 7px 2px 2px; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.langs { display: flex; gap: 2px; background: var(--surface); border-radius: 999px; padding: 3px; }
.lang {
  min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; text-decoration: none; color: var(--muted);
}
.lang:hover { color: var(--text); }
.lang.is-on { background: var(--bg); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* hero — phone first: picture on top, text below */
.hero { display: flex; flex-direction: column-reverse; gap: 22px; padding-top: 10px; padding-bottom: 56px; }
.hero-art { margin: 0; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4 / 3; background: #4a2c30; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; }
h1 {
  font-weight: 900; letter-spacing: -0.02em; line-height: 1.02;
  font-size: clamp(40px, 12vw, 92px); margin: 0 0 16px; overflow-wrap: normal; hyphens: manual;
}
.lead { font-size: 19px; color: var(--muted); margin: 0 0 26px; max-width: 34ch; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 999px;
  background: var(--accent-strong); color: var(--accent-ink);
  font-weight: 800; font-size: 17px; text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease;
  box-shadow: 0 8px 22px -10px var(--accent);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -10px var(--accent); }
.btn:active { transform: translateY(1px); }

.hero-text { animation: rise .7s cubic-bezier(.2,.7,.2,1) both .1s; }
.hero-art { animation: glow .9s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes glow { from { opacity: 0; filter: brightness(.7); } to { opacity: 1; filter: none; } }

/* about */
.about { padding-top: 24px; padding-bottom: 64px; display: grid; gap: 34px; }
h2 { font-weight: 900; font-size: clamp(30px, 7vw, 46px); line-height: 1.1; margin: 0 0 14px; letter-spacing: -0.01em; }
.about-text { font-size: 20px; line-height: 1.55; margin: 0; max-width: 40ch; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.points li { padding: 18px 0 18px 22px; border-top: 1px solid var(--line); position: relative; }
.points li:last-child { border-bottom: 1px solid var(--line); }
.points li::before { content: ""; position: absolute; left: 0; top: 26px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.points h3 { margin: 0 0 2px; font-size: 19px; font-weight: 800; }
.points p { margin: 0; color: var(--muted); font-size: 16px; }

/* contacts band */
.contacts { background: var(--band); color: var(--band-text); padding: 56px 0 60px; scroll-margin-top: 0; outline: none; }
.contacts h2 { color: var(--band-text); }
.contacts-lead { color: var(--band-muted); font-size: 19px; margin: 0 0 26px; }
.contacts-inner { display: grid; gap: 8px; }
.c-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 14px; }
.c-list li { display: grid; gap: 2px; }
.c-label { font-size: 14px; color: var(--band-muted); }
.c-value { display: inline-block; padding: 8px 0; min-height: 44px; font-size: clamp(22px, 6vw, 34px); font-weight: 800; color: var(--band-accent); text-decoration: none; overflow-wrap: anywhere; }
.c-value:hover { text-decoration: underline; text-underline-offset: 5px; }
.btn-dark { background: var(--band-accent); color: #24151A; box-shadow: none; }

.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 22px; padding-bottom: calc(22px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 14px; }

/* tablet / desktop */
@media (min-width: 900px) {
  .wrap { padding-left: 40px; padding-right: 40px; }
  .top { padding-top: 22px; }
  .hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; gap: 48px; padding-top: 24px; padding-bottom: 96px; min-height: min(78vh, 760px); }
  .hero-art { aspect-ratio: auto; height: 100%; min-height: 520px; border-radius: 40px; }
  .lead { font-size: 21px; }
  h1 { font-size: clamp(56px, 5.4vw, 80px); }
  .about { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: start; padding-top: 40px; padding-bottom: 110px; }
  .about-text { font-size: 24px; }
  .contacts { padding: 90px 0 96px; }
  .contacts-inner { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: end; }
}

/* settings gear — rendered only for the app's owner and admins */
.top-right { display: flex; align-items: center; gap: 8px; }
.gear { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--surface); color: var(--muted); text-decoration: none; font-size: 20px; }
.gear:hover { color: var(--text); }
