:root{
  --gold:#ffbf59;
  --gold2: rgba(255,191,89,.28);
  --bg:#060606;
  --text:#f5f5f5;
  --muted: rgba(255,255,255,.72);
  --ok:#43d36a;

  --cardBg: rgba(15,15,15,.70);
  --shadow: 0 18px 45px rgba(0,0,0,.45);
  --radius: 16px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* =========================
   ГЛАВНАЯ (index.html)
   ========================= */

.hero{
  position:relative;
  height:100vh;
  overflow:hidden;
}

/* Фон-картинка (в корне: bg.png) */
.hero__bg{
  position:absolute;
  inset:0;
  z-index:0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0) 55%, rgba(0,0,0,.86) 100%),
    url("bg.png") center top / cover no-repeat;
  filter: saturate(1.05) contrast(1.05);
}

/* Большой логотип */
.home__logo{
  position:absolute;
  top: 6vh;
  left:50%;
  transform: translateX(-50%);
  width: min(920px, 92vw);
  height:auto;
  z-index:1;
  user-select:none;
  pointer-events:none;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.55));
}

/* Контент: текст + кнопки под логотипом */
.hero__content{
  position:absolute;
  left:50%;
  transform: translateX(-50%);
  bottom: 78px;
  width: 100%;
  text-align:center;
  z-index:2;
  padding: 0 18px;
}

.hero__subtitle{
  margin:0 0 22px;
  color: rgba(255,255,255,.80);
  font-size: 16px;
  line-height: 1.45;
  text-shadow: 0 8px 22px rgba(0,0,0,.55);
}

.hero__buttons{
  display:flex;
  gap:14px;
  justify-content:center;
  flex-wrap:wrap;
}

/* Кнопки как на макете */
.btn-outline{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  min-width: 170px;
  padding: 14px 22px;

  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.34);
  backdrop-filter: blur(10px);

  color:#fff;
  text-decoration:none;
  font-weight:900;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 12px;

  transition: .2s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
}

.btn-outline:hover{
  border-color: rgba(255,191,89,.55);
  box-shadow: 0 0 26px rgba(255,191,89,.16), 0 10px 25px rgba(0,0,0,.25);
  transform: translateY(-2px);
}

.muted{ color: var(--muted); }
.ok{ color: var(--ok); font-weight:900; }

/* =========================
   КОНТАКТЫ / РАБОТА (карточки)
   ========================= */

.bg{
  position:fixed;
  inset:0;
  z-index:-1;
  background:
    radial-gradient(circle at 50% 40%, rgba(0,0,0,.25), rgba(0,0,0,.88)),
    url("bg.png") center / cover no-repeat;
  filter: saturate(1.05) contrast(1.05);
}

.topbar{
  position:sticky;
  top:0;
  z-index:10;
  display:flex;
  align-items:center;
  justify-content:space-between;

  padding: 14px 16px;
  background: rgba(0,0,0,.40);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.topbar__back{
  color: rgba(255,255,255,.70);
  text-decoration:none;
  font-weight:700;
}
.topbar__back:hover{ color:#fff; }

.topbar__title{
  font-weight:900;
  letter-spacing:.08em;
}
.topbar__spacer{ width:60px; }

.wrap{
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 46px;
}

.head{
  text-align:center;
  margin: 8px 0 18px;
}
.head h1{
  margin:0;
  font-size: 24px;
  letter-spacing:.02em;
}
.head p{
  margin:10px 0 0;
  color: var(--muted);
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Карточка */
.card{
  position:relative;
  background: var(--cardBg);
  border: 1px solid var(--gold2);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
  overflow:hidden;

  /* Анимация появления */
  opacity:0;
  transform: translateY(18px);
  animation: cardFade .55s ease forwards;
}

/* По очереди */
.card:nth-child(1){ animation-delay:.06s }
.card:nth-child(2){ animation-delay:.12s }
.card:nth-child(3){ animation-delay:.18s }
.card:nth-child(4){ animation-delay:.24s }
.card:nth-child(5){ animation-delay:.30s }
.card:nth-child(6){ animation-delay:.36s }

@keyframes cardFade{
  to{ opacity:1; transform: translateY(0); }
}

/* Мягкое золото сверху */
.card::before{
  content:"";
  position:absolute;
  inset:-2px;
  pointer-events:none;
  background: radial-gradient(circle at 30% 0%, rgba(255,191,89,.12), transparent 55%);
}

/* Hover — премиум glow */
.card:hover{
  transform: translateY(-6px) scale(1.01);
  border-color: var(--gold);
  box-shadow:
    0 0 20px rgba(255,191,89,.25),
    0 0 60px rgba(255,191,89,.08),
    var(--shadow);
}

/* Иконка-картинка */
.card__icon{
  width: 118px;
  height: 118px;
  margin: 4px auto 10px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.card__icon img{
  width:100%;
  height:100%;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(255,191,89,.33));
  transition: .25s ease;
}

.card:hover .card__icon img{
  transform: scale(1.05);
  filter: drop-shadow(0 0 28px rgba(255,191,89,.45));
}

.card__name{
  text-align:center;
  font-size: 18px;
  font-weight:900;
  margin: 0 0 10px;
}

.row{
  margin-top: 10px;
  display:flex;
  gap: 8px;
  flex-wrap:wrap;
  color: var(--muted);
  font-size: 14px;
}

/* Красная кнопка */
.btn-red{
  margin-top: 16px;
  width:100%;
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding: 12px 16px;
  border-radius: 12px;

  text-decoration:none;
  color:#fff;
  font-weight:900;
  letter-spacing:.06em;

  background: linear-gradient(180deg, #c91515, #8f0d0d);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
  transition:.2s ease;
}

.btn-red:hover{
  box-shadow:
    0 0 18px rgba(255,0,0,.50),
    0 0 35px rgba(255,120,0,.25),
    0 10px 25px rgba(0,0,0,.35);
  transform: translateY(-1px);
}

/* =========================
   АДАПТИВ
   ========================= */

@media (max-width: 980px){
  .grid{ grid-template-columns: repeat(2, 1fr); }
  .home__logo{ top: 7vh; }
}

@media (max-width: 680px){
  .grid{ grid-template-columns: 1fr; }

  .btn-outline{ min-width: 100%; }

  .hero__content{ bottom: 56px; }
  .hero__subtitle{ font-size: 15px; }

  .home__logo{
    top: 8vh;
    width: min(720px, 92vw);
  }

  .card__icon{
    width: 110px;
    height: 110px;
  }
}