/* ===== AVTOHOTEL.BY styles ===== */

:root {
  --gold:#D6B77A;
  --orange:#FF6A00;
  --line:#E5DED2;
  --cream:#F7F7F5
}

* {
  box-sizing:border-box
}

body {
  margin:0;
  font-family:Montserrat,Arial,sans-serif;
  background:var(--cream);
  color:#171717
}

a {
  text-decoration:none;
  color:inherit
}

.container {
  width:min(1180px,calc(100% - 40px));
  margin:auto
}

.header {
  position:fixed;
  inset:0 0 auto 0;
  z-index:50;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(214,183,122,.35)
}

.nav {
  height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between
}

.brand {
  display:flex;
  gap:12px;
  align-items:center
}

.brand-mark {
  width:52px;
  height:52px;
  border-radius:12px;
  background:#111;
  position:relative
}

.brand-mark:after {
  content:"";
  position:absolute;
  left:11px;
  bottom:13px;
  width:36px;
  height:8px;
  background:var(--orange);
  border-radius:99px;
  transform:rotate(-15deg)
}

.brand-text strong {
  font-size:20px;
  letter-spacing:.26em
}

.brand-text strong span {
  color:var(--orange)
}

.brand-text small {
  display:block;
  font-size:8px;
  letter-spacing:.34em;
  color:#555;
  margin-top:6px
}

.menu {
  display:flex;
  gap:24px;
  align-items:center;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em
}

.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--orange);
  color:#fff;
  height:48px;
  padding:0 24px;
  border-radius:3px;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:800;
  box-shadow:0 14px 34px rgba(255,106,0,.28)
}

.btn.secondary {
  background:rgba(255,255,255,.92);
  color:#111;
  border:1px solid rgba(214,183,122,.9);
  box-shadow:none
}

.hero {
  position:relative;
  min-height:820px;
  display:flex;
  align-items:center;
  background:#111;
  color:#fff;
  overflow:hidden
}

.hero.hero-small {
  min-height:650px
}

.hero-bg {
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  opacity:0;
  transform:scale(1.04);
  transition:opacity 1.2s ease,transform 8s ease
}

.hero-bg.active {
  opacity:1;
  transform:scale(1.1)
}

.hero:after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(0,0,0,.84),rgba(0,0,0,.6) 40%,rgba(0,0,0,.18))
}

.hero-content {
  position:relative;
  z-index:2;
  padding-top:82px
}

.eyebrow {
  color:var(--gold);
  letter-spacing:.28em;
  text-transform:uppercase;
  font-size:12px;
  font-weight:700;
  margin-bottom:22px
}

h1 {
  font-size:68px;
  line-height:1.02;
  margin:0 0 26px;
  font-weight:500;
  max-width:850px
}

h1 span {
  color:var(--orange)
}

.lead {
  font-size:19px;
  line-height:1.72;
  color:#f0f0f0;
  max-width:660px;
  margin:0 0 34px
}

.hero-actions,.hero-note {
  display:flex;
  gap:14px;
  flex-wrap:wrap
}

.hero-note {
  margin-top:34px;
  font-size:13px
}

.hero-note span {
  border:1px solid rgba(255,255,255,.28);
  background:rgba(255,255,255,.08);
  padding:10px 14px;
  border-radius:999px
}

.slider-dots {
  position:absolute;
  z-index:3;
  left:10%;
  bottom:42px;
  display:flex;
  gap:10px
}

.slider-dots button {
  width:36px;
  height:4px;
  border:0;
  border-radius:99px;
  background:rgba(255,255,255,.35)
}

.slider-dots button.active {
  background:var(--orange)
}

.section {
  padding:86px 0;
  border-bottom:1px solid var(--line)
}

.white {
  background:#fff
}

.contact {
  background:#111;
  color:#fff
}

.section-head {
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:24px;
  margin-bottom:34px
}

h2 {
  font-size:38px;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-weight:500;
  margin:0
}

.section-head p {
  max-width:650px;
  color:#555;
  line-height:1.7
}

.cards,.comfort-grid {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:30px
}

.comfort-grid {
  grid-template-columns:repeat(4,1fr);
  gap:18px
}

.card,.comfort-card {
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 18px 60px rgba(15,15,16,.07)
}

.card-img {
  height:390px;
  display:block;
  overflow:hidden
}

.card-img img,.mini-slide img {
  width:100%;
  height:100%;
  object-fit:cover
}

.card-body {
  padding:28px
}

.meta {
  display:flex;
  gap:12px;
  flex-wrap:wrap
}

.meta span,.block-specs span {
  border:1px solid var(--line);
  border-radius:999px;
  padding:8px 12px;
  background:#fafafa;
  color:#555;
  font-size:13px
}

.price b {
  color:var(--orange);
  font-size:28px
}

.features {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  background:#fff
}

.feature {
  padding:34px 28px;
  border-right:1px solid var(--line)
}

svg {
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
  color:var(--gold);
  width:42px;
  height:42px
}

.comfort-card {
  padding:28px 22px;
  min-height:170px
}

.comfort-card b {
  display:block;
  margin-top:15px;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:13px
}

.comfort-card span {
  font-size:13px;
  color:#666
}

.lux-block,.sleep-row,.split {
  display:grid;
  grid-template-columns:.86fr 1.14fr;
  gap:42px;
  align-items:center
}

.lux-block {
  margin-bottom:62px
}

.lux-block:nth-child(even) .block-media {
  order:2
}

.block-copy h3 {
  font-size:34px;
  font-weight:500;
  letter-spacing:.06em;
  text-transform:uppercase
}

.block-copy p {
  font-size:17px;
  line-height:1.82;
  color:#4d4d4d
}

.block-specs {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px
}

.block-media {
  position:relative;
  height:430px;
  border-radius:22px;
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow:0 20px 70px rgba(15,15,16,.09)
}

.mini-slide {
  position:absolute;
  inset:0;
  opacity:0;
  transition:opacity .9s ease
}

.mini-slide.active {
  opacity:1
}

.mini-dots {
  position:absolute;
  left:24px;
  bottom:20px;
  display:flex;
  gap:8px
}

.mini-dots button {
  width:30px;
  height:4px;
  border:0;
  border-radius:99px;
  background:rgba(255,255,255,.52)
}

.mini-dots button.active {
  background:var(--orange)
}

.sleep-grid {
  display:grid;
  gap:38px
}

.sleep-row {
  padding-bottom:38px;
  border-bottom:1px solid var(--line)
}

.sleep-title {
  font-size:46px
}

.sleep-subtitle {
  font-size:28px;
  font-weight:600
}

.sleep-spec {
  display:grid;
  grid-template-columns:46px 1fr;
  gap:16px;
  margin:20px 0
}

.sleep-spec b {
  font-size:28px
}

.sleep-or {
  display:block;
  margin:10px 0;
  font-size:23px;
  font-weight:700
}

.gallery {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px
}

.gallery a {
  height:245px;
  border-radius:16px;
  overflow:hidden
}

.gallery img {
  width:100%;
  height:100%;
  object-fit:cover
}

.info-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px
}

.info-box {
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:22px
}

.info-box b {
  font-size:22px;
  color:var(--orange)
}

.footer {
  padding:38px 0;
  background:#0f0f10;
  color:#fff
}

.footer-row {
  display:flex;
  align-items:center;
  justify-content:space-between
}

.footer .brand-text strong {
  color:#fff
}

.footer-links {
  display:flex;
  gap:18px;
  color:#d6d6d6;
  font-size:13px
}

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

.lightbox.open {
  display:flex
}

.lightbox img {
  max-width:96vw;
  max-height:90vh;
  border-radius:10px
}

.lightbox button {
  position:absolute;
  top:22px;
  right:22px;
  background:#fff;
  border:0;
  border-radius:999px;
  width:42px;
  height:42px;
  font-size:24px
}


/* ===== MOBILE ===== */
@media(max-width:900px) {
  .menu {
  display:none
}

h1 {
  font-size:43px
}

.cards,.features,.split,.info-grid,.gallery,.comfort-grid,.lux-block,.sleep-row {
  grid-template-columns:1fr
}

.lux-block:nth-child(even) .block-media {
  order:0
}

.block-media {
  height:315px
}

}

 .gallery-viewer {
  display:grid;
  grid-template-columns:1fr;
  gap:18px
}

 .gallery-main {
  position:relative;
  height:620px;
  border-radius:22px;
  overflow:hidden;
  border:1px solid var(--line);
  background:#eee;
  box-shadow:0 20px 70px rgba(15,15,16,.08)
}

 .gallery-main img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block
}

 .gallery-arrow {
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:48px;
  height:48px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.65);
  background:rgba(255,255,255,.86);
  color:#111;
  font-size:28px;
  cursor:pointer;
  display:grid;
  place-items:center;
  z-index:3
}

 .gallery-arrow.prev {
  left:18px
}

 .gallery-arrow.next {
  right:18px
}

 .gallery-counter {
  position:absolute;
  left:20px;
  bottom:18px;
  padding:9px 14px;
  border-radius:999px;
  background:rgba(0,0,0,.55);
  color:#fff;
  font-size:13px;
  letter-spacing:.08em
}

 .gallery-thumbs {
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:12px
}

 .gallery-thumb {
  height:105px;
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  background:#eee;
  cursor:pointer;
  padding:0;
  opacity:.62;
  transition:.25s opacity,.25s transform,.25s border-color
}

 .gallery-thumb.active {
  opacity:1;
  border-color:var(--orange);
  transform:translateY(-2px)
}

 .gallery-thumb img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block
}

 
/* ===== MOBILE ===== */
@media(max-width:900px) {
   .gallery-main {
  height:340px
}

 .gallery-thumbs {
  grid-template-columns:repeat(3,1fr)
}

 .gallery-thumb {
  height:82px
}

}

 .logo-img {
  height:54px;
  width:auto;
  display:block
}

.footer .logo-img {
  height:54px;
  filter:brightness(1.08)
}

 .discount-table {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  margin-top:24px
}

 .discount-card {
  background:#fff;
  border:1px solid rgba(214,183,122,.55);
  border-radius:18px;
  padding:22px;
  box-shadow:0 18px 60px rgba(15,15,16,.045)
}

 .discount-card.highlight {
  border-color:var(--orange);
  box-shadow:0 20px 70px rgba(255,106,0,.11)
}

 .discount-card span {
  display:block;
  color:#777;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.12em;
  margin-bottom:10px
}

 .discount-card b {
  display:block;
  font-size:26px;
  color:var(--orange);
  margin-bottom:5px
}

 .discount-card small {
  color:#555;
  font-size:13px;
  line-height:1.5
}

 .rental-alert {
  margin-top:22px;
  border:1px solid rgba(255,106,0,.35);
  background:rgba(255,106,0,.07);
  border-radius:18px;
  padding:18px 20px;
  color:#222;
  line-height:1.65
}

 .spec-list {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
  margin-top:22px
}

 .spec-pill {
  border:1px solid var(--line);
  background:#fff;
  border-radius:999px;
  padding:11px 15px;
  font-size:13px;
  color:#444
}

 
/* ===== MOBILE ===== */
@media(max-width:900px) {
  .logo-img {
  height:54px;
  width:auto;
  display:block
}

.discount-table,.spec-list {
  grid-template-columns:1fr
}

}


/* ===== Preserve-photo hero adaptation + mobile fixes + calculator ===== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

.hero-bg {
  background-image: var(--bg-desktop);
  background-size: cover;
  background-position: center center;
}

.section-head h2,
h1,
h2,
h3 {
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

p,
span,
b,
small,
li,
a,
input,
button {
  overflow-wrap: anywhere;
}

.rental-calculator {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 24px;
  align-items: stretch;
  margin-top: 28px;
}

.rental-calc-main,
.rental-result {
  background: #fff;
  border: 1px solid rgba(214,183,122,.55);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 18px 60px rgba(15,15,16,.045);
}

.rental-slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.calc-label {
  display: block;
  color: #777;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .13em;
  margin-bottom: 8px;
}

.rental-slider-head strong {
  display: block;
  font-size: 34px;
  line-height: 1.1;
}

.calc-badge {
  white-space: nowrap;
  border: 1px solid rgba(255,106,0,.35);
  background: rgba(255,106,0,.08);
  color: #111;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
}

.rental-range {
  width: 100%;
  accent-color: var(--orange);
}

.range-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  color: #777;
  font-size: 13px;
}

.rental-result {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.calc-total {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
  color: var(--orange);
  font-weight: 700;
  margin: 4px 0 12px;
  overflow-wrap: anywhere;
}

.calc-daily {
  color: #555;
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 24px;
}

.discount-table.compact {
  margin-top: 22px;
}

@media (max-width: 900px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .section-head {
    display: block !important;
  }

  .section-head > div {
    width: 100%;
    min-width: 0;
  }

  .section-head h2 {
    max-width: 100%;
    font-size: clamp(28px, 8.5vw, 36px);
    line-height: 1.08;
    letter-spacing: .035em;
    word-break: normal;
    overflow-wrap: normal;
  }

  .section-head p {
    margin-top: 16px;
    max-width: 100%;
    font-size: 16px;
    line-height: 1.65;
  }

  .rental-section .section-head h2 {
    font-size: clamp(30px, 9vw, 38px);
    letter-spacing: .025em;
  }

  .hero-bg {
    background-image: var(--bg-mobile);
    background-position: center center;
  }

  .hero {
    min-height: 720px;
  }

  .hero.hero-small {
    min-height: 620px;
  }

  .hero-content {
    padding-top: 88px;
  }

  h1 {
    font-size: clamp(34px, 10vw, 46px);
    line-height: 1.08;
  }

  h2 {
    font-size: clamp(28px, 8vw, 36px);
    line-height: 1.1;
  }

  .lead {
    font-size: 16px;
    line-height: 1.65;
  }

  .hero-note {
    gap: 10px;
  }

  .hero-note span {
    display: block;
    width: 100%;
  }

  .rental-calculator {
    grid-template-columns: 1fr;
  }

  .rental-calc-main,
  .rental-result {
    padding: 22px;
    border-radius: 18px;
  }

  .rental-slider-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .rental-slider-head strong {
    font-size: 30px;
  }

  .calc-badge {
    white-space: normal;
  }

  .discount-table,
  .comfort-grid,
  .spec-list,
  .block-specs,
  .info-grid {
    grid-template-columns: 1fr !important;
  }

  .discount-card b {
    font-size: 24px;
  }

  .lux-block {
    gap: 22px;
    margin-bottom: 44px;
  }

  .block-copy {
    padding: 0;
  }

  .block-copy h3 {
    font-size: 26px;
    line-height: 1.16;
  }

  .block-copy p {
    font-size: 15px;
    line-height: 1.72;
  }

  .block-media {
    height: 280px;
  }

  .gallery-main {
    height: 310px;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-thumb {
    height: 78px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .container {
    width: calc(100% - 22px);
  }

  .header .logo-img {
    height: 40px;
  }

  .footer .logo-img {
    height: 44px;
  }

  .section {
    padding: 58px 0;
  }

  .section-head h2,
  .rental-section .section-head h2 {
    font-size: 30px;
    letter-spacing: .02em;
  }

  .rental-calc-main,
  .rental-result,
  .discount-card,
  .comfort-card,
  .info-box {
    padding: 18px;
  }
}


/* ===== Footer logo readable on dark background ===== */
.footer .logo-img{
  height:58px;
  width:auto;
  display:block;
  filter:none;
}

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

.mobile-menu-toggle {
    display: none;
}

@media (max-width:900px) {

    .nav {
        position: relative;
    }

    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;

        width: 44px;
        height: 44px;

        border: 1px solid var(--line);
        border-radius: 12px;

        background: #fff;
        color: #111;

        font-size: 26px;
        cursor: pointer;
    }

    .menu {
        display: none !important;

        position: absolute;
        top: calc(100% + 10px);
        left: 12px;
        right: 12px;

        background: #fff;
        border: 1px solid var(--line);
        border-radius: 18px;

        padding: 18px;

        flex-direction: column;
        gap: 12px;

        z-index: 9999;

        box-shadow: 0 20px 60px rgba(0,0,0,.15);
    }

    .menu.open {
        display: flex !important;
    }

    .menu a {
        text-align: center;
        width: 100%;
    }

    .menu .btn {
        width: 100%;
    }
}