/* ===== Главная страница ===== */

/* Первый экран: картинка закреплена, следующий блок наезжает на неё */
.hero {
  position: sticky; top: 4rem;
  height: calc(100svh - 4rem - 6.25rem); min-height: 28.75rem;
  display: flex; align-items: flex-end; overflow: hidden;
  --p: 0; /* 0..1, меняется скриптом при прокрутке */
}
.hero > .hs {
  position: absolute; inset: 0;
  transform: scale(calc(1 + var(--p) * .12)) translateY(calc(var(--p) * 5%));
  will-change: transform;
}
.hs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.hs img.on { opacity: 1; }
.hs img:nth-child(1) { object-position: 55% 50%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(26, 27, 29, .6) 0%, rgba(26, 27, 29, .25) 55%, rgba(26, 27, 29, 0) 80%), linear-gradient(180deg, rgba(26, 27, 29, 0) 20%, rgba(26, 27, 29, .45) 55%, rgba(26, 27, 29, .9) 100%);
  opacity: calc(1 + var(--p));
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: #1a1b1d; opacity: calc(var(--p) * .45);
}
.hero .wrap {
  position: relative; z-index: 2; padding-bottom: 2.5rem; width: 100%;
  transform: translateY(calc(var(--p) * -4.375rem));
  opacity: calc(1 - var(--p) * 1.4);
}
.hero h1 { font-size: clamp(2.25rem, 5.6vw, 4.25rem); margin-bottom: 1rem; max-width: 18em; }
.hero p { color: #e6dccb; font-size: 1.1875rem; max-width: 34rem; }
.hero .hb { display: flex; width: min(100%, 23.75rem); margin-top: 1.75rem; }
.sheet {
  position: relative; z-index: 3; background: var(--bg);
  box-shadow: 0 -1.125rem 2.5rem rgba(0, 0, 0, .3); padding-top: 1.25rem;
}
@media (max-width: 640px) {
  .hero { height: calc(100svh - 4rem - 5rem); }
  .hero .wrap { padding-bottom: 2rem; }
  .hero .hb { width: 100%; min-height: 3.5rem; }
}

/* О компании */
.two { display: grid; gap: 1.75rem; }
@media (min-width: 860px) { .two { grid-template-columns: 1.3fr 1fr; gap: 3.5rem; align-items: start; } }
.vid.intro { width: min(100%, 15rem); }
@media (min-width: 860px) { .vid.intro { width: min(100%, 19rem); justify-self: end; } }
.cap { margin-top: 1rem; }

/* Как работаем */
.acc { border-top: 1px solid var(--line); }
.st { border-bottom: 1px solid var(--line); }
.sh {
  display: flex; gap: 1.125rem; align-items: center; width: 100%; text-align: left;
  padding: 1.375rem 0; font-family: var(--serif); font-size: clamp(1.25rem, 3vw, 1.625rem); min-height: 4rem;
}
.sh b { font: 600 0.875rem var(--sans); color: var(--br2); letter-spacing: .1em; min-width: 1.75rem; }
.sh::after {
  content: "+"; margin-left: auto; color: var(--br2);
  font-size: 1.75rem; font-family: var(--sans); font-weight: 300; transition: transform .4s;
}
.st.on:not(.c) .sh::after { transform: rotate(45deg); }
.sb { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .4s ease; }
.st.c .sb { grid-template-rows: 0fr; }
.sb > div { overflow: hidden; }
.sb p { padding: 0 0 1.375rem 2.875rem; }
html.js .sb p {
  clip-path: inset(0 0 100% 0); opacity: 0; transform: translateY(-0.625rem);
  transition: clip-path .5s ease, opacity .4s, transform .5s;
}
html.js .st.on .sb p { clip-path: inset(0); opacity: 1; transform: none; }
.note { margin-top: 1.125rem; color: var(--tx); }

/* Команда */
.team {
  aspect-ratio: 16 / 9; border: 1px dashed #5a5a5e; border-radius: var(--r);
  display: grid; place-content: center; text-align: center; color: var(--mut); padding: 1.25rem;
  background: repeating-linear-gradient(45deg, var(--bg2), var(--bg2) 0.875rem, var(--bg) 0.875rem, var(--bg) 1.75rem);
}

@media (prefers-reduced-motion: reduce) {
  .hero > .hs, .hero .wrap { transform: none !important; }
  .hero .wrap { opacity: 1 !important; }
}

.hero .hbs { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero .hbs .hb { margin-top: 0; width: auto; min-width: min(100%, 17.5rem); }
.btn.ghost { background: rgba(20, 20, 22, .45); backdrop-filter: blur(6px); border-color: rgba(235, 200, 150, .55); box-shadow: none; }
@media (max-width: 767px) { .hero .hbs { flex-direction: column; margin-top: 1.5rem; } .hero .hbs .hb { width: 100%; } }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.pc { display: block; color: inherit; }
.pc img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 1rem; display: block; transition: transform .4s; }
.pc:hover img { transform: scale(1.015); }
.pc h3 { margin: 0.875rem 0 0.25rem; font-size: 1.375rem; }
.pc p { margin: 0; color: var(--mut); font-size: 0.9375rem; }
@media (max-width: 767px) { .trio { grid-template-columns: 1fr; } .pc img { aspect-ratio: 4 / 3; } }

@media (max-width: 767px) { .pc + .pc { margin-top: 1.75rem; } .trio { gap: 0; } }
