/* ============================================================
   Maxnet Minisite — верстка по макету Figma (390×1009)
   Цвета, отступы и типографика взяты 1:1 из дизайна.
   ============================================================ */

:root {
  --bg:            #004c9e;                  /* фон страницы */
  --btn-top:       #004ea2;                  /* градиент кнопки (центр/верх) */
  --btn-bottom:    #0058b9;                  /* градиент кнопки (край) */
  --btn-border:    rgba(85, 169, 255, .10);  /* обводка кнопки */
  --btn-shadow:    rgba(5, 66, 140, .22);    /* тень кнопки */
  --btn-inset:     rgba(255, 255, 255, .15); /* внутренний блик */
  --text:          rgba(255, 255, 255, .90); /* текст кнопок */
  --font: 'Gotham Pro', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --col:  390px;   /* ширина макета */
  --pad:  24px;    /* боковые поля */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; }

/* ---------- Каркас страницы ---------- */
.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  overflow-x: hidden;
}

/* ---------- Декоративные фоновые линии ----------
   .decor — на всю ширину экрана, обрезает по краям окна.
   .decor-inner — колонка 390px по центру, свуши позиционируются
   относительно неё (как в макете), но свободно вытекают за 390px. */
.decor {
  position: absolute;
  inset: 0 0 auto 0;
  height: 1009px;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  opacity: .85;
  filter: blur(1px);
  /* плавное затухание к краям: радиус в px, поэтому на мобиле свуши
     видны целиком, а на вебе крупные фигуры мягко гаснут по бокам/снизу */
  -webkit-mask-image: radial-gradient(620px 660px at 50% 22%, #000 38%, rgba(0,0,0,0) 100%);
          mask-image: radial-gradient(620px 660px at 50% 22%, #000 38%, rgba(0,0,0,0) 100%);
}
.decor-inner {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--col);
  height: 100%;
}
.decor .s { position: absolute; }
/* координаты нод из Figma (относительно фрейма 390×1009) */
.s1 { left: -308px;    top: 271px;    width: 1177.16px; height: 762.73px; }
.s2 { left: -353.47px; top: -34.07px; width: 987.46px;  height: 614.94px; }
.s3 { left: -411px;    top: -75px;    width: 1101.04px; height: 713.40px; }
.s4 { left: -348.89px; top: 487.66px; width: 317.31px;  height: 315.78px; }
.s5 { left: -253.08px; top: 312.70px; width: 1067.30px; height: 664.66px; }

/* ---------- Контент ---------- */
.content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--col);
  margin: 0 auto;
  padding: 52px var(--pad) 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- Шапка ---------- */
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}
.logo {
  width: 120px;
  height: 76px;
  margin-bottom: 20px;
}
.title {
  margin: 0;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
}

/* ---------- Группа кнопок ---------- */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ---------- Кнопка-ссылка ---------- */
.link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--btn-border);
  background: radial-gradient(130% 130% at 50% 0%, var(--btn-top) 0%, var(--btn-bottom) 100%);
  box-shadow: 0 8px 12px var(--btn-shadow), inset 0 1px 1px var(--btn-inset);
  text-decoration: none;
  overflow: hidden;                 /* для ripple */
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;

  /* Свайп, начавшийся на кнопке, должен прокручивать страницу,
     а не «перетаскивать» ссылку/картинку и не открывать callout по долгому тапу. */
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
.link__main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.link__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  -webkit-user-drag: none;
  pointer-events: none;             /* картинка не перехватывает жест скролла */
}
.link__label {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link__chev {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  -webkit-user-drag: none;
  pointer-events: none;
}

.link:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 10px 16px var(--btn-shadow), inset 0 1px 1px var(--btn-inset);
}
.link:active {
  transform: translateY(0) scale(.99);
  filter: brightness(.98);
}

/* ---------- Роздільник ---------- */
.section-label {
  align-self: flex-start;
  margin: 20px 0 8px;
  padding-left: 12px;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  color: #fff;
  opacity: .7;
}

/* ---------- Соцмережі ---------- */
.socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  margin-top: 20px;
}
.social {
  display: block;
  transition: transform .15s ease, filter .15s ease;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
.social img {
  width: 40px;
  height: 40px;
  -webkit-user-drag: none;
  pointer-events: none;
}
.social:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}
.social:active { transform: scale(.94); }

/* ---------- Ripple ---------- */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, .25);
  pointer-events: none;
  animation: ripple .6s ease-out;
}
@keyframes ripple {
  to { transform: scale(2.4); opacity: 0; }
}

/* ---------- Узкие экраны ---------- */
@media (max-width: 400px) {
  :root { --pad: 20px; }
}

/* ---------- Меньше движения ---------- */
@media (prefers-reduced-motion: reduce) {
  .link, .social { transition: none; }
  .link:hover, .social:hover { transform: none; }
  .ripple { display: none; }
}
