@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Oswald:wght@500;600;700&display=swap");
:root {
  --mint: #58c8d5;
  --bg: #091211;
  --muted: #a4b0ac;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  background: var(--bg);
  color: #f3f2e9;
  font-family: Manrope, Arial, sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
header {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  border-bottom: 1px solid #ffffff21;
  background: #091211;
  position: sticky;
  top: 0;
  z-index: 8;
}
.logo {
  font: italic 700 34px Oswald;
  letter-spacing: -3px;
}
.logo span {
  color: var(--mint);
}
nav {
  display: flex;
  gap: 30px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}
nav a:hover {
  color: var(--mint);
}
.small {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.hero {
  min-height: 680px;
  height: calc(100vh - 88px);
  max-height: 1000px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 6%;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #061513ee 0%, #06151392 40%, #06151315 100%),
    url("../photos/hero-final-desktop.jpg") center/cover;
  filter: saturate(0.65);
}
.hero-content {
  position: relative;
  max-width: 780px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.eyebrow:before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--mint);
}
h1 {
  font: 600 clamp(70px, 9.5vw, 150px) / 0.98 Oswald;
  margin: 28px 0 24px;
  letter-spacing: -3px;
  text-transform: uppercase;
}
h1 span {
  color: var(--mint);
}
.lead {
  color: #dae1dc;
  max-width: 390px;
  line-height: 1.8;
  font-size: 14px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 45px;
  padding: 18px 24px;
  border: 1px solid #ffffff60;
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  background: transparent;
  color: inherit;
}
.button.primary {
  background: var(--mint);
  border-color: var(--mint);
  color: #071411;
}
.actions {
  display: flex;
  gap: 12px;
  margin-top: 34px;
}
.hero-bottom {
  position: absolute;
  bottom: 30px;
  left: 6%;
  right: 6%;
  display: flex;
  justify-content: space-between;
  color: #d6ddd9;
  font-size: 10px;
  letter-spacing: 2px;
}
.vertical {
  position: absolute;
  right: 30px;
  top: 45%;
  writing-mode: vertical-rl;
  letter-spacing: 4px;
  font-size: 10px;
}
.ticker {
  padding: 23px 0;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid #ffffff25;
  color: var(--mint);
  font: 500 27px Oswald;
  letter-spacing: 2px;
  text-align: center;
}
.ticker b {
  margin: 0 35px;
  font-weight: 400;
  color: #eff5ec;
}
section {
  padding: 100px 6%;
}
.label {
  color: var(--mint);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
h2 {
  font: 500 clamp(40px, 5vw, 72px) / 1.1 Oswald;
  text-transform: uppercase;
  margin: 22px 0 30px;
}
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8%;
  align-items: center;
}
.photo {
  height: 500px;
  overflow: hidden;
  position: relative;
  background: #213a39;
}
.portrait {
  background-image: none;
  background-size: 313% auto;
  background-position: 50% 4.9%;
}
.photo:after {
  content: "НА ВОДЕ. В СВОЕЙ СТИХИИ.";
  position: absolute;
  bottom: 20px;
  left: 22px;
  font-size: 10px;
  letter-spacing: 2px;
  background: #091211c9;
  padding: 12px;
}
.bodycopy {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
  max-width: 480px;
}
.signature {
  font: italic 28px Georgia;
  color: var(--mint);
  margin-top: 24px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 35px;
}
.section-head h2 {
  margin-bottom: 0;
}
.races {
  background: #111e1b;
}
.race {
  display: grid;
  grid-template-columns: 70px 1fr 1fr 100px;
  gap: 20px;
  align-items: center;
  border-top: 1px solid #ffffff25;
  padding: 26px 0;
}
.race:last-child {
  border-bottom: 1px solid #ffffff25;
}
.race .number {
  font: 500 38px Oswald;
  color: var(--mint);
}
.race h3 {
  font-size: 17px;
  margin: 0 0 7px;
}
.race p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.tag {
  border: 1px solid #ffffff40;
  padding: 8px;
  text-align: center;
  font-size: 10px;
}
.gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
}
.tile {
  height: 350px;
  border: 0;
  padding: 0;
  background: #1d3835;
  position: relative;
  overflow: hidden;
  text-align: left;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.tile:hover img {
  transform: scale(1.05);
}
.tile span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 45px 20px 20px;
  background: linear-gradient(transparent, #000b);
  color: white;
  font: 500 25px Oswald;
}
.contact {
  background: var(--mint);
  color: #0b2420;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}
.contact h2 {
  max-width: 650px;
  margin-bottom: 20px;
}
.contact .button {
  border-color: #0b2420;
  white-space: nowrap;
}
.contact .label {
  color: #0b2420;
}
footer {
  padding: 35px 6%;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
}
dialog {
  border: 1px solid #496c61;
  background: #101e1b;
  color: white;
  max-width: 720px;
  width: 90%;
  padding: 25px;
}
dialog::backdrop {
  background: #000c;
}
dialog img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
}
.close {
  float: right;
  background: none;
  color: white;
  border: 0;
  padding: 10px;
}
.demo {
  font-size: 10px;
  color: var(--muted);
  margin-top: 25px;
  line-height: 1.7;
}
@media (max-width: 760px) {
  header {
    height: 70px;
  }
  nav {
    gap: 14px;
    font-size: 9px;
  }
  nav a:nth-child(3),
  nav a:nth-child(4) {
    display: none;
  }
  .hero {
    min-height: 650px;
    height: 85vh;
  }
  h1 {
    font-size: 76px;
  }
  .vertical {
    display: none;
  }
  .hero-bottom {
    font-size: 8px;
  }
  .about {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  section {
    padding: 65px 6%;
  }
  .photo {
    height: 410px;
  }
  .gallery {
    grid-template-columns: 1fr;
  }
  .tile {
    height: 330px;
  }
  .race {
    grid-template-columns: 45px 1fr 85px;
  }
  .race > p {
    display: none;
  }
  .contact {
    display: block;
  }
  .section-head {
    display: block;
  }
  .section-head .small {
    display: block;
    margin-top: 20px;
  }
  footer {
    gap: 25px;
    line-height: 1.8;
  }
  .actions {
    gap: 8px;
  }
  .button {
    gap: 18px;
    padding: 17px;
  }
}
nav {
  gap: 18px;
  font-size: 9px;
  letter-spacing: 0.7px;
}
.milestones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 35px;
}
.milestones article {
  border-top: 1px solid #ffffff35;
  padding-top: 22px;
}
.milestones h3 {
  font: 500 27px Oswald;
}
.milestones p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
#board {
  background: #13241f;
}
#interests {
  background: #101d19;
}
@media (max-width: 1000px) {
  header {
    height: auto;
    min-height: 88px;
    flex-wrap: wrap;
    padding: 15px 5%;
    gap: 14px;
  }
  nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 10px;
    white-space: nowrap;
  }
  nav a:nth-child(3),
  nav a:nth-child(4) {
    display: block;
  }
  .milestones {
    grid-template-columns: 1fr;
  }
  html {
    scroll-padding-top: 135px;
  }
}
.hero:before {
  inset: -55px 0;
  transform: translate3d(0, var(--hero-drift, 0px), 0);
  will-change: transform;
}
.hero-content {
  transform: translate3d(0, var(--title-drift, 0px), 0);
}
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 20;
  pointer-events: none;
}
.reveal {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  transition:
    opacity 0.85s ease,
    transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.photo.reveal {
  transform: translate3d(0, 30px, 0) scale(0.97);
}
.photo.reveal.is-visible {
  transform: translate3d(0, 0, 0) scale(1);
}
nav a.is-active {
  color: var(--mint);
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .photo.reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero:before,
  .hero-content {
    transform: none;
    will-change: auto;
  }
  .tile img {
    transition: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .photo.reveal,
  .tile.reveal {
    opacity: 1;
    clip-path: inset(18% 8% 18% 8%);
    transform: translate3d(0, 85px, 0) scale(0.86);
    transition:
      clip-path 1.35s cubic-bezier(0.16, 1, 0.3, 1),
      transform 1.35s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .photo.reveal.is-visible,
  .tile.reveal.is-visible {
    clip-path: inset(0);
    transform: translate3d(0, 0, 0) scale(1);
  }
  .tile img {
    transform: translate3d(0, var(--photo-shift, 0px), 0)
      scale(var(--photo-scale, 1.12));
    transition: filter 0.5s;
    will-change: transform;
  }
  .tile:hover img {
    transform: translate3d(0, var(--photo-shift, 0px), 0) scale(1.24);
    filter: saturate(1.25);
  }
  .tile span {
    transform: translateY(0);
    transition: transform 0.5s;
  }
  .tile:hover span {
    transform: translateY(0);
  }
  .portrait {
    background-position: 50% calc(4.9% + var(--photo-shift, 0px));
    will-change: background-position;
  }
  .hero:before {
    transform: translate3d(0, var(--hero-drift, 0px), 0)
      scale(var(--hero-zoom, 1));
    transition: none;
  }
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-links > a:not(.button) {
  font-size: 13px;
}
.hobby-collage {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  padding: 30px 5px;
}
.hobby {
  grid-column: span 2;
  min-height: 250px;
  padding: 28px;
  color: #0b2420;
  background: #58c8d5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 15px 35px #0004;
}
.hobby span {
  font-size: 10px;
  letter-spacing: 2px;
}
.hobby h3 {
  font: 500 38px/1.1 Oswald;
  margin: 30px 0;
}
.hobby b {
  font-size: 12px;
  font-weight: 400;
}
.hobby.h1 {
  transform: rotate(-3deg);
  background: #dce9df;
}
.hobby.h2 {
  transform: rotate(2deg);
  background: #58c8d5;
}
.hobby.h3 {
  transform: rotate(-2deg);
  background: #bad3d2;
}
.hobby.h4 {
  grid-column: 2 / span 2;
  transform: rotate(3deg);
  background: #d6c9ad;
}
.hobby.h5 {
  transform: rotate(-3deg);
  background: #e0eab9;
}
@media (max-width: 760px) {
  .hobby-collage {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .hobby,
  .hobby.h4 {
    grid-column: auto;
  }
  .hobby {
    min-height: 230px;
  }
}
.story-caption strong {
  display: block;
  font: 500 25px/1.2 Oswald;
}
.story-caption small {
  display: block;
  font: 400 13px/1.6 Manrope;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(16px);
  transition:
    max-height 0.45s,
    opacity 0.45s,
    transform 0.45s,
    margin 0.45s;
}
.story-tile:hover .story-caption small,
.story-tile:focus-visible .story-caption small {
  max-height: 90px;
  opacity: 1;
  transform: none;
  margin-top: 12px;
}
#lightbox {
  max-width: 1160px;
  width: 94%;
  max-height: 90vh;
  padding: 0;
  overflow: auto;
}
#lightbox .close {
  position: sticky;
  top: 0;
  float: none;
  display: block;
  margin-left: auto;
  padding: 16px 22px;
  background: #101e1b;
  z-index: 2;
}
.story-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: stretch;
}
.story-text {
  padding: 32px 38px 50px;
}
.story-text h2 {
  font-size: 42px;
}
.story-text p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}
#lightbox img.story-photo {
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 480px;
  object-fit: cover;
}
@media (hover: none) {
  .story-caption small {
    max-height: 90px;
    opacity: 1;
    transform: none;
    margin-top: 12px;
  }
}
@media (max-width: 760px) {
  .story-layout {
    grid-template-columns: 1fr;
  }
  .story-text {
    padding: 20px 24px;
  }
  .story-text h2 {
    font-size: 34px;
  }
  #lightbox img.story-photo {
    min-height: 0;
    max-height: 50vh;
    height: auto;
  }
  .story-caption small {
    max-height: 90px;
    opacity: 1;
    transform: none;
    margin-top: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .story-caption small {
    transition: none;
  }
}
.hero:before {
  background-image:
    linear-gradient(
      90deg,
      rgba(6, 21, 19, 0.86),
      rgba(6, 21, 19, 0.35) 47%,
      rgba(6, 21, 19, 0.06)
    ),
    url("../photos/hero-final-desktop.jpg");
  background-position:
    center,
    62% 45%;
  filter: none;
}
.hero-content {
  max-width: 670px;
}
.hero h1 {
  font-size: clamp(70px, 8.4vw, 132px);
}
.portrait {
  background-image: none;
  background-size: cover;
  background-position: 55% 35%;
  height: 540px;
}
.portrait.photo:after {
  content: "ПОЛИНА КАРПОВА / МОТОСЁРФ";
}
@media (prefers-reduced-motion: no-preference) {
  .portrait {
    background-position: 55% calc(35% + var(--photo-shift, 0px));
  }
}
.story-tile[data-story="0"] img {
  object-position: 55% 38%;
}
.story-tile[data-story="1"] img {
  object-position: 54% 46%;
}
.story-tile[data-story="2"] img {
  object-position: 43% 38%;
}
#lightbox img.story-photo {
  object-fit: contain;
  min-height: 0;
  height: auto;
  max-height: 76vh;
  align-self: center;
  background: #0b1513;
}
.story-layout {
  background: #0b1513;
}
.story-text {
  background: #101e1b;
}
@media (max-width: 760px) {
  .hero:before {
    background-image:
      linear-gradient(
        0deg,
        rgba(6, 21, 19, 0.92),
        rgba(6, 21, 19, 0.6) 45%,
        rgba(6, 21, 19, 0.08)
      ),
      url("../photos/hero-final-desktop.jpg");
    background-position:
      center,
      52% 40%;
  }
  .hero {
    align-items: flex-end;
    padding-bottom: 100px;
  }
  .hero h1 {
    font-size: 72px;
  }
  .portrait {
    height: 440px;
    background-position: 53% 28%;
  }
  .story-tile {
    height: 390px;
  }
  .story-tile[data-story="1"] img {
    object-position: 50% 48%;
  }
  #lightbox img.story-photo {
    max-height: 65vh;
  }
}
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .portrait {
    background-position: 53% calc(28% + var(--photo-shift, 0px));
  }
}
.about-carousel {
  height: 570px;
  background:
    radial-gradient(circle at 50% 42%, #58c8d530 0 32%, transparent 32.3%),
    #12231e;
  touch-action: pan-y;
}
.about-carousel:after {
  display: none;
}
.about-slide {
  position: absolute;
  inset: 0 0 62px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.7s ease,
    visibility 0.7s;
}
.about-slide.active {
  opacity: 1;
  visibility: visible;
}
.about-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.about-slide:nth-child(2) img {
  object-fit: contain;
  background: #0d1b17;
}
.about-slide.cutout img {
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 12px 22px #0005);
}
.carousel-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: #0c1915;
}
.carousel-controls button {
  color: white;
  background: transparent;
  border: 0;
  min-width: 36px;
  min-height: 40px;
}
.slide-dots {
  display: flex;
  gap: 4px;
}
.slide-dots button {
  position: relative;
  min-width: 30px;
}
.slide-dots button:after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff50;
  top: 16px;
  left: 11px;
}
.slide-dots button[aria-pressed="true"]:after {
  background: var(--mint);
  box-shadow: 0 0 0 4px #58c8d51c;
}
.editorial-grid {
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: repeat(3, 230px);
  gap: 18px;
}
.editorial-grid .tile {
  height: 100%;
  min-height: 0;
}
.editorial-grid .tile:first-child {
  grid-row: span 3;
}
.editorial-grid .tile:first-child img {
  object-position: 55% 40%;
}
.editorial-grid .tile:nth-child(2) img {
  object-position: center 43%;
}
.editorial-grid .tile:nth-child(3) img {
  object-position: center 35%;
}
.editorial-grid .tile:nth-child(4) img {
  object-position: center 50%;
}
@media (max-width: 760px) {
  .hero {
    height: auto;
    min-height: 0;
    max-height: none;
    padding: calc(100vw * 0.667 + 30px) 6% 90px;
    align-items: flex-start;
    background: #091211;
  }
  .hero:before {
    inset: 0 0 auto;
    height: calc(100vw * 0.667);
    background-image:
      linear-gradient(0deg, #091211, transparent 25%),
      url("../photos/hero-final-desktop.jpg");
    background-position: center, center;
    background-size:
      100% 100%,
      100% auto;
    background-repeat: no-repeat;
    transform: none !important;
    will-change: auto;
  }
  .hero-content {
    transform: none !important;
  }
  .hero-bottom {
    bottom: 25px;
  }
  .about-carousel {
    height: 520px;
  }
  .editorial-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .editorial-grid .tile:first-child {
    grid-row: auto;
    height: 420px;
  }
  .editorial-grid .tile {
    height: 320px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .about-slide {
    transition: none;
  }
}
.about-carousel .slide-arrow,
.about-carousel .slide-toggle {
  display: none;
}
.about-carousel .about-slide {
  inset: 0;
}
.about-carousel .carousel-controls {
  height: 44px;
  bottom: 12px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: auto;
  padding: 0 8px;
  background: #09121180;
  border-radius: 24px;
  gap: 0;
}
.about-carousel .slide-dots {
  gap: 0;
}
.about-carousel .slide-dots button {
  min-width: 32px;
  min-height: 44px;
}
.about-carousel .slide-dots button:after {
  top: 18px;
  left: 12px;
}
.about-carousel {
  background: transparent;
}
.about-slide.cutout img {
  filter: none;
}
.about-carousel .slide-dots {
  display: none;
}
.about-carousel .carousel-controls {
  inset: 0;
  transform: none;
  background: transparent;
  border-radius: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  pointer-events: none;
}
.about-carousel .slide-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 54px;
  min-height: 0;
  background: #091211a6;
  border: 1px solid #ffffff30;
  border-radius: 3px;
  pointer-events: auto;
  font-size: 23px;
  transition: background 0.2s;
}
.about-carousel .slide-arrow:hover {
  background: #24483c;
}
.about-carousel .previous {
  left: 10px;
}
.about-carousel .next {
  right: 10px;
}
.editorial-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: repeat(2, 310px);
}
.editorial-grid .tile:first-child {
  grid-row: span 2;
}
.editorial-grid .tile:nth-child(5) img {
  object-position: 62% 45%;
}
.editorial-grid .story-caption strong {
  font-size: 23px;
}
.editorial-grid .tile:first-child .story-caption strong {
  font-size: 30px;
}
@media (max-width: 1000px) and (min-width: 761px) {
  .editorial-grid {
    grid-template-columns: 1.1fr 1fr;
    grid-template-rows: repeat(4, 220px);
  }
  .editorial-grid .tile:first-child {
    grid-row: span 4;
  }
}
@media (max-width: 760px) {
  .editorial-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .editorial-grid .tile:first-child {
    grid-row: auto;
    height: 420px;
  }
  .editorial-grid .tile {
    height: 330px;
  }
  .about-carousel .slide-arrow {
    width: 38px;
    height: 48px;
  }
  .about-carousel .previous {
    left: 4px;
  }
  .about-carousel .next {
    right: 4px;
  }
}
.about-carousel .about-slide.cutout img {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: auto;
  max-width: none;
  height: 117%;
  object-fit: fill;
  transform: translateX(-50%);
}
@media (max-width: 760px) {
  .about-carousel .about-slide.cutout img {
    height: 117%;
  }
}
.hero:before {
  background-image:
    linear-gradient(
      90deg,
      rgba(6, 21, 19, 0.82),
      rgba(6, 21, 19, 0.35) 50%,
      rgba(6, 21, 19, 0.12)
    ),
    url("../photos/hero-final-desktop.jpg");
  background-position:
    center,
    center 53%;
  background-size: cover;
  background-repeat: no-repeat;
}
@media (max-width: 760px) {
  .hero {
    height: auto;
    min-height: 790px;
    min-height: max(790px, calc(100svh - 120px));
    max-height: none;
    padding: 210px 6% 100px;
    align-items: flex-end;
    background: #091211;
  }
  .hero:before {
    inset: 0;
    height: 100%;
    background-image:
      linear-gradient(
        180deg,
        rgba(6, 21, 19, 0.05),
        rgba(6, 21, 19, 0.12) 25%,
        rgba(6, 21, 19, 0.65) 52%,
        rgba(6, 21, 19, 0.88)
      ),
      url("../photos/hero-final-desktop.jpg");
    background-position:
      center,
      52% 45%;
    background-size: cover;
    background-repeat: no-repeat;
    transform: none !important;
  }
  .hero-content {
    transform: none !important;
  }
  .hero .eyebrow {
    font-size: 9px;
    letter-spacing: 1.5px;
  }
  .hero h1 {
    font-size: clamp(60px, 16vw, 82px);
  }
  .hero-bottom {
    bottom: 25px;
  }
}
@media (max-width: 380px) {
  .hero {
    padding-top: 175px;
  }
  .hero h1 {
    font-size: 60px;
  }
}
@media (max-width: 760px) {
  .hero:before {
    background-image:
      linear-gradient(
        180deg,
        rgba(6, 21, 19, 0.05),
        rgba(6, 21, 19, 0.12) 25%,
        rgba(6, 21, 19, 0.65) 52%,
        rgba(6, 21, 19, 0.88)
      ),
      url("../photos/hero-final-mobile.jpg");
  }
}
.language-switch {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  font-size: 11px;
}
.language-switch button {
  border: 0;
  background: none;
  color: inherit;
  padding: 10px 3px;
  opacity: 0.5;
}
.language-switch button[aria-pressed="true"] {
  opacity: 1;
  color: var(--mint);
}
.language-switch button:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}
html[lang="en"] .hero h1 {
  font-size: clamp(65px, 8vw, 126px);
}
@media (max-width: 760px) {
  html[lang="en"] .hero h1 {
    font-size: clamp(54px, 14vw, 76px);
  }
}
.hobby.h4.hobby-photo,
.hobby.h5.hobby-photo {
  position: relative;
  overflow: hidden;
  transform: none;
  grid-column: span 3;
  height: 440px;
  padding: 28px;
  color: #fff;
  background: #10221d;
  box-shadow: none;
  border: 1px solid #ffffff20;
}
.hobby-photo:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #06130f40, transparent 35%, #06130fe6);
  pointer-events: none;
}
.hobby-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.hobby-photo > span,
.hobby-photo > h3,
.hobby-photo > b {
  position: relative;
  z-index: 1;
}
.hobby-photo > h3 {
  margin-top: auto;
  margin-bottom: 12px;
  font-size: 38px;
  max-width: 95%;
}
.hobby-photo > span {
  font-size: 10px;
}
.hobby-photo > b {
  color: #e0e9e5;
}
.hobby-photo:hover img {
  transform: scale(1.04);
}
.hobby.h4 img {
  object-position: 50% 78%;
}
.hobby.h5 img {
  object-position: 50% 58%;
}
@media (max-width: 760px) {
  .hobby.h4.hobby-photo,
  .hobby.h5.hobby-photo {
    grid-column: auto;
    height: 430px;
    padding: 24px;
  }
  .hobby-photo > h3 {
    font-size: 34px;
  }
  .hobby.h4 img {
    object-position: 50% 80%;
  }
  .hobby.h5 img {
    object-position: 56% 58%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hobby-photo img {
    transition: none;
  }
  .hobby-photo:hover img {
    transform: none;
  }
}
.hero:before {
  background-image:
    linear-gradient(
      90deg,
      rgba(6, 21, 19, 0.86),
      rgba(6, 21, 19, 0.35) 47%,
      rgba(6, 21, 19, 0.06)
    ),
    url("../photos/hero-final-desktop.jpg");
  background-position:
    center,
    center 48%;
  transform: translate3d(0, var(--hero-drift, 0px), 0)
    scale(var(--hero-zoom, 1)) scaleX(1) !important;
}
@media (max-width: 760px) {
  .hero:before {
    background-image:
      linear-gradient(
        180deg,
        rgba(6, 21, 19, 0.05),
        rgba(6, 21, 19, 0.12) 25%,
        rgba(6, 21, 19, 0.65) 52%,
        rgba(6, 21, 19, 0.88)
      ),
      url("../photos/hero-final-mobile.jpg");
    background-position:
      center,
      34% 45%;
    transform: scaleX(1) !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero:before {
    transform: scaleX(1) !important;
  }
}
.hero:before {
  inset: 0;
  height: 100%;
  background-position:
    center,
    55% top;
  transform: none !important;
  will-change: auto;
}
@media (max-width: 760px) {
  .hero:before {
    background-position:
      center,
      56% top;
    transform: none !important;
  }
}

/* Фон первого экрана: фото и затемнение на самом блоке. */
.hero {
  background:
    linear-gradient(
      90deg,
      rgba(6, 21, 19, 0.86),
      rgba(6, 21, 19, 0.35) 47%,
      rgba(6, 21, 19, 0.06)
    ),
    url("../photos/hero-final-desktop.jpg") 55% top / cover no-repeat;
}
.hero::before {
  display: none;
}
@media (max-width: 760px) {
  .hero {
    background:
      linear-gradient(
        180deg,
        rgba(6, 21, 19, 0.05),
        rgba(6, 21, 19, 0.12) 25%,
        rgba(6, 21, 19, 0.65) 52%,
        rgba(6, 21, 19, 0.88)
      ),
      url("../photos/hero-final-mobile.jpg") 56% top / cover no-repeat;
  }
}

/* Фото первого экрана — настоящий img, чтобы отслеживать загрузку. */
.hero {
  background: #091211;
  isolation: isolate;
}
.hero::before {
  display: none;
}
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% top;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(6, 21, 19, 0.86),
    rgba(6, 21, 19, 0.35) 47%,
    rgba(6, 21, 19, 0.06)
  );
}
.hero-content,
.hero-bottom {
  z-index: 1;
}
.hero-bottom {
  justify-content: flex-end;
}
.about-photo {
  height: 540px;
  overflow: hidden;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 43% center;
}
@media (max-width: 760px) {
  .hero {
    background: #091211;
  }
  .hero-photo img {
    object-position: 68% top;
  }
  .hero-photo::after {
    background: linear-gradient(
      180deg,
      rgba(6, 21, 19, 0.05),
      rgba(6, 21, 19, 0.12) 25%,
      rgba(6, 21, 19, 0.65) 52%,
      rgba(6, 21, 19, 0.88)
    );
  }
  .about-photo {
    height: 410px;
  }
}

/* Фотокарточки совпадают по масштабу и наклону с остальным коллажем. */
.hobby.h4.hobby-photo,
.hobby.h5.hobby-photo {
  grid-column: span 2;
  height: 280px;
  min-height: 250px;
  padding: 24px;
  box-shadow: 0 15px 35px #0004;
}
.hobby.h4.hobby-photo {
  grid-column: 2 / span 2;
  transform: rotate(3deg);
}
.hobby.h5.hobby-photo {
  transform: rotate(-3deg);
}
.hobby-photo > h3 {
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.1;
}
.hobby.h4 img {
  object-position: 50% 80%;
}
.hobby.h5 img {
  object-position: 53% 53%;
}
@media (max-width: 760px) {
  .hobby.h4.hobby-photo,
  .hobby.h5.hobby-photo {
    grid-column: auto;
    height: 280px;
  }
  .hobby-photo > h3 {
    font-size: 30px;
  }
}

/* Одна строка о чемпионстве; акцент в цвет сайта. */
.hero-content {
  max-width: 980px;
}
.hero .champion-line {
  max-width: none;
  white-space: nowrap;
  font-family: Oswald, Arial, sans-serif;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 500;
  line-height: 1.4;
}
.champion-sport {
  color: #58c8d5;
}
@media (max-width: 760px) {
  .hero .champion-line {
    font-size: clamp(15px, 4.4vw, 23px);
  }
}

.archive-link {
  flex-shrink: 0;
  transition:
    background 0.2s,
    color 0.2s;
}
.archive-link:hover {
  background: var(--mint);
  color: #091211;
}

/* Секция следует пропорциям снимка: фотография больше не обрезается. */
.hero {
  display: block;
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 0;
}
.hero-photo {
  position: relative;
  display: block;
  inset: auto;
}
.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}
.hero-content {
  position: absolute;
  top: 50%;
  left: 6%;
  width: 88%;
  max-width: 980px;
  transform: translateY(-50%) !important;
}
.hero-bottom {
  left: 6%;
  right: 6%;
  bottom: 28px;
}
@media (max-width: 760px) {
  .hero {
    display: block;
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 0;
  }
  .hero-photo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
  }
  .hero-photo::after {
    background: linear-gradient(180deg, transparent 88%, #091211 100%);
  }
  .hero-content {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    margin-top: -8px;
    padding: 0 6% 85px;
    transform: none !important;
  }
  .hero h1 {
    margin-top: 18px;
  }
  .hero-bottom {
    bottom: 25px;
  }
}

/* Все увлечения оформлены едиными фотокарточками. */
.hobby.hobby-photo {
  position: relative;
  overflow: hidden;
  grid-column: span 2;
  height: 280px;
  min-height: 250px;
  padding: 24px;
  color: #fff;
  background: #10221d;
  border: 1px solid #ffffff20;
  box-shadow: 0 15px 35px #0004;
}
.hobby.h4.hobby-photo {
  grid-column: 2 / span 2;
}
.hobby.h1 img {
  object-position: 50% 75%;
}
.hobby.h2 img {
  object-position: 58% 72%;
}
.hobby.h3 img {
  object-position: 46% 43%;
}
.hobby.h5 img {
  object-position: 55% 64%;
}
@media (max-width: 760px) {
  .hobby.hobby-photo,
  .hobby.h4.hobby-photo {
    grid-column: auto;
    height: 280px;
  }
  .hobby.h2 img {
    object-position: 58% 72%;
  }
  .hobby.h3 img {
    object-position: 46% 43%;
  }
  .hobby.h5 img {
    object-position: 55% 64%;
  }
}

.about-slider {
  position: relative;
  touch-action: pan-y;
  background: #091211;
}
.about-frame {
  position: absolute;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.45s,
    visibility 0.45s;
}
.about-frame.active {
  visibility: visible;
  opacity: 1;
}
.about-frame:nth-child(2) img {
  object-position: 59% center;
}
.about-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 48px;
  border: 1px solid #ffffff60;
  background: #091211ad;
  color: #fff;
  font-size: 23px;
}
.about-arrow:hover {
  background: #19444a;
}
.about-arrow:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}
.about-previous {
  left: 10px;
}
.about-next {
  right: 10px;
}
@media (prefers-reduced-motion: reduce) {
  .about-frame {
    transition: none;
  }
}

/* Достижения: на узких экранах две колонки и три ряда. */
@media (max-width: 1000px) {
  #achievements .milestones {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 24px;
  }
  #achievements .milestones article {
    min-width: 0;
  }
  #achievements .milestones h3 {
    margin: 16px 0;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 600px) {
  #achievements .milestones {
    gap: 18px 16px;
  }
  #achievements .milestones article {
    padding-top: 16px;
  }
  #achievements .milestones h3 {
    font-size: clamp(18px, 4.3vw, 22px);
  }
}
/* Возвращено фото Полины с наградой рядом с трактором. */
.hobby.h5 img {
  object-position: 53% 53%;
}
@media (max-width: 760px) {
  .hobby.h5 img {
    object-position: 53% 53%;
  }
}

/* Голубые заголовки, белая строка чемпионства и водные разделители. */
h1,
h1 span,
h2,
#achievements h3 {
  color: var(--mint);
}
.hero .champion-line,
.hero .champion-sport {
  color: #fff;
}
.contact h2 {
  color: #12455b;
}
.section-divider {
  height: 36px;
  background: #091211 url("../assets/wave-divider.svg") center / 240px 36px
    repeat-x;
}
@media (max-width: 760px) {
  .section-divider {
    height: 28px;
    background-size: 200px 30px;
  }
}

/* Белое имя и шахматное чередование шести достижений. */
.hero h1,
.hero h1 span {
  color: #fff;
}
#achievements .milestones article h3 {
  color: #fff;
}
#achievements .milestones article:nth-child(odd) h3 {
  color: var(--mint);
}
@media (max-width: 1000px) {
  #achievements .milestones article:nth-child(n) h3 {
    color: #fff;
  }
  #achievements .milestones article:nth-child(4n + 1) h3,
  #achievements .milestones article:nth-child(4n) h3 {
    color: var(--mint);
  }
}
/* Шесть новостей: крупная обложка слева и пять кадров справа. */
.editorial-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: repeat(3, 210px);
}
.editorial-grid .tile:first-child {
  grid-row: span 3;
}
.editorial-grid .tile:nth-child(6) {
  grid-column: 2 / span 2;
}
.editorial-grid .tile {
  height: 100%;
}
.editorial-grid .tile:first-child img,
.archive-grid .tile:first-child img {
  object-position: 50% 48%;
}
.editorial-grid .tile:nth-child(2) img,
.archive-grid .tile:nth-child(2) img {
  object-position: 60% 35%;
}
.editorial-grid .tile:nth-child(3) img,
.archive-grid .tile:nth-child(3) img {
  object-position: 38% center;
}
.editorial-grid .tile:nth-child(4) img,
.archive-grid .tile:nth-child(4) img {
  object-position: 50% 36%;
}
.editorial-grid .tile:nth-child(5) img,
.archive-grid .tile:nth-child(5) img {
  object-position: 40% 36%;
}
.editorial-grid .tile:nth-child(6) img {
  object-position: 66% 66%;
}
.archive-grid .tile:nth-child(6) img {
  object-position: 66% 56%;
}
@media (max-width: 1000px) {
  .editorial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, 300px);
  }
  .editorial-grid .tile:first-child {
    grid-row: auto;
    height: 100%;
  }
  .editorial-grid .tile:nth-child(6) {
    grid-column: auto;
  }
}
@media (max-width: 760px) {
  .editorial-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .editorial-grid .tile,
  .editorial-grid .tile:first-child {
    height: 340px;
  }
}
