/*
 * AKAKAO — Gothic UI + gallery v2
 *
 * Этот файл намеренно отдельный:
 * основной style.css пока не трогаем.
 */


/* =========================================================
   RITUAL INFO STRIP
   ========================================================= */

.ritual-strip {
  position: relative;

  min-height: 150px;

  display: flex;
  align-items: center;

  overflow: hidden;

  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(126, 12, 29, .12),
      transparent 60%
    ),
    linear-gradient(
      180deg,
      #0c0809 0%,
      #080506 100%
    );
}


.ritual-strip::before,
.ritual-strip::after {
  content: "";

  position: absolute;
  left: 50%;

  width: min(920px, 68vw);
  height: 1px;

  transform: translateX(-50%);

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(196,154,98,.18) 15%,
      rgba(196,154,98,.48) 50%,
      rgba(196,154,98,.18) 85%,
      transparent
    );
}

.ritual-strip::before {
  top: 0;
}

.ritual-strip::after {
  bottom: 0;
}


.ritual-gate {
  position: absolute;

  top: 50%;

  width: 70px;
  height: 230px;

  transform: translateY(-50%);

  background:
    url("/assets/ui/gothic-gate.svg")
    center / contain
    no-repeat;

  opacity: .23;

  pointer-events: none;
}

.ritual-gate-left {
  left: 18px;
}

.ritual-gate-right {
  right: 18px;

  transform:
    translateY(-50%)
    scaleX(-1);
}


.ritual-line {
  position: relative;
  z-index: 2;

  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  align-items: center;
}


.ritual-item {
  position: relative;

  min-height: 100px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding: 16px 58px;

  text-align: center;
}


.ritual-item:not(:last-child)::after {
  content: "";

  position: absolute;

  width: 90px;
  height: 28px;

  top: 50%;
  right: -45px;

  transform: translateY(-50%);

  background:
    url("/assets/ui/gothic-divider.svg")
    center / contain
    no-repeat;

  opacity: .48;
}


.ritual-item small {
  margin-bottom: 7px;

  color: #8e8179;

  font-family: var(--sans);

  font-size: 9px;
  font-weight: 700;

  letter-spacing: .22em;
  text-transform: uppercase;
}


.ritual-item strong {
  color: var(--cream);

  font-family: var(--serif);

  font-size:
    clamp(15px, 1.25vw, 20px);

  line-height: 1.25;

  font-weight: 500;

  text-wrap: balance;
}



/* =========================================================
   GALLERY — GENERAL
   ========================================================= */

.gallery-v2 {
  position: relative;

  padding-bottom:
    clamp(95px, 12vw, 170px);

  overflow: hidden;

  background:
    radial-gradient(
      circle at 50% 54%,
      rgba(119,6,25,.17),
      transparent 33rem
    ),
    linear-gradient(
      180deg,
      #070506,
      #0b0608 50%,
      #070506
    );
}


.gallery-v2::before {
  content: "";

  position: absolute;

  width: 1100px;
  height: 1100px;

  left: 50%;
  top: 53%;

  transform:
    translate(-50%, -50%);

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(156,9,31,.12),
      rgba(75,5,17,.04) 45%,
      transparent 70%
    );

  pointer-events: none;
}


.gallery-v2 .gallery-head {
  position: relative;
  z-index: 4;

  margin-bottom:
    clamp(50px, 7vw, 90px);
}


.gallery-head-ornament {
  width: 220px;
  height: 34px;

  margin-top: 25px;

  background:
    url("/assets/ui/gothic-divider.svg")
    left center / contain
    no-repeat;

  opacity: .56;
}



/* =========================================================
   GALLERY STAGE
   ========================================================= */

.gallery-stage {
  position: relative;

  width: 100%;

  padding:
    25px 0
    42px;

  isolation: isolate;
}


.gallery-stage::before,
.gallery-stage::after {
  content: "";

  position: absolute;
  z-index: 1;

  top: 50%;

  width: 92px;
  height: 310px;

  transform:
    translateY(-50%);

  background:
    url("/assets/ui/gothic-gate.svg")
    center / contain
    no-repeat;

  opacity: .17;

  pointer-events: none;
}

.gallery-stage::before {
  left: 0;
}

.gallery-stage::after {
  right: 0;

  transform:
    translateY(-50%)
    scaleX(-1);
}


.akakao-gallery {
  position: relative;
  z-index: 3;

  width: 100%;

  padding:
    25px 0
    55px;

  overflow: visible;
}


.akakao-gallery .swiper-wrapper {
  align-items: center;
}


.akakao-gallery .swiper-slide {
  width:
    clamp(430px, 48vw, 720px);

  opacity: .42;

  transform-origin: center;

  transition:
    opacity .45s ease,
    filter .45s ease;

  filter:
    saturate(.65)
    brightness(.64);
}


.akakao-gallery .swiper-slide-active {
  opacity: 1;

  filter:
    saturate(1)
    brightness(1);
}


.akakao-gallery .swiper-slide-prev,
.akakao-gallery .swiper-slide-next {
  opacity: .72;

  filter:
    saturate(.8)
    brightness(.78);
}



/* =========================================================
   GOTHIC PHOTO FRAME
   ========================================================= */

.gallery-card-link {
  display: block;

  cursor: zoom-in;
}


.gallery-card {
  position: relative;

  aspect-ratio: 3 / 2;

  padding: 10px;

  background:
    linear-gradient(
      145deg,
      rgba(210,168,107,.78),
      rgba(89,47,22,.45) 18%,
      rgba(22,12,9,.95) 45%,
      rgba(149,95,48,.52) 82%,
      rgba(210,168,107,.7)
    );

  box-shadow:
    0 32px 80px
    rgba(0,0,0,.64),
    0 0 0 1px
    rgba(196,154,98,.17);

  overflow: visible;
}


.gallery-card::before,
.gallery-card::after {
  content: "";

  position: absolute;
  z-index: 5;

  width: 116px;
  height: 116px;

  background:
    url("/assets/ui/gothic-corner.svg")
    center / contain
    no-repeat;

  opacity: .78;

  pointer-events: none;
}


.gallery-card::before {
  top: -12px;
  left: -12px;
}


.gallery-card::after {
  right: -12px;
  bottom: -12px;

  transform: rotate(180deg);
}


.gallery-card-inner {
  position: relative;

  width: 100%;
  height: 100%;

  padding: 6px;

  background: #080506;

  border:
    1px solid
    rgba(222,184,127,.28);

  overflow: hidden;
}


.gallery-card-inner::after {
  content: "";

  position: absolute;
  inset: 0;

  box-shadow:
    inset 0 0 50px
    rgba(0,0,0,.38);

  pointer-events: none;
}


.gallery-card img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform .7s
    cubic-bezier(.2,.75,.3,1);
}


.swiper-slide-active
.gallery-card:hover img {
  transform: scale(1.028);
}



/* =========================================================
   NAVIGATION
   ========================================================= */

.gallery-controls {
  position: relative;
  z-index: 5;

  display: flex;

  justify-content: center;
  align-items: center;

  gap: 26px;

  margin-top: 10px;
}


.gallery-arrow {
  position: relative;

  width: 62px;
  height: 42px;

  display: grid;
  place-items: center;

  padding: 0;

  border: 0;

  background: transparent;

  color: var(--gold);

  cursor: pointer;

  opacity: .78;

  transition:
    opacity .2s ease,
    transform .2s ease;
}


.gallery-arrow:hover {
  opacity: 1;

  transform: scale(1.06);
}


.gallery-arrow::before {
  content: "";

  position: absolute;

  width: 58px;
  height: 22px;

  background:
    url("/assets/ui/gothic-divider.svg")
    center / contain
    no-repeat;

  opacity: .48;
}


.gallery-arrow span {
  position: relative;
  z-index: 2;

  width: 8px;
  height: 8px;

  border-top:
    1px solid var(--gold);

  border-right:
    1px solid var(--gold);
}


.gallery-prev span {
  transform: rotate(-135deg);
}


.gallery-next span {
  transform: rotate(45deg);
}


.gallery-counter {
  min-width: 78px;

  color: #84776e;

  font-family: var(--serif);

  font-size: 13px;

  letter-spacing: .14em;

  text-align: center;
}


.gallery-counter strong {
  color: var(--gold-soft);

  font-size: 18px;
  font-weight: 500;
}



/* =========================================================
   SWIPER SHADOW TUNING
   ========================================================= */

.akakao-gallery
.swiper-slide-shadow-left,
.akakao-gallery
.swiper-slide-shadow-right,
.akakao-gallery
.swiper-slide-shadow-coverflow {
  background:
    linear-gradient(
      to right,
      rgba(2,1,1,.65),
      rgba(2,1,1,.14)
    );
}



/* =========================================================
   PHOTOSWIPE
   ========================================================= */

.pswp {
  --pswp-bg: #030203;
}


.pswp__bg {
  background:
    radial-gradient(
      circle at center,
      #16080b,
      #020102 72%
    ) !important;
}


.pswp__button {
  opacity: .8;
}



/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {

  .ritual-gate {
    opacity: .12;
  }

  .ritual-item {
    padding-inline: 38px;
  }

  .ritual-item:not(:last-child)::after {
    width: 70px;
    right: -35px;
  }


  .akakao-gallery .swiper-slide {
    width:
      clamp(390px, 64vw, 600px);
  }

}



/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

  /*
   * Info strip:
   * не таблица, а четыре небольших
   * "ритуальных" элемента.
   */

  .ritual-strip {
    min-height: 235px;

    padding: 25px 0;
  }


  .ritual-gate {
    width: 48px;
    height: 180px;

    opacity: .12;
  }

  .ritual-gate-left {
    left: -12px;
  }

  .ritual-gate-right {
    right: -12px;
  }


  .ritual-line {
    grid-template-columns:
      repeat(2, 1fr);

    row-gap: 22px;
  }


  .ritual-item {
    min-height: 72px;

    padding: 8px 20px;
  }


  .ritual-item:not(:last-child)::after {
    display: none;
  }


  .ritual-item:nth-child(1)::after,
  .ritual-item:nth-child(3)::after {
    content: "";

    display: block;

    position: absolute;

    width: 60px;
    height: 20px;

    top: 50%;
    right: -30px;

    transform:
      translateY(-50%)
      rotate(90deg);

    background:
      url("/assets/ui/gothic-divider.svg")
      center / contain
      no-repeat;

    opacity: .25;
  }


  .ritual-item small {
    font-size: 8px;
  }


  .ritual-item strong {
    font-size: 15px;
  }



  /*
   * Gallery:
   * Swiper cards = компактная стопка.
   */

  .gallery-v2 {
    padding-bottom: 100px;
  }


  .gallery-v2 .gallery-head {
    margin-bottom: 35px;
  }


  .gallery-head-ornament {
    width: 160px;
  }


  .gallery-stage {
    padding-top: 8px;
  }


  .gallery-stage::before,
  .gallery-stage::after {
    width: 48px;
    height: 180px;

    opacity: .1;
  }


  .gallery-stage::before {
    left: -20px;
  }


  .gallery-stage::after {
    right: -20px;
  }


  .akakao-gallery {
    width:
      min(82vw, 420px);

    padding:
      14px 0
      28px;

    overflow: visible;
  }


  .akakao-gallery .swiper-slide {
    width: 100% !important;

    opacity: 1;

    filter: none;
  }


  .gallery-card {
    padding: 7px;

    box-shadow:
      0 22px 55px
      rgba(0,0,0,.62);
  }


  .gallery-card::before,
  .gallery-card::after {
    width: 82px;
    height: 82px;
  }


  .gallery-card::before {
    top: -8px;
    left: -8px;
  }


  .gallery-card::after {
    right: -8px;
    bottom: -8px;
  }


  .gallery-controls {
    margin-top: 18px;

    gap: 15px;
  }


  .gallery-arrow {
    width: 55px;
  }


  .gallery-counter {
    min-width: 68px;
  }

}


/* =========================================================
   GOTHIC BUTTONS + STORY V3
   ========================================================= */


/*
 * Основная CTA-кнопка.
 *
 * Не обычный прямоугольник:
 * слегка стрельчатые боковые стороны,
 * внутренняя золотая рамка и орнаменты.
 */

.button-primary {
  position: relative;

  min-width: 220px;

  padding:
    0 38px;

  overflow: hidden;

  clip-path:
    polygon(
      16px 0,
      calc(100% - 16px) 0,
      100% 50%,
      calc(100% - 16px) 100%,
      16px 100%,
      0 50%
    );

  border: 0;

  background:
    linear-gradient(
      180deg,
      #a80e25 0%,
      #870819 50%,
      #690511 100%
    );

  box-shadow:
    0 15px 45px
    rgba(116, 4, 23, .28);

  isolation: isolate;
}


.button-primary::before {
  content: "";

  position: absolute;
  z-index: -1;

  inset: 4px 7px;

  clip-path:
    polygon(
      13px 0,
      calc(100% - 13px) 0,
      100% 50%,
      calc(100% - 13px) 100%,
      13px 100%,
      0 50%
    );

  border:
    1px solid
    rgba(221, 180, 119, .36);

  pointer-events: none;
}


.button-primary::after {
  content: "";

  position: absolute;

  width: 46px;
  height: 46px;

  left: 6px;
  top: 50%;

  transform:
    translateY(-50%)
    rotate(-45deg);

  background:
    url("/assets/ui/gothic-corner.svg")
    center / contain
    no-repeat;

  opacity: .32;

  pointer-events: none;
}


.button-primary:hover {
  background:
    linear-gradient(
      180deg,
      #bd142d 0%,
      #980a1e 52%,
      #750614 100%
    );

  filter:
    drop-shadow(
      0 10px 24px
      rgba(145, 7, 31, .34)
    );
}


.button-primary:focus-visible {
  outline:
    2px solid
    var(--gold);

  outline-offset: 5px;
}


/*
 * Финальная большая CTA
 */

.button-large {
  min-width: 270px;

  min-height: 68px;

  font-family:
    var(--serif);

  letter-spacing: .13em;
}



/* =========================================================
   STORY — GOTHIC HALL
   ========================================================= */

.story {
  position: relative;

  overflow: hidden;

  border-top:
    1px solid
    rgba(196,154,98,.08);

  border-bottom:
    1px solid
    rgba(196,154,98,.08);
}


.story::after {
  content: "";

  position: absolute;

  inset:
    0
    max(22px, calc((100vw - var(--shell)) / 2));

  pointer-events: none;

  border-left:
    1px solid
    rgba(196,154,98,.08);

  border-right:
    1px solid
    rgba(196,154,98,.08);
}


.story .shell {
  position: relative;
  z-index: 2;
}


/*
 * Две высокие кованые решётки
 * по краям блока.
 */

.story .shell::before,
.story .shell::after {
  content: "";

  position: absolute;

  z-index: -1;

  width: 100px;
  height: 350px;

  top: 50%;

  transform:
    translateY(-50%);

  background:
    url("/assets/ui/gothic-gate.svg")
    center / contain
    no-repeat;

  opacity: .16;

  pointer-events: none;
}


.story .shell::before {
  left: -110px;
}


.story .shell::after {
  right: -110px;

  transform:
    translateY(-50%)
    scaleX(-1);
}



/*
 * Под заголовком —
 * небольшой орнамент вместо
 * очередной обычной линии.
 */

.story-title {
  position: relative;
}


.story-title::after {
  content: "";

  display: block;

  width:
    min(260px, 75%);

  height: 42px;

  margin-top: 34px;

  background:
    url("/assets/ui/gothic-divider.svg")
    left center / contain
    no-repeat;

  opacity: .58;
}



/*
 * Очень тихая стрельчатая арка
 * за текстом.
 */

.story-copy {
  position: relative;
}


.story-copy::before {
  content: "";

  position: absolute;
  z-index: -1;

  width: 390px;
  height: 540px;

  left: 50%;
  top: 42%;

  transform:
    translate(-50%, -50%);

  border:
    1px solid
    rgba(196,154,98,.075);

  border-radius:
    195px 195px 8px 8px;

  box-shadow:
    inset 0 0 80px
    rgba(130, 7, 29, .05);

  pointer-events: none;
}



/*
 * Первая строка текста чуть сильнее,
 * чтобы блок ощущался как вступление
 * к сказке, а не обычный paragraph.
 */

.story-copy .story-lead {
  text-shadow:
    0 0 45px
    rgba(141,11,29,.12);
}



/* =========================================================
   EVENT DRESS CODE — LESS UI
   ========================================================= */

.dress-tags {
  align-items: center;

  gap: 0;
}


.dress-tags span {
  position: relative;

  padding:
    4px 20px;

  border: 0;

  color:
    #c8bbb0;

  font-family:
    var(--serif);

  font-size: 12px;

  letter-spacing: .035em;
}


.dress-tags span:first-child {
  padding-left: 0;
}


.dress-tags span:last-child {
  padding-right: 0;
}


.dress-tags span:not(:last-child)::after {
  content: "✦";

  position: absolute;

  right: -4px;

  top: 50%;

  transform:
    translateY(-50%);

  color:
    rgba(196,154,98,.6);

  font-size: 8px;
}



/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

  .button-primary {
    clip-path:
      polygon(
        12px 0,
        calc(100% - 12px) 0,
        100% 50%,
        calc(100% - 12px) 100%,
        12px 100%,
        0 50%
      );
  }


  .story::after {
    inset:
      0 14px;
  }


  .story .shell::before,
  .story .shell::after {
    width: 54px;
    height: 220px;

    opacity: .11;
  }


  .story .shell::before {
    left: -32px;

    top: 15%;
  }


  .story .shell::after {
    right: -32px;

    top: 78%;
  }


  .story-title::after {
    width: 170px;

    margin-top: 25px;
  }


  .story-copy::before {
    width: 280px;
    height: 430px;

    opacity: .75;
  }


  .dress-tags {
    gap:
      8px 0;
  }


  .dress-tags span {
    padding:
      3px 16px;

    font-size: 11px;
  }


  .dress-tags span:first-child {
    padding-left: 0;
  }

}


/* =========================================================
   GALLERY DRESS CODE
   ========================================================= */

.gallery-dresscode {
  margin:
    34px 0
    25px;
}


.gallery-dresscode-label {
  margin-bottom: 17px;

  color: var(--gold);

  font-family: var(--serif);

  font-size: 15px;
  font-weight: 600;

  line-height: 1;

  letter-spacing: .20em;

  text-transform: uppercase;
}


.gallery-dresscode-chips {
  display: flex;

  flex-wrap: wrap;

  gap: 10px;
}


.dresscode-chip {
  position: relative;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 43px;

  padding:
    8px 21px;

  border:
    1px solid
    rgba(190,146,88,.38);

  background:
    linear-gradient(
      180deg,
      rgba(86,17,27,.30),
      rgba(20,7,10,.68)
    );

  clip-path:
    polygon(
      9px 0,
      calc(100% - 9px) 0,
      100% 50%,
      calc(100% - 9px) 100%,
      9px 100%,
      0 50%
    );

  color:
    rgba(236,220,198,.88);

  font-family:
    var(--serif);

  font-size: 13px;
  font-weight: 500;

  line-height: 1;

  letter-spacing: .055em;

  text-transform: uppercase;

  white-space: nowrap;

  box-shadow:
    inset 0 0 18px
    rgba(128,19,33,.14);
}


.dresscode-chip::before,
.dresscode-chip::after {
  content: "◆";

  position: relative;

  color:
    rgba(197,151,91,.66);

  font-size: 6px;
}


.dresscode-chip::before {
  margin-right: 9px;
}


.dresscode-chip::after {
  margin-left: 9px;
}


.gallery-dresscode + p {
  max-width: 620px;

  margin-top: 0;

  color:
    rgba(238,226,213,.64);

  font-size: 18px;

  line-height: 1.65;
}


@media (max-width: 767px) {

  .gallery-dresscode {
    margin:
      27px 0
      23px;
  }


  .gallery-dresscode-label {
    margin-bottom: 14px;

    font-size: 13px;

    text-align: left;
  }


  .gallery-dresscode-chips {
    gap: 8px;
  }


  .dresscode-chip {
    min-height: 39px;

    padding:
      7px 14px;

    font-size: 10px;

    letter-spacing: .045em;
  }


  .dresscode-chip::before {
    margin-right: 6px;
  }


  .dresscode-chip::after {
    margin-left: 6px;
  }


  .gallery-dresscode + p {
    margin-top: 24px;

    font-size: 16px;

    line-height: 1.55;
  }

}


/* Gallery inspiration text */

.gallery-inspiration {
  max-width: 590px;

  color:
    rgba(238,226,213,.66);

  font-size: 18px;

  line-height: 1.65;
}


@media (max-width: 767px) {

  .gallery-inspiration {
    margin-top: 24px;

    font-size: 16px;

    line-height: 1.55;
  }

}


/* =========================================================
   CONTINUOUS PAGE FLOW
   ========================================================= */

/*
 * Стягиваем крупные секции.
 * Они должны читаться как одна история,
 * а не как отдельные экраны.
 */

.story.section {
  position: relative;

  padding-bottom: 72px;
}


.gallery.section {
  position: relative;

  padding-top: 58px;
  padding-bottom: 62px;
}


/*
 * Одна тихая виньетка между story и gallery.
 */

.story.section::after {
  content: "";

  position: absolute;

  left: 50%;
  bottom: 12px;

  width: 170px;
  height: 32px;

  transform:
    translateX(-50%);

  background:
    url("/assets/ui/gothic-divider.svg")
    center / contain
    no-repeat;

  opacity: .28;

  pointer-events: none;
}


/*
 * Убираем ощущение огромной пустоты
 * внутри шапки галереи.
 */

.gallery-head {
  margin-bottom: 34px;
}


.gallery-stage {
  margin-top: 0;
}


/*
 * После слайдера не нужен огромный хвост.
 */

.gallery-controls {
  margin-top: 28px;
}



/* =========================================================
   OUTRO
   ========================================================= */

.akakao-outro {
  position: relative;

  overflow: hidden;

  padding:
    62px 0
    150px;

  border-top:
    1px solid
    rgba(190,146,88,.16);

  background:
    radial-gradient(
      ellipse at 50% 15%,
      rgba(109,10,25,.18),
      transparent 32rem
    ),
    #090506;
}


.akakao-outro::before {
  content: "";

  position: absolute;

  left: 50%;
  top: 0;

  width: 80%;
  height: 1px;

  transform:
    translateX(-50%);

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(193,149,91,.32),
      transparent
    );
}


.akakao-outro-inner {
  position: relative;

  max-width: 850px;

  text-align: center;
}


.akakao-outro-ornament {
  width: 170px;
  height: 34px;

  margin:
    0 auto
    25px;

  background:
    url("/assets/ui/gothic-divider.svg")
    center / contain
    no-repeat;

  opacity: .42;
}


.akakao-outro-date {
  margin-bottom: 20px;

  color: #cda56e;

  font-family:
    var(--sans);

  font-size: 12px;
  font-weight: 700;

  letter-spacing: .24em;

  text-transform: uppercase;
}


.akakao-outro h2 {
  margin: 0;

  color: #f2e8dc;

  font-family:
    var(--serif);

  font-size:
    clamp(
      58px,
      7vw,
      104px
    );

  font-weight: 600;

  line-height: .9;

  letter-spacing: -.045em;
}


.akakao-outro h2 em {
  display: block;

  color: #bb162d;

  font-style: normal;
}


.akakao-outro p {
  max-width: 650px;

  margin:
    31px auto
    0;

  color:
    rgba(239,228,216,.64);

  font-size: 19px;

  line-height: 1.6;
}



/* =========================================================
   MOBILE FLOW
   ========================================================= */

@media (max-width: 767px) {

  /*
   * Секции существенно ближе друг к другу.
   */

  .story.section {
    padding-top: 58px;
    padding-bottom: 50px;
  }


  .gallery.section {
    padding-top: 38px;
    padding-bottom: 44px;
  }


  .story.section::after {
    bottom: 5px;

    width: 128px;
    height: 26px;

    opacity: .28;
  }


  .gallery-head {
    margin-bottom: 25px;
  }


  .gallery-dresscode {
    margin-top: 24px;
    margin-bottom: 19px;
  }


  .gallery-inspiration {
    margin-top: 19px !important;
    margin-bottom: 25px;
  }


  .gallery-controls {
    margin-top: 20px;
  }


  /*
   * Финальное резюме сразу следует за галереей.
   * Большого отдельного "экрана" больше нет.
   */

  .akakao-outro {
    padding:
      46px 0
      calc(
        130px +
        env(safe-area-inset-bottom)
      );
  }


  .akakao-outro-ornament {
    width: 130px;
    height: 27px;

    margin-bottom: 20px;
  }


  .akakao-outro-date {
    margin-bottom: 17px;

    font-size: 10px;
  }


  .akakao-outro h2 {
    font-size:
      clamp(
        48px,
        15vw,
        70px
      );

    line-height: .88;
  }


  .akakao-outro p {
    margin-top: 24px;

    padding:
      0 18px;

    font-size: 16px;

    line-height: 1.55;
  }

}


/* =========================================================
   FINAL COMPACT FLOW
   ========================================================= */


/* Убираем связующие виньетки между секциями */

.story.section::after,
.akakao-outro-ornament {
  display: none !important;
}


/* Убираем визуальную границу перед финалом */

.akakao-outro {
  border-top: 0 !important;
}

.akakao-outro::before {
  display: none !important;
}


/* ---------------------------------------------------------
   DESKTOP / COMMON
   --------------------------------------------------------- */

.story.section {
  padding-top: 60px !important;
  padding-bottom: 46px !important;
}


.story-grid {
  gap: 38px !important;
}


.gallery.section {
  padding-top: 42px !important;
  padding-bottom: 20px !important;
}


.gallery-head {
  margin-bottom: 24px !important;
}


.gallery-stage {
  margin-top: 0 !important;
  padding-bottom: 18px !important;
}


.gallery-controls {
  margin-top: 18px !important;
  margin-bottom: 0 !important;
}


/*
 * Финал теперь не отдельный экран,
 * а короткое резюме сразу под галереей.
 */

.akakao-outro {
  padding:
    34px 0
    118px !important;
}


.akakao-outro-date {
  margin-bottom: 12px !important;

  font-size: 10px !important;
}


.akakao-outro h2 {
  font-size:
    clamp(
      48px,
      5.8vw,
      78px
    ) !important;

  line-height: .88 !important;
}


.akakao-outro p {
  margin-top: 18px !important;

  font-size: 16px !important;

  line-height: 1.5 !important;
}



/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 767px) {

  /*
   * История компактнее.
   */

  .story.section {
    padding-top: 38px !important;
    padding-bottom: 30px !important;
  }


  .story-grid {
    gap: 22px !important;
  }


  /*
   * Dress code и галерея идут почти
   * как продолжение истории.
   */

  .gallery.section {
    padding-top: 28px !important;
    padding-bottom: 8px !important;
  }


  .gallery-head {
    margin-bottom: 18px !important;
  }


  .gallery-dresscode {
    margin-top: 19px !important;
    margin-bottom: 15px !important;
  }


  .gallery-inspiration {
    margin-top: 15px !important;
    margin-bottom: 18px !important;
  }


  /*
   * Особенно убираем пустоту после карточек
   * и счётчика 01 / 23.
   */

  .gallery-stage {
    margin-bottom: 0 !important;
    padding-bottom: 6px !important;
  }


  .gallery-controls {
    margin-top: 14px !important;
    margin-bottom: 0 !important;
  }


  /*
   * Очень короткий финал.
   * При подходе к концу страницы сверху
   * всё ещё должна быть видна галерея.
   */

  .akakao-outro {
    padding:
      24px 0
      calc(
        104px +
        env(safe-area-inset-bottom)
      ) !important;
  }


  .akakao-outro-date {
    margin-bottom: 9px !important;

    font-size: 9px !important;

    letter-spacing: .20em !important;
  }


  .akakao-outro h2 {
    font-size:
      clamp(
        40px,
        12vw,
        54px
      ) !important;

    line-height: .86 !important;
  }


  .akakao-outro p {
    max-width: 340px !important;

    margin-top: 13px !important;

    padding:
      0 12px !important;

    font-size: 14px !important;

    line-height: 1.42 !important;
  }

}

