:root {
  --navy: #1E2433;
  --navy-2: #2C3550;
  --navy-deep: #161B27;
  --cream: #F5EDE0;
  --sand: #EADFCB;
  --red: #B8282F;
  --red-dark: #8E1D23;
  --mustard: #E3A92B;
  --muted: #4A5163;
  --muted-light: #C9C3B6;
  --white: #FFFFFF;
  --radius: 10px;
  --display: 'Oswald', 'Arial Narrow', sans-serif;
  --script: 'Lobster', cursive;
  --body: 'PT Sans', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 100px; }
body { margin: 0; background: var(--cream); color: var(--navy); font-family: var(--body); font-size: 17px; line-height: 1.5; }
img { max-width: 100%; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
h1, h2, h3 { font-family: var(--display); text-transform: uppercase; margin: 0; line-height: 1.05; }
h2 { font-size: 44px; font-weight: 700; }
h3 { font-size: 26px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.small { font-size: 14px; }
.muted { color: var(--muted); }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 6px; text-decoration: none; font-family: var(--display); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; border: 2px solid transparent; transition: background .2s, color .2s; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); color: var(--white); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 17px; }
.center { align-self: center; }

/* Шапка */
.site-header { background: var(--navy); color: var(--cream); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; padding-top: 6px; padding-bottom: 6px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--cream); text-decoration: none; }
.brand:hover { color: var(--cream); }
.brand img { width: 76px; height: 76px; object-fit: contain; display: block; }
.brand-name { font-family: var(--script); font-size: 30px; line-height: 1; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 24px; flex: 1 1 300px; font-family: var(--display); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.nav a { color: var(--cream); text-decoration: none; padding: 10px 0; }
.nav a:hover { color: var(--mustard); }
.header-hours { color: var(--mustard); font-family: var(--display); font-size: 18px; letter-spacing: .04em; white-space: nowrap; padding: 10px 0; }

/* Галерея */
.hero { position: relative; height: 600px; background: var(--navy); overflow: hidden; }
.slides, .slide { position: absolute; inset: 0; }
.slide { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.slide.is-active { opacity: 1; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,36,51,.25) 0%, rgba(30,36,51,0) 25%, rgba(30,36,51,0) 40%, rgba(30,36,51,.9) 100%); pointer-events: none; }
.hero-arrow { position: absolute; top: 240px; width: 52px; height: 52px; border-radius: 999px; border: 2px solid rgba(245,237,224,.85); background: rgba(30,36,51,.55); color: var(--cream); font-size: 28px; line-height: 1; cursor: pointer; z-index: 3; }
.hero-arrow:hover { background: rgba(30,36,51,.85); }
.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }
.hero-dots-row { position: absolute; left: 0; right: 0; top: 20px; display: flex; justify-content: flex-end; align-items: center; gap: 10px; z-index: 3; }
.hero-dots { display: flex; gap: 6px; }
.hero-dots button { width: 12px; height: 12px; padding: 0; border: 0; border-radius: 999px; background: rgba(245,237,224,.7); cursor: pointer; transition: width .3s ease, background .3s; }
.hero-dots button[aria-selected="true"] { width: 28px; background: var(--mustard); }
.hero-count { font-family: var(--display); font-size: 14px; letter-spacing: .08em; color: var(--cream); }
.hero-text { position: absolute; left: 0; right: 0; bottom: 96px; color: var(--white); display: flex; flex-direction: column; gap: 12px; z-index: 2; }
.hero-text h1 { font-size: 58px; font-weight: 700; max-width: 900px; line-height: 1.04; }
.hero-text p { margin: 0; font-size: 20px; max-width: 680px; }
.pill { align-self: flex-start; padding: 5px 14px; border: 2px solid var(--mustard); border-radius: 999px; font-family: var(--display); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }

/* Плашки под галереей */
.tiles { position: relative; margin-top: -64px; display: flex; flex-wrap: wrap; gap: 16px; z-index: 4; }
.tile { flex: 1 1 280px; min-width: 0; background: var(--white); border-radius: var(--radius); padding: 22px 24px; box-shadow: 0 14px 32px rgba(30,36,51,.18); display: flex; flex-direction: column; gap: 6px; }
.tile-label { font-family: var(--display); font-size: 14px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.tile-big { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1.05; color: var(--red); }
.tile-addr { font-family: var(--display); font-size: 22px; text-transform: uppercase; line-height: 1.2; }
.contact { align-items: baseline; padding: 4px 0; }
.contact a { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--red); text-decoration: none; white-space: nowrap; }
.contact a:hover { color: var(--red-dark); text-decoration: underline; }
.price { display: flex; justify-content: space-between; gap: 12px; }
.price strong { font-family: var(--display); font-size: 20px; color: var(--red); }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* О музее */
.about { padding-top: 80px; padding-bottom: 24px; display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: center; }
.about-logo { flex: 1 1 340px; min-width: 0; display: flex; justify-content: center; }
.about-logo img { width: 100%; max-width: 400px; height: auto; display: block; }
.about-text { flex: 1.4 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.lead { margin: 0; font-size: 19px; }
.stats { display: flex; flex-wrap: wrap; gap: 12px; }
.stats div { flex: 1 1 150px; border-top: 4px solid var(--red); padding-top: 10px; display: flex; flex-direction: column; }
.stats b { font-family: var(--display); font-size: 40px; line-height: 1; }
.stats span { font-size: 15px; color: var(--muted); }
.offers { padding-top: 32px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 18px; }
.offer-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.offer { flex: 1 1 300px; min-width: 0; background: var(--white); border-radius: var(--radius); padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.offer strong { font-family: var(--display); font-size: 20px; text-transform: uppercase; color: var(--red); }

/* Лента */
.feed { padding-top: 64px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 24px; }
.feed-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--navy); background: transparent; color: var(--navy); font-family: var(--display); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.chip.is-on { background: var(--navy); color: var(--cream); }
.feed-cols { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.feed-col { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 18px rgba(30,36,51,.08); }
.card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.card-date { font-size: 14px; color: var(--muted); }
.card-body p { margin: 0; }
.card-credit { font-size: 13px; color: var(--muted); }
.card-link { font-family: var(--display); letter-spacing: .06em; text-transform: uppercase; font-size: 14px; padding: 8px 0; }
.card.photo { box-shadow: none; background: transparent; }
.card-album { display: block; padding: 8px 2px 0; font-size: 14px; color: var(--muted); text-decoration: none; }
.card-album:hover { color: var(--red); }
.feed-empty { color: var(--muted); }

/* Muscle Garage */
.garage { background: var(--sand); }
.garage-row { padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; }
.garage-row img { width: 240px; max-width: 100%; height: auto; }
.garage-row > div { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.garage-row h2 { font-size: 32px; }
.garage-row p { margin: 0; }

/* Как нас найти */
.find { background: var(--navy); color: var(--cream); }
.find .wrap { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 28px; }
.find-row { display: flex; flex-wrap: wrap; gap: 24px; }
.find-text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.find-addr { font-family: var(--display); font-size: 26px; text-transform: uppercase; }
.find ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.muted-light { color: var(--muted-light); }
.scheme { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 8px; color: var(--muted-light); text-decoration: none; font-size: 14px; }
.scheme img { display: block; width: 100%; height: auto; border-radius: var(--radius); background: var(--white); }
.scheme:hover { color: var(--cream); }
.map { border-radius: var(--radius); overflow: hidden; background: var(--cream); }
.map iframe { display: block; width: 100%; height: 420px; border: 0; }
.map-btns { display: flex; flex-wrap: wrap; gap: 12px; padding: 16px; }

/* Подвал */
.site-footer { background: var(--navy-deep); color: var(--muted-light); font-size: 15px; }
.footer-row { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer-logos { display: flex; align-items: center; gap: 16px; }
.footer-logos img { display: block; height: auto; }
.site-footer a { color: var(--mustard); padding: 8px 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }

/* Телефон и планшет */
@media (max-width: 760px) {
  body { font-size: 16px; }
  h2 { font-size: 34px; }
  .brand img { width: 56px; height: 56px; }
  .brand-name { font-size: 24px; }
  .nav { order: 3; flex-basis: 100%; gap: 0 18px; font-size: 14px; }
  .header-hours { font-size: 15px; }
  .site-header { position: static; }
  .hero { height: 560px; }
  .hero-text { bottom: 88px; }
  .hero-text h1 { font-size: 34px; }
  .hero-text p { font-size: 17px; }
  .hero-arrow { top: auto; bottom: 20px; width: 44px; height: 44px; font-size: 24px; }
  .hero-dots button { width: 8px; height: 8px; }
  .hero-dots button[aria-selected="true"] { width: 20px; }
  .tile-big { font-size: 34px; }
  .map iframe { height: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide, .hero-dots button { transition: none; }
}
