@font-face {
  font-family: "DaxlinePro";
  src: url("./frontpage-assets/fonts/daxlinepro_regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "DaxlinePro";
  src: url("./frontpage-assets/fonts/daxlinepro_bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
}

html,
body {
  height: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #ffffff;
  font-family: "DaxlinePro", Arial, sans-serif;
}

strong,
b {
  font-weight: 700;
}

a {
  display: inline-block;
  cursor: pointer !important;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto; 
  padding: 20px 32px 10px 32px;
}

.title {
  margin: 18px 0 15px 0;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.1;
}

.intro {
  margin: 0 0 8px;
  max-width: 400px;
  color: #ea2599; 
  font-size: 16px;
  line-height: 1.35;
}

.email {
  display: inline-block;
  margin-top: 5px;
  color: #1f6fd6;
  text-decoration: underline;
  font-size: 16px;
  cursor: pointer !important;
}

.divider {
  border: 0;
  border-top: 1px solid #bdbdbd;
  margin: 35px 0 25px;
}

.section {
  padding: 15px 0 0px;
}

.section-title {
  margin: 0 0 12px;
  font-size: 23px;
  font-weight: 400;
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  column-gap: 40px;
  align-items: start;
}

.section-grid--wide {
  grid-template-columns: 1fr;
}

.section-grid--wide > div {
  min-width: 0;
}

.section-text {
  margin: 0 0 0 35px;
  font-size: 16px;
  line-height: 1.6;
  color: #111;
}

.section-text + .section-text {
  margin-top: 8px;
}

/* КАРУСЕЛЬ КАРТИНЫ И КЕРАМИКА */

.paintings-carousel {
  margin: 18px 0 0 35px;
  width: calc(100% - 35px);
  max-width: 100%;
  min-width: 0;
  position: relative;
}

.paintings-carousel + .paintings-carousel {
  margin-top: 8px;
}

/* КАРУСЕЛЬ КОМИКС */

.comics-carousel {
  margin-left: 30px;
  width: calc(100% - 30px);
}

/* КАРУСЕЛЬМЕБЕЛЬ И ЛАМПЫ */

.furniture-note {
  margin-top: 18px;
}

.carousel-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0;
  scroll-snap-type: none;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  max-width: 100%;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-arrow img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.45;
  display: block;
  pointer-events: none;
}

.carousel-arrow-left {
  left: -48px;
}

.carousel-arrow-left img {
  transform: scaleX(-1);
}

.carousel-arrow-right {
  right: -48px;
}

.carousel-arrow.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track.is-dragging {
  cursor: grabbing;
}

.painting-card {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: zoom-in;
  flex: 0 0 auto;
  display: block;
}

.painting-card img {
  display: block;
  height: 220px;
  width: auto;
  max-width: none;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

/* ДВА ПРИЛОЖЕНИЯ */

.apps-grid {
  margin: 18px 0 0 0px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.app-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: start;
}

.app-phone {
  width: 180px;
  height: auto;
  display: block;
}

.app-copy {
  padding-top: 2px;
}

.app-copy > img {
  width: 55px;
  height: auto;
  display: block;
  margin-bottom: 25px;
}

.app-description {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  color: #111;
}

.app-platforms {
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 1.25;
  color: #111;
}

.app-platform-link {
  cursor: default;
}

/* OBAMA-WEATHER */

.obama-weather-gallery {
  margin: 18px 0 0 0px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.obama-weather-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
}

/* ФИНАЛ */

.end-image-wrap {
  margin: 40px 0 0 20px;
  text-align: left;
}

.end-image-wrap img {
  display: inline-block;
  width: 160px;
  max-width: 100%;

}

/* LIGHTBOX */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-image {
  max-width: min(96vw, 1500px);
  max-height: 92vh;
  object-fit: contain;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  z-index: 1001;
}

.lightbox-nav img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.92;
  pointer-events: none;
}

.lightbox-nav-left {
  left: 18px;
}

.lightbox-nav-left img {
  transform: scaleX(-1);
}

.lightbox-nav-right {
  right: 18px;
}

.lightbox-nav.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 18px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
}

/* АККОРДЕОН */

.image-placeholder {
  width: 200px;
  height: 115px; /* резерв под иллюстрацию */
}

.tourism-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tourism-caret {
  font-size: 14px;
  margin-bottom: 4px;
  line-height: 1;
  display: inline-block;
  transform: translateY(2px);
  transition: transform 0.2s ease;
}

.accordion-trigger {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.accordion-content {
  display: block;
}

.accordion-content.is-collapsed {
  display: none;
}

.accordion-trigger[aria-expanded="false"] .tourism-caret {
  transform: translateY(2px) rotate(-90deg); /* 90° против часовой стрелки */
}

/* ТУРИЗМ */
.tourism-lead {
  margin: 0 0 18px;
  font-size: inherit;
  line-height: 1.6;
  color: #ea2599;
  padding-left: 35px;
}

.tourism-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 0px;
  row-gap: 0;
  padding-left: 35px;
}

.tourism-col {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.tourism-item {
  margin: 0;
  font-size: inherit; /* делаем как основной текст на странице */
  line-height: 1.1;
  color: #111;
}

.tourism-year {
  color: #111;
}

.link {
  color: #111;
  text-decoration: underline;
}

.link:hover,
.email:hover {
  cursor: pointer !important;
}

.tourism-item a {
  white-space: nowrap; /* не переносим текст ссылки на новую строку */
}

/* АДАПТИВ */

@media (max-width: 860px) {
  .carousel-track {
    gap: 6px;
  }

  .apps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .app-description,
  .app-platforms {
    font-size: 16px;
  }
}

@media (max-width: 700px) {
  .paintings-carousel {
    margin-left: 0;
  }

  .carousel-arrow {
    width: 30px;
    height: 30px;
  }

  .carousel-arrow-left {
    left: -34px;
  }

  .carousel-arrow-right {
    right: -34px;
  }

  .apps-grid {
    margin-left: 0;
  }

  .app-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .app-phone {
    width: min(200px, 100%);
  }

  .app-description,
  .app-platforms {
    font-size: 16px;
  }

  .obama-weather-gallery {
    margin-left: 0;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .app-platforms {
    margin-top: 10px;
  }

  .lightbox-nav {
    width: 38px;
    height: 38px;
  }

  .lightbox-nav-left {
    left: 8px;
  }

  .lightbox-nav-right {
    right: 8px;
  }
}
