/*
Theme Name: kultura-komandy
Theme URI: https://wordpress-latest.ddev.site/
Author: Local team
Description: Одностраничная тема для сайта «Культура команды».
Version: 1.0.0
Text Domain: kultura-komandy
*/

:root {
  --ink: #000708;
  --muted: rgba(0, 7, 8, 0.68);
  --line: rgba(0, 7, 8, 0.15);
  --surface: #f2f2f2;
  --accent: #00929a;
  --accent-dark: #00747b;
  --white: #ffffff;
  --page-x: max(64px, calc((100vw - 1312px) / 2));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: "Open Sans", Arial, sans-serif; font-size: 16px; line-height: 1.5; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, .logo, .desktop-nav, .menu-links { font-family: Montserrat, Arial, sans-serif; font-weight: 500; }

.navbar {
  height: 72px;
  padding: 0 var(--page-x);
  display: flex;
  align-items: center;
  gap: 36px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.logo { display: inline-flex; align-items: center; font-size: 24px; line-height: 1.5; letter-spacing: .02em; white-space: nowrap; }
.logo br { display: none; }
.logo-mark { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-size: 12px; }
.desktop-nav { display: flex; gap: 32px; margin-left: auto; font-size: 14px; }
.desktop-nav a { padding: 20px 0; }
.desktop-nav a:hover, .footer a:hover { color: var(--accent-dark); }
.consult-button, .primary-button {
  min-height: 40px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}
.navbar > .consult-button { width: 155px; }
.menu-button, .menu-close { width: 48px; height: 48px; padding: 12px; border: 0; background: transparent; display: none; cursor: pointer; }
.menu-button svg, .menu-close svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.mobile-menu { position: fixed; inset: 0; z-index: 100; pointer-events: none; visibility: hidden; }
.mobile-menu.is-open { pointer-events: auto; visibility: visible; }
.menu-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .25); opacity: 0; transition: opacity .18s ease; }
.menu-panel { position: relative; width: min(375px, 100%); height: 392px; margin: 0 auto; background: #fff; border-radius: 0 0 32px 32px; transform: translateY(-100%); transition: transform .2s ease; }
.mobile-menu.is-open .menu-scrim { opacity: 1; }
.mobile-menu.is-open .menu-panel { transform: translateY(0); }
.menu-header { height: 64px; padding: 0 12px 0 20px; display: flex; align-items: center; justify-content: space-between; }
.menu-consult { position: absolute; top: 84px; left: 20px; right: 20px; }
.menu-links { position: absolute; top: 144px; left: 20px; right: 20px; display: flex; flex-direction: column; align-items: center; font-size: 16px; line-height: 1.5; }
.menu-links a { height: 56px; display: flex; align-items: center; }

.hero-section { height: 808px; padding: 80px var(--page-x); }
.hero-card { position: relative; width: 1280px; max-width: 100%; height: 648px; min-height: 648px; margin: auto; border: 0; border-radius: 40px; background: var(--surface); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.hero-card::after { content: ""; position: absolute; inset: 0; z-index: 3; border: 1px solid var(--line); border-radius: inherit; pointer-events: none; }
.hero-copy { padding: 48px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 0; }
.hero-copy h1 { max-width: 544px; margin-bottom: 24px; font-size: 40px; line-height: 1.2; letter-spacing: -.04em; }
.hero-copy p { max-width: 520px; margin-bottom: 0; color: var(--muted); font-size: 32px; line-height: 1.35; }
.hero-copy .hero-lead { font-size: 34px; }
.hero-copy .hero-experience { font-size: 20px; line-height: 1.5; }
.hero-copy p + p { margin-top: 24px; }
.hero-copy .primary-button { width: 286px; min-height: 44px; }
.hero-media { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; min-height: 0; object-fit: cover; object-position: center top; }

.section { padding: 112px var(--page-x); }
.section-title { width: 768px; max-width: 100%; margin: 0 auto 80px; text-align: center; }
.section-title h2, .principles-intro h2, .contact-heading h2 { margin-bottom: 24px; font-size: 52px; line-height: 1.2; letter-spacing: -.035em; }
.section-title p, .principles-intro > p, .contact-heading > p { margin-bottom: 0; color: var(--muted); font-size: 18px; line-height: 1.5; }

.services { height: 759px; }
.service-grid { max-width: 1280px; margin: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.service-card { height: 342px; position: relative; overflow: hidden; border-radius: 32px; background-image: linear-gradient(rgba(0,0,0,.4), rgba(0,0,0,.4)), var(--card-image); background-size: cover; background-position: center; color: #fff; cursor: pointer; }
.service-mark { position: absolute; z-index: 1; left: 32px; display: flex; color: #fff; }
.service-mark--era { top: 37px; width: 124px; height: auto; display: block; }
.service-mark--era img { display: block; width: 100%; height: auto; filter: brightness(0) invert(1); }
.service-mark--era strong { font: 500 24px/1 Montserrat, sans-serif; letter-spacing: .04em; }
.service-mark--era small { padding-left: 8px; border-left: 1px solid rgba(255,255,255,.8); font-size: 7px; line-height: 1.3; text-transform: uppercase; }
.service-card--games .service-mark, .service-card--team .service-mark { top: 32px; }
.service-mark--icon, .service-mark--icon svg { width: 36px; height: 36px; }
.service-mark--icon svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service-content { position: absolute; left: 32px; right: 32px; padding: 0; display: flex; flex-direction: column; align-items: flex-start; }
.service-card--lead .service-content { top: 109px; bottom: 37px; }
.service-card--games .service-content, .service-card--team .service-content { top: 104px; bottom: 32px; }
.service-content h3 { margin-bottom: 16px; font-size: 36px; line-height: 1.3; }
.service-card--lead .service-content h3 { font-size: 32px; }
.service-content p { max-width: 341px; margin: 0; font-size: 16px; line-height: 1.5; }
.details-button { margin-top: auto; padding: 0; border: 0; background: transparent; color: #fff; display: inline-flex; align-items: center; gap: 12px; font-weight: 600; cursor: pointer; }

.about-expert__card { position: relative; width: 100%; max-width: 1280px; height: auto; min-height: 640px; margin: auto; display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(320px, .72fr); overflow: hidden; border-radius: 40px; background: var(--surface); }
.about-expert__card::after { content: ""; position: absolute; inset: 0; z-index: 2; border: 1px solid var(--line); border-radius: inherit; pointer-events: none; }
.about-expert__content { position: relative; z-index: 1; align-self: stretch; padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; }
.about-expert__content h2 { margin-bottom: 32px; font-size: 52px; line-height: 1.2; letter-spacing: -.035em; }
.about-expert__list { max-width: 720px; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 18px; list-style: none; }
.about-expert__list li { position: relative; padding-left: 20px; color: var(--muted); font-size: 18px; line-height: 1.5; }
.about-expert__list li::before { content: ""; position: absolute; top: .55em; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.about-expert__media { position: relative; z-index: 1; min-height: 640px; height: auto; display: flex; align-items: flex-end; justify-content: flex-end; overflow: hidden; }
.about-expert__image { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; transform: scaleX(-1); transform-origin: center bottom; }

.principles { height: auto; background: var(--surface); }
.principles-intro { width: 768px; max-width: 100%; margin: 0 auto 64px; text-align: center; }
.principles-intro h2 { margin-bottom: 0; }
.kicker { display: block; margin-bottom: 16px; font-weight: 600; }
.principle-list { max-width: 1280px; margin: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.principle-item { text-align: center; }
.principle-item:nth-child(2) { order: -1; }
.principle-icon { width: 48px; height: 48px; margin: 0 auto 24px; display: grid; place-items: center; color: var(--accent-dark); }
.principle-icon svg { width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.principle-icon svg.principle-icon__svg--partnership { width: 48px; height: 48px; fill: none; stroke: none; }
.principle-icon svg.principle-icon__svg--mastery,
.principle-icon svg.principle-icon__svg--mastery-exact,
.principle-icon svg.principle-icon__svg--ikigai { display: none; }
.principle-icon svg.principle-icon__svg--team-library {
  width: 48px;
  height: 48px;
  fill: #00747B;
  stroke: none;
  transform: scale(1.12);
  transform-origin: center;
}
.principle-icon svg.principle-icon__svg--unified {
  display: block;
  width: 48px;
  height: 48px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.principle-item h3 { margin-bottom: 24px; font-size: 36px; line-height: 1.3; }
.principle-item p { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.5; }

.thanks { height: 780px; overflow: hidden; }
.thanks .section-title { width: 414px; }
.thanks-viewport { max-width: 1280px; margin: auto; overflow: visible; cursor: grab; touch-action: pan-y; user-select: none; outline: none; }
.thanks-viewport:focus-visible { outline: 2px solid var(--accent); outline-offset: 8px; border-radius: 4px; }
.thanks-viewport.is-dragging { cursor: grabbing; }
.thanks-track { width: max-content; display: flex; gap: 24px; transform: translateX(-203px); transition: transform .32s ease; will-change: transform; }
.thanks-viewport.is-dragging .thanks-track { transition: none; }
.thanks-card { flex: 0 0 166px; height: 235px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 32px; background: #fff; cursor: grab; }
.thanks-viewport.is-dragging .thanks-card { cursor: grabbing; }
.thanks-card img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; }
.thanks-card--pdf { display: grid; place-items: center; background: #fff; }
.thanks-card__pdf-label { display: grid; place-items: center; width: 82px; height: 82px; border-radius: 22px; background: var(--surface); color: var(--accent-dark); font: 600 20px/1 Montserrat, sans-serif; }
.thanks-empty { max-width: 1280px; margin: 80px auto 0; text-align: center; color: var(--muted); }
.slider-controls { width: 1280px; max-width: 100%; margin: 80px auto 0; display: flex; align-items: center; justify-content: center; gap: 16px; }
.round-button { width: 48px; height: 48px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; }
.round-button:disabled { opacity: .3; cursor: default; }
.slider-dots { display: flex; gap: 8px; }
.slider-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--ink); opacity: .2; cursor: pointer; }
.slider-dots button.is-active { opacity: 1; }

.contacts { height: 732px; background: #e5f4f4; }
.contact-heading { width: 768px; max-width: 100%; margin: 0 auto 80px; text-align: center; }
.contact-grid { max-width: 1280px; margin: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.contact-group { align-self: start; text-align: center; }
.contact-group--social { order: 1; }
.contact-group--email { order: 2; }
.contact-icon { width: 48px; height: 48px; margin: 0 auto 24px; display: grid; place-items: center; color: #2c2c2c; }
.contact-icon svg { width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.contact-group h3 { margin-bottom: 24px; font-size: 36px; line-height: 1.3; }
.contact-group a { display: block; margin: 0; font-size: 16px; line-height: 1.5; }
.contact-group a + a { margin-top: 12px; }

.footer { height: 317px; min-height: 317px; padding: 80px var(--page-x); background: #fff; display: flex; flex-direction: column; justify-content: space-between; font-size: 14px; }
.footer-top, .footer-bottom { width: 1280px; max-width: 100%; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 375px 466px 375px; gap: 32px; align-items: center; }
.footer-logo { font-size: 14px; line-height: 1.5; letter-spacing: .233em; }
.footer-links { display: flex; align-items: center; justify-content: center; gap: 32px; font-weight: 600; }
.footer-socials { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.footer-socials a { width: 24px; height: 24px; display: grid; place-items: center; }
.footer-socials svg { width: 24px; height: 24px; fill: currentColor; }
.footer-bottom { height: 53px; padding-top: 31px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.privacy-link { grid-column: 2; grid-row: 1; justify-self: end; max-width: none; white-space: nowrap; }
.credits, .copyright { margin: 0; color: var(--ink); white-space: nowrap; }
.credits { grid-column: 3; grid-row: 1; text-align: left; }
.credits br { display: none; }
.copyright { grid-column: 1; grid-row: 1; text-align: left; }
.mobile-title { display: none; }
.mobile-break { display: none; }

dialog { color: var(--ink); }
dialog::backdrop { background: rgba(0, 0, 0, .4); backdrop-filter: blur(3px); }
.content-dialog { width: min(760px, calc(100% - 40px)); padding: 56px; border: 0; border-radius: 32px; }
.content-dialog h2 { font: 500 42px/1.2 Montserrat, sans-serif; }
.content-dialog p { color: var(--muted); font-size: 18px; line-height: 1.55; }
.dialog-close { position: absolute; z-index: 3; top: 18px; right: 18px; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; outline: none; box-shadow: none; appearance: none; -webkit-appearance: none; background: var(--surface); font-size: 26px; line-height: 1; cursor: pointer; }
.dialog-close:focus { outline: none; box-shadow: none; }
.dialog-close:focus-visible { outline: none; background: #dff1f2; }
.era-dialog { width: min(760px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 28px; overflow: auto; border: 0; border-radius: 28px; color: var(--ink); }
.era-dialog__image { display: block; width: 260px; height: 170px; margin: 0 auto 20px; border-radius: 18px; object-fit: cover; }
.era-dialog__content { padding: 0 32px 6px; }
.era-dialog__content h2 { margin-bottom: 18px; text-align: center; font: 500 32px/1.25 Montserrat, sans-serif; letter-spacing: -.02em; }
.era-dialog__content p, .era-dialog__content li { font-size: 16px; line-height: 1.45; }
.era-dialog__content p { margin-bottom: 16px; }
.era-dialog__content h3 { margin: 28px 0 10px; font-size: 18px; line-height: 1.3; }
.era-dialog__content ul { margin: 0 0 24px; padding: 0; list-style: none; }
.era-dialog__content li { position: relative; padding-left: 14px; }
.era-dialog__content li + li { margin-top: 8px; }
.era-dialog__content li::before { position: absolute; left: 0; content: '•'; }
.era-dialog__content > :last-child { margin-bottom: 0; }
.era-dialog__video { margin-top: 28px; }
.era-dialog__video a { color: var(--accent-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.era-dialog__presentation { display: flex; align-items: center; justify-content: center; gap: 10px; width: fit-content; min-height: 44px; margin: 24px auto 0; padding: 0 22px; border-radius: 10px; background: var(--accent-dark); color: #fff; font-size: 14px; font-weight: 600; }
.games-dialog { width: min(1040px, calc(100% - 40px)); height: min(660px, calc(100vh - 40px)); padding: 36px; overflow: hidden; border: 0; border-radius: 32px; color: var(--ink); }
.games-dialog__layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(230px, .55fr); height: 100%; min-height: 0; }
.games-dialog__details { min-height: 0; padding: 8px 44px 8px 8px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.games-dialog__panel { display: none; }
.games-dialog__panel.is-active { display: flex; flex-direction: column; align-items: flex-start; }
.games-dialog__panel h2 { margin-bottom: 20px; font: 500 38px/1.2 Montserrat, sans-serif; letter-spacing: -.03em; }
.games-dialog__panel img { align-self: center; width: auto; height: auto; max-width: 100%; max-height: min(42vh, 420px); margin: 0 auto 22px; border-radius: 20px; object-fit: contain; object-position: center; }
.games-dialog__description { color: var(--muted); font-size: 17px; line-height: 1.5; }
.games-dialog__description p { margin: 0 0 16px; }
.games-dialog__description h3 { margin: 28px 0 12px; }
.games-dialog__description ul { margin: 0 0 24px; padding-left: 22px; }
.games-dialog__description li + li { margin-top: 8px; }
.games-dialog__description > :last-child { margin-bottom: 0; }
.games-dialog__presentation { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 28px; padding: 0 20px; border-radius: 10px; background: var(--accent-dark); color: #fff; font-size: 14px; font-weight: 600; }
.games-dialog__no-file { margin-top: 28px; color: var(--muted); font-size: 14px; }
.games-dialog__list { display: flex; flex-direction: column; gap: 8px; padding: 56px 0 8px 32px; border-left: 1px solid var(--line); }
.games-dialog__item { width: 100%; padding: 14px 16px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); text-align: left; font: 600 16px/1.35 Montserrat, sans-serif; cursor: pointer; }
.games-dialog__item:hover, .games-dialog__item.is-active { background: var(--surface); color: var(--accent-dark); }
.games-dialog__empty { padding: 56px 24px 24px; text-align: center; color: var(--muted); font-size: 18px; }
.image-dialog { max-width: min(90vw, 800px); max-height: 90vh; padding: 20px; border: 0; border-radius: 24px; }
.image-dialog img { max-height: calc(90vh - 40px); margin: auto; }

@media (min-width: 768px) and (max-width: 1199px) {
  .about-expert__card { min-height: 0; display: flex; flex-direction: column; border-radius: 32px; }
  .about-expert__content { padding: 48px 40px 0; justify-content: flex-start; }
  .about-expert__content h2 { margin-bottom: 28px; font-size: 44px; line-height: 1.2; }
  .about-expert__list { max-width: none; gap: 14px; }
  .about-expert__list li { color: var(--ink); font-size: 17px; line-height: 1.5; }
  .about-expert__media { width: 100%; min-height: 480px; height: 480px; margin-top: 32px; }
  .about-expert__image { object-position: center bottom; }
}

@media (max-width: 767px) {
  :root { --page-x: 20px; }
  .desktop-nav, .desktop-only { display: none; }
  .navbar { height: 64px; padding: 0 12px 0 20px; }
  .navbar > .logo, .menu-header .logo { font-size: 16px; line-height: 1.5; }
  .logo br { display: none; }
  .menu-button, .menu-close { display: block; margin-left: auto; }

  .hero-section { height: 725px; padding: 20px; }
  .hero-card { width: 335px; max-width: 100%; height: 685px; min-height: 0; margin: 0 auto; display: flex; flex-direction: column; }
  .hero-copy { height: 350px; padding: 24px; display: flex; justify-content: flex-start; }
  .hero-copy h1 { margin-bottom: 20px; font-size: 40px; line-height: 1.2; letter-spacing: -.035em; }
  .hero-copy p { margin-bottom: 0; font-size: 16px; line-height: 1.5; }
  .hero-copy .hero-lead { font-size: 18px; line-height: 1.45; }
  .hero-copy .hero-experience { font-size: 16px; line-height: 1.5; }
  .hero-copy p + p { margin-top: 16px; }
  .hero-copy .primary-button { width: 100%; margin-top: auto; }
  .hero-media { width: 100%; height: 335px; flex: 0 0 335px; }
  .hero-image { position: absolute; left: 0; top: 0; width: 100%; height: 335px; min-height: 0; object-fit: cover; object-position: center top; }

  .section { padding: 64px 20px; }
  .section-title { margin-bottom: 48px; text-align: left; }
  .section-title h2, .principles-intro h2, .contact-heading h2 { margin-bottom: 20px; font-size: 36px; line-height: 1.2; }
  .section-title p, .principles-intro > p, .contact-heading > p { max-width: 335px; color: var(--ink); font-size: 16px; line-height: 1.5; }
  .hero-copy p { color: var(--ink); }

  .services { height: 1404px; }
  .services .section-title { text-align: center; }
  .service-grid { display: flex; flex-direction: column; gap: 24px; }
  .service-card { width: 335px; max-width: 100%; height: 342px; flex: 0 0 342px; margin: 0 auto; }
  .service-mark { position: absolute; z-index: 1; left: 32px; display: flex; color: #fff; }
  .service-mark--era { top: 16px; width: 124px; height: auto; display: block; }
  .service-mark--era strong { font: 500 24px/1 Montserrat, sans-serif; letter-spacing: .04em; }
  .service-mark--era small { padding-left: 8px; border-left: 1px solid rgba(255,255,255,.8); font-size: 7px; line-height: 1.3; text-transform: uppercase; }
  .service-card--games .service-mark { top: 48px; }
  .service-card--team .service-mark { top: 36px; }
  .service-mark--icon, .service-mark--icon svg { width: 36px; height: 36px; }
  .service-mark--icon svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .service-content { left: 32px; right: 32px; padding: 0; }
  .service-card--lead .service-content { top: 88px; bottom: 16px; }
  .service-card--games .service-content { top: 120px; bottom: 48px; }
  .service-card--team .service-content { top: 108px; bottom: 36px; }
  .service-content h3 { margin-bottom: 16px; font-size: 24px; line-height: 1.3; }
  .service-card--lead .service-content h3 { font-size: 32px; line-height: 1.3; }
  .service-content p { margin: 0; font-size: 16px; line-height: 1.5; }

  .about-expert__card { height: auto; min-height: 0; display: flex; flex-direction: column; border-radius: 32px; }
  .about-expert__content { padding: 32px 24px 0; }
  .about-expert__content h2 { margin-bottom: 24px; font-size: 36px; line-height: 1.2; letter-spacing: -.035em; }
  .about-expert__list { grid-template-columns: 1fr; gap: 12px; }
  .about-expert__list li { padding-left: 16px; color: var(--ink); font-size: 15px; line-height: 1.45; }
  .about-expert__list li::before { top: .55em; width: 5px; height: 5px; }
  .about-expert__media { width: 100%; min-height: 360px; height: 360px; margin-top: 24px; }
  .about-expert__image { object-position: center; }

  .principles { height: auto; }
  .principles-intro { margin-bottom: 48px; text-align: center; }
  .principles-intro .kicker { margin-bottom: 12px; }
  .principles-intro h2 { max-width: 335px; margin: 0 auto; letter-spacing: 0; }
  .principle-list { display: flex; flex-direction: column; gap: 48px; }
  .principle-item { text-align: center; display: block; }
  .principle-icon { width: 48px; height: 48px; margin: 0 auto 24px; }
  .principle-icon svg { width: 48px; height: 48px; }
  .principle-item h3 { margin: 0 0 24px; font-size: 24px; line-height: 1.3; }
  .principle-item p { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.5; }

  .thanks { height: 708px; padding: 64px 0; }
  .thanks .section-title { width: 335px; margin: 0 auto 80px; padding: 0; text-align: center; }
  .thanks .section-title h2 { margin-bottom: 24px; }
  .thanks .section-title p { max-width: none; font-size: 18px; line-height: 1.5; }
  .thanks-viewport { width: 100%; max-width: none; overflow: visible; }
  .thanks-track { gap: 24px; transform: translateX(-85.5px); }
  .thanks-card { flex-basis: 166px; height: 235px; border-radius: 32px; }
  .slider-controls { width: 335px; margin: 80px auto 0; padding: 0; gap: 16px; }

  .contacts { height: auto; min-height: 0; background: #fff; }
  .contact-heading { margin-bottom: 48px; text-align: center; }
  .contact-heading .kicker { margin-bottom: 12px; }
  .contact-heading h2 { font-size: 36px; }
  .contact-grid { display: flex; flex-direction: column; gap: 48px; }
  .contact-group { width: 100%; align-self: stretch; text-align: center; display: block; }
  .contact-group--social { order: 1; }
  .contact-group--email { order: 2; }
  .contact-icon { margin: 0 auto 20px; }
  .contact-group h3 { margin: 0 0 20px; font-size: 24px; line-height: 1.3; }
  .contact-group a { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.5; }
  .contact-group a + a { margin-top: 12px; }

  .footer { height: 634px; min-height: 634px; padding: 48px 20px; display: flex; flex-direction: column; justify-content: flex-start; gap: 48px; text-align: center; }
  .footer-top, .footer-bottom { width: 100%; display: flex; flex-direction: column; align-items: center; }
  .footer-top { gap: 48px; }
  .footer-links { display: flex; flex-direction: column; gap: 24px; }
  .footer-socials { justify-content: center; gap: 20px; }
  .footer-bottom { height: 193px; padding: 23px 0 16px; justify-content: flex-start; gap: 0; }
  .privacy-link { max-width: 320px; white-space: normal; }
  .privacy-link { margin-bottom: 16px; }
  .credits { margin-bottom: 32px; }
  .credits, .copyright { white-space: normal; }
  .credits br { display: block; }
  .credits, .copyright { text-align: center; }
  .desktop-title { display: none; }
  .mobile-title { display: inline; }
  .mobile-break { display: block; }

  .content-dialog { width: min(100% - 24px, 760px); padding: 40px 24px 28px; }
  .content-dialog h2 { font-size: 30px; }
  .content-dialog p { font-size: 16px; }
  .era-dialog { width: min(100% - 24px, 760px); padding: 20px 16px; }
  .era-dialog__image { width: 200px; height: 132px; margin-bottom: 14px; }
  .era-dialog__content { padding: 0 4px 2px; }
  .era-dialog__content h2 { margin-bottom: 14px; font-size: 24px; }
  .era-dialog__content p, .era-dialog__content li { font-size: 14px; }
  .era-dialog__content p { margin-bottom: 14px; }
  .era-dialog__content h3 { margin: 22px 0 8px; font-size: 16px; }
  .era-dialog__content ul { margin-bottom: 18px; }
  .era-dialog__content li + li { margin-top: 6px; }
  .era-dialog__video { margin-top: 22px; }
  .games-dialog { width: min(100% - 24px, 1040px); height: min(760px, calc(100vh - 24px)); max-height: none; padding: 48px 20px 20px; overflow: hidden; }
  .games-dialog__layout { display: flex; flex: 1; flex-direction: column; min-height: 0; overflow: hidden; }
  .games-dialog__details { min-height: 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; }
  .games-dialog__panel h2 { margin-bottom: 16px; font-size: 28px; }
  .games-dialog__panel img { width: auto; height: auto; max-width: 100%; max-height: min(42vh, 360px); margin: 0 auto 16px; border-radius: 16px; }
  .games-dialog__description { font-size: 15px; }
  .games-dialog__description p { margin-bottom: 14px; }
  .games-dialog__description h3 { margin: 22px 0 10px; }
  .games-dialog__description ul { margin-bottom: 18px; }
  .games-dialog__description li + li { margin-top: 6px; }
  .games-dialog__presentation { margin-top: 20px; }
  .games-dialog__list { order: -1; flex-direction: row; gap: 8px; margin-bottom: 20px; padding: 0 56px 12px 0; overflow-x: auto; border: 0; border-bottom: 1px solid var(--line); }
  .games-dialog__item { width: auto; flex: 0 0 auto; padding: 10px 12px; font-size: 14px; white-space: nowrap; }
}
