:root {
  --bg: #0f1220;
  --bg-soft: #171b2f;
  --card: #1d2239;
  --text: #e9ecff;
  --muted: #a7afd4;
  --primary: #6c7dff;
  --primary-2: #42d8ff;
  --accent: #8dffbf;
  --danger: #ff7070;
  --ok: #7ef7a0;
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(108, 125, 255, 0.20), transparent 45%),
    radial-gradient(700px 500px at 90% 10%, rgba(66, 216, 255, 0.18), transparent 50%),
    linear-gradient(180deg, #0d1020 0%, #0f1220 50%, #0b0f1c 100%);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.section {
  padding: 90px 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(5px);
}

.section h2 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.06;
  margin-top: 16px;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.section p.lead {
  color: var(--muted);
  max-width: 760px;
  font-size: clamp(16px, 2.4vw, 19px);
}

header {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 16, 32, 0.75);
  backdrop-filter: blur(8px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: .02em;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}

.brand-name {
  min-width: 0;
  line-height: 1.25;
  font-size: clamp(14px, 3.5vw, 16px);
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 8px 18px rgba(108, 125, 255, .4);
  font-size: 14px;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: .25s color ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links .btn-primary {
  color: #fff;
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s transform ease, .25s box-shadow ease, .25s background ease;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.btn:active {
  transform: translateY(1px) scale(.995);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 14px 28px rgba(108, 125, 255, .35);
}

.btn-primary:hover {
  box-shadow: 0 16px 32px rgba(108, 125, 255, .44);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

.hero {
  padding: 66px 0 80px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: start;
}

.hero h1 {
  font-size: clamp(34px, 6vw, 66px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 16px 0 20px;
}

.highlight {
  background: linear-gradient(130deg, #fff 0%, #c6d0ff 45%, #8de9ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  color: var(--muted);
  max-width: 640px;
  font-size: clamp(17px, 2.8vw, 21px);
}

.hero-usp {
  margin-top: 18px;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: clamp(15px, 2.2vw, 17px);
  max-width: 640px;
  display: grid;
  gap: 6px;
}

.hero-usp li {
  padding-left: 2px;
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-stats {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
  max-width: 650px;
}

.stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.stat b {
  display: block;
  font-size: clamp(20px, 4vw, 30px);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat span {
  color: var(--muted);
  font-size: 14px;
}

.hero-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.room {
  aspect-ratio: 5 / 4;
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(66, 216, 255, .26), rgba(108, 125, 255, .22)),
    linear-gradient(180deg, #273256 0%, #1a2240 55%, #161d37 100%);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
}

.room::before, .room::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(35px);
  opacity: .7;
}

.room::before {
  width: 180px;
  height: 180px;
  background: rgba(141, 255, 191, .45);
  top: -40px;
  right: -20px;
}

.room::after {
  width: 220px;
  height: 220px;
  background: rgba(66, 216, 255, .35);
  left: -80px;
  bottom: -80px;
}

.room.has-carousel::before,
.room.has-carousel::after {
  display: none;
}

.room.has-carousel {
  background: #161d37;
}

/* Вертикальные кадры с телефона: выше, чем было 5/4 */
.room.has-carousel.portrait-carousel {
  aspect-ratio: 3 / 4;
  max-height: min(82vh, 720px);
  margin-inline: auto;
  width: 100%;
}

.carousel-viewport {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #273256 0%, #1a2240 100%);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  cursor: zoom-in;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(7, 9, 18, 0.55);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.carousel-btn:hover {
  background: rgba(108, 125, 255, 0.35);
  border-color: rgba(66, 216, 255, 0.55);
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

.carousel-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  left: auto;
  bottom: auto;
  transform: none;
  z-index: 4;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #e9ecff;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(7, 9, 18, 0.55);
  backdrop-filter: blur(6px);
}

.carousel-caption {
  margin-top: 12px;
  padding: 11px 14px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.gallery-mid-wrap {
  max-width: 100%;
  width: 100%;
  margin-inline: 0;
  margin-top: 10px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}

.triplet-carousel {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(8px, 2vw, 16px);
}

.triplet-nav-btn {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(7, 9, 18, 0.65);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.triplet-nav-btn:hover {
  background: rgba(108, 125, 255, 0.35);
  border-color: rgba(66, 216, 255, 0.55);
}

.triplet-nav-btn:active {
  transform: scale(0.96);
}

.triplet-viewport {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #161d37;
}

.triplet-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(6px, 1.8vw, 14px);
  padding: 6px;
  box-sizing: border-box;
  align-items: stretch;
}

.triplet-cell {
  min-width: 0;
}

.triplet-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  background: #1a2240;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.triplet-thumb:hover {
  border-color: rgba(66, 216, 255, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.triplet-thumb:focus-visible {
  outline: 2px solid var(--primary-2);
  outline-offset: 2px;
}

.triplet-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.triplet-cell--empty {
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.07);
  aspect-ratio: 3 / 4;
  align-self: stretch;
  pointer-events: none;
}

.triplet-page-counter {
  position: absolute;
  top: 14px;
  left: 14px;
  right: auto;
  z-index: 4;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #e9ecff;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(7, 9, 18, 0.55);
  backdrop-filter: blur(6px);
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  box-sizing: border-box;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 14, 0.9);
  cursor: zoom-out;
}

.lightbox-dialog {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.lightbox-dialog .lightbox-img {
  pointer-events: auto;
}

.lightbox-img {
  max-width: 100%;
  max-height: min(86vh, calc(100dvh - 100px));
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.lightbox-close,
.lightbox-nav,
.lightbox-counter {
  pointer-events: auto;
}

.lightbox-close {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(7, 9, 18, 0.75);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: background 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(108, 125, 255, 0.4);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(7, 9, 18, 0.65);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lightbox-nav:hover {
  background: rgba(108, 125, 255, 0.35);
  border-color: rgba(66, 216, 255, 0.5);
}

.lightbox-prev {
  left: max(8px, env(safe-area-inset-left));
}

.lightbox-next {
  right: max(8px, env(safe-area-inset-right));
}

.lightbox-counter {
  position: fixed;
  bottom: max(14px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 13px;
  font-weight: 700;
  color: #e9ecff;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(7, 9, 18, 0.65);
  letter-spacing: 0.04em;
}

@media (max-width: 520px) {
  .lightbox-nav {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  .triplet-row {
    gap: 8px;
    padding: 4px;
  }
}

.room-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(7, 9, 18, .56);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  z-index: 3;
}

.chip-list {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 13px;
  color: #d8defe;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .04);
}

.services-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.service {
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-sm);
  padding: 18px;
  min-height: 164px;
  transition: .2s transform ease, .25s border-color ease;
}

.service:hover {
  transform: translateY(-3px);
  border-color: rgba(66, 216, 255, 0.55);
}

.service h3 {
  font-size: 20px;
  margin: 8px 0 8px;
}

.service p {
  color: var(--muted);
  font-size: 15px;
}

.icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-content: center;
  font-size: 20px;
  background: rgba(108, 125, 255, 0.18);
  border: 1px solid rgba(108, 125, 255, 0.45);
}

.tabs-wrap {
  margin-top: 26px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  overflow: hidden;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.tabs.tabs-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tab-btn {
  background: transparent;
  color: var(--muted);
  border: none;
  border-right: 1px solid rgba(255, 255, 255, .07);
  padding: 15px 10px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
  font-size: 14px;
}

.tab-btn:last-child {
  border-right: none;
}

.tab-btn[aria-selected="true"] {
  color: #fff;
  background: rgba(108, 125, 255, .18);
}

.tab-panel {
  display: none;
  padding: 20px;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

.tab-panel.active {
  display: grid;
}

.tab-panel h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.tab-panel p {
  color: var(--muted);
  margin-bottom: 10px;
}

.price {
  white-space: nowrap;
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .03);
}

.reviews-dynamic {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 20px;
  align-items: stretch;
}

.reviews-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  max-width: 640px;
  margin-inline: auto;
}

.reviews-empty strong {
  color: var(--text);
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.reviews-howto {
  margin-top: 18px;
  text-align: left;
  max-width: 560px;
  margin-inline: auto;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
  padding: 12px 16px;
}

.reviews-howto summary {
  cursor: pointer;
  color: var(--primary-2);
  font-weight: 600;
}

.reviews-howto pre {
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  font-size: 12px;
  line-height: 1.45;
  overflow-x: auto;
  color: #c8d0f0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.review-card {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.review-card--text-only .review-body {
  padding-top: 22px;
}

.review-media {
  position: relative;
  background: #0a0c18;
  aspect-ratio: 4 / 3;
  max-height: 260px;
}

.review-media:empty {
  display: none;
}

.review-carousel-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 0;
}

.review-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.38s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}

.review-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
}

.review-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.review-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(15, 18, 32, 0.72);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
  transition: background 0.2s, border-color 0.2s;
}

.review-carousel-btn:hover {
  background: rgba(108, 125, 255, 0.35);
  border-color: rgba(108, 125, 255, 0.5);
}

.review-carousel-btn:focus-visible {
  outline: 2px solid var(--primary-2);
  outline-offset: 2px;
}

.review-carousel-btn--prev {
  left: 10px;
}

.review-carousel-btn--next {
  right: 10px;
}

.review-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 7px;
  z-index: 2;
  flex-wrap: wrap;
  padding: 0 44px;
}

.review-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.28);
  transition: transform 0.2s, background 0.2s;
}

.review-carousel-dot[aria-current="true"] {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  transform: scale(1.15);
}

.review-carousel-counter {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  letter-spacing: 0.02em;
}

.review-body {
  padding: 18px 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.review-card .stars {
  font-size: 15px;
  color: #ffd96a;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.review-card .review-text-wrap {
  margin-bottom: 12px;
}

.review-card .review-text {
  color: #dfe3fd;
  margin-bottom: 0;
  flex: 1;
  font-size: 15px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.review-text-wrap.is-expanded .review-text {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.review-read-more {
  margin-top: 8px;
  padding: 0;
  border: none;
  background: none;
  color: var(--primary-2);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.review-read-more:hover {
  text-decoration: underline;
}

.review-read-more:focus-visible {
  outline: 2px solid var(--primary-2);
  outline-offset: 2px;
  border-radius: 4px;
}

.review-card .review-author {
  color: var(--muted);
  font-size: 14px;
  margin-top: auto;
}

.review-card .review-author::before {
  content: "— ";
  opacity: 0.7;
}

.reviews-toolbar {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.reviews-empty--cta p {
  margin-top: 10px;
  line-height: 1.55;
}

.review-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

body.review-dialog-open {
  overflow: hidden;
}

.review-dialog {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.review-dialog[hidden] {
  display: none;
}

.review-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 20, 0.72);
  backdrop-filter: blur(6px);
}

.review-dialog-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  max-height: min(92vh, 720px);
  overflow-y: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(165deg, #1a1f38 0%, #14182c 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  padding: 24px 22px 22px;
}

.review-dialog-panel h3 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.review-dialog-lead {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 18px;
}

.review-dialog-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.review-dialog-x:hover {
  background: rgba(255, 255, 255, 0.1);
}

#reviewForm {
  display: grid;
  gap: 12px;
}

.review-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.review-consent {
  margin-top: 4px;
}

.review-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 6px;
}

.contact-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.card {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .03);
  padding: 20px;
  box-shadow: var(--shadow);
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.contact-item {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .11);
}

.contact-item span {
  color: var(--muted);
  font-size: 13px;
  display: block;
}

.contact-item b {
  font-size: 16px;
}

.contact-item a {
  color: inherit;
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

form {
  display: grid;
  gap: 11px;
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

input, textarea, select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  padding: 12px 13px;
  background: rgba(255, 255, 255, .05);
  color: #fff;
  font: inherit;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

select option {
  color: #0f1220;
}

input::placeholder, textarea::placeholder {
  color: #b6bddf;
}

input:focus, textarea:focus, select:focus {
  border-color: rgba(66, 216, 255, 0.85);
  box-shadow: 0 0 0 4px rgba(66, 216, 255, 0.18);
}

textarea {
  resize: vertical;
  min-height: 114px;
}

.consent {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.consent input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--primary);
}

.form-status {
  min-height: 20px;
  font-size: 14px;
}

.form-status.ok {
  color: var(--ok);
}

.form-status.error {
  color: var(--danger);
}

.review-thank-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1200;
  transform: translate(-50%, 120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
  width: min(calc(100% - 32px), 420px);
}

.review-thank-toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.review-thank-toast-panel {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid rgba(141, 255, 191, 0.35);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow), 0 0 0 1px rgba(108, 125, 255, 0.15);
}

.review-thank-toast-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(126, 247, 160, 0.15);
  color: var(--ok);
  font-size: 18px;
  font-weight: 700;
}

.review-thank-toast-text {
  flex: 1;
  min-width: 0;
}

.review-thank-toast-text strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--text);
}

.review-thank-toast-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.review-thank-toast-close {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  margin: -2px -4px 0 0;
}

.review-thank-toast-close:hover {
  color: var(--text);
}

footer {
  border-top: 1px solid rgba(255, 255, 255, .09);
  margin-top: 70px;
  padding: 24px 0 28px;
  color: var(--muted);
  font-size: clamp(13px, 2.8vw, 14px);
}

.footer-copy {
  text-align: center;
  margin: 0 auto;
  max-width: min(100%, 40rem);
  padding-inline: 6px;
  line-height: 1.55;
  text-wrap: balance;
}

.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: .55s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1050px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .services-grid, .reviews-dynamic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 730px) {
  .section {
    padding: 68px 0;
  }

  .nav {
    align-items: flex-start;
  }

  .nav-links {
    gap: 12px;
  }

  .services-grid, .reviews-dynamic, .row-2, .tabs {
    grid-template-columns: 1fr;
  }

  .reviews-toolbar {
    justify-content: stretch;
  }

  .reviews-toolbar .btn {
    width: 100%;
    justify-content: center;
  }

  .tab-panel {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 22px, var(--container));
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}
