:root {
  --navy: #1a2744;
  --navy-dark: #0f1929;
  --navy-light: #2a3a5c;
  --gold: #c9a227;
  --gold-hover: #b8921f;
  --gold-soft: rgba(201, 162, 39, 0.15);
  --white: #ffffff;
  --bg: #f5f5f7;
  --text: #1a2744;
  --text-muted: #5a6578;
  --border: #e0e4ea;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(26, 39, 68, 0.08);
  --shadow-hover: 0 8px 30px rgba(26, 39, 68, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ——— Шапка ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
  transition: padding 0.25s ease;
}

.site-header.is-scrolled .container {
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.site-header.is-scrolled {
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--white);
}

.nav-cta {
  color: var(--gold) !important;
  font-weight: 600;
}

.nav-cta:hover {
  color: var(--gold-hover) !important;
}

@media (max-width: 768px) {
  .nav {
    gap: 1.25rem;
  }

  .nav a:not(.nav-cta) {
    font-size: 0.9rem;
  }
}

/* ——— Герой ——— */
.hero {
  padding: 4rem 0 4.5rem;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  color: var(--white);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-photo-wrap {
  will-change: transform;
}

.hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  aspect-ratio: 3/4;
  background: transparent;
  animation: heroFloat 6s ease-in-out infinite;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-content {
  text-align: left;
}

.hero-label {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-text {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-content {
    text-align: center;
  }

  .hero-text {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-photo-wrap {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
  }
}

/* Кнопки ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.85rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.35s;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201, 162, 39, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn-light:hover {
  background: var(--bg);
  color: var(--navy);
  border-color: var(--border);
}

/* ——— Інфоблок ——— */
.intro-block {
  padding: 2rem 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.intro-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto 1rem;
  text-align: center;
}

.intro-phone {
  text-align: center;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
}

.intro-phone a {
  color: var(--gold);
  text-decoration: none;
}

.intro-phone a:hover {
  color: var(--gold-hover);
  text-decoration: underline;
}

/* ——— Секции ——— */
.section {
  padding: 4rem 0;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.section-title-light {
  color: var(--white);
}

.section-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 560px;
}

/* Услуги — карточки ——— */
.services {
  background: var(--white);
}

.services .section-title {
  text-align: center;
}

.services .section-lead {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.25s;
}

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

.card-image {
  min-height: 180px;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-num {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  padding: 0 1.5rem;
  padding-top: 1.25rem;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
  padding: 0 1.5rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  padding: 0 1.5rem 1.5rem;
}

/* Зниклий безвісти ——— */
.missing-block {
  background: var(--white);
  border-top: 1px solid var(--border);
}

.missing-lead {
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-weight: 500;
}

.missing-block p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.missing-steps,
.missing-law {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--bg);
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
}

.missing-step-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.missing-remember {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--text) !important;
}

.missing-cta {
  margin-top: 1.5rem;
  margin-bottom: 0 !important;
  font-size: 1rem;
  color: var(--text) !important;
}

.missing-cta a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
}

.missing-cta a:hover {
  text-decoration: underline;
  color: var(--gold-hover);
}

/* Особисті речі ——— */
.belongings-block {
  background: var(--bg);
}

.belongings-block .missing-steps,
.belongings-block .missing-law {
  margin-top: 1.25rem;
}

.belongings-list {
  margin: 0.75rem 0 1rem;
  padding-left: 1.5rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.belongings-list li {
  margin-bottom: 0.35rem;
}

.belongings-list-check {
  list-style: none;
  padding-left: 0;
}

.belongings-list-check li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.5rem;
}

.belongings-list-check li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* О нас ——— */
.about {
  background: var(--bg);
}

.about-grid {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
}

.about-photo {
  width: 200px;
  height: 200px;
  min-width: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow-hover);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-content {
  flex: 1;
  min-width: 0;
}

.about-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.about-role {
  font-size: 0.95rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1rem;
}

.about-text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
  .about-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-photo {
    width: 160px;
    height: 160px;
    min-width: 160px;
  }
}

/* Статистика ——— */
.stats {
  background: var(--navy);
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-value {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 560px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stat-value {
    font-size: 2rem;
  }
}

/* Контакты ——— */
.contact {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
}

.contact .container {
  text-align: center;
}

.contact-text {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.75rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1rem 1.5rem;
  min-width: 200px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.2s, border-color 0.2s, transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--gold);
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.contact-link-label {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.contact-messengers-hint {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin: 0;
}

/* Футер ——— */
.site-footer {
  padding: 1.75rem 0;
  text-align: center;
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.site-footer .footer-telegram {
  margin-top: 0.5rem;
}

.site-footer .footer-telegram a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.site-footer .footer-telegram a:hover {
  color: var(--gold);
}

/* ——— Анимации ——— */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroImageFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes heroFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero .hero-label {
  animation: fadeInUp 0.5s ease-out both;
}

.hero .hero-title {
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero .hero-text {
  animation: fadeInUp 0.5s ease-out 0.2s both;
}

.hero .btn {
  animation: fadeInUp 0.5s ease-out 0.3s both;
}

.hero .hero-photo-wrap {
  animation: heroImageFade 0.8s ease-out both;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.is-visible .card {
  animation: scaleIn 0.5s ease-out both;
}

.animate-on-scroll.is-visible .card:nth-child(1) {
  animation-delay: 0.05s;
}

.animate-on-scroll.is-visible .card:nth-child(2) {
  animation-delay: 0.15s;
}

.animate-on-scroll.is-visible .card:nth-child(3) {
  animation-delay: 0.25s;
}

/* Секції: заголовок і лід з затримкою */
.animate-on-scroll.is-visible .section-title {
  animation: fadeInUp 0.6s ease-out both;
}

.animate-on-scroll.is-visible .section-lead,
.animate-on-scroll.is-visible .missing-lead,
.animate-on-scroll.is-visible .contact-text {
  animation: fadeInUp 0.5s ease-out 0.1s both;
}

/* Секція Послуги: картки вже мають scaleIn */
/* Секція About: фото і контент по черзі */
.animate-on-scroll.is-visible .about-photo {
  animation: scaleIn 0.6s ease-out 0.1s both;
}

.animate-on-scroll.is-visible .about-content .section-title {
  animation: fadeInUp 0.5s ease-out 0.15s both;
}

.animate-on-scroll.is-visible .about-name {
  animation: fadeInUp 0.5s ease-out 0.2s both;
}

.animate-on-scroll.is-visible .about-text {
  animation: fadeInUp 0.5s ease-out 0.25s both;
}

.animate-on-scroll.is-visible .about-content .btn {
  animation: fadeInUp 0.5s ease-out 0.35s both;
}

/* Статистика: цифри по черзі */
.animate-on-scroll.is-visible .stat {
  animation: scaleIn 0.5s ease-out both;
}

.animate-on-scroll.is-visible .stat:nth-child(1) {
  animation-delay: 0.05s;
}

.animate-on-scroll.is-visible .stat:nth-child(2) {
  animation-delay: 0.15s;
}

.animate-on-scroll.is-visible .stat:nth-child(3) {
  animation-delay: 0.25s;
}

/* Контакти: посилання по черзі */
.animate-on-scroll.is-visible .contact-link {
  animation: fadeInUp 0.45s ease-out both;
}

.animate-on-scroll.is-visible .contact-link:nth-child(1) {
  animation-delay: 0.05s;
}

.animate-on-scroll.is-visible .contact-link:nth-child(2) {
  animation-delay: 0.12s;
}

.animate-on-scroll.is-visible .contact-link:nth-child(3) {
  animation-delay: 0.19s;
}

.animate-on-scroll.is-visible .contact-link:nth-child(4) {
  animation-delay: 0.26s;
}

/* Intro блок */
.intro-block.animate-on-scroll .container {
  overflow: hidden;
}

.animate-on-scroll.is-visible .intro-text {
  animation: fadeInUp 0.6s ease-out both;
}

.animate-on-scroll.is-visible .intro-block .container p:last-child {
  animation: fadeInUp 0.5s ease-out 0.1s both;
}