/* ===== base ===== */

:root{
  --bg: #f6f7fb;
  --ink: #0a0a0a;
  --blue: #0b4bb0;
  --blue2: rgba(14, 73, 150, 0.45);
  --container: 1240px;
}

html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(136.87deg, #3A75DD 24.29%, #05CEE8 56.79%, #2956A6 93.63%), #FFFFFF;
}

a{ color: inherit; text-decoration: none; }

.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* ===== header ===== */

.header{
  position: relative;
  z-index: 10;
  padding: 18px 0;
}

.header__row{
  display:flex;
  align-items:center;
  gap: 22px;
  position: relative;
}

.header__logo img {
  height: 60px;
  width: auto;
  display: block;
}

/* .hero__social — styles are in common.css, shared with all pages */

/* Language switcher — прижать вправо как на странице города */
.header__lang-wrap {
  margin-left: auto;
}

.logo{
  font-weight: 900;
  letter-spacing: -0.02em;
}

.nav{
  display:flex;
  gap: 18px;
  margin-left: 10px;
  flex: 1;
}

.nav__link{ opacity: .85; }
.nav__link:hover{ opacity: 1; }

.header__actions{
  display:flex;
  gap: 10px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}

/* ===== hero ===== */

.hero{
  position: relative;
  padding: 34px 0 80px;
  overflow: hidden;
}

.hero__bg{
  position:relative;
}

.hero__social-mobile{
  display: none;
}

.hero__grid{
  position: relative;
  z-index: 1;
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: start;
}

/* left */
.hero__left{
  padding-top: 60px;
  max-width: 820px;
  position: relative;
  z-index: 6;
}

.hero__title{
  font-family: "Onest", system-ui, sans-serif;
  font-style: normal;
  font-weight: 900;
  font-size: 60px;
  line-height: 100%;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #FFFFFF;
}

/* Play now */

/* Auto layout */
.btn-glass-hairline{
  --r: 28px;         /* радиус (меньше = квадратнее) */
  --cut: 44px;       /* размер "выключенных" углов */
  --line: rgba(255,255,255,.42);

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 22px 56px 18px;
  border-radius: var(--r);

  font-family: "Onest", system-ui, sans-serif;
  font-weight: 900;
  font-size: 48px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;

  background: transparent;

  /* 1px окантовка (без свечения) */
  box-shadow: inset 0 0 0 1px var(--line);

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  overflow: visible;
}

/* 1px "стеклянный" кант + очень мягкое свечение,
   но glow вырезаем в ПВ и ЛН углах */
.btn-glass-hairline::before{
  content:"";
  position:absolute;
  inset:-1px;                 /* чтобы свечение не обрезалось самим элементом */
  border-radius: calc(var(--r) + 1px);
  pointer-events:none;

  /* glow: сверху + слева, очень деликатно */
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.35),
    0 -8px 18px rgba(160,220,255,.22),
    -8px 0 18px rgba(160,220,255,.18);

  /* Маска: базовая форма минус два квадрата-угла (ПВ и ЛН) */
  -webkit-mask:
    linear-gradient(#000 0 0),
    linear-gradient(transparent 0 0) right top / var(--cut) var(--cut) no-repeat,
    linear-gradient(transparent 0 0) left bottom / var(--cut) var(--cut) no-repeat;
  -webkit-mask-composite: source-over, destination-out, destination-out;

  mask:
    linear-gradient(#000 0 0),
    linear-gradient(transparent 0 0) right top / var(--cut) var(--cut) no-repeat,
    linear-gradient(transparent 0 0) left bottom / var(--cut) var(--cut) no-repeat;
  mask-composite: add, subtract, subtract;
}

.btn-svg-like{
  --w: 396px;
  --h: 154px;
  --r: 40px;

  position: relative;
  width: var(--w);
  height: var(--h);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-family: "Onest", system-ui, sans-serif;
  font-weight: 900;
  font-size: 64px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;

  background: transparent;
  border-radius: var(--r);

  /* 1px окантовка */
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);

  /* чуть стекла */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}


/* нежный glow по окантовке, но без ПВ и ЛН угла */
.btn-svg-like::before{
  content:"";
  position:absolute;
  inset:-2px; /* чтобы glow не обрезался */
  border-radius: calc(var(--r) + 2px);
  pointer-events:none;

  /* glow очень деликатный */
  box-shadow:
    0 0 10px rgba(170,230,255,.22),
    0 0 22px rgba(120,210,255,.16);

  /* вырезаем glow в ПВ и ЛН углах */
  -webkit-mask:
    linear-gradient(#000 0 0),
    radial-gradient(56px 56px at 100% 0%, transparent 62%, #000 64%),
    radial-gradient(56px 56px at 0% 100%, transparent 62%, #000 64%);
  -webkit-mask-composite: source-over, destination-out, destination-out;

  mask:
    linear-gradient(#000 0 0),
    radial-gradient(56px 56px at 100% 0%, transparent 62%, #000 64%),
    radial-gradient(56px 56px at 0% 100%, transparent 62%, #000 64%);
  mask-composite: add, subtract, subtract;
}


.btn-glass{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 26px 64px 22px;
  border-radius: 48px;

  font-family: "Onest", system-ui, sans-serif;
  font-weight: 900;
  font-size: 48px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;

  /* стеклянный градиент */
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.35) 0%,
      rgba(255,255,255,.12) 40%,
      rgba(255,255,255,.05) 100%
    ),
    linear-gradient(
      180deg,
      #1fd2ff 0%,
      #00b4e6 100%
    );

  /* эффект стекла */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  /* объем */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.45),
    inset 0 -6px 12px rgba(0,0,0,.12),
    0 18px 40px rgba(0,150,200,.35);

  overflow: hidden;
}

/* блик */
.btn-glass::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;

  background:
    radial-gradient(
      120% 60% at 50% -20%,
      rgba(255,255,255,.7),
      rgba(255,255,255,0) 60%
    );
  pointer-events: none;
}

/* нижняя линия */
.btn-glass::after{
  content: "";
  position: absolute;
  left: 36px;
  right: 36px;
  bottom: 22px;
  height: 3px;
  background: rgba(255,255,255,.85);
  border-radius: 3px;
}

/* hover */
.btn-glass:hover{
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.5),
    inset 0 -6px 14px rgba(0,0,0,.15),
    0 22px 50px rgba(0,150,220,.45);
}

/* active */
.btn-glass:active{
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 10px rgba(0,0,0,.25),
    0 10px 24px rgba(0,150,220,.3);
}


.hero__modes{
  margin-top: 44px;
  display:flex;
  gap: 70px;
  align-items: baseline;
  color: #fff;
}

.hero__mode{
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  font-size: clamp(32px, 3vw, 58px);
  text-decoration: underline;
  text-decoration-thickness: 6px;
  text-underline-offset: 10px;
}

.hero__note{
  margin-top: 54px;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.95;
  font-size: clamp(20px, 2.1vw, 38px);
  color: #fff;
}

.hero__legal{
  margin-top: 30px;
  font-size: 11px;
  opacity: .85;
  color: #fff;
}

/* right */
.hero__right{
  position: relative;
  min-height: 700px;
  overflow: visible;
}

.hero__art{
  position: absolute;
  z-index: 3;
  width: 760px;
  max-width: none;
  display:block;
  left: -245px;
  top: 26px;
  margin: 0;
  transform: rotate(-16deg);
  transform-origin: center;
}

/* decors */
.decor{
  position:absolute;
  z-index: 4;
  pointer-events: none;
  user-select: none;
}

/* Start Page */

.select-pill{
  --h: 60px;
  --r: 30px;
  --pad-l: 54px;
  --pad-r: 110px;

  position: relative;
  width: min(635px, 100%);
  height: var(--h);
}

/* белая “пилюля” + мягкая тень как на макете */
.select-pill::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius: var(--r);
  background:#fff;
  box-shadow:
    0 28px 60px rgba(0,0,0,.40),
    0 8px 18px rgba(0,0,0,.22);
}

/* стрелка справа */
.select-pill::after{
  content:"";
  position:absolute;
  right: 56px;
  top: 50%;
  width: 18px;
  height: 18px;
  border-right: 3px solid #111;
  border-bottom: 3px solid #111;
  transform: translateY(-50%) rotate(45deg);
  pointer-events:none;
  opacity:.95;
}

/* сам select поверх “пилюли” */
.select-pill__control{
  position: relative;
  z-index: 1;
  width:100%;
  height:100%;
  padding: 0 var(--pad-r) 0 var(--pad-l);

  border: 0;
  border-radius: var(--r);
  background: transparent;

  font: 400 24px/1.1 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color:#111;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  outline: none;
  cursor: pointer;
}

/* фокус */
.select-pill__control:focus-visible{
  box-shadow: 0 0 0 4px rgba(41,86,166,.22);
}


.decor.d-book{ top: 78px; left: -4px; width: 188px; }
.decor.d-puzzle{ top: 28px; left: -96px; width: 108px; }
.decor.d-hourglass{ top: 120px; left: 292px; width: 168px; }
.decor.d-clock{ top: 88px; left: 562px; width: 110px; z-index: 5; }
.decor.d-monitor{ top: 182px; left: 440px; width: 150px; z-index: 4; }

/* ===== photo collage ===== */

.ph-collage{
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.ph-tile{
  position: absolute;
  isolation: isolate;
}

.ph-tile__frame{
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
}

.ph-tile__frame img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ph-tile__tint{
  position: absolute;
  inset: 0;
  background: #226cb2;
  mix-blend-mode: screen;
  border-radius: inherit;
}

/* Individual photo tile positions (relative to .hero__right, brain-center anchored) */

/* image 48 — small, top */
.ph--48{
  width: 70px; height: 62px;
  border-radius: 18px;
  left: 492px; top: 52px;
  transform: rotate(5.44deg);
}

/* image 42 — upper */
.ph--42{
  width: 98px; height: 112px;
  border-radius: 24px;
  left: 454px; top: 128px;
  transform: rotate(-4.98deg);
}

/* image 46 — upper right */
.ph--46{
  width: 71px; height: 81px;
  border-radius: 24px;
  left: 562px; top: 224px;
  transform: rotate(4.7deg);
}

/* image 41 — middle */
.ph--41{
  width: 98px; height: 112px;
  border-radius: 24px;
  left: 372px; top: 292px;
  transform: rotate(-4.47deg);
}

/* image 43 — middle right */
.ph--43{
  width: 81px; height: 92px;
  border-radius: 24px;
  left: 488px; top: 304px;
  transform: rotate(5.03deg);
}

/* image 44 — lower left (biggest, partial overlap with brain) */
.ph--44{
  width: 104px; height: 93px;
  border-radius: 24px;
  left: 154px; top: 500px;
  transform: rotate(5.66deg);
}

/* image 47 — wide lower */
.ph--47{
  width: 114px; height: 51px;
  border-radius: 18px;
  left: 346px; top: 506px;
  transform: rotate(3.99deg);
}

/* image 49 — lower right */
.ph--49{
  width: 69px; height: 61px;
  border-radius: 18px;
  left: 574px; top: 562px;
  transform: rotate(-14.52deg);
}

/* image 45 — bottom */
.ph--45{
  width: 86px; height: 77px;
  border-radius: 18px;
  left: 292px; top: 602px;
  transform: rotate(-8.78deg);
}

/* ===== stub ===== */

.stub{
  padding: 80px 0;
}

/* ===== responsive ===== */

@media (max-width: 1100px){
  .hero__grid{ grid-template-columns: 1fr; }
  .hero__left{ padding-top: 40px; }
  .hero__right{ min-height: 700px; }
  .hero__art{
    width: 700px;
    left: 50%;
    top: 30px;
    transform: translateX(-56%) rotate(-16deg);
  }
  .hero__modes{ gap: 38px; }
  .hero__social{ display: none; }
}

@media (max-width: 768px){
  .hero__left{
    padding-bottom: 340px;
  }
  .header .hero__social{
    display: none !important;
  }
  .hero__social-mobile{
    display: block;
    position: absolute;
    top: 58px;
    left: 18px;
    z-index: 30;
  }
  .hero__social-mobile .hero__social{
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    display: inline-flex !important;
    transform: scale(.66);
    transform-origin: top left;
  }
  .hero__right{
    position: absolute;
    top: 40px;
    left: 50%;
    width: 700px;
    min-height: 560px;
    z-index: 1;
    transform: translateX(-46%) scale(.76);
    transform-origin: top center;
  }
  .hero__art{
    width: 700px;
    left: 0;
    top: 18px;
    transform: rotate(-16deg);
  }
}

@media (max-width: 560px){
  .header__row{ flex-wrap: wrap; }
  .nav{ order: 3; width: 100%; flex-wrap: wrap; }
  .hero__modes{ gap: 22px; }
  .hero__left{
    padding-bottom: 250px;
  }
  .hero__social-mobile{
    top: 56px;
    left: 10px;
  }
  .hero__social-mobile .hero__social{
    transform: scale(.54);
  }
  .hero__right{
    top: 110px;
    width: 700px;
    min-height: 420px;
    transform: translateX(-46%) scale(.58);
    transform-origin: top center;
  }
  .hero__art{
    width: 700px;
    left: 0;
    top: 18px;
    transform: rotate(-16deg);
  }
}
