:root {
  --page-bg: #f5f5f5;
  --text: #000000;
  --dark: #222222;
  --green: #77d82e;

  --container: 1360px;
  --nav-col-width: 220px;

  --radius-sm: 9px;
  --radius-lg: 40px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: "Montserrat", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
}

.container {
  width: min(var(--container), calc(100% - 128px));
  margin: 0 auto;
}

/* =========================
   HEADER / NAV
========================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding-top: 18px;
  background: transparent;
  transition:
    padding 0.35s ease,
    background 0.35s ease;
}

.nav {
  display: grid;
  grid-template-columns: 84px 1fr 84px;
  align-items: center;
  column-gap: 24px;
  min-height: 68px;
}

.brand {
  width: 66px;
  height: 66px;
  border-radius: 14px;
  overflow: hidden;
  display: block;
  background: #000000;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links {
  display: grid;
  grid-template-columns: repeat(3, var(--nav-col-width));
  justify-content: center;
  justify-items: center;
  align-items: center;
}

.nav-links a {
  font-size: 24px;
  line-height: 1;
  font-weight: 500;
  color: #000000;
  white-space: nowrap;
}

main {
  padding-top: 110px;
}

/* =========================
   FLOATING NAV ANIMATION
========================= */

.nav {
  transition:
    max-width 0.35s ease,
    padding 0.35s ease,
    min-height 0.35s ease,
    border-radius 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease,
    grid-template-columns 0.35s ease,
    column-gap 0.35s ease,
    transform 0.35s ease;
}

/* исходное состояние */
.site-header .nav-links {
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.site-header .brand,
.site-header .lang-dropdown {
  transition:
    opacity 0.28s ease,
    transform 0.35s ease,
    visibility 0.28s ease,
    width 0.35s ease;
}


/* состояние после скролла */
.site-header.header-scrolled {
  padding-top: 14px;
}

.site-header.header-scrolled .container {
  display: flex;
  justify-content: center;
}

.site-header.header-scrolled .nav {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 44px;
  min-height: 44px;
  width: fit-content;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header.header-scrolled .brand,
.site-header.header-scrolled .lang-dropdown {
  display: none;
}

.site-header.header-scrolled .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  height: 100%;
}

.site-header.header-scrolled .nav-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 17px;
  line-height: 1;
}

/* чуть приятнее поведение ссылок */
.nav-links a {
  position: relative;
  transition: opacity 0.2s ease;
}

.nav-links a:hover {
  opacity: 0.7;
}

/* мобильная адаптация */
@media (max-width: 760px) {
  .site-header {
    padding-top: 14px;
  }

  .site-header.header-scrolled .nav {
    max-width: calc(100% - 24px);
    width: 100%;
    min-height: 58px;
    padding: 0 18px;
  }

  .site-header.header-scrolled .nav-links {
    gap: 18px;
  }

  .site-header.header-scrolled .nav-links a {
    font-size: 14px;
  }
}

/* =========================
   HERO
========================= */

.hero {
  padding: 60px 0 80px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-title {
  margin: 0;
  max-width: 1200px;
  font-size: 46px;
  line-height: 1.16;
  font-weight: 900;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0.20em;
  text-indent: 0.47em;
}

.hero-subtitle {
  margin: 38px 0 0;
  max-width: 730px;
  font-size: 24px;
  line-height: 1.08;
  font-weight: 500;
  color: #000000;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 38px;
}

.download-btn {
  --mx: 50%;
  --my: 50%;
  --glow-opacity: 0;

  position: relative;
  isolation: isolate;
  overflow: hidden;

  width: 277px;
  height: 63px;
  border: 0;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}


.download-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 0;
  opacity: var(--glow-opacity);
  transition: opacity 0.2s ease, background 0.08s linear;
  pointer-events: none;
}

.download-btn > * {
  position: relative;
  z-index: 1;
}

.download-btn--mac {
  background: #77d82e;
  box-shadow: 0 8px 18px rgba(120, 216, 46, 0.192);
}

.download-btn--mac::before {
  background:
    radial-gradient(
      circle at var(--mx) var(--my),
      rgba(255, 255, 255, 0.34) 0%,
      rgba(189, 255, 145, 0.22) 18%,
      rgba(119, 216, 46, 0) 48%
    );
}

.download-btn--win {
  background: #222222;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.download-btn--win::before {
  background:
    radial-gradient(
      circle at var(--mx) var(--my),
      rgba(255, 255, 255, 0.22) 0%,
      rgba(110, 110, 110, 0.18) 18%,
      rgba(34, 34, 34, 0) 48%
    );
}

.download-btn:hover {
  transform: translateY(-1px);
}

.download-btn:hover::before {
  opacity: 1;
}

.download-btn:active {
  transform: translateY(0);
}

.download-btn__icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.hero-preview {
  width: min(100%, 1097px);
  aspect-ratio: 1097 / 621;
  margin-top: 38px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0);
}

.hero-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {
  .container {
    width: min(var(--container), calc(100% - 64px));
  }

  .nav {
    grid-template-columns: 72px 1fr 72px;
  }

  .nav-links {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 16px;
  }

  .nav-links a,
  .lang-button,
  .hero-subtitle,
  .download-btn {
    font-size: 20px;
  }

  .hero-title {
    font-size: 34px;
  }

  .download-btn {
    width: 240px;
    height: 58px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(var(--container), calc(100% - 32px));
  }

  .site-header {
    padding-top: 14px;
  }

  .nav {
    grid-template-columns: 56px 1fr;
    row-gap: 14px;
  }

  .brand {
    width: 56px;
    height: 56px;
  }

  .lang-dropdown {
    display: none;
  }

  
  .nav-links {
    grid-template-columns: repeat(3, auto);
    justify-content: end;
    gap: 18px;
  }

  .nav-links a {
    font-size: 14px;
  }

  .hero {
    padding-top: 34px;
    padding-bottom: 56px;
  }

  .hero-title {
    max-width: 100%;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: 0.22em;
    text-indent: 0.22em;
  }

  .hero-subtitle {
    margin-top: 22px;
    font-size: 16px;
    line-height: 1.25;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
  }

  .download-btn {
    width: 100%;
    max-width: 277px;
    font-size: 18px;
  }

  .hero-preview {
    margin-top: 28px;
    border-radius: 20px;
  }
}

.lang-dropdown {
  position: relative;
  justify-self: end;
}

.lang-trigger {
  width: 74px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: #dddddd;
  color: #000;
  font-size: 20px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.lang-menu {
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  overflow: hidden;

  opacity: 0;
  transform: translateY(-5px);
  pointer-events: none;
  transition: 0.2s ease;
}

.lang-dropdown.open .lang-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.lang-option {
  padding: 10px 0;
  text-align: center;
  cursor: pointer;
  font-size: 18px;
}

.lang-option:hover {
  background: #f0f0f0;
}

.lang-option.active {
  background: #2f6bcc;
  color: #fff;
}




/* =========================
   PAIN SECTION
========================= */

.pain-section {
  position: relative;
  background: #222222;
  padding: 82px 0 58px;
  overflow: hidden;
}

.pain-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}

.pain-section__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.60);
  z-index: 1;
  pointer-events: none;
}

.pain-inner {
  position: relative;
  z-index: 2;
}

.pain-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pain-list {
  width: 100%;
  max-width: 1120px;
}

.pain-row {
  display: flex;
  width: 100%;
}

.pain-row + .pain-row {
  margin-top: 20px;
}

.pain-row--left {
  justify-content: flex-start;
}

.pain-row--right {
  justify-content: flex-start;
  padding-left: 460px;
}
.pain-badge {
  min-height: 110px;
  padding: 18px 34px;
  border-radius: 999px;
  background: #bd5050;
  display: inline-flex;
  align-items: flex-start;
  gap: 14px;
}

.pain-badge--wide {
  min-width: 700px;
}

.pain-badge--small {
  min-width: 520px;
}

.pain-badge:not(.pain-badge--wide):not(.pain-badge--small) {
  min-width: 675px;
}

.pain-badge__icon {
  color: #ff1f1f;
  font-size: 40px;
  line-height: 1;
  font-weight: 800;
  margin-top: 2px;
  flex-shrink: 0;
}

.pain-badge__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #ffffff;
  font-size: 40px;
  line-height: 1.03;
  font-weight: 800;
  text-transform: uppercase;
}

.pain-check {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 40px;
  line-height: 1.04;
  font-weight: 800;
  text-transform: uppercase;
  text-align: right;
  justify-content: flex-end;
}

.pain-check__icon {
  font-size: 30px;
  line-height: 1;
  flex-shrink: 0;
}

.pain-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 52px;
}

.download-btn--win-light {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 8px 18px rgba(255, 255, 255, 0.12);
}

.download-btn--win-light::before {
  background:
    radial-gradient(
      circle at var(--mx) var(--my),
      rgba(255, 255, 255, 0.7) 0%,
      rgba(215, 215, 215, 0.55) 20%,
      rgba(255, 255, 255, 0) 48%
    );
}

@media (max-width: 1200px) {
  .pain-list {
    max-width: 100%;
  }

  .pain-badge,
  .pain-badge--wide,
  .pain-badge--small,
  .pain-badge:not(.pain-badge--wide):not(.pain-badge--small) {
    min-width: auto;
    width: fit-content;
    max-width: 100%;
  }

  .pain-badge__text,
  .pain-check {
    font-size: 32px;
  }
}

@media (max-width: 760px) {
  .pain-section {
    padding: 56px 0 44px;
  }

  .pain-row,
  .pain-row--left,
  .pain-row--right {
    justify-content: center;
  }

  .pain-row + .pain-row {
    margin-top: 16px;
  }

  .pain-badge {
    width: 100%;
    min-height: auto;
    border-radius: 28px;
    padding: 18px 20px;
  }

  .pain-badge__icon {
    font-size: 28px;
  }

  .pain-badge__text,
  .pain-check {
    font-size: 22px;
    line-height: 1.08;
  }

  .pain-check {
    text-align: center;
  }

  .pain-actions {
    width: 100%;
    flex-direction: column;
    align-items: center;
    margin-top: 34px;
  }
}

/* =========================
   HOW IT WORKS
========================= */

.how-section {
  background: #f5f5f5;
  padding: 90px 0 120px;
  overflow: hidden;
}

.how-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.how-title {
  margin: 0;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #000;
}

.how-grid {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  margin-top: 70px;
  width: 100%;
  justify-content: center;
}

.how-item {
  position: relative;
  flex: 0 0 334px;
  width: 334px;
  text-align: center;
  transition:
    flex-basis 0.45s ease,
    transform 0.45s ease;
  will-change: flex-basis, transform;
}

.how-card {
  width: 334px;
  height: 232px;
  border-radius: 28px;
  background: #dcdcdc;
  overflow: hidden;
  position: relative;
  z-index: 2;
  margin: 0 auto;
  transform-origin: center center;
  transition:
    width 0.45s ease,
    height 0.45s ease,
    border-radius 0.45s ease,
    box-shadow 0.45s ease,
    transform 0.45s ease;
}

.how-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.how-text {
  margin-top: 18px;
  font-size: 24px;
  font-weight: 800;
  color: #000;
  position: relative;
  z-index: 3;
  transition:
    transform 0.45s ease,
    font-size 0.45s ease,
    margin-top 0.45s ease;
}

.how-number {
  position: absolute;
  bottom: -350px;
  left: 50%;
  transform: translateX(-50%) scale(1);
  transform-origin: center center;
  font-size: 500px;
  line-height: 1;
  font-weight: 900;
  color: #e8e8e8;
  z-index: 1;
  pointer-events: none;
  transition:
    transform 0.45s ease,
    bottom 0.45s ease,
    opacity 0.45s ease;
}

/* Когда навели мышку на всю сетку — чуть приглушаем остальные */
.how-grid:hover .how-item {
  opacity: 0.92;
}

/* Активная колонка */
.how-item:hover {
  flex-basis: 720px;
  z-index: 5;
  opacity: 1;
}

.how-item:hover .how-card {
  width: 720px;
  height: 500px;
  border-radius: 36px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
}

.how-item:hover .how-text {
  margin-top: 24px;
  font-size: 28px;
}

.how-item:hover .how-number {
  transform: translateX(-50%) scale(1.95);
  bottom: -520px;
}

/* Чтобы при наведении курсор был понятным */
.how-item,
.how-card {
  cursor: pointer;
}


/* =========================
   CTA SECTION
========================= */

.cta-section {
  background: #222222;
  padding: 110px 0 106px;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-title {
  margin: 0;
  font-size: 40px;
  line-height: 1.15;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
}

.cta-subtitle {
  margin: 38px 0 0;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 500;
  color: #ffffff;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 42px;
}

@media (max-width: 760px) {
  .cta-section {
    padding: 72px 0 72px;
  }

  .cta-title {
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: 0.18em;
    text-indent: 0.18em;
  }

  .cta-subtitle {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.3;
  }

  .cta-actions {
    width: 100%;
    flex-direction: column;
    gap: 12px;
    margin-top: 26px;
  }
}



/* =========================
   FOOTER
========================= */

.site-footer {
  background: #000000;
  padding: 32px 0 36px;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: start;
  column-gap: 56px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.footer-logo {
  width: 94px;
  height: 94px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-logo--bottom {
  margin-top: 18px;
}

.footer-copyright {
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
}

.footer-links {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 88px;
  padding-top: 6px;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links-col a {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 400;
  color: #ffffff;
  transition: opacity 0.2s ease;
}

.footer-links-col a:hover {
  opacity: 0.72;
}

.footer-divider {
  width: 1px;
  height: 175px;
  background: rgba(255, 255, 255, 0.9);
  align-self: center;
}

.footer-social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 18px;
}

.footer-social-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-social-icons a:hover {
  transform: translateY(-1px);
  opacity: 0.82;
}

.footer-social-icons img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
}

.footer-email {
  margin-top: 18px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 400;
  color: #ffffff;
  transition: opacity 0.2s ease;
}

.footer-email:hover {
  opacity: 0.72;
}

@media (max-width: 1200px) {
  .footer-inner {
    grid-template-columns: 1fr;
    row-gap: 34px;
  }

  .footer-links {
    column-gap: 56px;
  }

  .footer-divider {
    display: none;
  }

  .footer-social {
    padding-top: 0;
  }
}

@media (max-width: 760px) {
  .site-footer {
    padding: 28px 0 34px;
  }

  .footer-brand-top {
    gap: 12px;
  }

  .footer-logo {
    width: 72px;
    height: 72px;
  }

  .footer-logo--bottom {
    margin-top: 14px;
  }

  .footer-copyright {
    margin-top: 6px;
    font-size: 18px;
    white-space: normal;
  }

  .footer-links {
    grid-template-columns: 1fr;
    row-gap: 22px;
    column-gap: 0;
  }

  .footer-links-col {
    gap: 10px;
  }

  .footer-links-col a,
  .footer-email {
    font-size: 18px;
  }

  .footer-social-icons img {
    width: 40px;
    height: 40px;
  }
}