/* Albusto landing — warm "Blanc" palette, Tochka-inspired composition */

:root {
  /* PALETTE-V2 («Т2») — mirrors frontend/src/styles/design-system.css */
  --bg: #f1f1f0;
  --surface: #ffffff;
  --ink-1: #191919;
  --ink-2: #6e6e6e;
  --ink-3: #8a8a8a;
  --line: rgba(25, 25, 25, 0.08);
  --line-strong: rgba(25, 25, 25, 0.2);
  --accent: #7f42e1;          /* the single action color */
  --accent-ink: #6c36c6;
  --accent-soft: #e7dbfd;
  --tile-lavender: #e7dbfd;
  --tile-blue: #e4eeff;
  --tile-green: #e4f7ef;
  --tile-amber: #fff2e1;
  --tile-muted: #f6f6f6;
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 22px;
  --radius-xl: 28px;
  --font-heading: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-body: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-1);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  width: min(1160px, calc(100vw - 48px));
  margin: 0 auto;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241, 241, 240, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.logo img { height: 26px; width: auto; display: block; }

.logo .dot { color: var(--accent); }

.site-nav {
  display: flex;
  gap: 22px;
  margin-left: 8px;
  font-size: 15px;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-2);
}

.site-nav a:hover { color: var(--ink-1); }

.header-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 26px;
  transition: transform 0.12s ease, background 0.12s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--ink-1);
  color: #ffffff;
}

.btn-primary:hover { background: #000; }

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover { background: var(--accent-ink); }

.btn-ghost {
  background: transparent;
  color: var(--ink-1);
  padding: 13px 18px;
}

.btn-ghost:hover { color: var(--accent-ink); }

.btn-lg { font-size: 18px; padding: 16px 34px; }

/* ---------- hero ---------- */

.hero { padding: 56px 0 40px; }

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero .sub {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 46ch;
  margin: 0 0 30px;
}

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.hero-note { font-size: 14px; color: var(--ink-3); margin-top: 14px; }

.hero-art img {
  border-radius: var(--radius-xl);
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* ---------- trades strip ---------- */

.trades { padding: 26px 0 10px; }

.trades .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  justify-content: center;
}

.trades .lead {
  width: 100%;
  text-align: center;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  margin-bottom: 8px;
}

.trade-chip {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  background: var(--surface);
}

/* ---------- sections ---------- */

section { padding: 64px 0; }

.section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.section-sub {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 58ch;
  margin: 0 0 40px;
}

/* ---------- feature tiles ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tile {
  border-radius: var(--radius-xl);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 260px;
}

.tile h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

.tile p { margin: 0; color: var(--ink-2); font-size: 16px; }

.tile .tile-art {
  margin-top: auto;
  padding-top: 16px;
}

.tile .tile-art img {
  border-radius: var(--radius-m);
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.tile-wide { grid-column: span 2; }

.tile-lavender { background: var(--tile-lavender); }
.tile-green    { background: var(--tile-green); }
.tile-blue     { background: var(--tile-blue); }
.tile-amber    { background: var(--tile-amber); }
.tile-muted    { background: var(--tile-muted); }
.tile-ink {
  background: var(--ink-1);
  color: #ffffff;
}
.tile-ink p { color: rgba(255, 255, 255, 0.72); }

/* ---------- product screens ---------- */

.screens .screen-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
  padding: 34px 0;
}

.screens .screen-block:nth-child(even) { direction: rtl; }
.screens .screen-block:nth-child(even) > * { direction: ltr; }

.screens h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.screens p { color: var(--ink-2); margin: 0; }

.screen-frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 10px;
}

.screen-frame img {
  border-radius: calc(var(--radius-l) - 8px);
  width: 100%;
}

/* ---------- pricing ---------- */

.pricing { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}

.plan {
  background: var(--bg);
  border-radius: var(--radius-l);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan.featured {
  background: var(--ink-1);
  color: var(--surface);
}

.plan .plan-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
}

.plan .plan-flag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 4px;
}

.plan .price {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 40px;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 6px 0 2px;
}

.plan .price span { font-size: 15px; font-weight: 600; opacity: 0.6; }

.plan ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 20px;
  font-size: 15px;
  color: var(--ink-2);
  display: grid;
  gap: 7px;
}

.plan.featured ul { color: rgba(255, 255, 255, 0.75); }

.plan ul li { padding-left: 20px; position: relative; }

.plan ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.plan .btn { margin-top: auto; text-align: center; }

.pricing-note {
  margin-top: 26px;
  text-align: center;
  color: var(--ink-3);
  font-size: 15px;
}

.pricing-note a { color: var(--ink-2); }

/* ---------- story ---------- */

.story .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.story blockquote {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.story .who { margin-top: 18px; color: var(--ink-3); font-size: 15px; }

.story img {
  border-radius: var(--radius-xl);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

/* ---------- FAQ ---------- */

.faq { max-width: 760px; margin: 0 auto; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}

.faq summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 19px;
  padding: 18px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  color: var(--accent);
  font-weight: 600;
  font-size: 24px;
  line-height: 1;
}

.faq details[open] summary::after { content: "–"; }

.faq details p {
  margin: 0 0 20px;
  color: var(--ink-2);
}

/* ---------- CTA banner ---------- */

.cta-banner .inner {
  background: var(--ink-1);
  color: var(--surface);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  text-align: left;
}

.cta-banner .cta-art img {
  border-radius: var(--radius-l);
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.cta-banner h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 14px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  margin: 0 auto 30px;
  max-width: 48ch;
}

/* ---------- footer ---------- */

.site-footer { padding: 44px 0 60px; color: var(--ink-3); font-size: 15px; }

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
}

.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.site-footer .legal-links { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer .company { margin-left: auto; text-align: right; }

/* ---------- legal pages ---------- */

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 0 80px;
}

.legal-page h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 8px;
}

.legal-page .updated { color: var(--ink-3); font-size: 15px; margin-bottom: 36px; }

.legal-page h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  margin: 36px 0 10px;
}

.legal-page p, .legal-page li { color: var(--ink-2); }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile-wide { grid-column: span 2; }
  .plans { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-nav { display: none; }
  .hero .wrap, .story .wrap, .screens .screen-block { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding-top: 28px; }
  .hero-art { order: -1; }
  .tiles { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; }
  .plans { grid-template-columns: 1fr; }
  section { padding: 44px 0; }
  .cta-banner .inner { grid-template-columns: 1fr; text-align: center; }
  .site-footer .company { margin-left: 0; text-align: left; }
}
