:root{
  --bg:#0b0b0d;
  --fg:#f2f2f4;
  --muted:#a9a9b2;
  --line:#2a2a33;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background:var(--bg);
  color:var(--fg);
}

a{color:var(--fg); text-decoration:none}

.wrap{min-height:100vh}

/* === ENTRY PAGE (full background photo) === */
.entry{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:center;
  padding:56px 44px;
  overflow:hidden;
}

/* background image */
.entry::before{
  content:"";
  position:absolute;
  inset:0;
  background: url("../assets/hero.webp") center/cover no-repeat;
  filter: contrast(1.05) brightness(0.85);
  z-index:0;
}

/* gradient overlay */
.entry::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg,
    rgba(11,11,13,0.92) 0%,
    rgba(11,11,13,0.70) 35%,
    rgba(11,11,13,0.30) 60%,
    rgba(11,11,13,0.05) 100%);
  z-index:1;
}

.left{
  position:relative;
  z-index:2;
  max-width:560px;
}

/* Brand */
.brand{
  letter-spacing:0.22em;
  text-transform:uppercase;
  font-size:22px;
  font-weight:600;
  color:var(--fg);
  margin-bottom:18px;
}

/* Subtitle */
.one{
  margin:0 0 28px;
  line-height:1.6;
  font-size:15px;
  color:var(--muted);
  max-width:42ch;
}

/* Buttons (desktop: one row, equal) */
.actions{
  display:flex;
  gap:14px;
  flex-wrap:nowrap;         /* ✅ no wrapping on desktop */
  align-items:stretch;
}

.actions a{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  flex:1 1 0;               /* ✅ all buttons equal width */
  min-width:150px;          /* ✅ prevents too narrow buttons */
  height:44px;

  border:1px solid rgba(242,242,244,0.18);
  border-radius:12px;
  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(3px);

  transition: transform 140ms ease,
              background 140ms ease,
              border-color 140ms ease,
              opacity 140ms ease;

  opacity:0.92;
}

.actions a:hover{
  background: rgba(255,255,255,0.08);
  border-color: rgba(242,242,244,0.34);
  transform: translateY(-2px);
  text-decoration:none;
  opacity:1;
}

.actions a:active{
  transform: translateY(0px);
}

/* Languages */
.langs{
  margin-top:24px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.langs a{
  font-size:13px;
  color:var(--muted);
  transition: color 140ms ease, opacity 140ms ease;
}

.langs a:hover{
  color:var(--fg);
  opacity:1;
  text-decoration:none;
}

/* Seal */
.seal{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:30px;
  color:var(--muted);
  font-size:12px;
}

.seal img{
  height:22px;
  width:auto;
  opacity:0.75;
}

/* Mobile: stack buttons (FIXED) */
@media (max-width: 700px){
  .entry{ padding:38px 22px; }

  .actions{
    flex-direction:column;  /* ✅ one under another */
    gap:12px;
  }

  /* Главное: делаем кнопки "кнопками" */
  .actions a{
    width:100%;
    min-width:0;

    height:auto;            /* вместо фиксированных 44px */
    padding:16px 18px;      /* нормальная высота пальцем */
    font-size:16px;
    font-weight:700;

    border-radius:14px;
    border:1px solid rgba(242,242,244,0.28);
    background: rgba(0,0,0,0.34);
    backdrop-filter: blur(8px);

    opacity:1;
    transform:none;         /* убираем сдвиги на мобиле */
  }

  .actions a:hover{
    background: rgba(0,0,0,0.40);
    border-color: rgba(242,242,244,0.34);
    transform:none;
  }

  .actions a:active{
    background: rgba(0,0,0,0.46);
    transform: scale(0.985);
  }

  .entry::after{
    background: linear-gradient(180deg,
      rgba(11,11,13,0.92) 0%,
      rgba(11,11,13,0.60) 45%,
      rgba(11,11,13,0.20) 75%,
      rgba(11,11,13,0.05) 100%);
  }
}
