/* THEME AND BASE */
:root {
  --primary-color: #254de1;
  --secondary-color: #13171d;
  --accent-color: #92aaff;
  --text-color: #171b23;
  --bg-color: #f4f5f7;
  --card-bg: #fff;
  --muted: #5d6470;
  --line: #d9dce3;
  --container: 1200px;
  --radius: 8px;
  --section-space: 48px;
  --font: Arial, Helvetica, sans-serif;
  --display-font: Impact, 'Arial Narrow', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text-color); background: var(--bg-color); }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; object-fit: cover; }
svg { width: 32px; height: 32px; flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.14; }
h2 { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.035em; }
h3 { font-size: 21px; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #c88910; outline-offset: 5px; }
[hidden] { display: none; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.eyebrow { margin-bottom: 20px; font-size: 13px; font-weight: 700; letter-spacing: .16em; color: var(--primary-color); }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; padding: 13px 22px; font-size: 15px; font-weight: 700; line-height: 1.4; text-align: center; color: white; background: var(--primary-color); border: 1px solid var(--primary-color); border-radius: 3px; transition: background .3s ease, transform .3s ease; }
.button:hover { background: #1737af; transform: translateY(-2px); }
.button.outline { color: white; background: transparent; border-color: #747a85; }
.button.outline:hover { background: #303641; }
.button.dark-outline { color: var(--text-color); border-color: #9ba2ad; }
.button.dark-outline:hover { background: #e4e7ee; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px; color: white; background: var(--primary-color); }
.skip-link:focus { top: 12px; }
/* HEADER */
.header { position: sticky; top: 0; z-index: 20; color: white; background: var(--secondary-color); border-bottom: 1px solid #30343b; }
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 80px; flex-wrap: wrap; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 800; line-height: 1.2; letter-spacing: .05em; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; font-family: Georgia, serif; font-size: 28px; border: 1px solid #777e8c; border-radius: 50%; }
.brand small { display: block; margin-top: 6px; font-size: 9px; font-weight: 400; letter-spacing: .13em; color: #b0b6c1; }
.menu-toggle { display: grid; align-content: center; gap: 6px; width: 44px; height: 44px; padding: 10px; color: white; background: transparent; border: 1px solid #747a85; border-radius: 3px; }
.menu-toggle span { height: 2px; background: currentColor; }
.nav { display: flex; flex-wrap: wrap; width: 100%; gap: 4px 20px; order: 4; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: #d0d4dd; }
.nav a:hover { color: #92aaff; }
.js .nav { display: none; }
.js .nav.is-open { display: flex; }
.header-phone { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; }
.header-cta { display: none; }
/* HERO SECTION */
.hero { overflow: hidden; color: white; background: var(--secondary-color); }
.hero-grid { display: grid; }
.hero-copy { position: relative; z-index: 1; padding-block: 46px 40px; animation: enter .7s ease both; }
.hero .eyebrow { color: var(--accent-color); }
h1 { margin-bottom: 24px; font-family: var(--display-font); font-size: clamp(35px, 8.9vw, 66px); font-weight: 800; line-height: 1.06; letter-spacing: -.035em; }
h1 span { color: var(--accent-color); }
.hero-description { color: #c6cad2; font-size: 17px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 30px; }
.hero-address { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.hero-address svg { color: var(--accent-color); width: 25px; }
.hero-address small { color: #adb4c1; font-size: 13px; }
.hero-visual { position: relative; min-width: 0; margin-inline: -20px; padding-bottom: 44px; }
.hero-visual > img { width: 100%; height: 350px; object-position: 56% center; }
.photo-label { position: absolute; top: 16px; left: 20px; padding: 8px 12px; font-size: 11px; letter-spacing: .1em; background: #13171de8; }
.photo-label span { display: none; }
.rating-badge { position: absolute; right: 20px; bottom: 16px; display: flex; align-items: center; gap: 16px; padding: 17px 20px; color: var(--text-color); background: white; box-shadow: 0 8px 30px #0002; }
.rating-badge > strong { font-size: 34px; letter-spacing: -.07em; }
.rating-badge strong span { color: var(--primary-color); font-size: 24px; }
.rating-badge > span { font-size: 12px; font-weight: 700; }
.rating-badge small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
/* BENEFITS */
.benefits { background: white; border-bottom: 1px solid var(--line); }
.benefits-grid { display: grid; }
.benefits article { display: flex; gap: 20px; padding-block: 26px; }
.benefits article + article { border-top: 1px solid var(--line); }
.benefits svg { color: var(--primary-color); }
.benefits h2 { margin-bottom: 10px; font-size: 20px; letter-spacing: -.02em; }
.benefits p { max-width: 310px; color: var(--muted); font-size: 15px; }
/* SERVICES */
.section-heading { display: flex; flex-direction: column; gap: 24px; margin-bottom: 32px; }
.section-heading > p { color: var(--muted); font-size: 16px; }
.services-grid { display: grid; gap: 16px; }
.service-card { display: flex; flex-direction: column; min-height: 250px; padding: 28px; background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s ease, box-shadow .3s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px #18254b12; }
.service-icon { margin-bottom: 24px; color: var(--primary-color); }
.service-card h3 { margin-bottom: 12px; font-size: 20px; }
.service-card p { margin-bottom: 26px; font-size: 15px; color: var(--muted); }
.price { margin-top: auto; font-size: 25px; letter-spacing: -.04em; }
.price-action { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 32px; text-align: center; }
.price-action p { font-size: 14px; color: var(--muted); }
.full-price { margin-top: 36px; padding: 24px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.price-heading { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 24px; }
.price-heading h2 { font-size: 30px; }
.price-list { margin: 0; padding: 0; list-style: none; }
.price-row { display: grid; gap: 8px; padding-block: 16px; border-top: 1px solid var(--line); }
.price-row > span { font-size: 16px; overflow-wrap: anywhere; }
.price-row strong { white-space: nowrap; color: #193dbd; }
.price-note { margin-top: 24px; font-size: 14px; color: var(--muted); }
.price-note a { text-decoration: underline; }
/* ABOUT */
.about { color: white; background: #191e27; }
.about-grid { display: grid; gap: 36px; }
.about-copy .eyebrow { color: var(--accent-color); }
.about-copy h2 { margin-bottom: 26px; }
.about-copy > p:not(.eyebrow) { margin-bottom: 20px; color: #c0c6d1; }
.text-link { display: inline-block; min-height: 44px; margin-top: 6px; color: var(--accent-color); border-bottom: 1px solid #7186c1; }
.about-photos { position: relative; order: -1; padding-bottom: 60px; }
.studio-photo { width: 88%; height: 280px; }
.lounge-photo { position: absolute; right: 0; bottom: 0; width: 40%; height: 200px; border: 6px solid #191e27; }
.about-stamp { position: absolute; top: -16px; right: 0; display: grid; place-items: center; width: 76px; height: 76px; font-family: Georgia, serif; font-size: 48px; color: white; background: var(--primary-color); }
/* REVIEWS */
.reviews { background: #fff; }
.review-summary { display: block; }
.review-summary > strong { display: block; font-size: 36px; line-height: 1.2; }
.review-summary strong span { font-size: 17px; color: var(--primary-color); letter-spacing: 1px; }
.review-summary > span { font-size: 13px; color: var(--muted); }
.reviews-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 90%; gap: 16px; overflow-x: auto; padding: 5px 5px 16px; scroll-snap-type: x mandatory; }
.review-card { display: flex; flex-direction: column; min-width: 0; padding: 25px; background: var(--bg-color); border-radius: var(--radius); scroll-snap-align: start; }
.stars { margin-bottom: 22px; color: #2345bb; letter-spacing: 3px; }
.review-card blockquote { margin: 0 0 26px; font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.review-author { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.review-author strong { display: block; font-size: 14px; }
.review-author time { font-size: 13px; color: var(--muted); }
.swipe-hint { margin-top: 12px; color: var(--muted); font-size: 13px; }
/* CONTACTS */
.contacts { color: white; background: var(--secondary-color); }
.contacts .eyebrow { color: var(--accent-color); }
.contact-grid { display: grid; gap: 36px; margin-top: 38px; }
.contact-line { display: flex; gap: 16px; margin-bottom: 26px; }
.contact-line svg { width: 25px; color: var(--accent-color); }
.contact-line span { display: block; margin-bottom: 8px; font-size: 11px; letter-spacing: .13em; color: #a9b1c1; }
.contact-line p, .contact-line a { font-size: 19px; line-height: 1.5; }
.contact-line a { display: block; min-height: 38px; }
.contact-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.location { position: relative; min-width: 0; }
.location img { width: 100%; height: 420px; object-position: center; }
.location-caption { position: absolute; bottom: 0; right: 0; left: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; background: #12171fed; }
.location-caption > span { font-size: 15px; }
/* FOOTER */
.footer { padding-block: 30px; color: #c3c9d2; background: #0d1015; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-inner > p { font-size: 13px; }
.footer-inner > div { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-inner > div a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; }
.footer details { margin-top: 20px; padding-top: 16px; border-top: 1px solid #30343b; font-size: 13px; }
.footer summary { cursor: pointer; min-height: 44px; }
.footer details p { max-width: 800px; }
/* MODAL */
dialog { width: min(780px, calc(100% - 24px)); max-height: calc(100dvh - 40px); padding: 0; color: var(--text-color); background: white; border: 0; border-radius: var(--radius); }
dialog::backdrop { background: #080e20bb; }
dialog .full-price { margin: 0; padding: 24px; border: 0; }
.close-button { flex-shrink: 0; width: 44px; height: 44px; font-size: 30px; line-height: 1; color: var(--text-color); background: #edf0f7; border: 0; border-radius: 50%; }
.close-button:hover { background: #d7ddec; }
/* RESPONSIVE LAYOUT */
@media (min-width: 375px) {
  .header-phone { margin-left: auto; }
}
@media (min-width: 768px) {
  :root { --section-space: 64px; }
  .header-inner { gap: 20px; }
  .header-cta { display: inline-flex; }
  .hero-copy { padding-block: 60px; }
  .hero-visual { margin: 0; }
  .hero-visual > img { height: 470px; }
  .hero h1 { font-size: 66px; }
  .benefits-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .benefits article { display: block; padding-block: 32px; }
  .benefits article + article { border-top: 0; }
  .benefits svg { margin-bottom: 16px; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { flex-direction: row; align-items: end; justify-content: space-between; gap: 30px; }
  .section-heading > p { max-width: 360px; }
  .price-row { grid-template-columns: minmax(0,1fr) auto; gap: 32px; }
  .about-photos { max-width: 650px; width: 100%; }
  .studio-photo { height: 380px; }
  .lounge-photo { height: 260px; }
  .reviews-grid { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .swipe-hint { display: none; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  :root { --section-space: 80px; }
  .header-inner { flex-wrap: nowrap; min-height: 90px; gap: 20px; }
  .menu-toggle { display: none; }
  .nav, .js .nav { display: flex; width: auto; order: initial; gap: 20px; }
  .header-phone { margin-left: auto; white-space: nowrap; }
  .header-cta { padding: 10px 18px; min-height: 44px; }
  .hero-grid { grid-template-columns: 1.08fr 1fr; align-items: center; min-height: 650px; }
  .hero-copy { padding-block: 74px; }
  .hero h1 { font-size: clamp(53px, 5.1vw, 74px); }
  .hero-visual { height: 100%; padding: 0; margin-right: min(-20px, calc((1200px - 100vw)/2)); }
  .hero-visual > img { height: 100%; min-height: 650px; object-position: 55% center; }
  .hero-visual::after { position: absolute; inset: 0 auto 0 0; width: 80px; content: ''; background: linear-gradient(90deg, #13171d, transparent); pointer-events: none; }
  .photo-label { top: 30px; left: 35px; }
  .rating-badge { right: 30px; bottom: 35px; }
  .hero-description { font-size: 18px; }
  .hero-buttons { margin-block: 32px 40px; }
  .benefits article { display: flex; padding-block: 38px; }
  .benefits svg { margin: 0; }
  .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-card { min-height: 275px; padding: 30px; }
  .price-action { flex-direction: row; justify-content: center; gap: 24px; }
  .about-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; }
  .about-photos { order: initial; }
  .reviews-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 70px; }
}
@media (min-width: 1440px) {
  .hero-visual > img { object-position: center; }
  .photo-label span { display: block; margin-top: 6px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none; transition: none; }
}
@keyframes enter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* MISHLEN targeted QA fix: confine swipeable reviews to the narrow viewport. */
@media (max-width: 374px) {
  .reviews { overflow-x: clip; }
  .reviews-grid { width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; overflow-y: hidden; }
  .review-card { min-width: 0; max-width: 100%; }
  .stars { letter-spacing: 2px; }
}

/* MISHLEN QA 1.3.3: carousel belongs to its own scroll box at 320px. */
@media (max-width: 374px) {
  .reviews { max-width: 100%; overflow-x: hidden; }
  .reviews .container { min-width: 0; }
  .reviews-grid { display: flex; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; overflow-x: auto; overscroll-behavior-x: contain; }
  .reviews-grid > .review-card { flex: 0 0 90%; min-width: 0; max-width: 90%; box-sizing: border-box; }
  .reviews-grid > .review-card > * { max-width: 100%; overflow-wrap: anywhere; }
}

/* QA v1.3.3: prevent min-content tracks from widening narrow screens. */
@media (max-width: 374px) {
  .services-grid, .about-grid { grid-template-columns: minmax(0, 1fr); min-width: 0; }
  .service-card, .about-copy, .about-photos { min-width: 0; max-width: 100%; }
  .service-card h3, .about-copy h2, .about-copy p { overflow-wrap: anywhere; }
}
