/* Лента Мастеров — landing page. Same palette and type as the Android app. */

@font-face { font-family: "Lora"; src: url("../fonts/lora-cyrillic-wght-normal.woff2") format("woff2-variations"); font-weight: 400 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-cyrillic-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Great Vibes"; src: url("../fonts/great-vibes-cyrillic-400-normal.woff2") format("woff2"); font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Great Vibes"; src: url("../fonts/great-vibes-latin-400-normal.woff2") format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #F2EDE6;
  --surface: #FFFBF5;
  --cream: #F9EBD8;
  --ink: #2A211C;
  --ink-2: #5B4E45;
  --muted: #8A7D73;
  --line: #E3D8CC;
  --accent: #A65745;
  --accent-deep: #7E3B2D;
  --olive: #6E7350;
  --powder: #E8C9B5;
  --night: #241B16;
  --radius: 22px;
  --shadow: 0 30px 60px -30px rgba(42, 33, 28, .45);
  --wrap: min(1180px, calc(100% - 32px));
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: "Lora", Georgia, serif; font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: var(--wrap); margin-inline: auto; }
.script { font-family: "Great Vibes", cursive; font-weight: 400; letter-spacing: 0; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 10px; }

/* ---------- Header ---------- */
/* Floating "liquid glass" bar: translucent, blurred, with a light rim, over photos and over light pages. */
.header {
  position: fixed; inset: max(12px, env(safe-area-inset-top)) 0 auto 0; z-index: 50;
  color: #fff; pointer-events: none;
  transition: color .35s ease;
}
.header__bar {
  pointer-events: auto; position: relative; isolation: isolate;
  display: flex; align-items: center; gap: 24px; height: 62px;
  padding: 0 12px 0 12px; border-radius: 22px;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(255,255,255,.06), 0 14px 34px -16px rgba(0,0,0,.45);
  transition: border-color .35s ease, box-shadow .35s ease;
}
/* The glass lives on a layer of its own: a backdrop filter on the bar itself would trap the
   fixed mobile menu inside it and break the menu's own blur. */
.header__bar::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.06));
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  transition: background .35s ease;
}
.header.is-solid { color: var(--ink); }
.header.is-solid .header__bar { border-color: rgba(255,255,255,.8); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 14px 34px -18px rgba(42,33,28,.35); }
.header.is-solid .header__bar::before { background: linear-gradient(180deg, rgba(255,251,245,.86), rgba(255,251,245,.72)); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.brand span { font-size: 32px; line-height: 1; transform: translateY(2px); white-space: nowrap; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; opacity: .88; }
.nav a:hover { opacity: 1; }
.lang { display: flex; gap: 2px; font-size: 13px; font-weight: 600; border: 1px solid color-mix(in srgb, currentColor 45%, transparent); border-radius: 999px; padding: 3px; }
.lang a, .lang span { padding: 3px 9px; border-radius: 999px; text-decoration: none; }
.lang span { background: currentColor; }
.lang span b { color: var(--ink); font-weight: 600; }
.header:not(.is-solid) .lang span b { color: var(--accent-deep); }
.header.is-solid .lang span b { color: var(--surface); }
.nav__lang { display: none; gap: 14px; padding: 14px 4px; font-weight: 600; }
.nav__lang a, .nav__lang span { border: 0 !important; padding: 0 !important; }
.nav__lang span { color: var(--accent); }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; color: inherit; width: 44px; height: 44px; cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; }

/* ---------- Store badges ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 196px; padding: 10px 20px 10px 14px;
  border-radius: 14px; text-decoration: none; color: #fff;
  background: #111; border: 1px solid rgba(255,255,255,.18);
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 12px 30px -14px rgba(0,0,0,.6);
}
.store:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(0,0,0,.7); }
.store svg { width: 30px; height: 30px; flex: none; }
.store small { display: block; font-size: 11px; line-height: 1.1; opacity: .8; letter-spacing: .02em; }
.store b { display: block; font-size: 19px; line-height: 1.15; font-weight: 600; letter-spacing: -.01em; }
.store--play { background: linear-gradient(135deg, #1d1d1f, #2b2b2e); }
.store[aria-disabled="true"] { cursor: default; }
.store-note { margin-top: 12px; font-size: 14px; opacity: .8; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--night); }
.hero__slides, .hero__slides img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__slides img { object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.6s ease; }
.hero__slides img.is-on { opacity: 1; animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12) translate(1%, 1%); } to { transform: scale(1.02) translate(0, 0); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 15% 60%, rgba(20, 14, 11, .82) 0%, rgba(20, 14, 11, .55) 45%, rgba(20,14,11,.25) 75%),
    linear-gradient(to top, rgba(20, 14, 11, .7), transparent 40%);
}
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 120px 0 80px; }
.hero__lead { max-width: 560px; }
.hero__badge { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: rgba(255,255,255,.9); text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.hero__badge img { width: 30px; height: 30px; border-radius: 9px; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); margin: 22px 0 18px; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero h1 em { font-style: normal; color: var(--powder); }
.hero p.lead { font-size: clamp(17px, 1.6vw, 20px); color: rgba(255,255,255,.88); max-width: 520px; margin-bottom: 32px; }
.hero__phones { position: relative; height: 620px; }
.phone {
  position: absolute; width: 270px; aspect-ratio: 540 / 1117;
  border-radius: 38px; padding: 9px; background: #15100d;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), inset 0 0 0 1.5px rgba(255,255,255,.12);
}
.phone::before { content: ""; position: absolute; top: 17px; left: 50%; width: 11px; height: 11px; transform: translateX(-50%); background: #15100d; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.06); z-index: 2; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 30px; }
.hero__phones .phone:nth-child(1) { left: 4%; top: 70px; transform: rotate(-7deg); animation: float 7s ease-in-out infinite; }
.hero__phones .phone:nth-child(2) { right: 4%; top: 0; transform: rotate(5deg); animation: float 7s ease-in-out -3.5s infinite; z-index: 2; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -16px; } }
.hero__scroll { position: absolute; z-index: 2; left: 50%; bottom: 22px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.55); border-radius: 14px; }
.hero__scroll::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(80px, 10vw, 130px) 0; }
.section__head { display: grid; gap: 14px; max-width: 720px; margin-bottom: 48px; }
.section__head h2 { font-size: clamp(34px, 4.4vw, 54px); }
.section__head p { color: var(--ink-2); font-size: 18px; }
.center { text-align: center; margin-inline: auto; }

/* Intro strip */
.intro { background: var(--surface); }
.intro__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.intro__text h2 { font-size: clamp(32px, 4vw, 48px); margin: 14px 0 18px; }
.intro__text p { color: var(--ink-2); font-size: 18px; margin-bottom: 14px; }
.intro__stats { display: flex; gap: 36px; margin-top: 26px; }
.intro__stats b { display: block; font-family: "Lora", serif; font-size: 40px; font-weight: 500; color: var(--accent); line-height: 1; }
.intro__stats span { font-size: 14px; color: var(--muted); }
.collage { position: relative; height: 520px; }
.collage img { position: absolute; border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); }
.collage img:nth-child(1) { width: 62%; height: 74%; left: 0; top: 6%; }
.collage img:nth-child(2) { width: 46%; height: 50%; right: 0; top: 0; }
.collage img:nth-child(3) { width: 46%; height: 44%; right: 6%; bottom: 0; }

/* Kinds */
.kinds__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.kind { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--line); box-shadow: var(--shadow); isolation: isolate; }
.kind img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.kind:hover img { transform: scale(1.06); }
.kind::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,18,14,.78), rgba(26,18,14,0) 55%); z-index: 1; }
.kind figcaption { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 20px; color: #fff; }
.kind figcaption::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--tag, var(--accent)); margin-bottom: 14px; }
.kind h3 { font-size: 28px; }
.kind p { font-size: 15px; opacity: .85; margin-top: 6px; }

/* Steps */
.steps { background: var(--night); color: #fff; overflow: hidden; }
.steps .section__head p { color: rgba(255,255,255,.75); }
.steps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step { text-align: center; }
.step .phone { position: relative; margin: 0 auto 30px; width: min(260px, 100%); }
.step__num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); font-weight: 600; margin-bottom: 14px; }
.step h3 { font-size: 26px; margin-bottom: 10px; }
.step p { color: rgba(255,255,255,.75); max-width: 320px; margin-inline: auto; }

/* Features */
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; transition: transform .3s ease, box-shadow .3s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; }
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 22px; margin-bottom: 8px; }
.feature p { color: var(--ink-2); font-size: 16px; }

/* Marquee gallery */
.gallery { padding: 30px 0 clamp(80px, 10vw, 120px); overflow: hidden; }
.marquee { display: flex; gap: 18px; width: max-content; animation: marquee 60s linear infinite; }
.marquee + .marquee { margin-top: 18px; animation-direction: reverse; animation-duration: 70s; }
.marquee img { width: 240px; height: 240px; border-radius: 20px; object-fit: cover; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Quote */
.quote { text-align: center; padding: clamp(60px, 8vw, 100px) 0; background: var(--cream); }
.quote p { font-family: "Great Vibes", cursive; font-size: clamp(46px, 7vw, 96px); line-height: 1.05; color: var(--accent-deep); }
.quote small { display: block; margin-top: 18px; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }

/* CTA */
.cta { padding: clamp(80px, 10vw, 120px) 0; }
.cta__card {
  position: relative; overflow: hidden; border-radius: 34px; color: #fff;
  background: linear-gradient(135deg, #8E4636 0%, #A65745 45%, #6E7350 130%);
  padding: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center;
  box-shadow: 0 50px 90px -40px rgba(126, 59, 45, .7);
}
.cta__card::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%; background: rgba(255,255,255,.08); }
.cta__card h2 { font-size: clamp(34px, 4.6vw, 56px); margin: 16px 0 14px; position: relative; }
.cta__card p { color: rgba(255,255,255,.85); font-size: 18px; margin-bottom: 30px; position: relative; max-width: 520px; }
.cta__card .eyebrow { color: var(--powder); }
.cta__art { position: relative; display: grid; place-items: center; }
.cta__art img { width: min(260px, 70%); border-radius: 48px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); animation: float 8s ease-in-out infinite; }

/* Footer */
.footer { background: var(--night); color: rgba(255,255,255,.75); padding: 56px 0 34px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer h4 { color: #fff; font: 600 13px/1 "Inter", sans-serif; letter-spacing: .14em; text-transform: uppercase; margin: 6px 0 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px; }

/* Legal pages */
.doc-hero { background: var(--night); color: #fff; padding: 140px 0 60px; }
.doc-hero h1 { font-size: clamp(34px, 5vw, 56px); margin-top: 12px; }
.doc-hero p { color: rgba(255,255,255,.7); margin-top: 12px; }
.doc { padding: 56px 0 100px; }
.doc__layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; }
.doc__nav { position: sticky; top: 100px; align-self: start; display: grid; gap: 8px; }
.doc__nav a { text-decoration: none; color: var(--ink-2); padding: 8px 12px; border-radius: 10px; font-size: 15px; }
.doc__nav a[aria-current="page"] { background: var(--surface); color: var(--accent); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }
.doc article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 56px); max-width: 820px; }
.doc article h2 { font-size: 24px; margin: 34px 0 12px; }
.doc article h2:first-child { margin-top: 0; }
.doc article p, .doc article li { color: var(--ink-2); }
.doc article ul { padding-left: 20px; margin: 8px 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav {
    position: fixed; top: calc(max(12px, env(safe-area-inset-top)) + 72px); left: 16px; right: 16px;
    flex-direction: column; gap: 0; margin: 0; padding: 6px 18px; color: var(--ink);
    border-radius: 22px; border: 1px solid rgba(255,255,255,.75);
    background: linear-gradient(180deg, rgba(255,251,245,.97), rgba(255,251,245,.93));
    -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
    box-shadow: 0 24px 50px -20px rgba(42,33,28,.45);
    opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .25s ease; }
  .menu-btn { display: block; }
  .header__bar { gap: 10px; }
  .menu-btn { margin-left: 0; order: 3; }
  .header .lang { margin-left: auto; }
  .nav__lang { display: flex; }
  .hero__inner { grid-template-columns: 1fr; text-align: left; padding-top: 110px; }
  .hero__phones { height: 470px; max-width: 520px; width: 100%; margin: 0 auto; }
  .phone { width: 220px; }
  .intro__grid, .cta__card { grid-template-columns: 1fr; }
  .collage { height: 420px; }
  .kinds__grid, .features__grid { grid-template-columns: repeat(2, 1fr); }
  .steps__grid { grid-template-columns: 1fr; gap: 64px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .doc__layout { grid-template-columns: 1fr; }
  .doc__nav { position: static; display: flex; flex-wrap: wrap; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .header .lang { display: none; }
  .menu-btn { margin-left: auto; }
  .brand img { width: 34px; height: 34px; }
  .brand span { font-size: 25px; }
  .hero__phones { height: 400px; }
  .phone { width: 180px; border-radius: 30px; padding: 7px; }
  .phone img { border-radius: 24px; }
  .phone::before { width: 9px; height: 9px; top: 12px; }
  .stores { flex-direction: column; align-items: stretch; }
  .store { width: 100%; }
  .kinds__grid, .features__grid { grid-template-columns: 1fr; }
  .kind { aspect-ratio: 5 / 4; }
  .collage { height: 340px; }
  .intro__stats { gap: 22px; }
  .marquee img { width: 170px; height: 170px; }
  .footer__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__slides img.is-on { transform: none; }
  .marquee { animation: marquee 140s linear infinite !important; }
  .marquee + .marquee { animation-direction: reverse !important; animation-duration: 160s !important; }
}

/* Phones held sideways: short screen, so the hero becomes two compact columns. */
@media (orientation: landscape) and (max-height: 560px) {
  .hero { min-height: auto; }
  .hero__inner { grid-template-columns: 1.25fr .75fr; gap: 24px; padding: 96px 0 40px; }
  .hero h1 { font-size: clamp(30px, 5.4vw, 48px); margin: 12px 0 10px; }
  .hero p.lead { font-size: 15px; margin-bottom: 18px; }
  .hero__phones { height: 300px; }
  .phone { width: 140px; border-radius: 24px; padding: 6px; }
  .phone img { border-radius: 19px; }
  .phone::before { width: 8px; height: 8px; top: 10px; }
  .hero__scroll { display: none; }
  .stores { flex-direction: row; }
  .store { width: auto; min-width: 0; padding: 8px 14px 8px 10px; }
  .store b { font-size: 16px; }
  .nav { max-height: calc(100vh - 100px); overflow-y: auto; }
  .steps__grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .step .phone { width: 150px; }
}
