/* ============================================================
   Punto Switcher — промо-лендинг
   Оглавление:
   1. Переменные и база       5. Возможности (карточки)
   2. Кнопки                  6. Видео-плеер
   3. Шапка                   7. Конвертер раскладки
   4. Главный экран + окно    8. Скриншоты, отзывы, CTA, подвал
   ============================================================ */

/* ---------- 1. Переменные и база ---------- */
:root {
  --accent: #FC3F1D;        /* фирменный красный Яндекса */
  --accent-deep: #8F2410;   /* тень «объёмных» элементов */
  --ink: #1F1F1F;           /* основной текст */
  --muted: #6E6A64;         /* вторичный текст */
  --muted-2: #8B8781;       /* подписи */
  --line: #E4E1DB;          /* границы */
  --bg-soft: #FAF9F7;       /* светлые карточки */
  --dark: #1B1A18;          /* тёмные секции */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Golos Text', 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #fff; }

a { color: var(--accent); }
a:hover { color: #d63212; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { letter-spacing: -0.02em; text-wrap: pretty; }

.eyebrow {
  font-size: 12.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}

/* Заголовок + подводка секции */
.section { padding: 96px 0; }
.section-gray { background: #F5F4F2; }
.section-dark { background: var(--dark); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { margin: 14px 0; font-size: 38px; line-height: 1.12; font-weight: 800; }
.section-head p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); }
.section-dark .section-head h2 { color: #fff; }
.section-dark .section-head p { color: rgba(255,255,255,.6); }

/* Мигающий курсор в «печатающихся» окнах */
.cursor {
  display: inline-block; width: 2px; height: 1.1em;
  background: currentColor; vertical-align: -0.15em; margin-left: 2px;
  animation: blink 1.05s steps(1, end) infinite;
}
@keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }

/* ---------- 2. Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 600; border: 0; cursor: pointer;
  border-radius: 14px; padding: 13px 24px; font-size: 15px;
  transition: transform .15s, filter .15s, border-color .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 16px 28px; font-size: 17px; }
.btn-sm { padding: 10px 18px; font-size: 14px; border-radius: 11px; }
.btn-accent {
  background: var(--accent); color: #fff;
  box-shadow: 0 12px 26px -10px rgba(252, 63, 29, .7);
}
.btn-accent:hover { filter: brightness(1.06); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 16px 34px -14px rgba(0,0,0,.45); }
.btn-white:hover { color: var(--ink); }
.arrow { font-size: .9em; }
.arrow.accent { color: var(--accent); }

/* ---------- 3. Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.88); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.header-inner { height: 64px; display: flex; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 34px; height: 34px; display: block; }
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.brand-tag {
  font-size: 11px; font-weight: 600; color: var(--muted-2);
  border: 1px solid var(--line); border-radius: 99px;
  padding: 3px 9px; letter-spacing: .05em;
}
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a { text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 500; transition: color .15s; }
.site-nav a:hover { color: var(--accent); }

/* ---------- 4. Главный экран ---------- */
.hero {
  overflow: hidden;
  background: radial-gradient(720px 460px at 88% -12%, rgba(252,63,29,.09), transparent);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 56px; align-items: center; padding-top: 84px; padding-bottom: 72px;
}
.hero h1 { margin: 16px 0 20px; font-size: 54px; line-height: 1.06; font-weight: 800; letter-spacing: -0.025em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 520px; text-wrap: pretty; }
.kbd {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 16px;
  background: #F4F2EE; border: 1px solid #E7E4DE; border-radius: 6px; padding: 1px 6px;
}
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-checks { list-style: none; display: flex; gap: 22px; padding: 0; margin: 26px 0 0; flex-wrap: wrap; }
.hero-checks li { font-size: 14px; color: var(--muted); }
.hero-checks b { color: var(--accent); margin-right: 4px; }

/* Декоративные «клавиши» */
.hero-demo { position: relative; min-height: 320px; }
.sticker {
  position: absolute; display: flex; align-items: center; justify-content: center;
  font-weight: 800; border-radius: 22px;
}
.sticker-ru {
  top: -14px; right: 2px; width: 92px; height: 92px;
  background: var(--accent); color: #fff; font-size: 38px;
  transform: rotate(9deg); box-shadow: 0 6px 0 var(--accent-deep);
}
.sticker-en {
  bottom: -6px; left: -8px; width: 76px; height: 76px; border-radius: 18px;
  background: linear-gradient(180deg, #fff, #EFEDE8); border: 1px solid #E2DFD8;
  color: var(--muted-2); font-size: 30px;
  transform: rotate(-8deg); box-shadow: 0 5px 0 #DCD8D0;
}

/* Окно приложения (общая рамка для хиро и «видео») */
.window, .mail-window { background: #fff; border-radius: 14px; }
.window {
  position: relative; margin: 28px 26px 30px 30px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 28px 64px -24px rgba(31,25,16,.35);
}
.window-bar {
  display: flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 16px; border-bottom: 1px solid #F0EDE8;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); opacity: .85; }
.window-title { font-size: 13px; color: var(--muted-2); }
.window-controls { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.win-min { width: 10px; height: 2px; background: #C4C0B9; border-radius: 2px; }
.win-max { width: 9px; height: 9px; border: 1.6px solid #C4C0B9; border-radius: 2px; }
.win-close { color: #C4C0B9; font-size: 12px; line-height: 1; font-weight: 400; }
.window-body { position: relative; padding: 24px 20px 46px; min-height: 120px; }
.typed-line { font-size: 22px; line-height: 1.5; letter-spacing: .01em; min-height: 34px; }
#hero-typed { border-radius: 6px; padding: 2px 5px; margin: -2px -5px; transition: background-color .35s ease; }
#hero-typed.flash { background-color: rgba(252,63,29,.16); }

/* Всплывашка «раскладка исправлена» */
.toast {
  position: absolute; top: 10px; right: 12px;
  display: flex; align-items: center; gap: 8px;
  background: #1F1E1B; color: #fff; font-size: 12.5px; font-weight: 600;
  padding: 8px 12px; border-radius: 10px;
  box-shadow: 0 12px 26px -10px rgba(0,0,0,.5);
}
.toast[hidden] { display: none; }
.tdot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }

/* Индикатор раскладки EN/РУ */
.chip {
  position: absolute; right: 14px; bottom: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 27px; padding: 0 9px; border-radius: 8px;
  background: #26241F; color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  transition: background-color .25s;
}
.chip.chip-ru { background: var(--accent); }
.hero-note { text-align: center; font-size: 13px; color: var(--muted-2); }

/* ---------- Бегущая строка ---------- */
.ticker { background: var(--dark); padding: 15px 0; overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker-row { display: flex; }
.ticker-item { display: inline-flex; align-items: center; white-space: nowrap; }
.ticker-item code { font-family: ui-monospace, Menlo, Consolas, monospace; color: rgba(255,255,255,.5); font-size: 15px; }
.ticker-item b { color: var(--accent); font-weight: 600; margin: 0 10px; }
.ticker-item span { color: #fff; font-weight: 600; font-size: 15px; }
.ticker-item i { color: rgba(255,255,255,.22); margin: 0 26px; font-style: normal; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 5. Возможности ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.card {
  background: var(--bg-soft); border: 1px solid #EEEBE5;
  border-radius: 18px; padding: 26px;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -20px rgba(31,25,16,.3); }
.card-icon {
  width: 54px; height: 54px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: var(--ink);
  background: linear-gradient(180deg, #fff, #F1EFEA);
  border: 1px solid #E2DFD8; box-shadow: 0 3px 0 #DCD8D0;
}
.card-icon.accent {
  background: var(--accent); color: #fff;
  border-color: rgba(0,0,0,.08); box-shadow: 0 3px 0 var(--accent-deep);
}
.card h3 { margin: 18px 0 8px; font-size: 18px; font-weight: 700; }
.card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ---------- 6. Видео-плеер ---------- */
.player {
  max-width: 920px; margin: 0 auto; border-radius: 22px; overflow: hidden;
  background: #0F0E0C; border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 44px 90px -40px rgba(0,0,0,.85);
}
.player-screen {
  position: relative; aspect-ratio: 16 / 9;
  background: radial-gradient(120% 150% at 18% 0%, #3B372F, #201D19);
}
.mail-window {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -52%);
  width: 74%; border-radius: 12px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.6);
}
.mail-window .window-bar { height: 38px; padding: 0 14px; }
.mail-body { padding: 16px 18px 20px; min-height: 118px; font-size: 18px; line-height: 1.55; white-space: pre-wrap; }
.mail-meta { font-size: 12px; color: #A8A49D; border-bottom: 1px solid #F0EDE8; padding-bottom: 8px; margin-bottom: 12px; }
.wavy { text-decoration: underline wavy var(--accent) 2px; text-underline-offset: 5px; }
.player-screen .chip { right: 16px; bottom: 14px; border: 1px solid rgba(255,255,255,.14); }
.toast-center {
  top: auto; right: auto; bottom: 9%; left: 50%; transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,.12); font-size: 13px;
  padding: 9px 14px; border-radius: 11px; white-space: nowrap;
}

/* Финальный кадр */
.player-end {
  position: absolute; inset: 0; background: rgba(16,14,12,.92);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; text-align: center; padding: 24px;
}
.player-end[hidden] { display: none; }
.logo-card {
  width: 64px; height: 64px; border-radius: 16px; background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 5px 0 rgba(0,0,0,.35);
}
.logo-card img { width: 44px; height: 44px; }
.player-end h3 { margin: 0; color: #fff; font-size: 24px; font-weight: 800; }
.player-end .note { color: rgba(255,255,255,.5); font-size: 13px; }

/* Оверлей с кнопкой Play */
.player-overlay {
  position: absolute; inset: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: rgba(15,13,11,.44); backdrop-filter: blur(2px);
}
.player-overlay[hidden] { display: none; }
.play-btn {
  width: 86px; height: 86px; border-radius: 50%; background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 20px 46px -12px rgba(252,63,29,.75); transition: transform .15s;
}
.player-overlay:hover .play-btn { transform: scale(1.07); }
.tri {
  width: 0; height: 0; margin-left: 7px;
  border-top: 14px solid transparent; border-bottom: 14px solid transparent;
  border-left: 23px solid #fff;
}
.player-overlay .label { color: #fff; font-weight: 600; font-size: 15px; text-shadow: 0 2px 10px rgba(0,0,0,.5); }

/* Панель управления */
.player-bar {
  display: flex; align-items: center; gap: 14px;
  height: 58px; padding: 0 16px;
  background: #141210; border-top: 1px solid rgba(255,255,255,.07);
}
#v-play {
  width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.1); color: #fff; font-size: 12px; cursor: pointer;
  transition: background .15s;
}
#v-play:hover { background: var(--accent); }
.progress { flex: 1; height: 100%; display: flex; align-items: center; cursor: pointer; }
.progress-track { width: 100%; height: 5px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; }
.progress-fill { height: 100%; width: 0; border-radius: 99px; background: var(--accent); }
.time { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: rgba(255,255,255,.6); }
#v-sound {
  border: 1px solid rgba(255,255,255,.16); background: none;
  color: rgba(255,255,255,.7); font: 600 12px 'Golos Text', sans-serif;
  padding: 7px 12px; border-radius: 9px; cursor: pointer;
  transition: color .15s, border-color .15s;
}
#v-sound:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.player-note { text-align: center; margin-top: 18px; font-size: 13px; color: rgba(255,255,255,.42); }

/* ---------- 7. Конвертер раскладки ---------- */
.converter {
  max-width: 980px; margin: 0 auto;
  border: 1px solid #E8E5DF; border-radius: 20px; overflow: hidden;
  box-shadow: 0 26px 60px -34px rgba(31,25,16,.35);
}
.conv-grid { display: grid; grid-template-columns: 1fr 1fr; }
.conv-in { padding: 24px 26px; border-right: 1px solid #E8E5DF; background: #fff; }
.conv-out { padding: 24px 26px; background: var(--bg-soft); }
.conv-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: #A8A49D; margin-bottom: 12px;
}
.badge-dir {
  margin-left: auto; color: var(--accent);
  border: 1px solid rgba(252,63,29,.4); border-radius: 99px;
  padding: 3px 10px; letter-spacing: .06em;
}
#inp {
  width: 100%; min-height: 124px; padding: 0;
  border: 0; outline: 0; resize: none; background: none;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 19px; line-height: 1.55; color: var(--ink);
}
#out { font-size: 19px; line-height: 1.55; min-height: 124px; white-space: pre-wrap; }
#out.empty { color: #A8A49D; }
.conv-foot {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 16px 26px; border-top: 1px solid #E8E5DF; background: #fff;
}
.conv-foot .hint { font-size: 13px; color: #A8A49D; }
.sample {
  border: 1px solid var(--line); background: #fff; border-radius: 99px;
  padding: 8px 14px; cursor: pointer; color: var(--ink);
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px;
  transition: border-color .15s, color .15s;
}
.sample:hover { border-color: var(--accent); color: var(--accent); }
#clr { border: 0; background: none; font-size: 13px; color: #A8A49D; cursor: pointer; }
#clr:hover { color: var(--ink); }
.snd-label { margin-left: auto; display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); cursor: pointer; }
.snd-label input { accent-color: var(--accent); width: 16px; height: 16px; }

/* ---------- 8. Скриншоты ---------- */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.shot {
  margin: 0; background: #fff; border: 1px solid #E8E5DF;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 18px 40px -26px rgba(31,25,16,.35);
}
.shot-bar {
  display: flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 14px; border-bottom: 1px solid #F0EDE8;
  font-size: 13px; font-weight: 500; color: var(--muted);
}
.shot img { width: 100%; height: 232px; object-fit: contain; display: block; background: #fff; padding: 10px; }

/* ---------- Отзывы ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.review { border: 1px solid #EEEBE5; border-radius: 18px; padding: 24px; background: #fff; }
.stars { color: #FFAB00; font-size: 15px; letter-spacing: 3px; }
.stars .off { color: var(--line); }
.review p { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: #3A3833; }
.who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.who img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; display: block; }
.who b { display: block; font-size: 14px; font-weight: 600; }
.who small { display: block; font-size: 13px; color: var(--muted-2); }

/* ---------- Призыв к действию ---------- */
.cta-wrap { padding: 24px 0 96px; }
.cta {
  position: relative; overflow: hidden; text-align: center;
  border-radius: 26px; background: var(--accent); padding: 72px 40px;
}
.cta > * { position: relative; }
.float {
  position: absolute; display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: rgba(255,255,255,.55); background: rgba(255,255,255,.12);
}
.float-a { top: -26px; left: 6%; width: 110px; height: 110px; border-radius: 26px; font-size: 44px; transform: rotate(-10deg); }
.float-b { bottom: -30px; right: 7%; width: 120px; height: 120px; border-radius: 28px; font-size: 48px; transform: rotate(11deg); }
.cta h2 { margin: 0; font-size: 42px; line-height: 1.1; font-weight: 800; color: #fff; }
.cta p { margin: 16px auto 0; max-width: 520px; font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.88); }
.cta .btn { margin-top: 30px; }
.cta .fine { margin-top: 16px; font-size: 13.5px; color: rgba(255,255,255,.75); }

/* ---------- Подвал ---------- */
.site-footer { background: var(--dark); padding: 36px 0; }
.foot-top { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.75); font-size: 14px; font-weight: 500; }
.logo-chip { width: 26px; height: 26px; border-radius: 7px; background: #fff; display: flex; align-items: center; justify-content: center; }
.logo-chip img { width: 18px; height: 18px; display: block; }
.foot-nav { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }
.foot-nav a { text-decoration: none; color: rgba(255,255,255,.6); font-size: 13.5px; transition: color .15s; }
.foot-nav a:hover { color: #fff; }
.foot-legal {
  border-top: 1px solid rgba(255,255,255,.09);
  margin-top: 22px; padding-top: 18px;
  font-size: 12.5px; line-height: 1.6; color: rgba(255,255,255,.4); text-wrap: pretty;
}

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; }
  .hero h1 { font-size: 42px; }
  .conv-grid { grid-template-columns: 1fr; }
  .conv-in { border-right: 0; border-bottom: 1px solid #E8E5DF; }
}
@media (max-width: 560px) {
  .section { padding: 72px 0; }
  .hero h1 { font-size: 36px; }
  .section-head h2 { font-size: 30px; }
  .cta h2 { font-size: 32px; }
  .cta { padding: 56px 24px; }
}
