/* Simple CSS Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
  min-height: 100vh;
  line-height: 1.5;
  text-rendering: optimizeSpeed;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

ul,
ol {
  list-style: none;
}
li {
  padding-bottom: 1rem;
}
@font-face {
  font-family: "Intro Regular";
  src: url("./fonts/intro/intro-webfont.woff2") format("woff2"),
    url("./fonts/intro/intro-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}
/* Объединяем два начертания шрифта Bebas Neue под одним семейством */
@font-face {
  font-family: "Bebas Neue";
  src: url("./fonts/bebas/bebasneue-book-webfont.woff2") format("woff2"),
    url("./fonts/bebas/bebasneue-book-webfont.woff") format("woff");
  font-weight: 400; /* Normal/Book weight */
  font-style: normal;
}
@font-face {
  font-family: "Bebas Neue";
  src: url("./fonts/bebas/bebasneue-bold-webfont.woff2") format("woff2"),
    url("./fonts/bebas/bebasneue-bold-webfont.woff") format("woff");
  font-weight: 700; /* Bold weight */
  font-style: normal;
}

:root {
  --color-primary: 30, 64, 85;
}

body {
  font-size: 16px;
  font-family: Arial, Helvetica, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Bebas Neue";
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgb(var(--color-primary));
  line-height: 1.2;
  margin-bottom: 1em;
}
.mb0{margin-bottom: 0;}

.container {
  padding: 0 1rem;
}
@media (min-width: 768px) {
  .container {
    max-width: 1108px;
    margin: 0 auto;
  }
}

p {
  margin-bottom: 1rem;
}

a.button {
  --color: var(--color-primary);
  display: inline-block;
  text-decoration: none;
  color: rgb(var(--color));
  border: 2px solid rgb(var(--color));
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-family: "Bebas Neue";
  font-weight: 700;
  letter-spacing: 0.06em;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease, color 0.3s ease;
}

a.button:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: rgba(var(--color), 0.8);
}

section:not(#hero):not(#buy) {
  padding: 2rem 0;
}
@media (min-width: 768px) {
  section:not(#hero):not(#buy) {
    padding: 8rem 0;
  }
}
.bg-color {
  background-color: rgba(var(--color-primary), 0.1);
}
blockquote {
  font-family: "Bebas Neue";
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: 0.05em;
  padding: 0 0.5rem;
  color: rgba(var(--color-primary), 0.9);
}
blockquote span {
  font-weight: 700;
  color: rgb(var(--color-primary));
}
@media (min-width: 768px) {
  blockquote {
    font-size: 4rem;
  }
}

#hero {
  font-family: "Intro Regular";
  color: rgb(var(--color-primary));
  position: relative;
}
/* #hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, white 0%, rgba(255, 255, 255, 0) 16%);
} */
#hero .container {
  position: absolute;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
}
#hero .time-place {
  font-size: 2em;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
}
#hero .time-city {
  display: flex;
  line-height: 1;
}
#hero .time-city .city {
  margin-left: 0.5rem;
  padding-left: 0.5rem;
  border-left: 2px solid rgb(var(--color-primary));
}
#hero .place {
  margin-top: 0.5rem;
  font-family: "Bebas Neue";
  font-weight: 400;
  font-size: 0.8em;
}
#hero h1 {
  text-align: center;
  margin-top: 2.2rem;
  font-size: 2rem;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}
.title-box {
  position: relative;
}
.title-box::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Градиент снизу (белый) вверх (прозрачный) */
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0) 100%
  );
}
#hero h1 span {
  font-size: 0.8em;
  color: #fff;
  text-shadow: 0px 2px 8px rgba(30, 64, 85, 0.75);
}
#hero h1 span:last-child {
  font-size: 0.5em;
}
@media (min-width: 768px) {
  #hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60%;
    margin: 0 0 0 auto;
  }
  #hero .time-place {
    font-size: 3rem;
  }
  #hero h1 {
    font-size: 5rem;
    font-family: "Intro Regular";
  }
  .title-box::after {
    background: transparent;
  }
}
#buy {
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  box-shadow: 0px 10px 16px 0px rgba(var(--color-primary), 0.4);
  background-color: rgb(var(--color-primary));
  font-family: "Bebas Neue";
  color: #fff;
}
#buy .container {
  padding: 2rem 2rem 0.5rem 2rem;
}
#buy .buy-info {
  text-align: right;
  margin-right: 1rem;
  line-height: 1.2;
}
#buy .button {
  flex-shrink: 0;
  color: #fff;
  border-color: #fff;
}
#buy .line {
  transform: translateY(-2px);
}
.inner-buy {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
}
.line {
  width: 100%;
  height: 4px;
  /* Для создания обводки используются две линии SVG:
     1. Нижняя: темно-серая (#333), толщиной 4px (обводка).
     2. Верхняя: белая, толщиной 2px (заливка). Разница в 2px создает обводку в 1px. */
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="4"><line x1="0" y1="2" x2="100%" y2="2" stroke="%23dddddd" stroke-width="4" stroke-dasharray="10,10" stroke-linecap="round"/><line x1="0" y1="2" x2="100%" y2="2" stroke="white" stroke-width="2" stroke-dasharray="10,10" stroke-linecap="round"/></svg>');
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.contact {
  letter-spacing: 0.05rem;
  text-align: center;
  margin-top: 2rem;
}
.contact a{
  color: #fff;
  text-decoration: none;
}

.arrow-box {
  display: flex;
  justify-content: center;
  margin-top: 0.8rem;
}
.arrow-box img {
  width: 60px;
}

@media (min-width: 768px) {
  #buy .container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #buy .inner-buy {
    font-size: 2rem;
  }
  #buy .contact {
    margin-top: 1rem;
    font-size: 1.4rem;
  }
}

.blockquote-author {
  padding: 0 0.5rem;
  margin-top: 1rem;
  line-height: 1.2;
}
.blockquote-author h4 {
  font-size: 1.2rem;
}
.author-info {
  font-size: 0.8rem;
}

.book {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.book > div {
  font-family: "Bebas Neue";
  width: 80%;
  text-align: center;
}
.book-info {
  font-size: 2rem;
  line-height: 1;
}

.shorts-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 16px;
  padding-bottom: 10px;
  /* скрываем скроллбар для вебкитов */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}
.shorts-scroll::-webkit-scrollbar {
  display: none;
}
.shorts-item {
  flex-shrink: 0;
  width: 315px;
  height: 560px;
  scroll-snap-align: start;
  position: relative;
  background-color: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shorts-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  transform: translate(-50%, -50%);
  background: url("../assets/images/play-button.svg") no-repeat center center;
  background-size: contain;
  opacity: 0.85;
  pointer-events: none;
}
iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
  position: absolute;
  top: 0;
  left: 0;
}

#vopros {
  background-image: url("./images/devushka-s-babochkoy.png");
  background-repeat: no-repeat;
  background-size: auto 80%;
  background-position: 5% bottom;
  font-family: "Intro Regular";
  color: rgb(var(--color-primary));
}
.inner-vopros {
  width: 70%;
  margin-left: auto;
}

#otvet {
  background-image: url("./images/devochka-s-zontom-w.png");
  background-repeat: no-repeat;
  background-size: auto 80%;
  background-position: 95% bottom;
  font-family: "Intro Regular";
  color: rgb(var(--color-primary));
}

.inner-otvet {
  width: 70%;
}
#gallery-book img{
  border-radius: 0.5rem;
  width: 400px;
}
#gallery-book .author-text {
  display: none;
}

.bg-color li:nth-child(2n-1)  {
  color: rgba(var(--color-primary), 0.6);
}

@media (min-width: 768px) {
  #gallery-book .author-text {
    display: block;
    padding: 2rem 0 0 2rem;
  }
  #gallery-book .container {
    display: flex;
  }
  #gallery-book .book {
    flex-shrink: 0;
  }

  #about-author,
  .arrow-box {
    display: none;
  }

  .bg-color {
    font-size: 1.5rem;
  }
}

.price-boxes{
  display: grid;
  grid-template-columns: repeat(2, calc(50% - 10px));
  grid-template-rows: repeat(2, calc(50% - 10px));
  gap: 20px;
  width: 100%;
}
.price-box{
  font-family: "Bebas Neue";
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  background-color: rgb(var(--color-primary));
  border-radius: 10px;
  line-height: 1.2;
  color: #fff;
  position: relative;
}
.price-box::before, .price-box::after{
  content:"";
  position: absolute;
  top: 30%;
  left: -16px;
  width: 32px;
  height: 32px;
  background-color: #fff;
  border-radius: 16px;
}
.price-box::after{
  right: -16px;
  left: auto;
}
.price-box .title{
  font-size: 3rem;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  padding-bottom: 1.1rem;
  border-bottom: 1px dashed #fff;
  width: 100%;
}
.price-box .price{
  padding: 2rem 0;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  font-size: 6rem;
  margin-top: auto;
  width: 100%;
  line-height: 1;
  height: 50%;
}
.price-box .price span{
  font-size: 0.3em;
}
.price-box.--last{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  background: transparent;
  color: rgb(var(--color-primary));
  font-size: 1.2rem;
  border: 1px dashed rgb(var(--color-primary));
}
.price-box.--last::before, .price-box.--last::after{
  background: transparent;
}
.price-box.--last a{
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 0.3rem 0;
}

@media (min-width: 768px) {
  .inner-places {
    display: flex;
  }
  .price-box{font-family: "Intro Regular";}
  .price-box .price{font-size: 6rem;}
  .places-image-box{width:50%;flex-shrink: 0;}
  .price-box.--last{font-size: 1.5rem;}
  .price-boxes{padding-left: 20px;}
}


#map img{
  border-radius: 16px;
  border: 10px solid rgba(var(--color-primary), 0.5);
}

#map .end{
  margin-top: 2rem;
  margin-bottom: 1rem;
  justify-content: center;
  font-family: "Intro Regular";
  color: rgb(var(--color-primary));
  font-size: 2rem;
  line-height: 1.2;
  text-align: center;
}
#map .end span {color: rgba(var(--color-primary), 0.8)}
#map .button-box{
  display: flex;
  justify-content: center;
  font-size: 2rem;
  
}
#map .button-box .button{
  border-width: 4px;
}
@media (min-width: 768px) {
  #map .end{
    font-size: 4rem;
    text-align: left;
  }
}