/* Шрифты Sofia Sans: вариативные файлы латиницы и кириллицы.
   В них нет знака U+02BB, поэтому узбекские o‘ и g‘ пишутся через U+2018 */
@font-face {
  font-family: 'Sofia Sans';
  src: url('/assets/fonts/sofia-sans-latin.woff2') format('woff2');
  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+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sofia Sans';
  src: url('/assets/fonts/sofia-sans-cyrillic.woff2') format('woff2');
  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: 'Sofia Sans Extra Condensed';
  src: url('/assets/fonts/sofia-sans-extra-condensed-latin.woff2') format('woff2');
  font-weight: 800 900;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sofia Sans Extra Condensed';
  src: url('/assets/fonts/sofia-sans-extra-condensed-cyrillic.woff2') format('woff2');
  font-weight: 800 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  color-scheme: light;
  --violet: #9b05fb;
  --ink: #17071f;
  --white: #ffffff;
  --lilac: #f2e8fe;
  --muted: #5b4e68;
  --gutter: clamp(16px, 4vw, 56px);
  /* Высота скошенного края цветных блоков: повторяет вырезанные буквы логотипа */
  --cut: clamp(18px, 3.4vw, 52px);
  --font-display: 'Sofia Sans Extra Condensed', 'Arial Narrow', sans-serif;
  --font-text: 'Sofia Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: clamp(18px, 1.35vw, 20px);
  line-height: 1.5;
}

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

a {
  color: var(--violet);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  text-transform: uppercase;
  text-wrap: balance;
}

.container {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  top: 12px;
  left: 16px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
}

.label {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Шапка */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 32px;
  padding-block: 14px;
}

.brand {
  display: block;
  padding-block: 10px;
}

.brand img {
  width: auto;
  height: 26px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 clamp(16px, 2.2vw, 32px);
  font-size: 17px;
  font-weight: 700;
}

.nav a {
  display: inline-block;
  padding-block: 10px;
  color: var(--ink);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-color: var(--violet);
  text-decoration-thickness: 3px;
}

.nav .lang {
  padding-inline: 14px;
  background: var(--ink);
  color: var(--white);
}

.nav .lang:hover {
  background: var(--violet);
  text-decoration: none;
}

/* Первый экран */
.hero {
  padding-top: 8px;
  padding-bottom: clamp(64px, 8vw, 120px);
}

.hero-logo {
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
  margin-top: clamp(40px, 5vw, 76px);
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 2.4vw, 36px);
  min-width: 0;
}

.hero-text h1 {
  font-size: clamp(50px, 6.6vw, 104px);
  font-weight: 900;
  line-height: 0.94;
}

.hero-text p {
  max-width: 32em;
  font-size: clamp(19px, 1.7vw, 25px);
  line-height: 1.4;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.stores li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 13px 20px;
  border: 3px solid var(--ink);
  font-weight: 700;
}

.stores span {
  color: var(--muted);
  font-weight: 500;
}

/* Билет: у покупки один выпуск = один билет, подписки нет */
.ticket-tilt {
  justify-self: center;
  width: 100%;
  max-width: 620px;
  transform: rotate(-4deg);
}

.ticket {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  background: var(--violet);
  color: var(--white);
  clip-path: polygon(
    1% 2%,
    99% 0,
    100% 39%,
    96.5% 50%,
    100% 61%,
    98.5% 99%,
    0 100%,
    0.5% 62%,
    4% 50%,
    0 38%
  );
}

.ticket-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-width: 0;
  padding: clamp(36px, 4vw, 60px) clamp(16px, 2vw, 28px) clamp(36px, 4vw, 60px)
    clamp(32px, 4vw, 60px);
}

.ticket-title {
  font-size: clamp(32px, 4.2vw, 62px);
  font-weight: 900;
  line-height: 0.92;
}

.ticket-note {
  font-size: clamp(16px, 1.3vw, 19px);
  font-weight: 500;
}

.ticket-stub {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(92px, 11vw, 168px);
  padding: 16px clamp(14px, 1.8vw, 26px) 16px clamp(12px, 1.6vw, 24px);
  border-left: 3px dashed var(--white);
}

.ticket-stub img {
  width: 100%;
}

/* Разделы главной */
.section-title {
  font-size: clamp(54px, 8.4vw, 132px);
  font-weight: 900;
  line-height: 0.92;
}

.benefits {
  background: var(--violet);
  color: var(--white);
  clip-path: polygon(0 var(--cut), 100% 0, 100% calc(100% - var(--cut)), 0 100%);
}

.benefits-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5vw, 72px);
  padding-block: clamp(84px, 10vw, 148px);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
  gap: clamp(36px, 4vw, 60px) clamp(40px, 6vw, 96px);
}

.benefit {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 4px solid var(--white);
}

.benefit h3 {
  font-size: clamp(38px, 4.2vw, 64px);
  font-weight: 800;
  line-height: 1;
}

.benefit p {
  max-width: 32em;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.4;
}

.how {
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 5vw, 72px);
  padding-block: clamp(72px, 9vw, 132px);
}

/* Шаги: номера настоящие, порядок действий здесь важен */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(40px, 5vw, 72px);
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step h3 {
  margin-top: 12px;
  font-size: clamp(36px, 3.4vw, 52px);
  font-weight: 800;
  line-height: 1;
}

.step p {
  max-width: 26em;
}

.step-number {
  width: fit-content;
  color: var(--violet);
  font-family: var(--font-display);
  font-size: clamp(130px, 15vw, 230px);
  font-weight: 900;
  line-height: 0.8;
  transform: rotate(-5deg);
}

.step:nth-child(2) .step-number {
  transform: rotate(4deg);
}

.step:nth-child(3) .step-number {
  transform: rotate(-3deg);
}

.steps-small .step-number {
  font-size: clamp(96px, 10vw, 150px);
}

/* Реквизиты */
.company {
  background: var(--lilac);
  clip-path: polygon(0 0, 100% var(--cut), 100% 100%, 0 100%);
}

.company-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
  padding-top: clamp(72px, 8vw, 120px);
  padding-bottom: clamp(84px, 10vw, 148px);
}

.company-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.company-text h2 {
  font-size: clamp(54px, 6.6vw, 104px);
  font-weight: 900;
  line-height: 0.92;
}

.company-text p {
  max-width: 28em;
}

.company-text a {
  font-weight: 700;
}

.requisites {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 28px clamp(24px, 3vw, 44px);
  min-width: 0;
}

.requisites > div {
  min-width: 0;
  padding-top: 12px;
  border-top: 3px solid var(--ink);
}

.requisites dt {
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
}

.requisites dd {
  margin-top: 4px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.requisites a {
  color: var(--ink);
}

.requisites a:hover {
  color: var(--violet);
}

/* Текстовые страницы */
.doc {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5vw, 72px);
  padding-top: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(72px, 9vw, 132px);
  line-height: 1.55;
}

.doc-title {
  color: var(--violet);
  font-weight: 900;
  line-height: 0.88;
}

.doc-title-long {
  /* «КОНФИДЕНЦИАЛЬНОСТИ» одним словом: на узком экране нижний предел важнее размера */
  font-size: clamp(30px, 9.6vw, 148px);
}

.doc-title-mid {
  font-size: clamp(60px, 11vw, 172px);
}

.doc-title-short {
  font-size: clamp(64px, 14vw, 220px);
}

.doc-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.doc-lead {
  max-width: 30em;
  font-size: clamp(21px, 1.9vw, 28px);
  font-weight: 500;
  line-height: 1.35;
}

.doc-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 40px clamp(48px, 8vw, 128px);
  align-items: flex-start;
}

.doc-side {
  display: flex;
  flex: 1 1 260px;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.doc-side > * {
  padding-top: 12px;
  border-top: 3px solid var(--ink);
}

.doc-side-label {
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
}

.doc-side-value {
  font-weight: 700;
}

.doc-side p {
  margin-top: 6px;
}

.toc {
  display: flex;
  flex-direction: column;
  font-size: 17px;
}

.toc .doc-side-label {
  padding-bottom: 4px;
}

.toc a {
  padding-block: 5px;
  color: var(--ink);
}

.toc a:hover {
  color: var(--violet);
}

.doc-body {
  display: flex;
  flex: 999 1 560px;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  max-width: 780px;
}

.doc-body h2 {
  margin-top: 28px;
  scroll-margin-top: 16px;
  font-size: clamp(34px, 3.2vw, 46px);
  font-weight: 800;
  line-height: 1;
}

.doc ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 22px;
  list-style: square;
}

.doc li::marker {
  color: var(--violet);
}

.doc strong {
  font-weight: 700;
}

.doc-subtitle {
  font-size: clamp(44px, 5vw, 76px);
  font-weight: 900;
  line-height: 0.95;
}

/* Цветные блоки текстовых страниц с неровно вырезанными краями */
.contacts {
  background: var(--violet);
  color: var(--white);
  clip-path: polygon(0 3%, 99.4% 0, 100% 96%, 0.6% 100%);
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 28px clamp(32px, 5vw, 72px);
  padding: clamp(36px, 4.4vw, 64px) clamp(20px, 4vw, 60px);
}

.contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.contact a {
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.contact a:hover {
  color: var(--white);
  text-decoration-thickness: 4px;
}

.no-access {
  background: var(--lilac);
  clip-path: polygon(0 2.5%, 99.5% 0, 100% 97%, 0.5% 100%);
}

.no-access-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(36px, 4.4vw, 64px) clamp(20px, 4vw, 60px);
}

.no-access p {
  max-width: 42em;
}

.no-access a {
  font-weight: 700;
}

.faq {
  display: flex;
  flex: 999 1 560px;
  flex-direction: column;
  min-width: 0;
  max-width: 860px;
}

.faq .doc-subtitle {
  margin-bottom: 18px;
}

.faq details {
  border-top: 3px solid var(--ink);
}

.faq details:last-child {
  border-bottom: 3px solid var(--ink);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 16px;
  font-size: clamp(20px, 1.7vw, 24px);
  font-weight: 700;
  line-height: 1.25;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::after {
  content: '+';
  color: var(--violet);
  font-family: var(--font-display);
  font-size: 1.5em;
  font-weight: 800;
  line-height: 0.85;
}

.faq details[open] summary::after {
  content: '−';
}

.faq details p {
  max-width: 36em;
  margin-bottom: 20px;
}

.deletion-block {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3vw, 44px);
}

.deletion-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 44px clamp(48px, 7vw, 112px);
  align-items: start;
}

.deletion-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding-top: 16px;
  border-top: 4px solid var(--ink);
}

.deletion-column h2 {
  font-size: clamp(38px, 3.8vw, 58px);
  font-weight: 900;
  line-height: 1;
}

.deletion-warning {
  font-weight: 700;
}

.not-found-code {
  color: var(--violet);
  font-family: var(--font-display);
  font-size: clamp(130px, 15vw, 230px);
  font-weight: 900;
  line-height: 0.8;
}

/* Подвал */
.footer-ground {
  background: var(--white);
}

.page-home .footer-ground {
  background: var(--lilac);
}

.site-footer {
  background: var(--violet);
  color: var(--white);
  clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 4vw, 56px);
  padding-top: clamp(72px, 8vw, 112px);
  padding-bottom: 32px;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 36px clamp(48px, 8vw, 128px);
  align-items: flex-start;
}

.footer-logo {
  width: clamp(150px, 17vw, 240px);
  margin-right: auto;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 200px;
}

.footer-column .label {
  padding-bottom: 8px;
}

.footer-column a {
  display: inline-block;
  padding-block: 8px;
  color: var(--white);
}

.footer-column a:hover {
  color: var(--white);
  text-decoration-thickness: 3px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  padding-top: 18px;
  border-top: 3px solid var(--white);
  font-size: 16px;
  font-weight: 500;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

/* Возрастной знак: контент 18+, по закону знак стоит на всех страницах */
.age-mark {
  display: inline-block;
  padding: 1px 8px;
  border: 2px solid currentColor;
  font-weight: 700;
  line-height: 1.3;
}

.hero-text .age-note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
