/* ===================================================
   PRAVNYK - Юридичний сайт
   Кольорова схема: Білий + Золото
   =================================================== */

/* ---------- CSS ЗМІННІ ---------- */
:root {
  --gold:        #C9A84C;
  --gold-light:  #E2C47A;
  --gold-dark:   #9A7430;
  --gold-pale:   #F9F3E3;
  --white:       #FFFFFF;
  --off-white:   #FAFAF8;
  --cream:       #F5F0E8;
  --dark:        #0D0D0D;
  --dark-2:      #1A1A1A;
  --dark-3:      #2A2A2A;
  --gray:        #6B6B6B;
  --gray-light:  #D4D4D4;
  --border:      rgba(201,168,76,0.25);
  --shadow-gold: 0 8px 40px rgba(201,168,76,0.15);
  --shadow-dark: 0 8px 40px rgba(0,0,0,0.08);
  --radius:      12px;
  --radius-lg:   20px;
  --transition:  0.35s cubic-bezier(0.4,0,0.2,1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}
body.menu-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- LAYOUT ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
section { padding: 100px 0; }

/* ---------- TYPOGRAPHY ---------- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-tag {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  position: relative;
}
.section-tag::before,
.section-tag::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: var(--gold);
}
.section-tag::before { right: calc(100% + 10px); }
.section-tag::after  { left:  calc(100% + 10px); }

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 16px;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- BUTTONS ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  opacity: 0;
  transition: var(--transition);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 35px rgba(201,168,76,0.4); }
.btn-primary span, .btn-primary svg { position: relative; z-index: 1; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--white);
  padding: 15px 36px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1.5px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.full-width { width: 100%; justify-content: center; }

/* ---------- PHOTO PLACEHOLDERS ---------- */
.photo-placeholder {
  background: linear-gradient(135deg, var(--cream) 0%, var(--gold-pale) 100%);
  border: 2px dashed var(--gold);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.photo-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(201,168,76,0.04) 20px,
    rgba(201,168,76,0.04) 40px
  );
}
.photo-placeholder .placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 1;
  text-align: center;
}
.photo-placeholder .placeholder-inner svg {
  width: 60px;
  height: 60px;
  opacity: 0.6;
}
.photo-placeholder .placeholder-inner span {
  font-size: 13px;
  font-weight: 500;
  color: var(--gold-dark);
  letter-spacing: 0.5px;
}
.photo-placeholder.large { width: 100%; height: 480px; }
.photo-placeholder.team-photo { width: 100%; height: 260px; }
.team-photo {
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: var(--dark);
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.photo-placeholder.author-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1.5px dashed var(--gold);
}
.photo-placeholder.author-photo svg { width: 28px; height: 28px; }

/* ===========================
   НАВІГАЦІЯ
   =========================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 2px 30px rgba(0,0,0,0.08);
}
.navbar.scrolled .nav-link { color: var(--dark); }
.navbar.scrolled .nav-link:hover { color: var(--gold); }
.navbar.scrolled .logo-main,
.navbar.scrolled .logo-sub { color: var(--dark); }
.navbar.scrolled .logo-icon { color: var(--gold); }

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  font-size: 28px;
  color: var(--gold);
  line-height: 1;
}
.logo-text { display: flex; flex-direction: column; }
.logo-main {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--white);
  line-height: 1;
}
.logo-sub {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  line-height: 1;
  margin-top: 3px;
}
.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.85);
  padding: 8px 14px;
  border-radius: 6px;
  transition: var(--transition);
}
.nav-link:hover {
  color: var(--gold-light);
  background: rgba(255,255,255,0.08);
}
.nav-cta {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.4);
}
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
  transform-origin: center;
}
.navbar.scrolled .burger span { background: var(--dark); }

.nav-mobile-only { display: none; }

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,8,5,0.82) 0%,
    rgba(20,16,5,0.70) 50%,
    rgba(10,8,3,0.75) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.badge-line {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 600;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero-title-gold {
  color: var(--gold-light);
  font-style: italic;
  display: block;
}
.hero-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  max-width: 540px;
  margin-bottom: 40px;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
}
.stat { text-align: center; padding: 0 36px; }
.stat:first-child { padding-left: 0; }
.stat-num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 44px;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 50px;
  background: rgba(201,168,76,0.35);
}
.hero-scroll {
  position: absolute;
  bottom: 36px;
  right: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
}
.hero-scroll span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ===========================
   SERVICES
   =========================== */
.services-preview { background: var(--off-white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-gold); }
.service-card:hover::before { transform: scaleX(1); }

.service-card.featured {
  background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
  border-color: var(--gold);
}
.service-card.featured .service-title { color: var(--white); }
.service-card.featured .service-desc { color: rgba(255,255,255,0.65); }
.service-card.featured .service-list li { color: rgba(255,255,255,0.75); }
.service-card.featured .service-list li::before { color: var(--gold); }

.service-badge-card {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--gold);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
}
.service-icon-wrap {
  width: 60px; height: 60px;
  background: var(--gold-pale);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}
.service-card.featured .service-icon-wrap { background: rgba(201,168,76,0.15); }
.service-card:hover .service-icon-wrap { background: var(--gold); }
.service-card:hover .service-icon-wrap .service-icon { stroke: var(--white); }
.service-icon { width: 28px; height: 28px; stroke: var(--gold); transition: var(--transition); }
.service-card.featured .service-icon { stroke: var(--gold); }

.service-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 12px;
}
.service-desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 16px;
}
.service-list { margin-bottom: 20px; }
.service-list li {
  font-size: 13px;
  color: var(--gray);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}
.service-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
}
.service-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.5px;
  transition: var(--transition);
}
.service-link:hover { color: var(--gold-dark); letter-spacing: 1px; }

.services-more {
  text-align: center;
  margin-top: 50px;
  padding: 40px;
  background: linear-gradient(135deg, var(--cream), var(--gold-pale));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.services-more p {
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 24px;
}

/* ===========================
   ABOUT
   =========================== */
.about { background: var(--white); }
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-image-wrap { position: relative; }
.about-photo {
  width: 100%;
  height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.about-badge-float {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  padding: 24px 28px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 10px 40px rgba(201,168,76,0.4);
}
.badge-num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
}
.badge-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.85;
}
.about-content .section-tag { margin-bottom: 12px; }
.about-text {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 20px;
}
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0 36px;
}
.feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
}
.feature-check {
  width: 28px; height: 28px;
  background: var(--gold-pale);
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  font-size: 12px;
  flex-shrink: 0;
}

/* ===========================
   TEAM
   =========================== */
.team { background: var(--dark-2); }
.team-group-photo {
  margin: -20px auto 48px;
  max-width: 960px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(201, 168, 76, 0.25);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}
.team-group-photo img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.team .section-tag { color: var(--gold-light); }
.team .section-title { color: var(--white); }
.team .section-desc { color: rgba(255,255,255,0.55); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.team-card {
  background: var(--dark-3);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.team-card:hover { border-color: var(--gold); box-shadow: 0 12px 40px rgba(201,168,76,0.15); }
.team-info { padding: 24px; }
.team-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}
.team-role {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--gold);
  margin-bottom: 12px;
}
.team-bio {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 16px;
}
.team-socials { display: flex; gap: 8px; }
.social-link {
  width: 32px; height: 32px;
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  transition: var(--transition);
}
.social-link:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

/* ===========================
   CASES
   =========================== */
.cases { background: var(--off-white); }
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.case-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-dark); }
.case-tag {
  display: inline-block;
  background: var(--gold-pale);
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.case-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 12px;
}
.case-desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 20px;
}
.case-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--gold-pale), var(--cream));
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}
.result-icon {
  color: var(--gold);
  font-size: 16px;
}

/* ===========================
   TESTIMONIALS
   =========================== */
.testimonials { background: var(--white); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-dark); }
.testimonial-card.featured-testimonial {
  background: linear-gradient(145deg, var(--dark-2), var(--dark-3));
  border-color: var(--gold);
}
.testimonial-card.featured-testimonial .testimonial-text { color: rgba(255,255,255,0.8); }
.testimonial-card.featured-testimonial .stars { color: var(--gold-light); }
.testimonial-card.featured-testimonial .author-name { color: var(--white); }
.testimonial-card.featured-testimonial .author-case { color: rgba(255,255,255,0.5); }

.stars {
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 16px;
  display: block;
}
.testimonial-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-style: italic;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 24px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}
.author-case {
  display: block;
  font-size: 12px;
  color: var(--gray);
}

/* ===========================
   CONTACT
   =========================== */
.contact { background: var(--cream); }
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-desc {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 36px;
}
.contact-details { display: flex; flex-direction: column; gap: 24px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon {
  font-size: 20px;
  width: 44px;
  height: 44px;
  background: var(--gold-pale);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 2px;
}
.contact-value {
  display: block;
  font-size: 15px;
  color: var(--dark);
}
a.contact-value:hover { color: var(--gold); }

/* Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-dark);
  border: 1px solid var(--border);
}
.form-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 28px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.form-group label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--dark);
  text-transform: uppercase;
}
.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--gray-light);
  border-radius: 10px;
  padding: 14px 18px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: var(--dark);
  background: var(--off-white);
  transition: var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-light); }
.form-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--gray);
  text-align: center;
}
.form-note a { color: var(--gold); }

/* Success state */
.form-success {
  text-align: center;
  padding: 60px 20px;
}
.success-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--white);
  margin: 0 auto 20px;
}
.form-success h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  color: var(--dark);
  margin-bottom: 10px;
}
.form-success p { color: var(--gray); }

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--dark);
  padding: 80px 0 0;
}
.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}
.footer .nav-logo { margin-bottom: 16px; }
.footer .logo-main,
.footer .logo-sub { color: var(--white); }
.footer .logo-sub { color: rgba(255,255,255,0.5); }
.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}
.footer-links h4,
.footer-contact h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--gold-light); }
.footer-contact p,
.footer-contact a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 8px;
}
.footer-contact a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* ===========================
   SCROLL ANIMATIONS
   =========================== */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   CAROUSEL ARROWS (тільки мобільний)
   =========================== */
.carousel-wrap {
  position: relative;
}
/* На десктопі стрілки приховані */
.carousel-arrow {
  display: none;
}
@media (max-width: 768px) {
  .carousel-wrap {
    display: flex;
    align-items: center;
  }
  .carousel-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.92);
    border: 1.5px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    transition: var(--transition);
    /* Не стискаємо */
    position: relative;
  }
  .carousel-arrow svg {
    width: 18px;
    height: 18px;
    stroke: var(--gold-dark);
    flex-shrink: 0;
  }
  .carousel-arrow:active {
    background: var(--gold-pale);
    border-color: var(--gold);
  }
  .carousel-arrow:disabled {
    opacity: 0.3;
    pointer-events: none;
  }
  /* Відступи щоб стрілки не перекривали контент */
  .arrow-left { margin-right: 6px; margin-left: 18px; }
  .arrow-right { margin-left: 6px; margin-right: 14px; }

  /* Темні стрілки для темних секцій (команда) */
  .team .carousel-arrow {
    background: rgba(255,255,255,0.1);
    border-color: rgba(201,168,76,0.4);
  }
  .team .carousel-arrow svg { stroke: var(--gold-light); }
  .team .carousel-arrow:active {
    background: rgba(201,168,76,0.15);
    border-color: var(--gold);
  }

  /* Підказка-анімація стрілки вправо при першому завантаженні */
  .arrow-right.hint {
    animation: arrowHint 1.2s ease-in-out 0.8s 2;
  }
  @keyframes arrowHint {
    0%   { transform: translateX(0);  }
    30%  { transform: translateX(5px); }
    60%  { transform: translateX(0);  }
    80%  { transform: translateX(3px); }
    100% { transform: translateX(0);  }
  }

  /* Коли carousel-wrap є батьком grid — grid займає весь простір між стрілками */
  .carousel-wrap .services-grid,
  .carousel-wrap .team-grid,
  .carousel-wrap .testimonials-grid {
    flex: 1;
    min-width: 0;
  }

  /* Прибираємо зовнішній padding контейнера для .services-preview
     (він вже врахований у grid padding) */
  .services-preview .carousel-wrap {
    /* arrow-left має margin-left: 18px, тому компенсуємо */
    margin-left: -18px;
  }
  .testimonials .carousel-wrap,
  .team .carousel-wrap {
    margin-left: -18px;
  }
}

/* ===========================
   DEMO NOTICE
   =========================== */
.demo-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: linear-gradient(90deg, var(--dark-2), #1c1600);
  border-top: 1px solid rgba(201,168,76,0.35);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  backdrop-filter: blur(10px);
}
.demo-icon {
  font-size: 16px;
  flex-shrink: 0;
}
.demo-notice strong {
  color: var(--gold-light);
}
.demo-close {
  margin-left: auto;
  flex-shrink: 0;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.5);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.demo-close:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
/* На мобільному - враховуємо FAB кнопку */
@media (max-width: 768px) {
  .demo-notice {
    padding: 10px 16px;
    font-size: 12px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
  /* Піднімаємо FAB вище demo-notice */
  .fab-call {
    bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* ===========================
   RESPONSIVE — TABLET
   =========================== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-container { grid-template-columns: 1fr 1fr; }
  .about-container { gap: 48px; }
}

/* ===========================
   RESPONSIVE — MOBILE (≤768px)
   Мобільна оптимізація
   =========================== */
@media (max-width: 768px) {

  /* --- LAYOUT --- */
  section { padding: 60px 0; }
  .container { padding: 0 18px; }
  .section-header { margin-bottom: 36px; }
  .section-desc { font-size: 14px; }

  /* --- NAVBAR --- */
  .navbar { padding: 14px 0; }
  .navbar.scrolled { padding: 10px 0; }
  .nav-container { padding: 0 18px; gap: 0; }
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }
  .logo-main { font-size: 17px; letter-spacing: 3px; }
  .logo-sub { font-size: 8px; }
  .logo-icon { font-size: 24px; }

  /* --- МОБІЛЬНЕ МЕНЮ --- */
  .nav-mobile-only { display: list-item; }

  .burger {
    position: relative;
    z-index: 1002;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }
  .burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .burger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .burger.open span { background: var(--white) !important; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    margin: 0;
    background: #0a0805;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    z-index: 1001;
    padding: 0 20px 32px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .nav-links.open .nav-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 18px 0 24px;
    list-style: none;
  }
  .nav-menu-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--gold-light);
    letter-spacing: 2px;
    text-transform: uppercase;
  }
  .nav-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
  }
  .nav-menu-close:active {
    background: rgba(201, 168, 76, 0.2);
    border-color: var(--gold);
  }

  .nav-links.open > li:not(.nav-menu-header):not(.nav-menu-cta-wrap) {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 8px;
    list-style: none;
  }
  .nav-links.open .nav-link {
    display: block;
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(201, 168, 76, 0.18);
    padding: 16px 20px;
    border-radius: 12px;
    width: 100%;
    text-align: center;
    letter-spacing: 0.3px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-links.open .nav-link:active {
    color: var(--gold-light);
    background: rgba(201, 168, 76, 0.15);
    border-color: var(--gold);
  }

  .nav-links.open .nav-menu-cta-wrap {
    width: 100%;
    max-width: 400px;
    margin: 20px auto 0;
    list-style: none;
  }
  .nav-menu-cta {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    padding: 16px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 6px 24px rgba(201, 168, 76, 0.35);
  }
  .nav-menu-cta:active {
    transform: scale(0.98);
    opacity: 0.92;
  }

  /* --- HERO --- */
  .hero { height: 100svh; min-height: 600px; }
  .hero-content { padding: 0 18px; padding-top: 70px; }
  .hero-badge { font-size: 9px; letter-spacing: 2px; gap: 10px; margin-bottom: 16px; }
  .badge-line { width: 24px; }
  .hero-title {
    font-size: clamp(34px, 9vw, 52px);
    margin-bottom: 16px;
    line-height: 1.15;
  }
  .hero-subtitle {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 100%;
  }
  .hero-actions {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline {
    width: 100%;
    justify-content: center;
    padding: 17px 24px;
    font-size: 15px;
  }
  /* Статистика у рядок */
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: 16px;
    padding: 16px 8px;
  }
  .stat { padding: 4px 8px; }
  .stat:first-child { padding-left: 8px; }
  .stat-num { font-size: 28px; }
  .stat-label { font-size: 9px; letter-spacing: 0; }
  .stat-divider {
    display: block;
    width: 1px;
    height: 40px;
    align-self: center;
    background: rgba(201,168,76,0.3);
  }
  .hero-scroll { display: none; }

  /* --- ПОСЛУГИ (горизонтальний скрол на мобільному) --- */
  .services-preview { overflow: hidden; }
  .services-preview .container { padding-right: 0; }
  .services-grid {
    display: flex;
    flex-direction: row;
    overflow-x: hidden;
    gap: 16px;
    touch-action: pan-y;
    padding: 4px 18px 20px;
    scrollbar-width: none;
    grid-template-columns: unset;
  }
  .services-grid::-webkit-scrollbar { display: none; }
  .service-card {
    flex: 0 0 100%;
    max-width: 100%;
    scroll-snap-align: start;
    padding: 20px;
    word-break: break-word;
  }
  .service-title { font-size: 18px; margin-bottom: 8px; }
  .service-desc { font-size: 13px; line-height: 1.5; margin-bottom: 12px; }
  .service-list { margin-bottom: 12px; }
  .service-list li { font-size: 12px; padding: 2px 0 2px 12px; }
  .service-icon-wrap { width: 44px; height: 44px; margin-bottom: 12px; border-radius: 12px; }
  .service-icon { width: 22px; height: 22px; }
  .service-badge-card { top: 12px; right: 12px; font-size: 9px; padding: 3px 8px; }
  .services-more { margin: 0 18px; padding: 28px 20px; }
  .services-more p { font-size: 13px; }
  /* Dots indicator */
  .services-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    padding-bottom: 4px;
  }
  .services-dots span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gray-light);
    transition: var(--transition);
  }
  .services-dots span.active { background: var(--gold); width: 18px; border-radius: 3px; }

  /* --- ПРО НАС --- */
  .about-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-photo { height: 260px; }
  .photo-placeholder.large { height: 260px; }
  .about-badge-float { display: none; }
  .about-features { grid-template-columns: 1fr 1fr; gap: 12px; }
  .feature { font-size: 13px; }

  /* --- КОМАНДА --- */
  .team-group-photo {
    margin: 0 18px 32px;
  }
  .team-group-photo img {
    max-height: 240px;
  }
  .team-grid {
    display: flex;
    overflow-x: hidden;
    touch-action: pan-y;
    gap: 16px;
    padding: 4px 18px 16px;
    scrollbar-width: none;
    grid-template-columns: unset;
  }
  .team-grid::-webkit-scrollbar { display: none; }
  .team-card {
    flex: 0 0 100%;
    max-width: 100%;
    scroll-snap-align: start;
    word-break: break-word;
  }
  .team-info { padding: 16px; }
  .team-name { font-size: 18px; margin-bottom: 4px; }
  .team-role { font-size: 11px; margin-bottom: 8px; }
  .team-bio { font-size: 12px; line-height: 1.5; margin-bottom: 12px; }
  .team-photo { height: 220px; }
  .photo-placeholder.team-photo { height: 220px; }

  /* --- СПРАВИ --- */
  .cases-grid { grid-template-columns: 1fr; gap: 16px; }
  .case-card { padding: 24px; }

  /* --- ВІДГУКИ --- */
  .testimonials-grid {
    display: flex;
    overflow-x: hidden;
    touch-action: pan-y;
    gap: 16px;
    padding: 4px 18px 16px;
    scrollbar-width: none;
    grid-template-columns: unset;
  }
  .testimonials-grid::-webkit-scrollbar { display: none; }
  .testimonial-card {
    flex: 0 0 100%;
    max-width: 100%;
    scroll-snap-align: start;
    padding: 20px;
    word-break: break-word;
  }
  .testimonial-text { font-size: 15px; margin-bottom: 16px; }
  .stars { font-size: 16px; margin-bottom: 12px; }
  .author-name { font-size: 13px; }

  /* --- КОНТАКТИ --- */
  .contact-container { grid-template-columns: 1fr; gap: 32px; }
  .contact-form-wrap { padding: 24px 18px; }
  .form-title { font-size: 22px; margin-bottom: 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 15px 16px;
    font-size: 16px; /* Запобігає zoom на iOS */
    border-radius: 12px;
  }
  .contact-desc { font-size: 14px; margin-bottom: 24px; }
  .contact-details { gap: 18px; }

  /* --- FOOTER --- */
  .footer { padding: 50px 0 0; }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 40px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    padding: 20px 18px;
  }
}

/* ===========================
   RESPONSIVE — SMALL (≤480px)
   =========================== */
@media (max-width: 480px) {
  section { padding: 50px 0; }
  .container { padding: 0 16px; }

  /* Hero */
  .hero-title { font-size: 32px; }
  .hero-badge { display: none; }

  /* Послуги — ще вужчі карти */
  .service-card { flex: 0 0 88vw; }
  .team-card { flex: 0 0 85vw; }
  .testimonial-card { flex: 0 0 88vw; }

  /* Form inputs великі для пальців */
  .form-group input,
  .form-group select,
  .form-group textarea { padding: 16px 14px; }

  /* Footer */
  .footer-container { grid-template-columns: 1fr; }
  .footer-bottom p:last-child { display: none; }
}

/* ===========================
   FLOATING CALL BUTTON (мобільний)
   Плаваюча кнопка дзвінка
   =========================== */
.fab-call {
  display: none;
}
@media (max-width: 768px) {
  .fab-call {
    display: flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 900;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    padding: 14px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 8px 30px rgba(201,168,76,0.5);
    text-decoration: none;
    animation: fabPulse 2.5s ease-in-out infinite;
    transition: var(--transition);
  }
  .fab-call:hover, .fab-call:active {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(201,168,76,0.6);
  }
  .fab-call svg {
    width: 18px;
    height: 18px;
    fill: var(--white);
    flex-shrink: 0;
  }
  @keyframes fabPulse {
    0%, 100% { box-shadow: 0 8px 30px rgba(201,168,76,0.5); }
    50% { box-shadow: 0 8px 40px rgba(201,168,76,0.8), 0 0 0 8px rgba(201,168,76,0.1); }
  }
}

/* ===========================
   TOUCH-FRIENDLY TARGETS
   =========================== */
@media (max-width: 768px) {
  /* Мінімум 44px для кліку (Apple HIG) */
  .service-link {
    display: inline-block;
    padding: 8px 0;
    font-size: 14px;
  }
  .social-link {
    width: 40px;
    height: 40px;
  }
  .btn-primary, .btn-outline {
    min-height: 52px;
  }
  /* Активний стан для мобільних */
  .service-card:active { transform: scale(0.98); }
  .case-card:active { transform: scale(0.99); }
  .btn-primary:active { transform: scale(0.97); }
}

/* ===========================
   SAFE AREA (iPhone notch/home bar)
   =========================== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  @media (max-width: 768px) {
    .fab-call {
      bottom: calc(20px + env(safe-area-inset-bottom));
    }
    .footer-bottom {
      padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
    .nav-links.open {
      padding-top: env(safe-area-inset-top);
      padding-bottom: calc(32px + env(safe-area-inset-bottom));
    }
    .nav-links.open .nav-menu-header {
      padding-top: calc(18px + env(safe-area-inset-top));
    }
  }
}
