/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1a1a1a;
  background: #fafafa;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* === Header === */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eee;
  height: 64px;
}
.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.header__logo {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}
.header__nav {
  display: flex;
  gap: 28px;
}
.header__link {
  font-size: 14px;
  font-weight: 500;
  color: #555;
  transition: color 0.2s;
}
.header__link:hover { color: #1a1a1a; }
.header__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
}
.header__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #1a1a1a;
  position: absolute;
  left: 0;
  transition: all 0.3s;
}
.header__burger span:nth-child(1) { top: 0; }
.header__burger span:nth-child(2) { top: 9px; }
.header__burger span:nth-child(3) { top: 18px; }
.header__burger.active span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.header__burger.active span:nth-child(2) { opacity: 0; }
.header__burger.active span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* === Hero === */
.hero {
  position: relative;
  height: 85vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}
.hero__title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  max-width: 700px;
  margin: 0 auto 32px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}
.hero__btn {
  display: inline-block;
  padding: 16px 40px;
  background: #fff;
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.hero__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* === Sections === */
.section {
  padding: 80px 0;
}
.section--alt {
  background: #f0f0f0;
}
.section__title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 40px;
  color: #1a1a1a;
}

/* === Cabinet Grid === */
.cab-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.cab-card {
  width: calc(33.333% - 16px);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s, transform 0.2s;
  display: block;
}
.cab-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}
.cab-card__slider {
  width: 100%;
  height: 220px;
  overflow: hidden;
}
.cab-card__slider .swiper-slide { height: 220px; }
.cab-card__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.cab-card__slider .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.6;
}
.cab-card__slider .swiper-pagination-bullet-active {
  opacity: 1;
}
.cab-card__body {
  padding: 16px 20px 20px;
}
.cab-card__name {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
}
.cab-card__floor {
  font-size: 14px;
  color: #888;
  margin-bottom: 10px;
}
.cab-card__specs {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.cab-card__spec {
  font-size: 13px;
  color: #555;
  background: #f5f5f5;
  padding: 4px 10px;
  border-radius: 4px;
}
.cab-card__price {
  font-size: 17px;
  font-weight: 700;
}

/* === Prices === */
.prices-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.price-card {
  flex: 1;
  min-width: 280px;
  background: #fff;
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.price-card__label {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #555;
}
.price-card__amount {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 8px;
}
.price-card__amount span {
  font-size: 20px;
  font-weight: 500;
  color: #888;
}
.price-card__note {
  font-size: 14px;
  color: #888;
}

/* === Subscriptions === */
.subs-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.sub-card {
  flex: 1;
  min-width: 180px;
  background: #fff;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.sub-card__hours {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}
.sub-card__price {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 4px;
}
.sub-card__per {
  font-size: 14px;
  color: #888;
}

/* === FAQ === */
.faq-list {
  max-width: 800px;
}
.faq-item {
  border-bottom: 1px solid #ddd;
}
.faq-item__q {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: #1a1a1a;
}
.faq-item__icon {
  flex-shrink: 0;
  fill: none;
  stroke: #888;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s;
}
.faq-item.open .faq-item__icon {
  transform: rotate(180deg);
}
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item__a p {
  padding: 0 0 20px;
  color: #555;
  font-size: 15px;
  line-height: 1.7;
}
.faq-item.open .faq-item__a {
  max-height: 300px;
}

/* === Contacts === */
.contacts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  font-size: 15px;
  font-weight: 500;
  transition: box-shadow 0.2s;
}
.contact-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.contact-item svg {
  fill: none;
  stroke: #555;
  stroke-width: 1.5;
  flex-shrink: 0;
}

/* === Location === */
.location-grid {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.location__map {
  flex: 1;
  min-width: 300px;
  border-radius: 12px;
  overflow: hidden;
}
.location__map iframe {
  display: block;
}
.location__photos {
  flex: 1;
  min-width: 300px;
}
.location__photos h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}
.location__gallery {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.location__gallery img {
  width: calc(33.333% - 8px);
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* === Agreement checkbox === */
.agreement-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #555;
  cursor: pointer;
}
.agreement-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #1a1a1a;
}
.agreement-link {
  color: #1a73e8;
  text-decoration: underline;
}
.agreement-link:hover {
  color: #1557b0;
}
.btn--disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* === Footer === */
.footer {
  background: #1a1a1a;
  color: #999;
  padding: 40px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__brand {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.footer__links {
  display: flex;
  gap: 20px;
}
.footer__links a {
  font-size: 14px;
  color: #999;
  transition: color 0.2s;
}
.footer__links a:hover { color: #fff; }
.footer__copy { font-size: 13px; }

/* === Cabinet Page === */
.cab-page {
  padding-top: 84px;
  padding-bottom: 60px;
}
.cab-page__back {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 14px;
  color: #888;
  font-weight: 500;
  transition: color 0.2s;
}
.cab-page__back:hover { color: #1a1a1a; }
.cab-page__gallery {
  width: 100%;
  height: 500px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
}
.cab-page__gallery .swiper-slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}
.cab-page__gallery .swiper-button-prev,
.cab-page__gallery .swiper-button-next {
  color: #fff;
  background: rgba(0,0,0,0.3);
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.cab-page__gallery .swiper-button-prev::after,
.cab-page__gallery .swiper-button-next::after {
  font-size: 18px;
}
.cab-page__info {
  max-width: 800px;
}
.cab-page__actions {
  margin-bottom: 24px;
}
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn--primary {
  background: #1a1a1a;
  color: #fff;
}
.btn--primary:hover {
  background: #333;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.cab-page__title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}
.cab-page__meta {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 15px;
  color: #888;
}
.cab-page__meta span {
  padding: 4px 12px;
  background: #f5f5f5;
  border-radius: 4px;
}
.cab-page__price {
  margin-bottom: 24px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
}
.cab-page__price-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 15px;
}
.cab-page__price-row + .cab-page__price-row {
  border-top: 1px solid #eee;
}
.cab-page__desc {
  margin-bottom: 24px;
  font-size: 15px;
  color: #555;
  line-height: 1.7;
}
.cab-page__equip {
  margin-bottom: 24px;
}
.cab-page__equip h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}
.cab-page__equip ul {
  columns: 2;
  column-gap: 24px;
}
.cab-page__equip li {
  padding: 4px 0;
  font-size: 14px;
  color: #555;
  break-inside: avoid;
}
.cab-page__equip li::before {
  content: "✓ ";
  color: #4caf50;
  font-weight: 700;
}
.cab-page__note {
  padding: 16px 20px;
  background: #fff8e1;
  border-radius: 8px;
  border-left: 4px solid #ffc107;
}
.cab-page__note p {
  font-size: 14px;
  color: #555;
  margin-bottom: 4px;
}
.cab-page__note p:last-child { margin-bottom: 0; }

/* === Mobile === */
@media (max-width: 960px) {
  .cab-card { width: calc(50% - 12px); }
}
@media (max-width: 768px) {
  .header__nav {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    gap: 0;
    border-bottom: 1px solid #eee;
    transform: translateY(-120%);
    transition: transform 0.3s;
  }
  .header__nav.open {
    transform: translateY(0);
  }
  .header__link {
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid #f0f0f0;
  }
  .header__burger { display: block; }
  .hero__title { font-size: 32px; }
  .section { padding: 50px 0; }
  .section__title { font-size: 24px; margin-bottom: 28px; }
  .cab-card { width: 100%; }
  .cab-page__gallery { height: 300px; }
  .cab-page__gallery .swiper-slide img { height: 300px; }
  .cab-page__equip ul { columns: 1; }
  .location__gallery img { width: calc(50% - 6px); }
  .footer__inner { flex-direction: column; text-align: center; }
}
