/* ==========================================================================
   Artisso360 – arkusz stylów
   ========================================================================== */

/* ---------- Fonty (hostowane lokalnie, bez zapytań do Google) ---------- */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/poppins-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/poppins-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Zmienne ---------- */
:root {
  --orange: #fdb467;
  --peach: #ffcc99;
  --dark: #282624;
  --darker: #1e1d1c;
  --beige: #efe9e4;
  --taupe: #918c8a;
  --black: #000;
  --white: #fff;
  --text-light: rgba(255, 255, 255, 0.7);
  --text-gray: #666;
  --heading-dark: #333;
  --font: "Poppins", Helvetica, Arial, sans-serif;
  --row: min(1080px, 80%);
  --col-pad-y: clamp(56px, 10vw, 160px);
  --col-pad-x: clamp(20px, 5vw, 80px);
  --band: 27px; /* wysokość brązowego paska między sekcjami */
}

/* ---------- Reset / baza ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--dark);
  color: var(--text-gray);
  font-family: var(--font);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
p {
  margin: 0;
}
p + p {
  margin-top: 1em;
}
a {
  color: inherit;
}
button,
input,
textarea {
  font: inherit;
}
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 8px 16px;
  background: var(--orange);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}

/* ---------- Typografia sekcji ---------- */
.heading {
  color: var(--white);
  font-weight: 600;
  font-size: 36px;
  line-height: 1.2;
  text-align: center;
}
.heading--dark {
  color: var(--black);
}
.heading--gray {
  color: var(--heading-dark);
}
/* pomarańczowa kreska pod nagłówkiem */
.heading::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  margin: 20px auto 0;
  background: var(--orange);
}
.text {
  max-width: 570px;
  margin: 25px auto 0;
  color: var(--text-light);
  text-align: center;
}
.text--dark {
  color: var(--black);
}
.text--white {
  color: var(--white);
}
.text--gray {
  color: var(--text-gray);
}
.text--muted {
  color: #bcbcbc;
}
.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- Przyciski ---------- */
.btn {
  display: inline-block;
  position: relative;
  padding: 4px 14px;
  border: 8px solid var(--orange);
  background: var(--orange);
  color: var(--white);
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: padding 0.3s ease;
}
/* strzałka pojawiająca się po najechaniu (jak w poprzedniej wersji) */
.btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  opacity: 0;
  transform: translateY(-50%) rotate(45deg);
  transition: opacity 0.3s ease, right 0.3s ease;
}
.btn:hover {
  padding-right: 32px;
  padding-left: 10px;
}
.btn:hover::after {
  right: 14px;
  opacity: 1;
}
.btn-wrap {
  margin-top: 30px;
  text-align: center;
}

/* ==========================================================================
   STRONA GŁÓWNA
   ========================================================================== */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  border-bottom: var(--band) solid var(--dark); /* brązowy pasek pod zdjęciem powitalnym */
  padding: calc(5vw + 27px) 0 calc(10vw + 27px);
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(120deg, #000 0%, rgba(0, 0, 0, 0) 54%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 400px;
  margin: 0 0 0 120px;
}
.hero__logo {
  width: 107px;
  height: 107px;
  margin-bottom: 30px;
}
.hero__title {
  display: flex;
  flex-direction: column-reverse; /* dopisek nad nazwą, a w kodzie najpierw nazwa */
  color: var(--white);
  font-weight: 500;
  font-size: 60px;
  line-height: 1.2;
  text-shadow: 0.3em 0.3em 0.3em rgba(0, 0, 0, 0.4);
}
.hero__eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--orange);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.hero__lead {
  margin-top: 40px;
  color: var(--white);
  text-shadow: 0.3em 0.3em 0.3em rgba(0, 0, 0, 0.4);
}

/* ---------- Dwie kolumny 50/50 ---------- */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.duo__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--col-pad-y) var(--col-pad-x);
}
.duo__col > .heading {
  max-width: 550px;
}
.duo__col > .btn-wrap {
  margin-top: auto;
  padding-top: 30px;
}
.duo--intro .duo__col {
  min-height: 760px;
}
.duo--intro .heading {
  line-height: 1.48;
}

.bg-beige { background: var(--beige); }
.bg-taupe { background: var(--taupe); }
.bg-dark { background: var(--dark); }

/* ---------- Pasy ze zdjęciem 2/3 + tekstem 1/3 ---------- */
.showcase {
  display: grid;
  gap: var(--band);
  padding: var(--band) 0;
  background: var(--dark);
}
.feature {
  display: grid;
  grid-template-columns: 2fr 1fr;
  background: var(--dark);
}
.feature--reverse {
  grid-template-columns: 1fr 2fr;
}
.feature__media {
  position: relative;
  min-height: 300px;
  background: #262626;
}
.feature__media > .cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature__media > .cover--about {
  object-position: left 62%;
}
.feature__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--col-pad-y) var(--col-pad-x);
}
.feature__text--top {
  justify-content: flex-start;
  padding-top: clamp(40px, 5vw, 80px);
  padding-bottom: 40px;
}
.feature__text .text {
  font-size: 18px;
}
.feature--tall {
  min-height: 680px;
}
.feature--about {
  min-height: 630px;
}
/* brązowy pasek między sekcjami – ta sama wysokość wszędzie (--band) */
.features {
  display: grid;
  gap: var(--band);
  padding-bottom: var(--band); /* pasek nad formularzem kontaktowym */
  background: var(--dark);
}

/* ---------- Cennik ---------- */
.price-list {
  max-width: 570px;
  margin: 25px auto 0;
  padding: 0;
  list-style: none;
  color: var(--black);
  text-align: center;
}
.price-list li + li {
  margin-top: 1em;
}
.price-list strong {
  font-weight: 600;
  white-space: nowrap;
}
.price-note {
  max-width: 570px;
  margin: 2em auto 0;
  color: var(--black);
  font-size: 16px;
  text-align: center;
}

/* ---------- Formularz kontaktowy ---------- */
.contact {
  background: var(--taupe);
  padding: 108px 0 130px;
}
.contact__inner {
  width: var(--row);
  margin: 0 auto;
}
.contact__intro {
  max-width: 550px;
  margin: 25px auto 30px;
  color: rgba(255, 255, 255, 0.68);
  text-align: center;
}
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 33px 3%;
}
.form__field--full {
  grid-column: 1 / -1;
}
.form input[type="text"],
.form input[type="email"],
.form textarea {
  display: block;
  width: 100%;
  padding: 16px;
  border: 0;
  border-radius: 0;
  background: #eee;
  color: #4d4d4d;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
}
.form textarea {
  min-height: 150px;
  resize: vertical;
}
.form ::placeholder {
  color: #8a8a8a;
  opacity: 1;
}
.form__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form__bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: -18px;
}
.form__note {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.6;
}
.form__note a {
  color: var(--white);
}
.form__submit {
  margin-left: auto;
  padding: 6px 20px;
  border: 2px solid var(--orange);
  background: transparent;
  color: var(--orange);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.7;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.form__submit:hover {
  background: var(--orange);
  color: var(--white);
}
.form__submit[disabled] {
  opacity: 0.6;
  cursor: wait;
}
.form-status {
  display: none;
  grid-column: 1 / -1;
  padding: 14px 18px;
  color: var(--white);
  font-size: 16px;
  text-align: center;
}
.form-status--ok {
  background: rgba(40, 38, 36, 0.85);
  border-left: 4px solid var(--orange);
}
.form-status--error {
  background: rgba(120, 30, 20, 0.85);
}
.form-status.is-visible,
.form-status:target {
  display: block;
}

/* ---------- Okno „Jak to wygląda?” ---------- */
.modal {
  width: min(1140px, calc(100% - 32px));
  max-height: calc(100% - 64px);
  padding: 0;
  border: 0;
  background: var(--beige);
  color: var(--text-gray);
  overflow: auto;
}
.modal::backdrop {
  background: rgba(0, 0, 0, 0.7);
}
.modal[open] {
  animation: modal-in 0.3s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
.modal__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  min-height: 560px;
}
.modal__media {
  position: relative;
  min-height: 260px;
}
.modal__media > .cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 8vw, 150px) clamp(20px, 5vw, 60px);
}
.modal__body .text {
  max-width: 77%;
}
.modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.85);
  color: var(--dark);
  font-size: 28px;
  line-height: 40px;
  cursor: pointer;
}
.modal__close:hover {
  background: var(--orange);
  color: var(--white);
}

/* ---------- Stopka ---------- */
.footer {
  padding: 68px 0 40px;
  background: var(--dark);
  color: var(--text-light);
  font-size: 16px;
  text-align: center;
}
.footer__contact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 5.5%;
  width: var(--row);
  margin: 0 auto;
  font-style: normal;
}
.footer__contact p + p {
  margin-top: 0;
}
.footer__label {
  margin-bottom: 10px;
  color: var(--peach);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.4;
}
.footer__contact a {
  text-decoration: none;
}
.footer__contact a:hover {
  color: var(--orange);
}
.footer__nav {
  width: var(--row);
  margin: 70px auto 0;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.footer__nav a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}
.footer__nav a:hover,
.footer__nav a[aria-current="page"] {
  color: var(--orange);
}
.footer__copy {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
}

/* ==========================================================================
   PODSTRONY
   ========================================================================== */
.page {
  background: var(--dark);
}
.page-section {
  padding: clamp(48px, 6vw, 96px) 0 clamp(64px, 10vw, 144px);
  background: linear-gradient(180deg, #000 54%, var(--darker) 100%);
}
.page-section--black {
  background: var(--black);
}
.container {
  width: var(--row);
  margin: 0 auto;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 0;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}
.breadcrumbs li + li::before {
  content: "›";
  margin: 0 10px;
}
.breadcrumbs a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--orange);
}
.page-intro {
  max-width: 720px;
  margin: 25px auto 0;
  color: var(--text-light);
  font-size: 17px;
  text-align: center;
}
.container > .page-content {
  margin-top: clamp(40px, 5vw, 64px);
}
.page-back {
  margin-top: clamp(40px, 5vw, 60px);
  text-align: center;
}

/* ---------- Wirtualne wycieczki ---------- */
.tours {
  margin: 0;
  padding: 0;
  list-style: none;
}
.tour {
  display: grid;
  grid-template-columns: 29.67% 1fr;
  gap: 5.5%;
  align-items: start;
  padding: 27px 0;
}
.tour__img {
  display: block;
  overflow: hidden;
  border: 5px solid #6b6b6b;
  border-radius: 5px;
}
.tour__img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.tour__img:hover img {
  transform: scale(1.04);
}
.tour__body {
  text-align: center;
}
.tour__body::before {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  margin: 10px auto 0;
  background: var(--orange);
}
.tour__title {
  max-width: 570px;
  margin: 22px auto 0;
  color: var(--text-light);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.8;
}
.tour .btn-wrap {
  margin-top: 20px;
}

/* ---------- Suwak przed / po ---------- */
.ba-list {
  display: grid;
  gap: 30px;
}
.ba {
  --pos: 50%;
  position: relative;
  overflow: hidden;
  background: #262626;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.ba img {
  width: 100%;
  pointer-events: none;
  -webkit-user-drag: none;
}
.ba__after {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.ba__before {
  position: relative;
  z-index: 1;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.ba__handle {
  position: absolute;
  top: 50%;
  left: var(--pos);
  z-index: 3;
  width: 38px;
  height: 38px;
  margin: -22px 0 0 -22px;
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(51, 51, 51, 0.5);
  cursor: ew-resize;
}
.ba__handle::before,
.ba__handle::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 3px;
  height: 9999px;
  background: var(--white);
  box-shadow: 0 0 12px rgba(51, 51, 51, 0.5);
  transform: translateX(-50%);
}
.ba__handle::before {
  bottom: 100%;
  margin-bottom: 3px;
}
.ba__handle::after {
  top: 100%;
  margin-top: 3px;
}
.ba__arrow {
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  margin-top: -6px;
  border: 6px solid transparent;
}
.ba__arrow--left {
  left: 50%;
  margin-left: -17px;
  border-right-color: var(--white);
}
.ba__arrow--right {
  right: 50%;
  margin-right: -17px;
  border-left-color: var(--white);
}
.ba-list--wide .ba {
  max-width: 1080px;
  margin: 0 auto;
}

/* ---------- Galeria ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 3%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gallery a {
  position: relative;
  display: block;
  overflow: hidden;
}
.gallery img {
  width: 100%;
  aspect-ratio: 400 / 284;
  object-fit: cover;
}
.gallery a::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fdb467' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E")
      center / 34px no-repeat,
    rgba(255, 255, 255, 0.9);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery a:hover::after,
.gallery a:focus-visible::after {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.92);
  color: var(--white);
  overflow: hidden;
}
.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.92);
}
.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin: 0;
  padding: 56px 64px 24px;
}
.lightbox__img {
  max-width: 100%;
  max-height: calc(100% - 40px);
  width: auto;
  height: auto;
  object-fit: contain;
  touch-action: pan-y pinch-zoom;
}
.lightbox__caption {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  text-align: center;
}
.lightbox__btn {
  position: absolute;
  z-index: 2;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 30px;
  line-height: 48px;
  cursor: pointer;
}
.lightbox__btn:hover {
  background: var(--orange);
}
.lightbox__close {
  top: 8px;
  right: 8px;
}
.lightbox__prev,
.lightbox__next {
  top: 50%;
  margin-top: -24px;
}
.lightbox__prev {
  left: 8px;
}
.lightbox__next {
  right: 8px;
}

/* ---------- Strona 404 ---------- */
.notfound {
  display: grid;
  place-items: center;
  min-height: 70vh;
  padding: 80px 0;
  text-align: center;
}

/* ==========================================================================
   Responsywność
   ========================================================================== */
@media (max-width: 1100px) {
  .hero__inner {
    margin-left: 8%;
  }
}

@media (max-width: 980px) {
  .duo,
  .feature,
  .feature--reverse {
    grid-template-columns: 1fr;
  }
  .duo--intro .duo__col {
    min-height: 0;
  }
  .feature--tall {
    min-height: 0;
  }
  /* zdjęcie zawsze nad tekstem */
  .feature--reverse .feature__media {
    order: -1;
  }
  .feature__media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
  .feature__media--ba {
    aspect-ratio: auto;
  }
  .feature__text--top {
    padding-top: var(--col-pad-y);
  }
  .modal__grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .modal__body .text {
    max-width: none;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 4%;
  }
}

@media (max-width: 767px) {
  :root {
    --row: calc(100% - 40px);
  }
  body {
    font-size: 16px;
  }
  .hero {
    padding: 56px 0 72px;
  }
  .hero__inner {
    max-width: none;
    margin: 0 20px;
  }
  .hero::before {
    background: linear-gradient(120deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.15) 80%);
  }
  .hero__logo {
    width: 88px;
    height: 88px;
  }
  .hero__title {
    font-size: 40px;
  }
  .hero__lead {
    margin-top: 24px;
  }
  .heading {
    font-size: 28px;
  }
  .text,
  .feature__text .text {
    font-size: 16px;
  }
  .form {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .form__bottom {
    margin-top: 0;
  }
  .contact {
    padding: 72px 0 80px;
  }
  .footer__contact {
    grid-template-columns: 1fr;
  }
  .footer__label {
    font-size: 20px;
    margin-bottom: 4px;
  }
  .tour {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .tour__body::before {
    margin-top: 24px;
  }
  .lightbox__figure {
    padding: 56px 8px 16px;
  }
  .lightbox__prev,
  .lightbox__next {
    top: auto;
    bottom: 12px;
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
