@font-face {
  font-family: "Geologica";
  font-display: swap;
  src: url("./fonts/Geologica-Thin.woff") format("woff"),
  url("./fonts/Geologica-Thin.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
}
@font-face {
  font-family: "Geologica";
  font-display: swap;
  src: url("./fonts/Geologica-ExtraLight.woff") format("woff"),
  url("./fonts/Geologica-ExtraLight.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
}
@font-face {
  font-family: "Geologica";
  font-display: swap;
  src: url("./fonts/Geologica-Light.woff") format("woff"),
  url("./fonts/Geologica-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: "Geologica";
  font-display: swap;
  src: url("./fonts/Geologica-Regular.woff") format("woff"),
  url("./fonts/Geologica-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Geologica";
  font-display: swap;
  src: url("./fonts/Geologica-Medium.woff") format("woff"),
  url("./fonts/Geologica-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: "Geologica";
  font-display: swap;
  src: url("./fonts/Geologica-SemiBold.woff") format("woff"),
  url("./fonts/Geologica-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: "Geologica";
  font-display: swap;
  src: url("./fonts/Geologica-Bold.woff") format("woff"),
  url("./fonts/Geologica-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "Geologica";
  font-display: swap;
  src: url("./fonts/Geologica-ExtraBold.woff") format("woff"),
  url("./fonts/Geologica-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
}
@font-face {
  font-family: "Geologica";
  font-display: swap;
  src: url("./fonts/Geologica-Black.woff") format("woff"),
  url("./fonts/Geologica-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
}
/* Bounded (Vlad Churkin, SIL OFL 1.1, см. fonts/Bounded-OFL.txt) — вариативный, в макете есть вес 466 */
@font-face {
  font-family: "Bounded";
  font-display: swap;
  src: url("./fonts/Bounded-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
}
:root {
  --font-primary: "Geologica";
  --font-accent: "Bounded";
  --color-black: #181818;
  --color-white: #FFFFFF;
  --color-green: #0F5030;
  --color-green-dark: #003322;
  --color-cream: #FEEECC;
  --color-orange: #FFAE00;
  --gradient-orange: linear-gradient(180deg, #FFB222 30%, #FB7000 100%);
  --transition: all .3s ease;
}
* {
  padding: 0px;
  margin: 0px;
  border: 0px;
}
*,
*:before,
*:after {
  box-sizing: border-box;
}
:focus,
:active {
  outline: none;
}
a:focus,
a:active {
  outline: none;
}
html {
  scroll-behavior: smooth;
}
body {
  /* Вся страница зелёная: на дробных границах секций не просвечивает белый */
  background-color: var(--color-green-dark);
  color: var(--color-black);
  font-size: 14px;
  line-height: 1.1;
  font-family: var(--font-primary), sans-serif;
  -ms-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button {
  cursor: pointer;
  color: inherit;
  background-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
ul li {
  list-style: none;
}
img {
  vertical-align: top;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: inherit;
  font-size: inherit;
}
.container {
  margin: 0 auto;
  max-width: 1250px;
  padding: 0 25px;
}
@media (max-width: 1100px) {
  .container {
    max-width: 100vw;
    padding: 0 25px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 18px;
  }
}

/* Типографика */
.h1 {
  font-family: var(--font-accent), sans-serif;
  font-weight: 800;
  font-size: 64px;
  line-height: 72px;
  letter-spacing: -0.01em;
}
.h2 {
  font-family: var(--font-accent), sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 54px;
  letter-spacing: -0.01em;
}
.h4 {
  font-family: var(--font-accent), sans-serif;
  font-weight: 466;
  font-size: 24px;
  line-height: 30px;
  letter-spacing: -0.01em;
}
.p-23 {
  font-weight: 200;
  font-size: 23px;
  line-height: 32px;
  letter-spacing: -0.02em;
}
.p-26 {
  font-weight: 200;
  font-size: 26px;
  line-height: 36px;
  letter-spacing: -0.02em;
}
.text-14 {
  font-weight: 300;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: -0.02em;
}
.text-26 {
  font-weight: 500;
  font-size: 26px;
  line-height: 30px;
  letter-spacing: -0.02em;
}

@media (max-width: 1100px) {
  .h1 {
    font-size: 52px;
    line-height: 60px;
  }
}
@media (max-width: 768px) {
  .h1 {
    font-weight: 700;
    font-size: 40px;
    line-height: 54px;
  }
  .h2 {
    font-weight: 566;
    font-size: 32px;
    line-height: 40px;
  }
  .text-26 {
    font-size: 20px;
    line-height: 26px;
  }
}

/* Главный экран - Начало */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--color-green);
  color: var(--color-white);
  text-align: center;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero__bg::before,
.hero__bg::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
}
.hero__bg::before {
  top: 0;
  height: 600px;
  background: linear-gradient(180deg, var(--color-green-dark) 0%, rgba(0, 51, 34, 0) 100%);
}
.hero__bg::after {
  bottom: 0;
  height: 246px;
  background: linear-gradient(0deg, var(--color-green) 0%, rgba(15, 80, 48, 0) 100%);
}
.hero__pattern {
  position: absolute;
  width: 880px;
  height: 693px;
}
.hero__pattern--top {
  top: 0;
  right: 0;
}
.hero__pattern--bottom {
  bottom: 0;
  left: 0;
}
.hero__header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 0;
}
.hero__logo {
  display: block;
  width: 182px;
  height: 78px;
}
.hero__logo img {
  width: 100%;
  height: 100%;
}
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 72px;
  padding-bottom: 90px;
}
.hero__head,
.hero__counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}
.hero__number,
.hero__number-static {
  font-family: var(--font-accent), sans-serif;
  font-weight: 900;
  font-size: 210px;
  line-height: 240px;
  background: var(--gradient-orange);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  /* text-shadow перекрывает градиент при background-clip: text, поэтому тень — фильтром */
  filter: drop-shadow(0 9px 0 var(--color-green-dark));
}
.hero__text {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.hero__heart {
  width: 30px;
  height: 30px;
  padding: 3px 2.5px 3.75px;
}
.hero__tag {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 72px;
  padding: 21px 30px;
  border-radius: 72px;
  background: var(--color-cream);
  color: var(--color-black);
}

@media (max-width: 1100px) {
  .hero__number,
.hero__number-static {
    font-size: 128px;
    line-height: 144px;
  }
}
@media (max-width: 768px) {
  .hero__bg::before {
    height: 400px;
  }
  .hero__bg::after {
    height: 200px;
  }
  .hero__pattern {
    width: 762px;
    height: 600px;
  }
  .hero__pattern--top {
    right: auto;
    left: calc(50% - 381px);
  }
  .hero__pattern--bottom {
    display: none;
  }
  .hero__header {
    padding: 30px 0;
  }
  .hero__logo {
    width: 91px;
    height: 39px;
  }
  .hero__content {
    gap: 30px;
    padding-bottom: 60px;
  }
  .hero__head,
  .hero__counter {
    gap: 30px;
  }
  .hero__number,
.hero__number-static {
    font-weight: 800;
    font-size: 64px;
    line-height: 72px;
    filter: drop-shadow(0 6px 0 var(--color-green-dark));
  }
  .hero__text {
    flex-direction: column;
    gap: 6px;
  }
  .hero__heart {
    display: none;
  }
  .hero__tag {
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    height: 60px;
    padding: 18px 30px;
    border-radius: 60px;
  }
}
/* Главный экран - Конец */

/* Постер - Начало */
.poster {
  background-color: var(--color-green);
}
.poster__wrapper {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 30px;
  overflow: hidden;
}
.poster__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@media (max-width: 768px) {
  .poster__wrapper {
    border-radius: 12px;
  }
}
/* Постер - Конец */

/* Об эстафете - Начало */
.about {
  position: relative;
  isolation: isolate;
  padding-bottom: 90px;
  /* Одним слоем: при дробной границе с подвалом не просвечивает светлая подложка */
  background: linear-gradient(180deg, var(--color-green) calc(100% - 600px), var(--color-green-dark) 100%);
  color: var(--color-white);
}
.about b {
  font-weight: 500;
}
.about__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 90px 0;
  text-align: center;
}
.about__tag {
  font-weight: 500;
  color: var(--color-orange);
}
.about__how {
  display: flex;
  align-items: stretch;
  gap: 48px;
}
.about__info {
  flex: 0 0 474px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}
.about__head {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.about__period {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about__dates {
  color: var(--color-orange);
}
.about__steps {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 0;
  border-top: 1px solid var(--color-white);
  padding-top: 30px;
}
.about__step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--color-white);
  list-style: none;
}
.about__num {
  flex: 0 0 60px;
  height: 60px;
  font-family: var(--font-accent), sans-serif;
  font-weight: 566;
  font-size: 64px;
  line-height: 60px;
  letter-spacing: -0.01em;
  text-align: center;
  background: var(--gradient-orange);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.about__step-text {
  flex: 1 1 auto;
  min-height: 60px;
  display: flex;
  align-items: center;
}

@media (max-width: 991px) {
  .about__how {
    flex-direction: column;
  }
  .about__info {
    flex-basis: auto;
    justify-content: flex-start;
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .about {
    padding-bottom: 60px;
  }
  .about {
    background: linear-gradient(180deg, var(--color-green) calc(100% - 400px), var(--color-green-dark) 100%);
  }
  .about__intro {
    gap: 18px;
    padding: 60px 0;
  }
  .about__intro .p-23 {
    font-size: 20px;
    line-height: 30px;
  }
  .about__head {
    gap: 18px;
  }
  .about__info .p-26 {
    font-size: 23px;
    line-height: 32px;
  }
  .about__step {
    flex-direction: column;
    gap: 24px;
  }
  .about__num {
    flex-basis: auto;
    width: 60px;
  }
  .about__step-text {
    min-height: 0;
  }
  .about__step-text br {
    display: none;
  }
}
/* Об эстафете - Конец */

/* Обнимашки - Начало */
.hug-gallery {
  padding-bottom: 90px;
  background: var(--color-green-dark);
  color: var(--color-white);
  text-align: center;
}
.hug-gallery__intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}
.hug-gallery__intro strong {
  font-weight: 500;
}
.hug-gallery__grid {
  --columns: 4;
  --row-gap: 24px;
  /* Высота сетки включает нижний отступ крайней карточки. */
  margin-bottom: calc(0px - var(--row-gap));
  column-count: var(--columns);
  column-gap: 24px;
}
.hug-gallery__grid.has-masonry {
  column-count: auto;
}
.has-masonry .hug-gallery__item {
  width: calc((100% - (var(--columns) - 1) * 24px) / var(--columns));
}
.hug-gallery__item {
  break-inside: avoid;
  margin-bottom: var(--row-gap);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 17px;
  line-height: 24px;
  font-weight: 300;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.hug-gallery__media {
  position: relative;
  overflow: hidden;
}
.hug-gallery__media--photo {
  background: var(--gradient-orange);
}
.hug-gallery__media :is(img, video) {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.hug-gallery__media video {
  aspect-ratio: auto 9 / 16;
}
.hug-gallery__toggle {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(24, 24, 24, 0.5);
}
.hug-gallery__toggle[hidden] {
  display: none;
}
.hug-gallery__toggle::before,
.hug-gallery__toggle::after {
  content: "";
  grid-area: 1 / 1;
}
.hug-gallery__toggle::before {
  width: 60px;
  height: 60px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.hug-gallery__toggle::after {
  margin-left: 5px;
  border-block: 11px solid transparent;
  border-left: 20px solid currentColor;
}
.hug-gallery__toggle.is-playing {
  opacity: 0;
}
.hug-gallery__toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -4px;
  opacity: 1;
}
.hug-gallery__toggle.is-playing:focus-visible::after {
  width: 16px;
  height: 22px;
  margin-left: 0;
  border: 0;
  border-inline: 5px solid currentColor;
}

@media (max-width: 1050px) {
  .hug-gallery__grid { --columns: 3; }
}
@media (max-width: 780px) {
  .hug-gallery__grid { --columns: 2; }
}
@media (max-width: 520px) {
  .hug-gallery__grid { --columns: 1; }
}
/* Обнимашки - Конец */

/* Подвал - Начало */
.footer {
  padding-bottom: 24px;
  background-color: var(--color-green-dark);
  color: var(--color-white);
}
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}
.footer__btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 330px;
  height: 90px;
  padding: 30px 36px;
  border-radius: 18px;
  background: var(--color-white);
  color: var(--color-black);
  transition: var(--transition);
}
.footer__btn:hover {
  background: var(--color-orange);
}
.footer__socials {
  display: flex;
  align-items: center;
  gap: 30px;
}
.footer__social {
  display: block;
  width: 42px;
  height: 42px;
  color: var(--color-white);
  transition: var(--transition);
}
.footer__social:hover {
  color: var(--color-orange);
}
.footer__social svg {
  display: block;
  width: 100%;
  height: 100%;
}
.footer__copyright {
  margin-top: 72px;
  color: #959595;
}

@media (max-width: 768px) {
  .footer__top {
    flex-direction: column;
  }
  .footer__btn {
    width: 100%;
    font-size: 26px;
    line-height: 30px;
  }
  .footer__copyright {
    margin-top: 30px;
    text-align: center;
  }
}
/* Подвал - Конец */