/* ========================================
   READY PACKAGES (solutions section + receipt modal)
   Extracted from homepage-bundle.css (solutions.css chunk)
   so prices.html can reuse the package cards.
   Loaded on: index.html, pages/prices.html
   ======================================== */

/* === solutions.css === */
/* ========================================
   SOLUTIONS SECTION — New premium design
   3D cards + modal receipt
   ======================================== */

/* ---- Shared variables (section + modal overlay) ---- */
.solutions-section,
.sol-modal-overlay {
  --sol-bg: var(--color-gray-100);
  --sol-ink: var(--color-gray-900);
  --sol-cream: var(--color-gray-50);
  --sol-soft: var(--color-gray-500);
  --sol-muted: var(--color-secondary);
  --sol-accent: var(--color-accent);
  --sol-warm: var(--color-primary);
  --sol-line: rgba(28,26,21,0.07);
}

.solutions-section {
  position: relative;
  overflow: visible;
  background: transparent;
}

.solutions-wrap {
  padding: 100px clamp(16px, 5vw, 80px) 48px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ---- Header ---- */
.solutions-section .s-head { margin-bottom: 56px; }

.solutions-section .s-eyebrow {
  color: var(--sol-muted); margin-bottom: 16px;
}
.solutions-section .s-eyebrow::before, .solutions-section .s-eyebrow::after {
  content: ''; width: 24px; height: 1px; background: var(--sol-warm);
}

.solutions-section .s-title {
  font-size: clamp(32px, 4vw, 52px);
  margin-bottom: 12px;
  color: var(--sol-ink);
}
.solutions-section .s-title em { color: var(--sol-warm); }

.solutions-section .s-sub {
  font-family: 'Golos Text', sans-serif;
  font-size: 15px; color: var(--sol-soft); max-width: 460px;
  margin: 0 auto;
}

/* ================================================
   ROOM CARDS — 3D perspective grid
   ================================================ */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  perspective: 1200px;
}

.room-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  cursor: pointer;
  background: var(--sol-cream);
  border: 1px solid var(--sol-line);
  padding: 40px 32px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.4s ease, border-color 0.3s ease;
}

.room-card:hover {
  transform: translateY(-10px) rotateX(3deg);
  box-shadow: 0 30px 60px rgba(28,26,21,0.08);
  border-color: var(--sol-accent);
}

/* Glow on hover */
.room-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(196,180,154,0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.room-card:hover::before { opacity: 1; }

/* Badge */
.rc-badge {
  align-self: flex-start;
  padding: 5px 14px;
  border-radius: 20px;
  font-family: 'Golos Text', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.rc-badge.eco   { background: rgba(76,175,80,0.1);  color: #388e3c; }
.rc-badge.std   { background: rgba(33,150,243,0.1); color: #1976d2; }
.rc-badge.prem  { background: rgba(140,123,99,0.12); color: var(--sol-warm); }
.rc-badge.pop   { background: rgba(233,30,99,0.1);  color: #c2185b; }
.rc-badge.deal  { background: rgba(255,152,0,0.1);  color: #e65100; }

/* Price circle — the visual centerpiece */
.rc-circle-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  margin-bottom: 28px;
}

/* SVG progress ring */
.rc-ring {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}
.rc-ring circle { fill: none; stroke-width: 3; }
.rc-ring .ring-bg { stroke: var(--sol-line); }
.rc-ring .ring-fill {
  stroke: url(#goldGrad);
  stroke-linecap: round;
  stroke-dasharray: 502;
  stroke-dashoffset: 502;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Inner content */
.rc-circle-inner {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: var(--sol-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: background 0.4s ease;
}
.room-card:hover .rc-circle-inner { background: var(--sol-cream); }

.rc-area {
  font-family: 'Lora', serif;
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
  color: var(--sol-ink);
  margin-bottom: 2px;
}
.rc-area span { font-size: 18px; color: var(--sol-warm); }

.rc-sqm {
  font-family: 'Golos Text', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--sol-muted);
}

/* Room name */
.rc-name {
  font-family: 'Lora', serif;
  font-size: 26px; font-weight: 400;
  margin-bottom: 4px; color: var(--sol-ink);
}

.rc-type {
  font-family: 'Golos Text', sans-serif;
  font-size: 13px; color: var(--sol-soft); margin-bottom: 20px;
}

/* Price */
.rc-price {
  font-family: 'Lora', serif;
  font-size: 32px; font-weight: 400;
  color: var(--sol-warm); margin-bottom: 4px;
}

.rc-price-label {
  font-family: 'Golos Text', sans-serif;
  font-size: 10px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--sol-muted); margin-bottom: 24px;
}

/* "Details" button */
.rc-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 60px;
  border: 1px solid var(--sol-line);
  background: transparent;
  font-family: 'Golos Text', sans-serif;
  font-size: 12px; font-weight: 600;
  color: var(--sol-soft);
  cursor: pointer;
  transition: all 0.3s ease;
}
.rc-open:hover {
  border-color: var(--sol-warm);
  color: var(--sol-ink);
  background: var(--sol-bg);
}
.rc-open svg {
  width: 14px; height: 14px;
  stroke: currentColor; stroke-width: 2; fill: none;
  transition: transform 0.3s ease;
}
.rc-open:hover svg { transform: translateX(3px); }

/* ================================================
   MODAL — cinematic receipt
   ================================================ */
.sol-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,14,12,0.85);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.sol-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.sol-modal {
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--sol-cream);
  border-radius: 28px;
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 40px 80px rgba(0,0,0,0.15);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sol-modal::-webkit-scrollbar { display: none; }
.sol-modal-overlay.open .sol-modal {
  transform: translateY(0) scale(1);
}

/* Close — sticky so it stays visible when scrolling */
.m-close {
  position: sticky;
  top: 16px;
  z-index: 5;
  float: right;
  margin: 16px 16px -56px 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--sol-line);
  background: var(--sol-cream);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.m-close:hover { background: var(--sol-ink); border-color: var(--sol-ink); }
.m-close svg {
  width: 16px; height: 16px;
  stroke: var(--sol-soft); stroke-width: 2; fill: none;
  transition: stroke 0.3s ease;
}
.m-close:hover svg { stroke: var(--sol-cream); }

/* Modal header */
.m-head {
  padding: 40px 40px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.m-badge {
  padding: 5px 14px; border-radius: 20px;
  font-family: 'Golos Text', sans-serif;
  font-size: 9px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
}
.m-badge.eco  { background: rgba(76,175,80,0.1);  color: #388e3c; }
.m-badge.std  { background: rgba(33,150,243,0.1); color: #1976d2; }
.m-badge.prem { background: rgba(140,123,99,0.12); color: var(--sol-warm); }
.m-badge.pop  { background: rgba(233,30,99,0.1);  color: #c2185b; }
.m-badge.deal { background: rgba(255,152,0,0.1);  color: #e65100; }

.m-num {
  margin-left: auto;
  margin-right: 44px;
  font-family: 'Lora', serif;
  font-size: 28px;
  color: var(--sol-muted);
  opacity: 0.2;
}

.m-title {
  padding: 0 40px;
  font-family: 'Lora', serif;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 400;
  margin-bottom: 4px;
  color: var(--sol-ink);
}

.m-subtitle {
  padding: 0 40px;
  font-family: 'Golos Text', sans-serif;
  font-size: 14px;
  color: var(--sol-soft);
  margin-bottom: 32px;
}

/* Receipt items */
.m-receipt { padding: 0 40px; }

.m-receipt-title {
  font-family: 'Golos Text', sans-serif;
  font-size: 10px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--sol-muted); margin-bottom: 16px;
}

.m-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--sol-line);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}
.m-item.show { opacity: 1; transform: translateY(0); }

.m-item-left { flex: 1; min-width: 0; }

.m-item-name {
  font-family: 'Golos Text', sans-serif;
  font-size: 14px; font-weight: 600;
  color: var(--sol-ink); margin-bottom: 2px;
}
.m-item-detail {
  font-family: 'Golos Text', sans-serif;
  font-size: 11px; color: var(--sol-muted);
}

.m-item-price {
  font-family: 'Golos Text', sans-serif;
  font-size: 15px; font-weight: 700;
  color: var(--sol-ink);
  white-space: nowrap;
  margin-left: 20px;
}

/* Price proportion bar */
.m-item-bar {
  width: 100%;
  height: 4px;
  background: rgba(28,26,21,0.03);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}
.m-item-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sol-accent), var(--sol-warm));
  border-radius: 2px;
  width: 0;
  transition: width 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.3s;
}

/* Free items row */
.m-item--free {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--sol-line);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}
.m-item--free.show { opacity: 1; transform: translateY(0); }
.m-item--free .m-item-name { color: #388e3c; }
.m-item--free .m-item-price { color: #388e3c; font-style: italic; }
.m-item--free svg { flex-shrink: 0; color: #388e3c; }

/* Divider */
.m-divider {
  margin: 8px 40px 0;
  border: none;
  height: 2px;
  background: linear-gradient(90deg, var(--sol-accent), var(--sol-warm), var(--sol-accent));
  border-radius: 1px;
  opacity: 0;
  transition: opacity 0.5s ease 0.8s;
}
.sol-modal-overlay.open .m-divider { opacity: 0.3; }

/* Total */
.m-total {
  padding: 24px 40px 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease;
}
.m-total.show { opacity: 1; transform: translateY(0); }

.m-total-label {
  font-family: 'Golos Text', sans-serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--sol-soft);
}

.m-total-price {
  font-family: 'Lora', serif;
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 400;
  color: var(--sol-warm);
}
.m-total-price .rub { font-size: 0.6em; }

/* CTA */
.m-cta-wrap {
  padding: 28px 40px 40px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease;
}
.m-cta-wrap.show { opacity: 1; transform: translateY(0); }

.m-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 18px;
  border-radius: 16px;
  background: var(--sol-ink); color: var(--sol-cream);
  font-family: 'Golos Text', sans-serif;
  font-size: 15px; font-weight: 700; border: none; cursor: pointer;
  position: relative; overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 4px 16px rgba(28,26,21,0.12);
}
.m-cta:hover {
  background: var(--sol-warm);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(140,123,99,0.25);
}
.m-cta::after {
  content: ''; position: absolute; top: -50%; left: -60%; width: 40%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: skewX(-20deg); transition: left 0.6s ease;
}
.m-cta:hover::after { left: 120%; }
.m-cta svg {
  width: 16px; height: 16px;
  stroke: currentColor; stroke-width: 2; fill: none;
  transition: transform 0.3s ease;
}
.m-cta:hover svg { transform: translateX(4px); }

/* ---- Footer note styling ---- */
.solutions-section .projects-note {
  font-family: 'Golos Text', sans-serif;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 900px) {
  .solutions-wrap { padding: 60px 16px; }

  .rooms-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    perspective: none;
  }

  .room-card {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 24px;
    gap: 20px;
  }
  .room-card:hover { transform: translateY(-4px); }

  .rc-badge {
    align-self: auto; position: absolute;
    top: 16px; left: 16px; margin: 0;
  }

  .rc-circle-wrap { width: 100px; height: 100px; margin: 0; flex-shrink: 0; }
  .rc-area { font-size: 26px; }
  .rc-area span { font-size: 12px; }
  .rc-sqm { font-size: 9px; }
  .rc-circle-inner { inset: 8px; }

  .rc-content { flex: 1; display: flex; flex-direction: column; }
  .rc-name { font-size: 20px; margin-top: 4px; }
  .rc-type { margin-bottom: 8px; }
  .rc-price { font-size: 26px; }
  .rc-price-label { margin-bottom: 0; }
  .rc-open { display: none; }

  /* Modal — start below fixed header */
  .sol-modal-overlay { align-items: flex-start; padding: 0; top: var(--header-h); }
  .sol-modal {
    max-width: 100%;
    max-height: calc(100vh - var(--header-h));
    border-radius: 0 0 24px 24px;
    transform: translateY(-100%) scale(1);
  }
  .sol-modal-overlay.open .sol-modal {
    transform: translateY(0) scale(1);
  }
  .m-close {
    top: 12px;
    margin: 12px 12px -52px 0;
  }
  .m-head, .m-receipt, .m-total, .m-cta-wrap, .m-title, .m-subtitle {
    padding-left: 24px; padding-right: 24px;
  }
  .m-divider { margin-left: 24px; margin-right: 24px; }
}

@media (max-width: 480px) {
  .room-card { padding: 20px; gap: 16px; padding-top: 42px; }
  .rc-circle-wrap { width: 80px; height: 80px; }
  .rc-area { font-size: 22px; }
  .rc-name { font-size: 18px; }
  .rc-price { font-size: 22px; }
}

/* Disable sticky hover on touch */
@media (hover: none) {
  .room-card:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--sol-line);
  }
  .room-card:hover::before { opacity: 0; }
  .room-card:hover .rc-circle-inner { background: var(--sol-bg); }
  .rc-open:hover { border-color: var(--sol-line); color: var(--sol-soft); background: transparent; }
}

/* Hidden SVG defs */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }


/* Touch devices: disable 3D transforms on cards (perf) */
@media (hover: none) {
  .room-card {
  transform-style: flat;
  will-change: auto;
  }
}


/* ──────────────────────────────────────────────
   Section tail shared with prices.html: footnote,
   calc-CTA, trust tagline. COPIES of homepage-bundle
   rules (bundle keeps originals; on index this file
   loads BEFORE the bundle so bundle/perf overrides win).
   ────────────────────────────────────────────── */
/* Footnote */
.projects-note {
  text-align: center;
  font-size: 12px;
  color: var(--color-gray-500);
  margin-top: 24px;
  font-style: italic;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.88);
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid rgba(180, 180, 195, 0.3);
}

/* ---- Calc CTA — premium style matching solutions section ---- */
.projects-calc-cta {
  margin-top: 40px;
  text-align: center;
  padding: 40px 32px 36px;
  background: var(--color-gray-50);
  border-radius: 28px;
  border: 1px solid rgba(28,26,21,0.07);
}

.projects-calc-cta__heading {
  font-family: 'Lora', serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  color: var(--color-gray-900);
  margin-bottom: 8px;
  line-height: 1.2;
}

.projects-calc-cta__sub {
  font-family: 'Golos Text', sans-serif;
  font-size: 14px;
  color: var(--color-gray-500);
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.projects-calc-cta__options {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 16px;
}

.projects-calc-cta__option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 32px;
  background: var(--color-gray-100);
  border: 1px solid rgba(28,26,21,0.07);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  text-decoration: none;
  color: var(--color-gray-900);
  min-width: 210px;
}

.projects-calc-cta__option:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(28,26,21,0.08);
  border-color: var(--color-accent);
}

.projects-calc-cta__option svg {
  color: var(--color-primary);
  transition: transform 0.3s ease;
}
.projects-calc-cta__option:hover svg {
  transform: scale(1.1);
}

.projects-calc-cta__option--accent {
  background: rgba(140,123,99,0.06);
  border-color: rgba(140,123,99,0.2);
  color: var(--color-gray-900);
  font-family: inherit;
  font-size: inherit;
}

.projects-calc-cta__option--accent:hover {
  background: rgba(140,123,99,0.1);
  border-color: var(--color-accent);
}

.projects-calc-cta__option-title {
  font-family: 'Golos Text', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--color-gray-900);
}

.projects-calc-cta__option-desc {
  font-family: 'Golos Text', sans-serif;
  font-size: 12px;
  color: var(--color-secondary);
}

.projects-calc-cta__or {
  font-family: 'Golos Text', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-secondary);
  font-style: normal;
  display: flex;
  align-items: center;
}

@media (max-width: 560px) {
  .projects-calc-cta {
    padding: 28px 20px;
    border-radius: 20px;
  }
  .projects-calc-cta__options {
    flex-direction: column;
    gap: 10px;
  }
  .projects-calc-cta__option {
    width: 100%;
    min-width: 0;
    padding: 18px 20px;
    flex-direction: row;
    gap: 14px;
    border-radius: 16px;
  }
  .projects-calc-cta__option svg {
    flex-shrink: 0;
  }
  .projects-calc-cta__or {
    display: none;
  }
}

@keyframes np-shimmer {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

/* ═══════════════════════════════════════════
   TRUST TAGLINE (between producers & ceiling types)
   ═══════════════════════════════════════════ */
.np-trust-tagline {
  text-align: center;
  padding: 0 clamp(16px, 5vw, 80px);
  margin: 56px auto 0;
  position: relative;
  z-index: 2;
}
.np-trust-tagline-text {
  display: inline-block;
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--color-primary);
  text-align: center;
  padding: 16px 40px;
  border: 1px solid rgba(140,123,99,0.2);
  border-radius: 100px;
  position: relative;
  overflow: hidden;
}
.np-trust-tagline-text::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(196,180,154,0.12), transparent);
  animation: np-shimmer 4s ease-in-out infinite;
}
@media (max-width: 767px) {
  .np-trust-tagline {
    padding: 0 16px;
    margin: 20px auto 0;
  }
  .np-trust-tagline-text {
    font-size: 14px;
    padding: 14px 24px;
    border-radius: 20px;
    text-align: center;
  }
}

/* Perf mirror of the bundle hover-none block for prices.html */
@media (hover: none) {
  .np-trust-tagline-text::before { animation: none; }
}
