/* ============================================
   PotolokRez — Premium Dark Luxury
   ============================================ */

:root {
  --bg-primary: #0f0f0f;
  --bg-secondary: #1a1a1a;
  --bg-card: rgba(26, 26, 26, 0.6);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.45);
  --accent: #d4af37;
  --accent-light: #e8c96a;
  --accent-glow: rgba(212, 175, 55, 0.4);
  --border: rgba(255, 255, 255, 0.08);
  --glass-blur: 20px;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(212, 175, 55, 0.15);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 8px 16px;
  background: var(--accent);
  color: var(--bg-primary);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}

.header--scrolled {
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: 0 1px 0 var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo__icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.logo__accent {
  color: var(--accent);
}

.nav__list {
  display: flex;
  gap: 28px;
}

.nav__link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--text-primary);
}

.nav__link:hover::after,
.nav__link:focus-visible::after {
  width: 100%;
}

.header__social {
  flex-shrink: 0;
}

/* Social icons */
.social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icons__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  transition: color var(--transition), border-color var(--transition), background var(--transition), transform var(--transition);
}

.social-icons__btn:hover,
.social-icons__btn:focus-visible {
  transform: translateY(-2px);
}

.social-icons__btn--tg:hover,
.social-icons__btn--tg:focus-visible {
  color: #2aabee;
  border-color: rgba(42, 171, 238, 0.5);
  background: rgba(42, 171, 238, 0.1);
}

.social-icons__btn--ig:hover,
.social-icons__btn--ig:focus-visible {
  color: #e4405f;
  border-color: rgba(228, 64, 95, 0.5);
  background: rgba(228, 64, 95, 0.1);
}

.social-icons__svg {
  width: 20px;
  height: 20px;
}

.social-icons--lg .social-icons__btn {
  width: 52px;
  height: 52px;
}

.social-icons--lg .social-icons__svg {
  width: 24px;
  height: 24px;
}

.gallery__social {
  text-align: center;
  margin-top: 32px;
}

.gallery__social-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.contacts__social {
  margin-bottom: 8px;
}

.footer__social {
  margin-top: 16px;
}

.social-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
}

.social-float .social-icons {
  flex-direction: column;
  gap: 10px;
}

.social-float .social-icons__btn {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  background: rgba(20, 20, 20, 0.92);
  backdrop-filter: blur(8px);
}

.service-page__social {
  margin: 20px 0 8px;
}

.service-page__social .social-icons {
  justify-content: flex-start;
}

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

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

.burger--active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger--active span:nth-child(2) {
  opacity: 0;
}

.burger--active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), #b8942e);
  color: var(--bg-primary);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__scene {
  position: absolute;
  inset: 0;
  perspective: 1200px;
  overflow: hidden;
}

.hero__room {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.1s linear;
}

.room__wall {
  position: absolute;
  background: linear-gradient(180deg, #141414 0%, #0a0a0a 100%);
}

.room__wall--back {
  width: 100%;
  height: 60%;
  bottom: 20%;
  left: 0;
  transform: rotateX(5deg) translateZ(-200px);
  transform-origin: bottom center;
  background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
}

.room__wall--left {
  width: 40%;
  height: 80%;
  bottom: 0;
  left: 0;
  transform: rotateY(45deg) translateZ(-100px);
  transform-origin: left center;
  background: linear-gradient(90deg, #0a0a0a, #151515);
}

.room__wall--right {
  width: 40%;
  height: 80%;
  bottom: 0;
  right: 0;
  transform: rotateY(-45deg) translateZ(-100px);
  transform-origin: right center;
  background: linear-gradient(-90deg, #0a0a0a, #151515);
}

.room__floor {
  position: absolute;
  bottom: 0;
  left: -10%;
  width: 120%;
  height: 25%;
  background: linear-gradient(180deg, #111 0%, #0a0a0a 100%);
  transform: rotateX(75deg);
  transform-origin: bottom center;
}

.room__ceiling-wrap {
  position: absolute;
  top: 5%;
  left: 10%;
  width: 80%;
  height: 35%;
  transform-style: preserve-3d;
  perspective: 800px;
}

.room__ceiling {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #2a2a2a 0%, #1e1e1e 50%, #181818 100%);
  border-radius: 4px;
  transform: rotateX(-15deg) scaleY(0.85);
  transform-origin: center bottom;
  opacity: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  transition: none;
  overflow: hidden;
}

.room__ceiling.ceiling--visible {
  opacity: 1;
}

.room__ceiling.ceiling--stretched {
  animation: ceilingStretch 2.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes ceilingStretch {
  0% {
    transform: rotateX(-25deg) scaleY(0.7) translateY(30px);
    opacity: 0.3;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: rotateX(-8deg) scaleY(1) translateY(0);
    opacity: 1;
  }
}

.ceiling__contour {
  position: absolute;
  inset: 8px;
  border: 2px solid transparent;
  border-radius: 2px;
  opacity: 0;
  transition: opacity 1s ease 0.5s, box-shadow 1s ease 0.5s, border-color 1s ease 0.5s;
}

.ceiling__contour.contour--active {
  opacity: 1;
  border-color: var(--accent);
  box-shadow:
    inset 0 0 20px var(--accent-glow),
    0 0 30px var(--accent-glow),
    0 0 60px rgba(212, 175, 55, 0.2);
  animation: contourPulse 3s ease-in-out infinite;
}

@keyframes contourPulse {
  0%, 100% { box-shadow: inset 0 0 20px var(--accent-glow), 0 0 30px var(--accent-glow); }
  50% { box-shadow: inset 0 0 30px var(--accent-glow), 0 0 50px var(--accent-glow), 0 0 80px rgba(212, 175, 55, 0.3); }
}

.ceiling__led {
  position: absolute;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  filter: blur(1px);
}

.ceiling__led--top {
  top: 12px;
  left: 10%;
  width: 80%;
  height: 2px;
}

.ceiling__led--left {
  top: 12px;
  left: 8px;
  width: 2px;
  height: calc(100% - 24px);
  background: linear-gradient(180deg, var(--accent), transparent, var(--accent));
}

.ceiling__led--right {
  top: 12px;
  right: 8px;
  width: 2px;
  height: calc(100% - 24px);
  background: linear-gradient(180deg, var(--accent), transparent, var(--accent));
}

.ceiling__led--front {
  bottom: 12px;
  left: 10%;
  width: 80%;
  height: 2px;
}

.ceiling__led.led--active {
  opacity: 0.9;
  animation: ledGlow 2s ease-in-out infinite alternate;
}

@keyframes ledGlow {
  from { opacity: 0.6; filter: blur(1px); }
  to { opacity: 1; filter: blur(2px) brightness(1.3); }
}

.ceiling__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 1.5s ease 1.5s;
}

.ceiling__glow.glow--active {
  opacity: 1;
}

.room__ambient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(212, 175, 55, 0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 2s ease 2s;
  pointer-events: none;
}

.room__ambient.ambient--active {
  opacity: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 15, 15, 0.3) 0%, rgba(15, 15, 15, 0.7) 50%, rgba(15, 15, 15, 0.95) 100%),
    radial-gradient(ellipse at 50% 40%, transparent 0%, rgba(15, 15, 15, 0.8) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 80px;
  max-width: 800px;
}

.hero__badge {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  background: rgba(26, 26, 26, 0.5);
  opacity: 0;
  animation: fadeUp 0.8s ease 2.5s forwards;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s ease 2.7s forwards;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 0.8s ease 2.9s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.8s ease 3.1s forwards;
}

.hero__benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  opacity: 0;
  animation: fadeUp 0.8s ease 3.3s forwards;
}

.hero__benefits li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
}

.hero__benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 0.8s ease 3.5s forwards;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.5; }
}

/* ---- Sections ---- */
.section {
  padding: 100px 0;
  position: relative;
}

.section:nth-child(even) {
  background: var(--bg-secondary);
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section__label {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section__desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ---- Glass Card ---- */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

/* ---- Services ---- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}

.service-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: default;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(212, 175, 55, 0.2);
}

.service-card__visual {
  height: 180px;
  position: relative;
  overflow: hidden;
}

.service-card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover .service-card__photo {
  transform: scale(1.06);
}

.service-card__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 15, 15, 0.9) 100%);
}

.service-card__visual--matte {
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
}

.service-card__visual--glossy {
  background: linear-gradient(135deg, #3a3a4a, #1a1a2a);
  box-shadow: inset 0 -20px 40px rgba(255, 255, 255, 0.05);
}

.service-card__visual--satin {
  background: linear-gradient(135deg, #2d2d35, #1e1e24);
}

.service-card__visual--fabric {
  background: linear-gradient(135deg, #2a2820, #1a1810);
}

.service-card__visual--shadow {
  background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
  box-shadow: inset 0 0 30px rgba(212, 175, 55, 0.1);
}

.service-card__visual--floating {
  background: linear-gradient(135deg, #1e1e1e, #0a0a0a);
  box-shadow: 0 -10px 30px rgba(212, 175, 55, 0.15);
}

.service-card__visual--backlight {
  background: radial-gradient(ellipse at center bottom, rgba(212, 175, 55, 0.2), #1a1a1a);
}

.service-card__visual--multilevel {
  background: linear-gradient(180deg, #2a2a2a 60%, #1a1a1a 60%, #222 60.5%, #1a1a1a);
}

.service-card__body {
  padding: 24px;
}

.service-card__title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.service-card__text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.service-card__price {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
}

/* ---- Calculator ---- */
.calculator__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label,
.form-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(15, 15, 15, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #e74c3c;
}

.form-error {
  display: block;
  font-size: 0.8rem;
  color: #e74c3c;
  margin-top: 4px;
  min-height: 1.2em;
}

.radio-group {
  display: flex;
  gap: 24px;
}

.radio {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.95rem;
}

.radio input {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}

.calc-result__price {
  text-align: center;
  margin-bottom: 16px;
}

.calc-result__label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.calc-result__value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.calc-result__note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.lead-form__title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.form-privacy {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* ---- Gallery ---- */
.gallery-prices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  padding: 20px;
  margin-bottom: 28px;
}

.price-chip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.price-chip__name {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.price-chip__val {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
}

.price-chip__val small {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
}

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

.gallery-filter {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.gallery-filter:hover,
.gallery-filter--active {
  color: var(--text-primary);
  border-color: var(--accent);
  background: rgba(212, 175, 55, 0.08);
}

.gallery__empty {
  text-align: center;
  color: var(--text-muted);
  grid-column: 1 / -1;
  padding: 40px 0;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.gallery__item--wide {
  grid-column: span 2;
}

.gallery__img {
  height: 280px;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s;
  position: relative;
  overflow: hidden;
}

.gallery__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.gallery__badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(15, 15, 15, 0.72);
  border: 1px solid var(--border);
  backdrop-filter: blur(6px);
}

.gallery__item--wide .gallery__img {
  height: 320px;
}

.gallery__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(212, 175, 55, 0.1) 50%, transparent 70%);
  opacity: 0;
  transition: opacity 0.6s;
}

.gallery__item:hover .gallery__img {
  transform: scale(1.06);
  filter: brightness(1.15);
}

.gallery__item:hover .gallery__img::after {
  opacity: 1;
}

.gallery__img--1 {
  background: linear-gradient(135deg, #1a1a2e, #16213e), radial-gradient(ellipse at bottom, rgba(212, 175, 55, 0.3), transparent);
}

.gallery__img--2 {
  background: linear-gradient(160deg, #2a2a2a, #1a1a1a);
}

.gallery__img--3 {
  background: linear-gradient(160deg, #2a2a3a, #1a1a2a);
  box-shadow: inset 0 0 60px rgba(255, 255, 255, 0.05);
}

.gallery__img--4 {
  background: linear-gradient(180deg, #2a2a2a 50%, #1a1a1a 50%);
}

.gallery__img--5 {
  background: linear-gradient(135deg, #1e1e1e, #0f0f0f), radial-gradient(ellipse at center, rgba(212, 175, 55, 0.15), transparent);
}

.gallery__img--6 {
  background: linear-gradient(160deg, #222, #111);
  box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.08);
}

.gallery__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(15, 15, 15, 0.9));
  font-size: 0.9rem;
  color: var(--text-secondary);
  transform: translateY(100%);
  transition: transform 0.4s;
}

.gallery__item:hover .gallery__caption {
  transform: translateY(0);
}

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

.why-card {
  transition: transform var(--transition), border-color var(--transition);
}

.why-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.15);
}

.why-card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.why-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.why-card__text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- Steps ---- */
.steps__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 20px;
  counter-reset: step;
}

.step-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.step-card:hover {
  border-color: rgba(212, 175, 55, 0.2);
  box-shadow: var(--shadow-glow);
}

.step-card__num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.4;
  margin-bottom: 12px;
}

.step-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-card__text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---- Reviews ---- */
.reviews__slider {
  overflow: hidden;
  position: relative;
}

.reviews__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.review-card {
  flex: 0 0 100%;
  max-width: 100%;
  margin: 0;
  text-align: center;
}

.review-card__stars {
  color: var(--accent);
  font-size: 1.2rem;
  letter-spacing: 4px;
  margin-bottom: 20px;
}

.review-card__text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 24px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.review-card__author cite {
  font-style: normal;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.review-card__author span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.reviews__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.reviews__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1.1rem;
  transition: border-color 0.3s, background 0.3s;
}

.reviews__btn:hover {
  border-color: var(--accent);
  background: rgba(212, 175, 55, 0.1);
}

.reviews__dots {
  display: flex;
  gap: 8px;
}

.reviews__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}

.reviews__dot--active {
  background: var(--accent);
  transform: scale(1.3);
}

/* ---- FAQ ---- */
.faq__list {
  max-width: 800px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__item summary {
  padding: 20px 0;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__item summary:hover {
  color: var(--accent);
}

.faq__item p {
  padding: 0 0 20px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ---- Contacts ---- */
.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 32px;
}

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

.contact-item__label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.contact-item__value {
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.3s;
}

a.contact-item__value:hover {
  color: var(--accent);
}

.contacts__map {
  grid-column: 1 / -1;
  height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* ---- Footer ---- */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

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

.footer__brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.footer__nav {
  display: flex;
  gap: 24px;
}

.footer__nav a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.footer__nav a:hover {
  color: var(--accent);
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  width: 100%;
  text-align: center;
  margin-top: 16px;
}

.footer__legal {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin: 12px 0 0;
  line-height: 1.5;
  opacity: 0.85;
}

/* ---- Modal ---- */
.modal {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 480px;
  width: calc(100% - 32px);
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal__content {
  position: relative;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s;
}

.modal__close:hover {
  color: var(--text-primary);
}

.modal__title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal__desc {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

/* ---- Toast ---- */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-secondary);
  border: 1px solid var(--accent);
  color: var(--text-primary);
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 500;
  z-index: 10000;
  box-shadow: var(--shadow-glow);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.toast--visible {
  transform: translateX(-50%) translateY(0);
}

/* ---- Animations on scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .calculator__wrapper {
    grid-template-columns: 1fr;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__item--wide {
    grid-column: span 2;
  }

  .contacts__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    padding: 24px;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.4s, opacity 0.4s;
    border-bottom: 1px solid var(--border);
  }

  .nav--open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav__list {
    flex-direction: column;
    gap: 16px;
  }

  .burger {
    display: flex;
  }

  .header__social .social-icons__btn {
    width: 36px;
    height: 36px;
  }

  .header__social .social-icons__svg {
    width: 18px;
    height: 18px;
  }

  .gallery__grid {
    grid-template-columns: 1fr;
  }

  .gallery__item--wide {
    grid-column: span 1;
  }

  .steps__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 64px 0;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .steps__list {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* --- Hidden SEO block --- */
.seo-local-wrap {
  padding: 24px 0 8px;
  border-top: 1px solid var(--border);
}
.seo-local__fold {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
}
.seo-local__fold summary {
  cursor: pointer;
  padding: 14px 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.seo-local__fold summary::-webkit-details-marker { display: none; }
.seo-local__fold summary::after { content: '+'; color: var(--accent); }
.seo-local__fold[open] summary::after { content: '−'; }
.seo-local__fold-body { padding: 18px; border-top: 1px solid var(--border); }
.seo-local__text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 14px;
}
.seo-local__text a { color: var(--accent); }
.seo-local__links { text-align: center; font-size: 0.85rem; }
.seo-oblast-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 16px 0;
}
.seo-oblast { padding: 16px; }
.seo-oblast h3 { font-size: 0.95rem; margin-bottom: 8px; color: var(--accent-light); }
.seo-cities {
  columns: 2;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 10px;
}
.seo-cities li { margin-bottom: 4px; break-inside: avoid; }
.seo-queries { margin-top: 16px; }
.seo-queries__title { font-size: 0.9rem; text-align: center; margin-bottom: 10px; color: var(--text-secondary); }
.seo-queries__cloud { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.seo-query {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.gallery__insta {
  display: none;
}

/* Service subpages */
.service-subpage { background: var(--bg-primary); min-height: 100vh; }
.header--scrolled { background: rgba(15, 15, 15, 0.95); backdrop-filter: blur(12px); }
.service-page { padding: calc(var(--header-h) + 32px) 0 48px; }
.service-page__wrap { max-width: 720px; }
.service-page__tag { color: var(--accent); font-size: 0.85rem; margin-bottom: 12px; }
.service-page h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 16px; }
.service-page__lead { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 20px; }
.service-page__text { color: var(--text-muted); margin-bottom: 12px; line-height: 1.7; }
.service-page__price { font-size: 1.25rem; color: var(--accent); font-weight: 600; margin: 24px 0 8px; }
.service-page__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.service-page__back { margin-top: 32px; }
.service-page__back a { color: var(--text-muted); font-size: 0.9rem; }
.service-page__seo { margin-top: 32px; }

@media (max-width: 768px) {
  .seo-oblast-grid { grid-template-columns: 1fr; }
  .seo-cities { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
