/* Pascual Soft — тёплая сливочная тема, терракотовый акцент (вариант А с макета) */
:root {
  --bg: #faf3ea;
  --bg2: #f4e9dc;
  --card: #ffffff;
  --ink: #2b2320;
  --muted: #6e625b;
  --accent: #c8643f;
  --line: #ecdfd1;
  --shadow: 0 10px 30px rgba(84, 52, 30, .10);
  --r: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-weight: 600; line-height: 1.1; margin: 0; text-wrap: balance; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* шапка */
.top { position: sticky; top: 0; z-index: 10; background: rgba(250, 243, 234, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 19px; }
nav { display: flex; align-items: center; gap: 22px; }
nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
nav a:hover { color: var(--accent); }
.pill { background: var(--accent); color: #fff !important; padding: 8px 18px; border-radius: 999px; }

/* первый экран */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; padding: 64px 0 40px; }
.hero h1 { font-size: clamp(42px, 6vw, 72px); }
.hero-text p { color: var(--muted); font-size: 19px; max-width: 32em; margin: 18px 0 28px; }
.btn { display: inline-block; background: var(--ink); color: #fff; text-decoration: none; padding: 14px 26px; border-radius: 999px; font-weight: 600; }
.btn:hover, .gp:hover { transform: translateY(-2px); }
.btn, .gp, .card { transition: transform .2s, box-shadow .2s; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 460px; }
.blob { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #f6dcc6, #efd0b6 60%, transparent 70%); }
.hero.app .blob { background: radial-gradient(circle at 40% 35%, var(--tint), transparent 70%); }
.phone { position: relative; width: 250px; border-radius: 34px; padding: 8px; background: #1f1a18; box-shadow: 0 30px 60px rgba(60, 35, 20, .28); }
.phone img { border-radius: 27px; }
.phone.sm { width: 220px; }
.f { position: absolute; width: 74px; border-radius: 20px; box-shadow: var(--shadow); animation: float 6s ease-in-out infinite; }
.f0 { top: 8%; left: 12%; } .f1 { top: 14%; right: 8%; animation-delay: -1.5s; }
.f2 { bottom: 16%; left: 6%; animation-delay: -3s; } .f3 { bottom: 10%; right: 12%; animation-delay: -4.5s; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* список приложений */
.sec { font-size: clamp(30px, 4vw, 42px); margin: 24px 0 26px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card { display: flex; gap: 22px; align-items: flex-start; padding: 26px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; border: 1px solid var(--line); }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(84, 52, 30, .16); }
.card .ic { width: 96px; height: 96px; border-radius: 24px; flex: none; background: var(--tint); }
.card h3 { font-size: 26px; margin-bottom: 6px; }
.card p { margin: 0 0 10px; color: var(--muted); }
.more { color: var(--accent); font-weight: 600; }

/* обещание */
.promise { margin-top: 70px; padding: 40px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); text-align: center; }
.promise h2 { font-size: 34px; margin-bottom: 26px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.three b, .feat b, .note b { display: block; font-size: 18px; margin-bottom: 4px; }
.three span, .feat span, .note span { color: var(--muted); }

/* страница приложения */
.crumbs { padding-top: 26px; color: var(--muted); font-size: 15px; }
.crumbs a { text-decoration: none; }
.bigic { width: 140px; height: 140px; border-radius: 34px; margin-bottom: 22px; box-shadow: var(--shadow); }
.hero.app h1 { font-size: clamp(44px, 6vw, 70px); }
.hero.app .hero-text p { margin: 12px 0 0; }
.hero.app .blurb { font-size: 17px; margin-bottom: 26px !important; }
.gp { display: inline-block; margin-top: 22px; }
.gp img { height: 62px; width: auto; }
.shots { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; padding: 20px 0 30px; }
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { padding: 22px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.note { margin-top: 18px; padding: 22px 26px; border-radius: 20px; background: var(--bg2); border: 1px solid var(--line); }
.legal { text-align: center; margin: 26px 0 0; }

/* документы */
.doc { max-width: 760px; padding: 20px 0 30px; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); margin: 18px 0 6px; }
.doc h2 { font-size: 24px; margin: 30px 0 8px; }
.doc p { margin: 0 0 12px; }
.date { color: var(--muted); }

/* подвал */
.foot { margin-top: 70px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.foot .bar { min-height: 76px; flex-wrap: wrap; }

a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { .f { animation: none; } * { scroll-behavior: auto; } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .hero-art { min-height: 400px; }
  .grid, .three, .feats { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .card .ic { width: 72px; height: 72px; border-radius: 18px; }
  nav { gap: 14px; font-size: 15px; }
  .promise { padding: 28px 20px; }
}

/* переключатель языка EN / RU */
.lang { font-weight: 700; font-size: 14px; letter-spacing: .06em; border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.lang:hover { border-color: var(--accent); }

/* готовые кадры магазина (приложения 25_app): уже в рамке, поэтому просто скруглённая картинка с тенью */
.storeshot { position: relative; width: 260px; border-radius: 26px; overflow: hidden; box-shadow: 0 24px 50px rgba(60, 35, 20, .22); }
.storeshot.sm { width: 220px; }

/* Адаптация под телефон (27.09.2026): шапка в одну строку, компактный первый экран, карточки и тексты мельче */
.logo span { white-space: nowrap; }
@media (max-width: 860px) {
  body { font-size: 16px; line-height: 1.55; }
  .hero { gap: 20px; padding: 28px 0 10px; }
  .hero-text p { font-size: 17px; margin: 12px 0 20px; }
  .hero-art { min-height: 340px; }
  .phone { width: 200px; border-radius: 28px; padding: 6px; }
  .phone img { border-radius: 22px; }
  .phone.sm, .storeshot.sm { width: 170px; }
  .storeshot { width: 200px; border-radius: 22px; }
  .f { width: 56px; border-radius: 15px; }
  .sec { margin: 10px 0 16px; }
  .bigic { width: 96px; height: 96px; border-radius: 24px; margin-bottom: 14px; }
  .shots { gap: 14px; }
  .foot .bar { justify-content: center; text-align: center; gap: 6px; padding: 18px 0; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .bar { min-height: 56px; gap: 10px; }
  .logo { font-size: 17px; gap: 8px; }
  .logo img { width: 28px; height: 28px; }
  nav { gap: 8px; }
  nav .nl { display: none; }           /* «Приложения / О нас» — прокрутка и так ведёт туда; места на телефоне нет */
  .lang { padding: 4px 10px; font-size: 13px; }
  .pill { padding: 7px 14px; font-size: 14px; }
  .hero h1 { font-size: 38px; }
  .hero.app h1 { font-size: 34px; }
  .btn { padding: 12px 22px; }
  .hero-art { min-height: 300px; }
  .phone { width: 170px; }
  .storeshot { width: 150px; border-radius: 18px; }
  .storeshot.sm, .phone.sm { width: 140px; }
  .f { width: 46px; border-radius: 12px; }
  .sec { font-size: 28px; }
  .grid { gap: 12px; }
  .card { gap: 14px; padding: 16px; border-radius: 20px; }
  .card .ic { width: 56px; height: 56px; border-radius: 14px; }
  .card h3 { font-size: 20px; margin-bottom: 4px; }
  .card p { font-size: 15px; margin-bottom: 6px; }
  .more { font-size: 15px; }
  .promise { margin-top: 40px; padding: 24px 18px; }
  .promise h2 { font-size: 26px; margin-bottom: 16px; }
  .three { gap: 14px; }
  .feat { padding: 16px; }
  .note { padding: 16px 18px; }
  .gp img { height: 52px; }
  .doc h1 { font-size: 28px; }
  .doc h2 { font-size: 20px; margin-top: 22px; }
  .crumbs { padding-top: 16px; font-size: 14px; }
  .foot { margin-top: 40px; font-size: 14px; }
}

/* Сайт на 51 языке (27.09.2026): меню языков вместо кнопок EN / RU */
body { overflow-wrap: break-word; }
h1, h2, h3 { hyphens: auto; }
.langs { position: relative; }
.langs > summary { list-style: none; cursor: pointer; user-select: none; white-space: nowrap; }
.langs > summary::-webkit-details-marker { display: none; }
.langs[open] > summary { border-color: var(--accent); }
.langs .menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 10px); z-index: 20;
  width: min(580px, calc(100vw - 32px)); max-height: min(72vh, 540px); overflow: auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 16px 40px rgba(84, 52, 30, .16);
}
nav .langs .menu a { padding: 7px 10px; border-radius: 10px; font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
nav .langs .menu a:hover { background: var(--bg2); color: var(--ink); }
nav .langs .menu a[aria-current] { background: var(--bg2); font-weight: 700; }
@media (max-width: 560px) {
  .langs .menu { position: fixed; top: 62px; inset-inline: 16px; width: auto; grid-template-columns: repeat(2, 1fr); max-height: calc(100vh - 86px); }
  nav .langs .menu a { white-space: normal; line-height: 1.3; }   /* «Español (Latinoamérica)» — в две строки, а не с многоточием */
}

/* Письменности без засечек в шрифте заголовков (арабская, деванагари, тайская, иероглифы и др.): заголовки без засечек, строки просторнее */
.xs h1, .xs h2, .xs h3 { font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 700; line-height: 1.3; }
.xs body { line-height: 1.75; }

/* Шапка на узких телефонах (360 px) с длинными словами языков: кнопки в одну строку, всё чуть компактнее */
.pill, .lang { white-space: nowrap; }
@media (max-width: 400px) {
  .logo { font-size: 16px; gap: 7px; }
  .logo img { width: 26px; height: 26px; }
  nav { gap: 6px; }
  .lang { padding: 4px 8px; font-size: 12px; }
  .pill { padding: 6px 12px; font-size: 13px; }
}

/* Длинные слова (тамильский, телугу, немецкий) не выталкивают страницу за край телефона (27.09.2026) */
h1, h2, h3, p { overflow-wrap: break-word; }
.hero > *, .card > div { min-width: 0; }
.grid > * { min-width: 0; }

/* Живой телефон на главной: экраны приложений сменяют друг друга, иконки вокруг обновляются (27.09.2026) */
.phone.live { aspect-ratio: 372 / 832; }
.phone.live .slide { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity .6s ease, transform .8s ease; }
.phone.live .slide.on { opacity: 1; transform: none; }
.hero-art .f { transition: opacity .35s ease, transform .35s ease; }
.hero-art .f.swap { opacity: 0; transform: scale(.7); }
@media (max-width: 860px) { .phone.live .slide { inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); } }

/* Страница приложения: живой экран (кадры сменяются) и парящие иконки похожих приложений-ссылок (29.09.2026) */
.storeshot.live, .phone.live { position: relative; aspect-ratio: 540 / 1200; }
.storeshot.live .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.storeshot.live .slide.on { opacity: 1; }
.hero-art a.f { display: block; z-index: 2; }
.hero-art a.f img { width: 100%; border-radius: inherit; display: block; }
.hero-art a.f:hover { transform: scale(1.08); }
/* Кадры разной высоты (AnyDub и PDF Max 9:16): первый кадр задаёт размер, остальные поверх — ничего не обрезается (30.09) */
.storeshot.live { aspect-ratio: auto; }
.storeshot.live .slide:first-child { position: relative; height: auto; }
.storeshot.live .slide { object-fit: contain; }
