
/* Общие настройки */
:root {

  color: #000;
  background: #fff;
  --october-pink: #ed829d;
  --october-tint: #fffbfc;
  --october-width: 1464px;
}

.october {
  max-width: var(--october-width);
  margin: auto;
  font-size: 20px;
  line-height: 1.23;
}
.october img {
  display: block;
  max-width: 100%;
  height: auto;
}
.october p,
.october h1,
.october h2,
.october figure {
  margin: 0;
}
.october button,
.october a {
  -webkit-tap-highlight-color: transparent;
}
.october a {
  color: inherit;
  text-decoration: none;
}
.october button {
  font: inherit;
  cursor: pointer;
}
.october [hidden] {
  display: none !important;
}
.october a:focus-visible,
.october button:focus-visible,
.october [tabindex]:focus-visible {
  outline: 2px solid var(--october-pink);
  outline-offset: 4px;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  padding: 12px;
  background: white;
  color: #171717;
  z-index: 10;
}
.skip-link:focus {
  top: 10px;
}
.october h1,
.october h2:not(.section-label) {
  font-size: 40px;
  line-height: 1.16;
  text-transform: uppercase;
  font-weight: 400;
}
.october .eyebrow {
  color: var(--october-pink);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.october .section-label {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
}
/* 01. Первый экран */
.hero {
  display: grid;
  grid-template-columns: 60% 40%;
  align-items: center;
}
.hero-copy {
  padding: 60px 65px 60px 170px;
}
.hero-copy h1 {
  max-width: 550px;
  margin-bottom: 22px;
}
.hero-copy > p:last-child {
  color: #000;
  font-weight:300;
}
.hero-photo {
  width: 100%;
}
/* 02. Цитата */
.quote-section {
  background: var(--october-tint);
  padding: 78px 24px 52px;
  text-align: center;
}
.quote {
  max-width: 850px;
  margin: auto !important;
}
.quote blockquote {
  margin: 0;
  font-size: 21px;
  line-height: 1.35;
  text-transform: uppercase;
  color: #000;
  font-weight:300;
}
.quote figcaption {
  margin-top: 22px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}
/* 03. О проекте */
.project {
  display: grid;
  grid-template-columns: 44.5% 55.5%;
  align-items: center;
  scroll-margin-top: 24px;
}
.project-photo {
  width: 100%;
}
.project-copy {
  padding: 50px 120px 50px 85px;
}
.project-copy h2 {
  margin-bottom: 20px !important;
}
.project-copy > p:not(.eyebrow) {
  color: #000;
  margin-bottom: 24px;
  font-weight:300;
}
/* Кнопки */
.october .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 38px;
  padding: 7px 18px;
  border: 1px solid #292929;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  transition:
    background-color 0.2s,
    border-color 0.2s;
}
.october .button:hover {
  background: #fcebf1;
  border-color: #d16f89;
}
.project-copy .button {
  margin-top: 10px;
}
/* 04. Статистика */
.impact {
  background: var(--october-tint);
  padding: 55px 35px 62px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 62px;
  text-align: center;
}
.stat {
  padding: 0 20px;
}
.stat + .stat {
  border-left: 2px solid #ffdee7;
}
.stat strong {
  display: block;
  font-size: 80px;
  font-weight: 400;
  line-height: 1;
}
.stat p {
  margin-top: 10px;
  font-size: 17px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
/* 05. Фотолента: четыре кадра на большом экране */
.quote-slider {
  position: relative;
  min-width: 0;
}
.quote-gallery {
  --gallery-gap: 4px;
  --visible-photos: 4;
  display: flex;
  gap: var(--gallery-gap);
  overflow-x: auto;
  min-width: 0;
  align-items: flex-start;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}
.quote-gallery::-webkit-scrollbar {
  display: none;
}
.quote-gallery > img {
  flex: 0 0 calc((100% - (var(--visible-photos) - 1) * var(--gallery-gap)) / var(--visible-photos));
  width: calc((100% - (var(--visible-photos) - 1) * var(--gallery-gap)) / var(--visible-photos));
  height: auto;
  scroll-snap-align: start;
  -webkit-user-drag: none;
}
.quote-gallery.is-animating {
  scroll-snap-type: none;
  scroll-behavior: auto;
}
.quote-gallery.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  outline: none;
}
.quote-gallery:focus:not(:focus-visible) {
  outline: none;
}
.slider-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 38px;
  height: 58px;
  border: 0;
  padding: 9px;
  background: none;
  transition: background 0.2s;
}
.slider-arrow:hover {
  background: none;
}
.slider-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}
.quote-prev {
  left: 0;
}
.quote-next {
  right: 0;
}
/* На десктопе стрелки находятся за краями фотоленты.
   Запас внутри контейнера не зависит от ширины страницы и полосы прокрутки. */
@media (max-width: 1126px){
  .project{
    align-items: start;
  }

  .project img{
    margin-top: 35px;
  }
}
@media (max-width: 1100px) {
  .october h1, .october h2:not(.section-label){
    font-size: 34px;
  }
}

@media (min-width: 1024px) {

  

  .event-gallery {
    margin-inline: 52px;
  }

  .event-gallery .quote-prev {
    left: -48px;
  }

  .event-gallery .quote-next {
    right: -48px;
  }

  .event-gallery .slider-arrow {
    background: transparent;
  }
}

/* 06. Партнёры */
.partners {
  padding: 54px 100px 76px;
}
.partner-logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: 70px;
  margin-top: 58px;
}
.partner-logos img {
  width: 100%;
  max-width: 205px;
  height: 95px;
  object-fit: contain;
}
/* 07. Как помочь */
.join {
  display: grid;
  grid-template-columns: 45% 55%;
  align-items: center;
  background: var(--october-tint);
  min-height: 550px;
  padding: 40px 0;
}
.join > img {
  width: 100%;
  mix-blend-mode: multiply;
}
.join-copy {
  padding: 45px 100px 45px 80px;
}
.join h2 {
  margin-bottom: 22px !important;
}
.join-copy > p:not(.eyebrow) {
  color: #000;
  font-weight:300;
}
.join .button {
  margin-top: 34px;
}
/* Планшеты: уменьшенные поля */
@media (max-width: 1200px) {
  .hero-copy {
    padding: 40px 40px 40px 8%;
  }
  .project-copy {
    padding: 35px 45px;
  }
  .join-copy {
    padding: 40px 45px;
  }
  .partners {
    padding-left: 45px;
    padding-right: 45px;
  }
  .partner-logos {
    gap: 40px;
  }
  .desktop-break {
    display: none;
  }
}
/* Мобильные экраны */
@media (width < 768px) {
  .hero,
  .project,
  .join {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-copy,
  .project-copy,
  .join-copy {
    padding: 40px 24px;
  }
  .hero-photo,
  .project-photo {
    width: 100%;
    height: auto;
  }
  .hero h1,
  .project h2,
  .join h2 {
    overflow-wrap: anywhere;
  }
  .quote-section {
    padding: 45px 24px;
  }
  .impact {
    padding: 40px 20px;
  }
  .stats {
    margin-top: 35px;
  }
  .stat {
    padding: 0 8px;
  }
  .quote-gallery {
    --visible-photos: 2;
  }
  .partners {
    padding: 42px 24px;
  }
  .partner-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px;
    margin-top: 35px;
  }
  .join {
    padding: 0;
  }
  .join-copy {
    grid-row: 1;
  }
  .join > img {
    width: 100%;
    height: auto;
  }
  .project-copy .button,
  .join-copy .button {
    width: 100%;
  }
}
/* Узкие экраны */
@media (width < 600px) {
  .stats {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .stat + .stat {
    border-left: 0;
    border-top: 1px solid #f7e4ec;
    padding-top: 26px;
  }
}
@media (width < 500px) {
  .quote-gallery {
    --visible-photos: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .october .button,
  .slider-arrow {
    transition: none;
  }
}
