/* Insomnia Psychology — страница кабинетов и коворкинга */
body.psy { background: #0a0708; }
body.psy a { color: var(--pink-light); }

.psy-top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(10, 7, 8, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(254, 254, 254, .08);
}
.psy-top__logo img { display: block; width: 150px; height: auto; }
.psy-top__nav { display: flex; gap: 22px; margin-left: auto; }
body.psy .psy-top__nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
body.psy .psy-top__nav a:hover { color: var(--white); }
.psy-top__cta { padding: 10px 20px; font-size: 14px; color: var(--white) !important; }

.psy-hero {
  position: relative; isolation: isolate;
  min-height: min(86svh, 820px);
  display: flex; align-items: flex-end;
  padding: clamp(48px, 8vw, 96px) 16px;
  background:
    linear-gradient(90deg, rgba(10,7,8,.92) 0%, rgba(10,7,8,.7) 38%, rgba(10,7,8,.15) 75%),
    linear-gradient(0deg, rgba(10,7,8,1) 0%, rgba(10,7,8,0) 30%),
    url('../img/landing/psy-hero.jpg') center / cover no-repeat,
    url('../img/landing/psychology.jpg') 70% 35% / cover no-repeat,
    #1a1214;
}
.psy-hero__inner { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 clamp(0px, 2.5vw, 40px); }
.psy-hero__inner > * { max-width: 640px; }
.psy-hero h1 { font-weight: 900; font-size: clamp(34px, 5vw, 60px); line-height: 1.04; letter-spacing: -.01em; }
.psy-hero p { margin-top: 18px; font-weight: 300; font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); max-width: 48ch; }
.psy-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
body.psy .btn { color: var(--white); }
.psy-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 34px; font-size: 14px; color: var(--muted); }
.psy-facts b { color: var(--white); font-weight: 500; }

.psy-section { max-width: 1120px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) clamp(16px, 4vw, 40px) 0; }
.psy-section h2 { font-weight: 900; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; }
.psy-lead { margin-top: 12px; max-width: 62ch; color: var(--muted); font-weight: 300; font-size: 17px; }

.psy-rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.psy-room { background: #151012; border: 1px solid rgba(254,254,254,.07); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.psy-room__body { padding: 20px 22px 24px; }
.psy-room h3 { font-weight: 700; font-size: 21px; }
.psy-room p { margin-top: 8px; color: var(--muted); font-weight: 300; font-size: 15px; }
p.psy-price { margin-top: 16px; color: var(--white); font-weight: 700; font-size: 24px; }
.psy-price span { font-weight: 300; font-size: 15px; color: var(--muted); }
p.psy-note { margin-top: 4px; font-size: 13px; }

.psy-gallery { position: relative; aspect-ratio: 3 / 2; background: #1d1518; }
.psy-gallery.is-empty {
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(80% 70% at 70% 20%, rgba(246,175,206,.16), rgba(0,0,0,0) 70%),
    linear-gradient(160deg, #2b2226, #140f11);
}
.psy-gallery.is-empty span { font-family: 'Corinthia', cursive; font-size: 40px; color: rgba(246,175,206,.55); }
.psy-gallery__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.psy-gallery__track::-webkit-scrollbar { display: none; }
.psy-gallery__track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.psy-gallery__dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.psy-gallery__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.45); }
.psy-gallery__dots i.on { background: #fff; }

.psy-prices { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; margin-top: 28px; align-items: start; }
.psy-prices table { width: 100%; border-collapse: collapse; }
.psy-prices td { padding: 16px 0; border-bottom: 1px solid rgba(254,254,254,.1); font-size: 17px; vertical-align: top; }
.psy-prices td:last-child { text-align: right; font-weight: 700; white-space: nowrap; padding-left: 16px; }
.psy-prices td span { font-size: 13px; color: var(--muted); }
.psy-terms { list-style: none; display: grid; gap: 14px; }
.psy-terms li { position: relative; padding-left: 22px; color: var(--muted); font-weight: 300; font-size: 15px; }
.psy-terms li::before { content: ''; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); }

.psy-steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.psy-steps li { counter-increment: s; position: relative; padding: 56px 22px 24px; background: #151012; border-radius: 18px; border: 1px solid rgba(254,254,254,.07); color: var(--muted); font-weight: 300; font-size: 15px; }
.psy-steps li::before { content: counter(s); position: absolute; top: 18px; left: 22px; font-family: 'Corinthia', cursive; font-size: 44px; line-height: 1; color: var(--pink-light); }
.psy-steps b { display: block; color: var(--white); font-weight: 500; font-size: 17px; margin-bottom: 6px; }
.psy-alt { margin-top: 18px; color: var(--muted); font-size: 15px; }

.psy-rules { margin-top: 24px; display: grid; gap: 10px; max-width: 820px; }
.psy-rules details { background: #151012; border: 1px solid rgba(254,254,254,.07); border-radius: 14px; padding: 4px 22px; }
.psy-rules summary { cursor: pointer; padding: 14px 0; font-weight: 500; font-size: 17px; list-style: none; display: flex; justify-content: space-between; }
.psy-rules summary::-webkit-details-marker { display: none; }
.psy-rules summary::after { content: '+'; color: var(--pink-light); font-size: 22px; line-height: 1; }
.psy-rules details[open] summary::after { content: '–'; }
.psy-rules ul { padding: 0 0 16px 18px; display: grid; gap: 8px; color: var(--muted); font-weight: 300; font-size: 15px; }
.psy-pdf { display: inline-block; margin-top: 18px; font-size: 15px; }

.psy-contacts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 28px; }
.psy-contacts h3 { font-weight: 500; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.psy-contacts p { font-size: 16px; line-height: 1.6; }

.psy-foot { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 80px 16px 48px; }
.psy-foot img { display: block; }
.psy-foot .door__script { font-size: 28px; }

@media (max-width: 900px) {
  .psy-top__nav { display: none; }
  .psy-top__cta { margin-left: auto; }
  .psy-rooms, .psy-steps { grid-template-columns: 1fr; }
  .psy-prices { grid-template-columns: 1fr; }
  .psy-contacts { grid-template-columns: 1fr 1fr; }
  .psy-hero { min-height: 78svh; background:
    linear-gradient(0deg, rgba(10,7,8,1) 0%, rgba(10,7,8,.75) 45%, rgba(10,7,8,.2) 100%),
    url('../img/landing/psy-hero.jpg') center / cover no-repeat,
    url('../img/landing/psychology.jpg') center / cover no-repeat, #1a1214; }
}
@media (max-width: 480px) {
  .psy-contacts { grid-template-columns: 1fr; }
  .psy-top__logo img { width: 120px; }
}

.psy-gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(10,7,8,.55); color: #fff; font-size: 24px; line-height: 36px;
  opacity: 0; transition: opacity .2s;
}
.psy-gallery__nav.prev { left: 10px; } .psy-gallery__nav.next { right: 10px; }
.psy-gallery:hover .psy-gallery__nav, .psy-gallery__nav:focus-visible { opacity: 1; }
@media (hover: none) { .psy-gallery__nav { display: none; } }

.psy-space { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.psy-space figure { margin: 0; background: #151012; border: 1px solid rgba(254,254,254,.07); border-radius: 18px; overflow: hidden; }
.psy-space img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.psy-space figcaption { padding: 18px 22px 22px; color: var(--muted); font-weight: 300; font-size: 15px; }
.psy-space figcaption b { display: block; color: var(--white); font-weight: 700; font-size: 19px; margin-bottom: 6px; }
@media (max-width: 900px) { .psy-space { grid-template-columns: 1fr; } }

/* цены в карточках кабинетов — на одной линии */
.psy-room__body { flex: 1; display: flex; flex-direction: column; }
.psy-room__body p.psy-price { margin-top: auto; padding-top: 16px; }
