/* nikiapart.com — variant B (2026-10-28): sans only (Onest), pill buttons + 8px cards, light. Mobile-first, steps 600 / 900 / 1200 / 1600. */

:root {
  --bg: #FFFFFF;
  --sand: #F4EFE8;
  --ink: #1D2129;
  --muted: #565B66;
  --line: #E6E0D7;
  --gold: #85662F;
  --gold-soft: #D9C49E;
  --dark: #1D2129;
  --on-dark: #FFFFFF;
  --on-dark-muted: #B8BCC5;

  --ff: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-display: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
  --fs-h2: clamp(1.875rem, 1.5rem + 1.6vw, 3rem);
  --fs-h3: clamp(1.25rem, 1.1rem + .6vw, 1.625rem);
  --fs-lead: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: .9375rem;
  --fs-label: .8125rem;
  --fs-eyebrow: min(.8125rem, 3.4vw);

  /* Pill buttons (and pill tabs, round icon holders) + 8px cards, photos, panels and fields (Velko, 2026-10-28) */
  --radius-btn: 999px;
  --radius-panel: 8px;
  --radius-card: 8px;
  --radius-img: 8px;
  --radius-input: 8px;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 7vw + 32px, 128px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; font-feature-settings: "locl" 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--fs-body)/1.65 var(--ff); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-weight: 600; line-height: 1.1; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -.015em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--bg); padding: 8px 14px; border-radius: var(--radius-btn); }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: .08em; color: var(--gold); white-space: nowrap; margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: var(--radius-btn); border: 1px solid transparent;
  font: 600 var(--fs-small)/1 var(--ff); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--dark { background: var(--dark); color: var(--on-dark); }
.btn--dark:hover { background: #343944; }
.btn--light { background: var(--on-dark); color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 20px; }
.circle {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none;
  border: 1px solid var(--ink); transition: background-color .2s ease, color .2s ease;
}
.circle svg { width: 20px; height: 20px; }

/* Header: menu left, logo centred, actions right */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; height: var(--header-h); }
.logo { justify-self: start; }
.logo img { height: 54px; width: auto; }
.nav { display: none; }
.header-actions { display: flex; align-items: center; gap: 12px; justify-self: end; grid-column: 3; }
.header-phone, .lang { display: none; }
.lang { font-size: var(--fs-label); font-weight: 600; color: var(--muted); }
.lang a { text-decoration: none; padding: 4px; }
.lang [aria-current] { color: var(--ink); }
.menu > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius-btn);
  font-size: var(--fs-small); font-weight: 600;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary svg { width: 18px; height: 18px; }
.menu__panel { position: absolute; left: 0; right: 0; top: var(--header-h); background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px; }
.menu__panel a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.menu__panel .lang { display: block; margin-top: 16px; }
@media (min-width: 600px) { .lang { display: block; } .menu__panel .lang { display: none; } }
@media (min-width: 1200px) {
  :root { --header-h: 88px; }
  .menu { display: none; }
  .site-header .wrap { grid-template-columns: 1fr auto 1fr; }
  .nav { display: flex; gap: clamp(18px, 1.8vw, 30px); grid-column: 1; grid-row: 1; }
  .nav a { text-decoration: none; font-size: var(--fs-small); font-weight: 500; padding: 8px 0; transition: color .2s ease; }
  .nav a:hover { color: var(--gold); }
  .logo { grid-column: 2; grid-row: 1; justify-self: center; }
  .logo img { height: 62px; }
  .header-phone { display: inline-block; font-weight: 600; font-size: var(--fs-small); text-decoration: none; }
  .header-phone:hover { color: var(--gold); }
}

/* Hero: full-bleed image accordion, one panel per apartment, photos only (CSS only) */
.hx { position: relative; background: var(--dark); color: #FFFFFF; container-type: inline-size; }
.hx { --edge: max(var(--gutter), calc((100cqw - var(--wrap)) / 2)); }
.hx__panels { display: flex; flex-direction: column; gap: 2px; }
.hx__panel { position: relative; display: block; height: 230px; overflow: hidden; isolation: isolate; color: #FFFFFF; text-decoration: none; background: var(--dark); }
.hx__panel img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: transform 1.4s cubic-bezier(.2, .7, .2, 1);
}
.hx__panel::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(18, 20, 26, .82) 0%, rgba(18, 20, 26, .35) 45%, rgba(18, 20, 26, .1) 100%);
}
.hx__label { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px var(--gutter); display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.hx__label .eyebrow { color: var(--gold-soft); margin-bottom: 8px; }
.hx__title { font-size: 1.1875rem; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; max-width: 24ch; }
.hx__more { display: none; }
.hx__more p { margin-top: 12px; color: rgba(255, 255, 255, .86); font-size: var(--fs-small); max-width: 44ch; }
.hx .circle { border-color: rgba(255, 255, 255, .7); color: #FFFFFF; }
.hx__panel:hover .circle, .hx__panel:focus-visible .circle { background: #FFFFFF; color: var(--ink); border-color: #FFFFFF; }
.hx__panel:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: -4px; }

@media (min-width: 900px) {
  .hx__panels { flex-direction: row; height: clamp(560px, calc(100svh - var(--header-h)), 920px); }
  .hx__panel { flex: 1 1 0; min-width: 0; height: auto; transition: flex-grow .9s cubic-bezier(.2, .7, .2, 1); }
  /* The outer panels also take the side margin, so the three text areas stay equal and sit on the content edges */
  .hx__panel:first-child, .hx__panel:last-child { flex-basis: var(--edge); }
  .hx__panel::after { background: linear-gradient(to top, rgba(18, 20, 26, .84) 0%, rgba(18, 20, 26, 0) 45%), rgba(18, 20, 26, .06); }
  .hx__label { padding: 0 32px clamp(28px, 5vh, 56px); }
  .hx__panel:first-child .hx__label { padding-left: var(--edge); }
  .hx__panel:last-child .hx__label { padding-right: var(--edge); }
  .hx__title { font-size: var(--fs-h3); }
  .hx__more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .6s cubic-bezier(.2, .7, .2, 1), opacity .3s ease; }
  .hx__more > div { overflow: hidden; }
  .hx__more p { width: min(440px, 30vw); }

  .hx__panels:has(.hx__panel:hover, .hx__panel:focus-visible) .hx__panel:hover,
  .hx__panels:has(.hx__panel:hover, .hx__panel:focus-visible) .hx__panel:focus-visible { flex-grow: 2.1; }
  .hx__panels:has(.hx__panel:hover, .hx__panel:focus-visible) .hx__panel:hover .hx__more,
  .hx__panels:has(.hx__panel:hover, .hx__panel:focus-visible) .hx__panel:focus-visible .hx__more { grid-template-rows: 1fr; opacity: 1; transition-delay: .2s, .35s; }
  .hx__panel:hover img, .hx__panel:focus-visible img { transform: scale(1.04); }
}

/* Intro under the hero: eyebrow, H1, booking button and phone */
.intro { padding-top: clamp(48px, 6vw, 96px); }
.intro__grid { display: grid; gap: 24px; padding-bottom: clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.intro h1 { font-size: var(--fs-display); line-height: 1.04; max-width: 16ch; }
.intro__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.intro__actions .tel { font-weight: 600; text-decoration: none; }
.intro__actions .tel:hover { color: var(--gold); }
@media (min-width: 900px) {
  .intro__grid { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; }
}

/* Sections */
.section { padding-block: var(--section); }
.section-head { margin-bottom: clamp(32px, 4vw, 56px); }
.section-head--row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; }

/* Apartments: one section each (full live description + 3 photos that stay in view) */
.apt-sec--sand { background: var(--sand); }
.apt-sec__grid { display: grid; gap: 28px; grid-template-areas: "head" "media" "text"; }
.apt-sec__head { grid-area: head; }
.apt-sec__head h2 { max-width: 18ch; }
.apt-sec__media { grid-area: media; display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.apt-sec__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-img); aspect-ratio: 4 / 3; }
.apt-sec__media img:first-child { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.apt-sec__text { grid-area: text; }
.apt-sec__body p { color: var(--muted); max-width: 62ch; }
.apt-sec__body p + p { margin-top: 1em; }
.apt-sec__actions { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.apt-sec__actions .circle { width: 52px; height: 52px; }
.apt-sec__actions .circle:hover { background: var(--ink); color: var(--on-dark); }
@media (min-width: 900px) {
  .apt-sec__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "head media" "text media";
    column-gap: clamp(40px, 6vw, 96px); row-gap: 24px;
  }
  .apt-sec--flip .apt-sec__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); grid-template-areas: "media head" "media text"; }
  .apt-sec__media { align-self: start; position: sticky; top: calc(var(--header-h) + 24px); }
}

/* Dark: slogan + amenities */
.dark { background: var(--dark); color: var(--on-dark); }
.dark .eyebrow { color: var(--gold-soft); }
.dark__grid { display: grid; gap: 48px; }
.dark h2 { max-width: 14ch; }
.dark .lead { color: var(--on-dark-muted); font-size: var(--fs-lead); margin-top: 18px; max-width: 34ch; }
.dark .btn { margin-top: 28px; }
.dark h3 { font-size: var(--fs-h3); margin-bottom: 22px; }
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.chips li {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 16px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius-card);
  font-weight: 500; font-size: var(--fs-small); line-height: 1.3;
}
/* The client's own icons from the old site (2026-10-28): black lines, so they sit on a white circle */
.chips .ico { width: 60px; height: 60px; border-radius: 50%; background: #FFFFFF; display: grid; place-items: center; }
.chips .ico img { width: 38px; height: 38px; }
@media (min-width: 600px) { .chips { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* 7 amenities (24/7 рецепция removed, 2026-11-02): phones 2+2+2+1 wide, wider screens 4 on top + 3 wider below, no hole */
.chips:has(> li:nth-child(7):last-child) > li:last-child { grid-column: 1 / -1; }
@media (min-width: 600px) {
  .chips:has(> li:nth-child(7):last-child) { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .chips:has(> li:nth-child(7):last-child) > li { grid-column: span 3; }
  .chips:has(> li:nth-child(7):last-child) > li:nth-child(n+5) { grid-column: span 4; }
}
@media (min-width: 900px) {
  .dark__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 6vw, 96px); align-items: center; }
}

/* Gallery: pill tabs + bento */
.seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--sand); border-radius: var(--radius-btn); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg label { cursor: pointer; padding: 10px 18px; border-radius: var(--radius-btn); font-weight: 600; font-size: min(var(--fs-small), 3.6vw); white-space: nowrap; color: var(--muted); transition: background-color .2s ease, color .2s ease; }
.seg label:hover { color: var(--ink); }
.gallery > input { position: absolute; opacity: 0; pointer-events: none; }
#g1:checked ~ .section-head [for="g1"], #g2:checked ~ .section-head [for="g2"], #g3:checked ~ .section-head [for="g3"] { background: var(--bg); color: var(--ink); }
#g1:focus-visible ~ .section-head [for="g1"], #g2:focus-visible ~ .section-head [for="g2"], #g3:focus-visible ~ .section-head [for="g3"] { outline: 2px solid var(--gold); outline-offset: 2px; }
.grid-photos { display: none; gap: 10px; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
#g1:checked ~ .gp-1, #g2:checked ~ .gp-2, #g3:checked ~ .gp-3 { display: grid; }
.grid-photos img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-img); }
.grid-photos img:first-child { grid-column: span 2; grid-row: span 2; }
@media (min-width: 600px) { .grid-photos { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; } }
@media (min-width: 1200px) { .grid-photos { grid-auto-rows: 200px; } }

/* Booking panel */
.panel { background: var(--sand); border-radius: var(--radius-panel); padding: clamp(20px, 4vw, 56px); display: grid; gap: 40px; }
.contacts h2 { margin-bottom: 24px; }
.contacts__main a { display: block; font-size: var(--fs-h3); font-weight: 600; letter-spacing: -.015em; text-decoration: none; line-height: 1.5; }
.contacts__main a:hover { color: var(--gold); }
.places { margin-top: 28px; display: grid; gap: 8px; }
.places a { display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; background: var(--bg); border-radius: var(--radius-card); text-decoration: none; font-weight: 500; font-size: var(--fs-small); }
.places a:hover { color: var(--gold); }
.places .pin { width: 36px; height: 36px; border-radius: 50%; background: var(--sand); color: var(--gold); display: grid; place-items: center; flex: none; }
.places .pin svg { width: 18px; height: 18px; }
.places .city { display: block; font-size: var(--fs-label); color: var(--muted); font-weight: 500; }
.form-card { background: var(--bg); border-radius: var(--radius-card); padding: clamp(22px, 3vw, 40px); }
.form-card h2 { margin-bottom: 24px; }
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: var(--fs-label); font-weight: 600; }
.field input, .field textarea, .field select { width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid #D5CDC1; border-radius: var(--radius-input); background: var(--bg); color: var(--ink); font: inherit; }
.field textarea { min-height: 120px; resize: vertical; }
/* Select ("Апартамент", 2026-11-02): same box as the inputs, own chevron; grey while the "Изберете…" option is shown */
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2385662F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 18px;
}
.field select:invalid { color: #8A8F99; }
.field select option { color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: #8A8F99; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.form .btn { width: 100%; }
@media (min-width: 600px) {
  .form { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .field, .form .btn { grid-column: span 6; }
  .field--half { grid-column: span 3; }
  .field--third { grid-column: span 2; }
}
@media (min-width: 900px) {
  .panel { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 5vw, 72px); align-items: start; }
  .contacts { padding-top: clamp(8px, 2vw, 24px); }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-top: clamp(48px, 5vw, 80px); font-size: var(--fs-small); }
.footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.footer__brand, .footer__info { grid-column: 1 / -1; }
.footer__brand img { height: 80px; width: auto; margin-bottom: 16px; }
.footer__brand p { color: var(--muted); max-width: 30ch; }
.site-footer h3 { font-size: var(--fs-label); font-weight: 600; letter-spacing: .08em; color: var(--gold); margin-bottom: 14px; }
.site-footer li + li { margin-top: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer__bottom { margin-top: 44px; padding-block: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--muted); }
.footer__bottom .lang { display: block; }
@media (min-width: 900px) {
  .footer__grid { grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.6fr)); }
  .footer__brand, .footer__info { grid-column: auto; }
}

/* Phones: gallery tabs share the full width */
@media (max-width: 899px) {
  .section-head--row > div { width: 100%; }
  .seg { display: flex; width: 100%; }
  .seg label { flex: 1; text-align: center; padding: 10px 4px; font-size: min(var(--fs-small), 3.4vw); }
}

/* Google reviews (home: right after the hero; data from super5-reviews-scraper) */
.reviews { background: var(--sand); }
.reviews__head { display: grid; gap: 20px; margin-bottom: clamp(28px, 3vw, 44px); }
.rv-score { display: flex; align-items: center; gap: 18px; }
.rv-score__num { font-size: clamp(3rem, 2.2rem + 3vw, 4.5rem); font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.rv-score__meta { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-small); color: var(--muted); }
.rv-score__meta a { color: var(--ink); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.rv-score__meta a:hover { color: var(--gold); text-decoration: underline; }
.g-logo { width: 18px; height: 18px; flex: none; }
.stars { display: inline-flex; gap: 2px; color: #E7A923; }
.stars svg { width: 18px; height: 18px; }
.stars .off { color: #D9D2C6; }
@media (min-width: 900px) {
  .reviews__head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; }
}
.rv-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-bottom: 14px; scrollbar-width: thin; scrollbar-color: var(--gold-soft) transparent; }
.rv-card {
  flex: 0 0 min(86%, 360px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px;
  background: var(--bg); border-radius: var(--radius-card); padding: 22px;
}
.rv-card__who { display: flex; align-items: center; gap: 12px; }
.rv-card__who img, .rv-card__who .ini { width: 44px; height: 44px; border-radius: 50%; flex: none; object-fit: cover; }
.rv-card__who .ini { display: grid; place-items: center; background: var(--dark); color: #FFFFFF; font-weight: 600; }
.rv-card__name { font-weight: 600; line-height: 1.3; }
.rv-card__date { font-size: var(--fs-label); color: var(--muted); }
.rv-card__text { font-size: var(--fs-small); color: var(--muted); display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
