/* ============================================================
   GEOMETRIA LOFT STUDIO — style.css
   Palette: #0E0E0E | #111111 | #F5F5F2 | #B08A5B | #2A2A2A
   Type: Cormorant Garamond (display) + Montserrat (body/UI)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:    #080808;
  --bg:       #0C0C0C;
  --surface:  #131313;
  --border:   #222222;
  --white:    #EFEFEC;
  --muted:    #888880;
  --bronze:   #A8A8A0;
  --bronze-d: #787870;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Montserrat', sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography scale ── */
.display {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.75rem, 6vw, 4.75rem); font-weight: 400; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); font-family: var(--font-display); font-weight: 300; line-height: 1.15; }
h3 { font-size: clamp(0.9rem, 1.5vw, 1.1rem); font-family: var(--font-body); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
p  { font-size: 0.92rem; color: var(--muted); font-weight: 300; line-height: 1.8; }

.label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bronze);
  opacity: 0.85;
}
/* Hero label readable on any background */
.hero-content .label {
  color: rgba(239,239,236,0.75);
  opacity: 1;
  text-shadow: 0 1px 12px rgba(0,0,0,0.9), 0 0 30px rgba(0,0,0,0.7);
  letter-spacing: 0.3em;
}

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
.section-header { margin-bottom: 64px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 100px;
}
.btn-bronze {
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--white);
  letter-spacing: 0.18em;
}
.btn-bronze:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(245,245,242,0.3);
}
.btn-outline:hover { border-color: var(--bronze); color: var(--bronze); }

/* ── Divider ── */
.line {
  width: 48px;
  height: 1px;
  background: var(--bronze);
  margin: 20px 0;
}

/* ================================================================
   HEADER / NAV
================================================================ */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.4s ease, padding 0.4s ease;
}
header.scrolled {
  background: rgba(14,14,14,0.98);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo img {
  height: 96px;
  width: auto;
  color: #EFEFEC;
}
/* Before scroll: logo visible on dark hero */
/* Logo always white - hero is dark */
header .logo img {
  filter: brightness(0) invert(1) drop-shadow(0 1px 4px rgba(0,0,0,0.6));
}
/* ── Burger button ── */
.burger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 201;
  position: relative;
}
.burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}
/* X state */
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; width: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile menu overlay ── */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  background: #080808;
  border-left: 1px solid rgba(255,255,255,0.06);
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open {
  transform: translateX(0);
}
/* Backdrop handled by separate element in JS */
.mobile-menu-inner {
  padding: 100px 36px 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
}
.mobile-menu-inner nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  margin-bottom: 0;
}
.mobile-link {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 300;
  color: rgba(239,239,236,0.92);
  text-decoration: none;
  letter-spacing: 0.01em;
  padding: 14px 0;
  transition: color 0.25s;
  display: block;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  width: 100%;
}
.mobile-link:first-child { border-top: 1px solid rgba(255,255,255,0.06); }
.mobile-link:hover { color: var(--white); }

/* ================================================================
   HERO
================================================================ */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 80px 0 0 !important;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.35);
  z-index: 1;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
  linear-gradient(to bottom,
    rgba(8,8,8,0.55) 0%,
    rgba(8,8,8,0.20) 35%,
    rgba(8,8,8,0.55) 65%,
    rgba(8,8,8,0.88) 100%),
  url("../img/HeroBg.jpg") center/cover no-repeat;
    
}
/* Geometric accent line */
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bronze) 50%, transparent);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.hero-content .label { margin-bottom: 24px; }
.hero-content h1 {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--white);
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.7);
}
.hero-content h1 em {
  font-style: italic;
  color: var(--bronze);
  font-weight: 300;
}
.hero-sub {
  font-size: 1rem;
  color: rgba(239,239,236,0.85);
  text-shadow: 0 1px 12px rgba(0,0,0,0.6);
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-bottom: 40px;
max-width: 520px;
}

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

/* Виправлена анімація */
@keyframes heroLine {
  50%  { 
    transform: scaleY(1); 
    transform-origin: top; 
  }
  51%  { 
    transform: scaleY(1); 
    transform-origin: bottom; 
  }
  100% { 
    transform: scaleY(0); 
    transform-origin: bottom; 
  }
}

/* ================================
| SERVICES
=================================== */

#uslugi {
  background: var(--black);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 64px;
  width: 100%;
}

/* Картка */
.service-card {
  position: relative;
  overflow: hidden;
  height: 480px;
  cursor: pointer;
  min-width: 0;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
  filter: brightness(0.6);
}

.service-card:hover img {
  transform: scale(1.05);
  filter: brightness(0.45);
}

.service-card-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  background: linear-gradient(
    to top,
    rgba(8, 8, 8, 0.88) 0%,
    rgba(8, 8, 8, 0.35) 40%,
    transparent 65%
  );
}

/* Текст */
.service-card-body .label,
.service-card-body h2,
.service-card-body p {
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}

.service-card-body .label { margin-bottom: 10px; }
.service-card-body h3 { color: var(--white); font-size: 1rem; margin-bottom: 10px; }
.service-card-body p { font-size: 0.82rem; color: rgba(245,245,242,0.55); }

.service-card-link {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bronze);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s ease;
}

.service-card:hover .service-card-link {
  opacity: 1;
  transform: translateY(0);
}

/* ================================
| RESPONSIVE (АДАПТИВ)
=================================== */

/* Планшет — 2 в ряд */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Телефон — 1 в ряд (як на твоєму першому скріні) */
@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card-body {
    padding: 20px; /* менший відступ, щоб текст не з’їжджав */
  }
}


/* ================================================================
   GALERIA
================================================================ */
#galeria { background: var(--bg); }
.gallery-grid {
  columns: 3;
  column-gap: 3px;
  margin-top: 64px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 3px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: brightness(0.85);
}
.gallery-item:hover img { transform: scale(1.04); filter: brightness(1); }
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 16px 16px;
  background: linear-gradient(to top, rgba(14,14,14,0.9), transparent);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,245,242,0.7);
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.3s ease;
}
.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }

/* ================================================================
   DLACZEGO MY
================================================================ */
#dlaczego { background: var(--surface); }
.why-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 64px;
}
.why-image {
  position: relative;
}
.why-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  filter: brightness(0.8);
}
.why-image::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  right: 16px;
  bottom: 16px;
  border: 1px solid var(--bronze);
  z-index: -1;
}
.why-list { display: flex; flex-direction: column; gap: 0; }
.why-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.why-item:first-child { border-top: 1px solid var(--border); }
.why-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--bronze);
  min-width: 28px;
  padding-top: 2px;
}
.why-item h3 {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.why-item p { font-size: 0.82rem; color: var(--muted); }

/* ================================================================
   PROCES
================================================================ */
#proces { background: var(--black); overflow: hidden; }
.process-steps {
  display: flex;
  margin-top: 64px;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.666% + 28px);
  right: calc(16.666% + 28px);
  height: 1px;
  background: linear-gradient(90deg, var(--bronze), rgba(176,138,91,0.2));
}
.step {
  flex: 1;
  text-align: center;
  padding: 0 12px;
}
.step-num {
  width: 56px;
  height: 56px;
  border: 1px solid var(--bronze);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--bronze);
  position: relative;
  background: var(--black);
}
.step h3 {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}
.step p { font-size: 0.78rem; color: var(--muted); }

/* ================================================================
   OPINIE
================================================================ */
#opinie { background: var(--bg); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 64px;
}
.review-card {
  background: var(--surface);
  padding: 40px 32px;
  border-top: 1px solid var(--border);
  position: relative;
}
.review-card::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 300;
  color: var(--bronze);
  opacity: 0.25;
  position: absolute;
  top: 16px;
  left: 28px;
  line-height: 1;
}
.review-text {
  font-size: 0.9rem;
  color: rgba(245,245,242,0.7);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}
.review-author { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bronze); }
.review-loc { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }
.stars { color: var(--bronze); font-size: 0.8rem; margin-bottom: 16px; letter-spacing: 2px; }

/* ================================================================
   KONTAKT / FORM
================================================================ */
#kontakt { background: var(--black); }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  margin-top: 64px;
  align-items: start;
}
.contact-info .line { margin-bottom: 32px; }
.contact-info p { margin-bottom: 32px; }
.contact-block { margin-bottom: 28px; }
.contact-block .label { margin-bottom: 6px; }
.contact-block a, .contact-block span {
  font-size: 1rem;
  font-weight: 300;
  color: var(--white);
  transition: color 0.2s;
}
.contact-block a:hover { color: var(--bronze); }

/* Form */
/* Frosted glass form wrapper */
.form-wrapper {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 48px 40px;
}
.form-wrapper input,
.form-wrapper textarea,
.form-wrapper select {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
}
.form-wrapper select option {
  background: #1a1a1a;
  color: var(--white);
}

/* Custom Select */
.custom-select {
  position: relative;
  width: 100%;
  user-select: none;
}
.custom-select-trigger {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid rgba(239,239,236,0.15);
  border-radius: 4px;
  color: rgba(239,239,236,0.35);
  font-family: var(--font-body);
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.2s;
}
.custom-select-trigger::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  flex-shrink: 0;
  margin-left: 10px;
  transition: transform 0.2s;
}
.custom-select.open .custom-select-trigger::after {
  transform: rotate(-135deg) translateY(-2px);
}
.custom-select-trigger.selected {
  color: var(--white);
}
.custom-select.open .custom-select-trigger,
.custom-select-trigger:hover {
  border-color: var(--bronze);
}
.custom-select.field-error .custom-select-trigger {
  border-color: #e05252 !important;
  animation: fieldPulse 0.6s ease, fieldGlow 2s ease forwards;
}
.custom-select-options {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #1e1e1e;
  border: 1px solid rgba(239,239,236,0.15);
  border-radius: 4px;
  z-index: 100;
  overflow: hidden;
}
.custom-select.open .custom-select-options {
  display: block;
}
.custom-select-option {
  padding: 12px 16px;
  color: rgba(239,239,236,0.75);
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.custom-select-option:hover {
  background: rgba(255,255,255,0.07);
  color: var(--white);
}
.form-wrapper input::placeholder,
.form-wrapper textarea::placeholder { color: rgba(239,239,236,0.3); }
.form-wrapper input:focus,
.form-wrapper textarea:focus,
.form-wrapper select:focus { border-color: var(--bronze); outline: none; }
.form-wrapper .file-upload { border-color: rgba(255,255,255,0.15); }

/* Validation error */
input.field-error,
textarea.field-error,
select.field-error {
  border-color: #e05252 !important;
  animation: fieldPulse 0.6s ease, fieldGlow 2s ease forwards;
}
@keyframes fieldPulse {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-5px); }
  40%       { transform: translateX(5px); }
  60%       { transform: translateX(-3px); }
  80%       { transform: translateX(3px); }
}
@keyframes fieldGlow {
  0%   { box-shadow: 0 0 0 0 rgba(224,82,82,0); border-color: #e05252; }
  15%  { box-shadow: 0 0 0 4px rgba(224,82,82,0.35); }
  100% { box-shadow: 0 0 0 0 rgba(224,82,82,0); border-color: #e05252; }
}

.form-group { margin-bottom: 20px; }
label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
input, textarea, select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  transition: border-color 0.2s;
  outline: none;
  appearance: none;
  border-radius: 0;
}
input::placeholder, textarea::placeholder { color: rgba(245,245,242,0.2); }
input:focus, textarea:focus, select:focus { border-color: var(--bronze); }
textarea { min-height: 120px; resize: vertical; }
select { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* File upload */
.file-upload {
  border: 1px dashed var(--border);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
}
.file-upload:hover { border-color: var(--bronze); }
.file-upload span {
  font-size: 0.78rem;
  color: var(--muted);
}
.file-upload input[type="file"] { display: none; }
.form-submit { margin-top: 28px; width: 100%; text-align: center; }
.form-submit .btn { width: 100%; justify-content: center; padding: 18px; font-size: 0.78rem; }

/* ================================================================
   FOOTER
================================================================ */
footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 80px; /* space for sticky Fixly FAB */
}
.footer-logo img { height: 52px; width: auto; opacity: 1; filter: brightness(0) invert(1); }
.footer-copy { font-size: 0.72rem; color: var(--muted); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding-right: 70px; /* avoid Fixly FAB overlap */
}
.footer-links a { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; transition: color 0.2s; }
.footer-links a:hover { color: var(--bronze); }

/* ================================================================
   STICKY FIXLY FAB
================================================================ */
.cta-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.cta-fab:hover {
  transform: translateY(-3px) scale(1.07);
  box-shadow: 0 10px 32px rgba(0,0,0,0.5);
  background: #1a1a1a;
  color: var(--white);
}
.cta-fab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-fab-label { display: none; }

/* Pulse waves */
.cta-fab::before,
.cta-fab::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(239,239,236,0.5);
  animation: fabWave 2.4s ease-out infinite;
  pointer-events: none;
}
.cta-fab::after {
  animation-delay: 1.2s;
}
@keyframes fabWave {
  0%   { transform: scale(1);    opacity: 0.7; }
  100% { transform: scale(2.0);  opacity: 0; }
}

/* ================================================================
   SCROLL REVEAL
================================================================ */
.rv {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.rv.visible { opacity: 1; transform: translateY(0); }
.rv-delay-1 { transition-delay: 0.1s; }
.rv-delay-2 { transition-delay: 0.2s; }
.rv-delay-3 { transition-delay: 0.3s; }
.rv-delay-4 { transition-delay: 0.4s; }
.rv-delay-5 { transition-delay: 0.5s; }

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 2px; }
  .service-card { height: 300px; }
}
@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr !important; gap: 2px; }
  .service-card { height: 300px; }
}
@media (max-width: 1024px) {
  .why-layout { grid-template-columns: 1fr; gap: 48px; }
  .why-image { display: none; }
  .process-steps { flex-wrap: wrap; }
  .process-steps::before { display: none; }
  .step { flex: 0 0 33.333%; padding: 0 8px 40px; }
  .reviews-grid { grid-template-columns: 1fr; gap: 2px; }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .gallery-grid { columns: 2; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .hero-btns .btn { width: auto; align-self: flex-start; padding: 14px 28px; }
  .gallery-grid { columns: 2; }
  .form-row { grid-template-columns: 1fr; }
  .step { flex: 0 0 50%; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  h1 { font-size: 2.2rem; }
  .gallery-grid { columns: 1; }
  .step { flex: 0 0 100%; }
  .logo img { height: 38px; }
}

/* ================================================================
   GDPR CHECKBOX
================================================================ */
.gdpr-check { margin-top: 12px; }

.gdpr-label {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
}

/* Hide native checkbox */
.gdpr-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Custom checkbox box */
.gdpr-label .gdpr-box {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 2px;
  border: 1px solid rgba(168,168,160,0.35);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}

/* Checkmark SVG inside - hidden by default */
.gdpr-label .gdpr-box::after {
  content: '';
  width: 8px;
  height: 5px;
  border-left: 1.5px solid var(--bronze);
  border-bottom: 1.5px solid var(--bronze);
  transform: rotate(-45deg) translateY(-1px);
  opacity: 0;
  transition: opacity 0.15s ease;
}

/* Checked state */
.gdpr-label input:checked ~ .gdpr-box {
  border-color: var(--bronze);
  background: rgba(168,168,160,0.07);
}
.gdpr-label input:checked ~ .gdpr-box::after {
  opacity: 1;
}

.gdpr-label span.gdpr-text {
  font-size: 0.78rem;
  color: rgba(168,168,160,0.6);
  line-height: 1.7;
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0.01em;
  font-style: italic;
}
.gdpr-label a {
  color: rgba(168,168,160,0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-style: normal;
}
.gdpr-label a:hover { color: var(--white); }

/* Footer NIP */
.footer-meta { display: flex; flex-direction: column; gap: 4px; text-align: center; }
.footer-nip { font-size: 0.65rem; color: rgba(136,136,128,0.5); letter-spacing: 0.05em; }

/* ================================================================
   COOKIE BANNER
================================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 300;
  background: rgba(14,14,14,0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 24px;
  animation: slideUp 0.4s ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.cookie-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cookie-text { flex: 1; min-width: 260px; }
.cookie-text .label { margin-bottom: 6px; }
.cookie-text p { font-size: 0.8rem; color: var(--muted); }
.cookie-text a { color: var(--bronze); text-decoration: underline; text-underline-offset: 3px; }
.cookie-btns {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.cookie-btns .btn { padding: 10px 24px; font-size: 0.72rem; }

@media (max-width: 600px) {
  .cookie-inner { flex-direction: column; gap: 16px; }
  .cookie-btns { width: 100%; }
  .cookie-btns .btn { flex: 1; justify-content: center; }
}

/* GDPR row */
.gdpr-check-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 16px;
}
.gdpr-text {
  font-size: 0.75rem;
  color: rgba(136,136,128,0.75);
  line-height: 1.75;
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0;
}
.gdpr-text a {
  color: #A8A8A0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ================================================================
   FAQ ACCORDION
================================================================ */
#faq { background: var(--surface); }

.faq-list { margin-top: 56px; }

.faq-item {
  border-top: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  text-align: left;
  padding: 22px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.2s;
  letter-spacing: 0.01em;
  line-height: 1.4;
}
.faq-question:hover { color: var(--bronze); }

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(168,168,160,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, transform 0.3s ease;
  font-size: 14px;
  color: var(--bronze);
  line-height: 1;
}
.faq-item.open .faq-icon {
  border-color: var(--bronze);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 400px;
}
.faq-answer-inner {
  padding-bottom: 24px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 300;
  max-width: 680px;
}
.faq-answer-inner a {
  color: var(--bronze);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ================================================================
   SLOGAN BLOCK
================================================================ */
.slogan-block {
  background: var(--black);
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
.slogan-text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 28px;
  font-style: italic;
  opacity: 0.9;
}
.slogan-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.slogan-divider {
  color: var(--border);
  font-size: 0.8rem;
}

/* ── Menu backdrop - left sliding panel (купе door) ── */
.menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50%;
  background: rgba(8,8,8,0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-100%);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.45s ease;
}
.menu-backdrop.open {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}

/* ============================================================
   MID-PAGE CTA
============================================================ */
.cta-mid {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 96px 24px;
  text-align: center;
}
.cta-mid-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.cta-mid h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.15;
}
.cta-mid-sub {
  font-size: 0.88rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.cta-mid .label {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .cta-mid { padding: 64px 24px; }
}

/* ============================================================
   SERVICE CARD IMAGE BUTTON
============================================================ */
.card-img-btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

/* ============================================================
   SERVICE CARD MODAL
============================================================ */
.card-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.card-modal.open {
  opacity: 1;
  pointer-events: all;
}
.card-modal-inner {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-modal.open .card-modal-inner {
  transform: translateY(0);
}
.card-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(14,14,14,0.8);
  border: 1px solid var(--border);
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s;
}
.card-modal-close:hover { background: #222; }
.card-modal-img {
  width: 100%;
  max-height: 55vh;
  object-fit: cover;
  object-position: center;
  border-radius: 8px 8px 0 0;
  display: block;
}
.card-modal-info {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card-modal-info h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--white);
  line-height: 1.2;
}
.card-modal-info p {
  font-size: 0.9rem;
  color: rgba(239,239,236,0.75);
  line-height: 1.7;
}
.card-modal-cta {
  align-self: flex-start;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .card-modal-info { padding: 20px; }
  .card-modal-info h3 { font-size: 1.3rem; }
  .card-modal-img { max-height: 45vh; }
}

/* ============================================================
   REVIEWS SLIDER
============================================================ */
.reviews-slider {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  max-width: 560px;
  margin: 0 auto;
  user-select: none;
}

.reviews-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  width: 100%;
}

.review-slide {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
}

.review-slide img {
  width: 100%;
  height: auto;
  max-height: 640px;
  object-fit: contain;
  object-position: top;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: block;
}

.reviews-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(14,14,14,0.75);
  border: 1px solid var(--border);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, opacity 0.2s;
  z-index: 10;
  opacity: 0.7;
}
.reviews-btn:hover { background: rgba(30,30,30,0.95); opacity: 1; }
.reviews-btn--prev { left: 12px; }
.reviews-btn--next { right: 12px; }

.reviews-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.reviews-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, border-color 0.25s;
}
.reviews-dot.active {
  background: var(--bronze);
  border-color: var(--bronze);
}

@media (max-width: 768px) {
  .reviews-btn { width: 36px; height: 36px; font-size: 0.9rem; }
  .reviews-btn--prev { left: 6px; }
  .reviews-btn--next { right: 6px; }
}

/* Hide Fixly FAB when menu is open */
body.menu-open .fixly-fab {
  opacity: 0;
  pointer-events: none;
}

/* ── Hero label accent line ── */
.hero-content .label {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-content .label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: rgba(239,239,236,0.5);
  flex-shrink: 0;
}

  50%       { transform: translateX(-50%) translateY(6px); opacity: 0.5; }
}

/* ── Hero Stats ── */
.hero-stats {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: flex-start;
  gap: 0;
  margin-top: 36px;
  width: 100%;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  padding: 0 20px 0 0;
}
.hero-stat + .hero-stat {
  padding: 0 20px 0 20px;
  border-left: 1px solid rgba(239,239,236,0.15);
}
.hero-stat:last-child {
  padding-right: 0;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.01em;
  display: block;
}
.hero-stat-label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(239,239,236,0.4);
  display: block;
}
