/* ═══════════════════════════════════════
   VARIABLES & RESET
═══════════════════════════════════════ */
:root {
  --navy:      #18283f;
  --navy-dark: #0f1a2b;
  --navy-mid:  #1e334f;
  --gold:      #b96d2a;
  --gold-lt:   #d08840;
  --gold-pale: #f0d5b0;
  --white:     #ffffff;
  --off-white: #f4f2ee;
  --gray-lt:   #e8e5df;
  --gray:      #9da7b5;
  --text:      #2a2a2a;
  --text-mid:  #4a4e58;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Nunito Sans', 'Helvetica Neue', sans-serif;

  --radius:   8px;
  --radius-lg:16px;
  --shadow:   0 4px 24px rgba(0,0,0,.12);
  --shadow-lg:0 12px 48px rgba(0,0,0,.2);
  --trans:    .35s cubic-bezier(.25,.46,.45,.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--off-white);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════════════════════════════════════
   PRELOADER
═══════════════════════════════════════ */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity .6s ease, visibility .6s ease;
}

#preloader.done {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.preloader-logo {
  width: 280px;
  max-width: 80vw;
  animation: logoPulse 1.8s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { opacity: .85; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.04); }
}

.preloader-bar {
  width: 280px;
  max-width: 80vw;
  height: 3px;
  background: rgba(255,255,255,.12);
  border-radius: 99px;
  overflow: hidden;
}

.preloader-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt));
  border-radius: 99px;
  animation: barFill 2.2s ease-out forwards;
}

@keyframes barFill {
  0%   { width: 0%; }
  100% { width: 100%; }
}

.preloader-tagline {
  font-family: var(--font-body);
  font-size: .85rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gray);
}

/* ═══════════════════════════════════════
   HEADER
═══════════════════════════════════════ */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(15, 26, 43, .55);
  transition: background var(--trans), box-shadow var(--trans);
}

#header.scrolled {
  background: rgba(15, 26, 43, .97);
  box-shadow: 0 2px 24px rgba(0,0,0,.3);
}

.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo-link { flex-shrink: 0; }

.header-logo {
  height: 44px;
  width: auto;
  transition: opacity var(--trans);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.header-logo:hover { opacity: .8; }

.nav-desktop {
  display: flex;
  gap: 32px;
  margin-left: auto;
}

.nav-desktop a {
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--trans);
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-lt);
  transition: width var(--trans);
}

.nav-desktop a:hover { color: var(--white); }
.nav-desktop a:hover::after { width: 100%; }

.header-phone {
  font-size: .9rem;
  font-weight: 700;
  color: var(--gold-lt);
  letter-spacing: .02em;
  transition: color var(--trans);
  margin-left: 8px;
  white-space: nowrap;
}

.header-phone:hover { color: var(--white); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}

.burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--trans);
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  background: rgba(15,26,43,.98);
  padding: 16px 24px 24px;
  gap: 4px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.nav-mobile.open { display: flex; }

.mob-link {
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: color var(--trans);
}

.mob-link:hover { color: var(--gold-lt); }
.mob-phone { color: var(--gold-lt) !important; border-bottom: none; }

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    url('images/санузел (12).jpg') center center / cover no-repeat;
  transform: scale(1.05);
  animation: heroZoom 14s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,18,34,.88) 0%,
    rgba(15,26,43,.72) 60%,
    rgba(24,40,63,.5) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 120px 24px 80px;
  margin-left: max(24px, calc(50vw - 580px));
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--gold);
  color: var(--gold-lt);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 24px;
  border-radius: 2px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
}

.hero-title .accent {
  color: var(--gold-lt);
  font-style: italic;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--gold);
  color: var(--white);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  border-radius: var(--radius);
  transition: background var(--trans), transform var(--trans), box-shadow var(--trans);
  box-shadow: 0 4px 16px rgba(185,109,42,.4);
}

.btn-primary:hover {
  background: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(185,109,42,.5);
}

.btn-outline {
  display: inline-block;
  padding: 14px 32px;
  border: 2px solid rgba(255,255,255,.5);
  color: var(--white);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  border-radius: var(--radius);
  transition: border-color var(--trans), background var(--trans), transform var(--trans);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.08);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.hero-scroll span {
  display: block;
  width: 2px;
  height: 8px;
  background: rgba(255,255,255,.4);
  border-radius: 2px;
  animation: scrollDots 1.5s ease-in-out infinite;
}

.hero-scroll span:nth-child(2) { animation-delay: .2s; }
.hero-scroll span:nth-child(3) { animation-delay: .4s; }

@keyframes scrollDots {
  0%, 100% { opacity: .2; transform: scaleY(1); }
  50%       { opacity: 1;  transform: scaleY(1.6); }
}

/* ═══════════════════════════════════════
   SECTION COMMON
═══════════════════════════════════════ */
section { padding: 100px 0; }

.section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  margin-bottom: 16px;
}

.section-line {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.section-line:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  white-space: nowrap;
}

.section-sub {
  text-align: center;
  color: var(--text-mid);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 60px;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════
   ABOUT
═══════════════════════════════════════ */
#about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.about-card {
  background: var(--off-white);
  border: 1px solid var(--gray-lt);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--gold-pale);
}

.about-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.about-card p {
  font-size: .92rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ═══════════════════════════════════════
   PRICES
═══════════════════════════════════════ */
#prices {
  background: var(--navy-dark);
  position: relative;
  overflow: hidden;
}

#prices::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(185,109,42,.12) 0%, transparent 70%);
  pointer-events: none;
}

#prices .section-title { color: var(--white); }
#prices .section-sub   { color: var(--gray); }

.prices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
  align-items: start;
}

.price-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
  transition: transform var(--trans), border-color var(--trans), box-shadow var(--trans);
}

.price-card:hover {
  transform: translateY(-6px);
  border-color: rgba(185,109,42,.5);
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
}

.price-card.price-featured {
  background: rgba(185,109,42,.1);
  border-color: var(--gold);
  transform: scale(1.03);
}

.price-card.price-featured:hover {
  transform: scale(1.03) translateY(-6px);
}

.price-badge-top {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 18px;
  border-radius: 99px;
  white-space: nowrap;
}

.price-tier {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 16px;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
  line-height: 1;
}

.price-amount strong {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--white);
}

.price-unit {
  font-size: .85rem;
  color: var(--gray);
  margin-top: 4px;
  margin-bottom: 28px;
}

.price-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.price-list li {
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.price-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold-lt);
  font-weight: 700;
}

.btn-price {
  display: block;
  text-align: center;
  padding: 12px 24px;
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold-lt);
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .06em;
  border-radius: var(--radius);
  transition: background var(--trans), color var(--trans);
}

.btn-price:hover {
  background: var(--gold);
  color: var(--white);
}

.prices-note {
  margin-top: 48px;
  text-align: center;
  padding: 24px 32px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.03);
}

.prices-note p {
  color: var(--gray);
  font-size: .95rem;
  line-height: 1.7;
}

.prices-note strong {
  color: var(--gold-pale);
}

/* ═══════════════════════════════════════
   PORTFOLIO
═══════════════════════════════════════ */
#portfolio {
  background: var(--off-white);
}

.portfolio-filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 8px 20px;
  background: transparent;
  border: 2px solid var(--gray-lt);
  color: var(--text-mid);
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  border-radius: 99px;
  cursor: pointer;
  transition: all var(--trans);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.portfolio-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: box-shadow var(--trans), transform var(--trans);
}

.portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.portfolio-item.hidden {
  display: none;
}

.portfolio-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}

.portfolio-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.portfolio-item:hover .portfolio-img-wrap img {
  transform: scale(1.06);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,26,43,.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--trans);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.portfolio-item:hover .portfolio-overlay { opacity: 1; }

.portfolio-overlay span {
  color: var(--white);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.4;
}

.portfolio-label {
  padding: 12px 20px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ═══════════════════════════════════════
   WHY
═══════════════════════════════════════ */
#why {
  background: var(--navy);
  padding: 100px 0;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-header {
  justify-content: flex-start;
  margin-bottom: 40px;
}

.why-header .section-line:last-child { display: none; }
.why-header .section-title { color: var(--white); text-align: left; white-space: normal; }

.why-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.why-list li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.why-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
  width: 36px;
}

.why-list li div {
  font-size: .95rem;
  color: rgba(255,255,255,.75);
  line-height: 1.65;
}

.why-list li strong { color: var(--white); }

.why-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.stat-item {
  text-align: center;
  padding: 36px 24px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.03);
  transition: border-color var(--trans), background var(--trans);
}

.stat-item:hover {
  border-color: var(--gold);
  background: rgba(185,109,42,.08);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--gold-lt);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: .82rem;
  color: var(--gray);
  line-height: 1.4;
}

/* ═══════════════════════════════════════
   CONTACTS
═══════════════════════════════════════ */
#contacts {
  background: var(--white);
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.contact-card {
  text-align: center;
  padding: 40px 24px;
  border: 1px solid var(--gray-lt);
  border-radius: var(--radius-lg);
  transition: transform var(--trans), border-color var(--trans), box-shadow var(--trans);
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-pale);
  box-shadow: var(--shadow);
}

.contact-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.contact-title {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 10px;
}

.contact-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  transition: color var(--trans);
}

.contact-value:hover { color: var(--gold); }

.contact-hint {
  font-size: .82rem;
  color: var(--gray);
}

.cta-block {
  text-align: center;
  padding: 60px 40px;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-lt);
}

.cta-block h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.cta-block p {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-lg {
  padding: 16px 36px !important;
  font-size: 1rem !important;
}

.btn-tg {
  display: inline-block;
  padding: 14px 32px;
  background: #229ed9;
  color: var(--white);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  border-radius: var(--radius);
  transition: background var(--trans), transform var(--trans), box-shadow var(--trans);
  box-shadow: 0 4px 16px rgba(34,158,217,.35);
}

.btn-tg:hover {
  background: #1b8abf;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(34,158,217,.45);
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
footer {
  background: var(--navy-dark);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-logo {
  height: 38px;
  width: auto;
  opacity: .85;
}

.footer-copy {
  font-size: .82rem;
  color: var(--gray);
  flex: 1;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: .85rem;
  color: var(--gray);
  transition: color var(--trans);
}

.footer-links a:hover { color: var(--gold-lt); }

/* ═══════════════════════════════════════
   CAROUSEL
═══════════════════════════════════════ */
.carousel-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  max-width: 960px;
  margin: 0 auto;
  background: #0d1726;
  overflow: hidden; /* критично — скрывает соседние слайды */
  min-height: 480px;
}

.carousel-wrap.hidden { display: none; }

.carousel-track {
  display: flex;
  flex-wrap: nowrap;
  transition: transform .5s cubic-bezier(.25,.46,.45,.94);
  will-change: transform;
  /* Трек растягивается на все слайды, но overflow:hidden на обёртке скрывает лишнее */
}

.carousel-slide {
  min-width: 100%;   /* ровно одна ширина контейнера */
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;    /* не растягивается, не сжимается */
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

.carousel-slide .portfolio-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: 480px; /* fallback если aspect-ratio не срабатывает */
  border-radius: 0;
  overflow: hidden;
  position: relative;
  background: #0d1726;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide .portfolio-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  margin: 0;
  padding: 0;
  transition: none;
}

/* Оверлей снизу — всегда виден (не требует клика) */
.carousel-slide .portfolio-img-wrap .portfolio-overlay {
  opacity: 1;
  background: linear-gradient(to top, rgba(5,10,20,.75) 0%, transparent 55%);
  align-items: flex-end;
  padding-bottom: 20px;
}

.carousel-slide .portfolio-img-wrap .portfolio-overlay span {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .03em;
}

.car-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15,26,43,.65);
  border: none;
  color: var(--white);
  font-size: 2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--trans);
  backdrop-filter: blur(4px);
  z-index: 10;
  line-height: 1;
}

.car-btn:hover { background: rgba(15,26,43,.9); }

.car-prev { left: 16px; }
.car-next { right: 16px; }

.car-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.car-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  transition: background var(--trans), transform var(--trans);
  border: none;
}

.car-dot.active {
  background: var(--white);
  transform: scale(1.3);
}

/* contacts 2-col centered */
.contacts-grid-2 {
  max-width: 640px;
  margin: 0 auto 0;
  grid-template-columns: 1fr 1fr !important;
}

/* footer dev credit */
.footer-dev {
  text-align: center;
  padding: 10px 24px 14px;
  font-size: .72rem;
  color: rgba(255,255,255,.2);
  letter-spacing: .04em;
}

.footer-dev a {
  color: rgba(255,255,255,.25);
  transition: color var(--trans);
}

.footer-dev a:hover { color: rgba(255,255,255,.5); }
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5,10,20,.95);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

#lightboxImg {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,.12);
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--trans);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,.25);
}

.lightbox-close { top: 24px; right: 24px; font-size: 1.2rem; }
.lightbox-prev  { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 20px; top: 50%; transform: translateY(-50%); }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .burger { display: flex; }
  .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .why-header { justify-content: center; }
  .why-header .section-title { text-align: center; }
}

@media (max-width: 640px) {
  section { padding: 72px 0; }
  .hero-content { padding: 100px 24px 72px; margin-left: 0; }
  .prices-grid  { grid-template-columns: 1fr; }
  .price-card.price-featured { transform: none; }
  .price-card.price-featured:hover { transform: translateY(-6px); }
  .portfolio-grid { grid-template-columns: 1fr; }
  .why-stats { grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-copy { order: 3; }
  .cta-block { padding: 40px 20px; }
  .section-title { white-space: normal; }
}

/* ═══════════════════════════════════════
   MOBILE TOP PHONE (visible on mobile only)
═══════════════════════════════════════ */
.mobile-top-phone {
  display: none;
}

.mobile-top-phone a {
  color: var(--gold-lt);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--trans);
}

.mobile-top-phone a:hover { color: var(--white); }

@media (max-width: 900px) {
  .mobile-top-phone {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 8px;
    flex-shrink: 0;
  }
  .mobile-top-phone a {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(240, 165, 0, 0.15);
    border: 1px solid rgba(240, 165, 0, 0.4);
    border-radius: 20px;
    padding: 5px 10px;
    font-size: .75rem;
    white-space: nowrap;
  }
  .mobile-top-phone a::before {
    content: '📞';
    font-size: .68rem;
  }
  .header-phone {
    display: none;
  }
}

/* На экранах до 480px — только иконка без текста */
@media (max-width: 480px) {
  .mobile-top-phone a .phone-text {
    display: none;
  }
  .mobile-top-phone a {
    padding: 7px 10px;
    font-size: 1rem;
    background: rgba(240, 165, 0, 0.15);
    border: 1px solid rgba(240, 165, 0, 0.4);
  }
  .mobile-top-phone a::before {
    content: '📞';
    font-size: .9rem;
  }
}

/* ═══════════════════════════════════════
   CEILING PROMO BANNER
═══════════════════════════════════════ */
#ceiling-promo {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 48px 0;
}

.ceiling-promo-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 36px 48px;
  backdrop-filter: blur(8px);
}

.ceiling-promo-badge {
  display: inline-block;
  background: linear-gradient(90deg, #f0a500, #e67e22);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.ceiling-promo-text h3 {
  color: #fff;
  font-size: 1.6rem;
  margin: 0 0 8px;
}

.ceiling-promo-text p {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  margin: 0;
  max-width: 480px;
}

@media (max-width: 700px) {
  .ceiling-promo-inner {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
  }
  .ceiling-promo-text p { max-width: 100%; }
}

/* ═══════════════════════════════════════
   NAV — кнопка Натяжные потолки
═══════════════════════════════════════ */
.nav-ceiling-btn {
  background: linear-gradient(90deg, #f0a500, #e67e22) !important;
  color: #fff !important;
  padding: 6px 16px !important;
  border-radius: 20px;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}

.nav-ceiling-btn:hover { opacity: 0.85; }

.mob-ceiling {
  background: linear-gradient(90deg, #f0a500, #e67e22);
  color: #fff !important;
  border-radius: 8px;
  padding: 10px 16px !important;
  font-weight: 700 !important;
  margin: 4px 0;
}
