:root {
  --page-bg: #f9f9f9;
  --text: #1f1f1f;
  --card-surface: #e8e8e8;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page-bg);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.18;
}

a {
  color: inherit;
}

.page-shell {
  width: min(100% - 60px, 1160px);
  margin: 0 auto;
  padding: 18px 0 34px;
}

.info-column {
  display: contents;
}

.intro,
.services,
.contacts,
.visit,
.sizes,
.gallery {
  min-width: 0;
}

.brand-logo {
  display: block;
  width: 194px;
  height: auto;
  margin: 0 auto 15px;
}

.intro__text {
  margin: 0;
  font-size: 24px;
  line-height: 1.14;
}

.intro__location {
  display: inline-block;
  margin-top: 3px;
  font-size: 0.84em;
  font-weight: 400;
}

h1,
h2 {
  margin: 0 0 20px;
  font-size: 23px;
  line-height: 1.15;
}

.services {
  margin-top: 25px;
}

.services h2 {
  margin-bottom: 22px;
}

.services p {
  margin: 22px 0 0;
}

.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contacts {
  margin-top: 26px;
}

.contacts h2 {
  margin-bottom: 15px;
}

.contact-list {
  display: grid;
  gap: 8px;
  font-style: normal;
}

.contact-list a {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.contact-list a:hover span,
.contact-list a:focus-visible span {
  text-decoration: underline;
}

.contact-list img {
  width: 23px;
  height: 23px;
  object-fit: contain;
  flex: 0 0 auto;
}

.visit {
  margin-top: 24px;
}

.address-card {
  display: flex;
  min-height: 92px;
  align-items: center;
  gap: 19px;
  padding: 13px 23px;
  background: var(--card-surface);
  border-radius: var(--radius);
  text-decoration: none;
}

.address-card:hover,
.address-card:focus-visible {
  background: #dfdfdf;
}

.address-card img {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

.map-shell {
  position: relative;
  width: 100%;
  height: 192px;
  margin-top: 16px;
  overflow: hidden;
  background: var(--card-surface);
  border-radius: var(--radius);
}

.map-embed {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-consent {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 18px;
  text-align: center;
}

.map-consent[hidden] {
  display: none;
}

.map-consent img {
  width: 28px;
  height: 28px;
}

.map-consent p {
  max-width: 420px;
  margin: 0;
  font-size: 14px;
}

.map-consent a {
  font-size: 12px;
}

.button {
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.button--primary {
  color: #fff;
  background: #1f1f1f;
}

.button--primary:hover,
.button--primary:focus-visible {
  background: #3a3a3a;
}

.button--secondary {
  color: var(--text);
  background: #fff;
  border-color: #bdbdbd;
}

.button--secondary:hover,
.button--secondary:focus-visible {
  background: #f0f0f0;
}

.schedule {
  margin: 19px 0 0;
}

.route-label {
  margin: 24px 0 7px;
}

.route-video-frame {
  width: min(100%, 300px);
  margin: 0 auto;
  padding: 7px;
  overflow: hidden;
  background: #171717;
  border-radius: calc(var(--radius) + 3px);
  box-shadow: 0 12px 30px rgb(0 0 0 / 16%);
}

.route-video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #000;
  border-radius: calc(var(--radius) - 3px);
}

.sizes {
  margin-top: 27px;
}

.sizes h2 {
  margin-bottom: 20px;
}

.gallery {
  margin-top: 27px;
}

.gallery h2 {
  margin-bottom: 16px;
}

.gallery__items {
  display: grid;
  gap: 16px;
}

.gallery-image {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e8e8e8;
  box-shadow: 0 5px 16px rgb(0 0 0 / 8%);
  cursor: pointer;
}

.gallery-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0%);
  transition: background 160ms ease;
}

.gallery-image:hover::after,
.gallery-image:focus-visible::after {
  background: rgb(0 0 0 / 8%);
}

.gallery-image:focus-visible {
  outline: 3px solid #926d45;
  outline-offset: 3px;
}

.gallery-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.equipment {
  margin-top: 28px;
}

.equipment h2 {
  margin-bottom: 16px;
}

.equipment-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  box-shadow: 0 5px 16px rgb(0 0 0 / 10%);
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: clamp(16px, 4vw, 54px);
  overflow: hidden;
  background: rgb(0 0 0 / 92%);
  border: 0;
}

.lightbox::backdrop {
  background: transparent;
}

.lightbox__close-area {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: zoom-out;
}

.lightbox__close-area::before {
  content: "×";
  position: fixed;
  z-index: 1;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: rgb(255 255 255 / 14%);
  border-radius: 50%;
  font: 32px/1 Arial, Helvetica, sans-serif;
}

.lightbox__close-area:hover::before {
  background: rgb(255 255 255 / 24%);
}

.lightbox__close-area:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

.lightbox__image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 18px 60px rgb(0 0 0 / 45%);
}

body:has(.lightbox[open]) {
  overflow: hidden;
}

.site-footer {
  padding: 28px 0 36px;
  color: #555;
  border-top: 1px solid #dedede;
}

.site-footer__inner {
  width: min(100% - 60px, 1160px);
  margin: 0 auto;
}

.site-footer p {
  margin: 0;
}

.site-footer__note {
  margin-top: 7px !important;
  font-size: 14px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: 16px;
  font-size: 14px;
}

.legal-links button {
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.privacy-banner {
  position: fixed;
  z-index: 20;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 18px;
  color: #202020;
  background: rgb(255 255 255 / 97%);
  border: 1px solid #d5d5d5;
  border-radius: 16px;
  box-shadow: 0 18px 55px rgb(0 0 0 / 22%);
}

.privacy-banner[hidden] {
  display: none;
}

.privacy-banner__content {
  width: min(100%, 1050px);
  margin: 0 auto;
}

.privacy-banner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
}

.privacy-banner__actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  margin-top: 14px;
}

.legal-page {
  line-height: 1.5;
}

.legal-header {
  display: flex;
  width: min(100% - 40px, 900px);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  padding: 22px 0;
  border-bottom: 1px solid #dedede;
}

.legal-header__logo img {
  display: block;
  width: 120px;
  height: auto;
}

.legal-header__back {
  font-size: 14px;
}

.legal-content {
  width: min(100% - 40px, 760px);
  margin: 0 auto;
  padding: 42px 0 72px;
}

.legal-content h1 {
  margin-bottom: 10px;
  font-size: clamp(28px, 5vw, 42px);
}

.legal-content h2 {
  margin-top: 38px;
  margin-bottom: 14px;
}

.legal-content h3 {
  margin: 24px 0 10px;
  font-size: 19px;
}

.legal-content p,
.legal-content ul,
.legal-content ol,
.legal-content dl {
  margin-top: 0;
  margin-bottom: 16px;
}

.legal-content li + li {
  margin-top: 8px;
}

.legal-updated {
  color: #666;
  font-size: 14px;
}

.legal-summary,
.consent-settings {
  margin: 24px 0;
  padding: 18px;
  border-radius: 14px;
}

.legal-summary {
  background: #ededed;
}

.consent-settings {
  background: #ededed;
}

.consent-settings__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.consent-status {
  margin: 14px 0 0 !important;
  font-size: 14px;
  font-weight: 700;
}

.legal-page .site-footer__inner {
  width: min(100% - 40px, 900px);
}

@media (min-width: 760px) {
  body {
    font-size: 18px;
  }

  .page-shell {
    display: grid;
    grid-template-columns: minmax(270px, 0.78fr) minmax(390px, 1.22fr);
    grid-template-areas:
      "info visit"
      "sizes works"
      "sizes equipment";
    column-gap: clamp(50px, 8vw, 112px);
    row-gap: 54px;
    padding: 54px 0 72px;
  }

  .info-column {
    display: flex;
    grid-area: info;
    flex-direction: column;
    gap: 38px;
    align-self: start;
  }

  .visit {
    grid-area: visit;
  }

  .sizes {
    grid-area: sizes;
    align-self: start;
  }

  .works {
    grid-area: works;
  }

  .equipment {
    grid-area: equipment;
  }

  .brand-logo {
    width: min(270px, 100%);
    margin: -28px auto 12px;
  }

  .intro__text {
    font-size: 25px;
  }

  h1,
  h2 {
    font-size: 24px;
  }

  .services,
  .contacts,
  .visit,
  .sizes,
  .gallery,
  .equipment {
    margin-top: 0;
  }

  .address-card {
    padding-inline: 30px;
  }

  .map-shell {
    height: 260px;
  }

  .privacy-banner__content {
    display: flex;
    align-items: center;
    gap: 28px;
  }

  .privacy-banner__content p {
    flex: 1;
  }

  .privacy-banner__actions {
    flex: 0 0 auto;
    flex-direction: row;
    margin-top: 0;
  }

  .legal-header {
    padding-block: 28px;
  }

  .route-video-frame {
    width: min(100%, 330px);
  }

  .gallery__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 359px) {
  .page-shell {
    width: min(100% - 40px, 1160px);
  }

  .site-footer__inner {
    width: min(100% - 40px, 1160px);
  }
}

@media (min-width: 1100px) {
  .page-shell {
    grid-template-columns: 360px minmax(0, 1fr);
  }

  .mobile-only {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .gallery-image::after {
    transition: none;
  }
}
