/* ============================================================
   НОТАРИУС НУРИСЛАМОВА Э.В. — ГЛАВНАЯ ТАБЛИЦА СТИЛЕЙ
   Палитра: #1a2744 (тёмно-синий) | #c9a84c (золото) | #ffffff
   ============================================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #1a2744;
  --navy-light: #243560;
  --gold:   #c9a84c;
  --gold-light: #e2c270;
  --white:  #ffffff;
  --gray:   #f5f6f8;
  --text:   #333333;
  --text-muted: #666;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(26,39,68,.12);
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3 { font-family: 'Playfair Display', serif; line-height: 1.25; }

.section { padding: 80px 0; }
.section--gray { background: var(--gray); }
.section--dark { background: var(--navy); color: var(--white); }

.section__title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--navy);
  text-align: center;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 20px;
}
.section__title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 3px;
  background: var(--gold);
  border-radius: 2px;
}
.section__title--light { color: var(--white); }
.section__title--light::after { background: var(--gold); }

.section__subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 48px;
  font-size: 1rem;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--gosuslugi {
  background: #0065B1;
  color: var(--white);
  border-color: #0065B1;
}
.btn--gosuslugi:hover {
  background: #0052a3;
  border-color: #0052a3;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,101,177,.35);
}
.btn--gosuslugi.btn--large {
  padding: 18px 36px;
  font-size: 1.05rem;
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn--outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}

.gosuslugi-icon {
  width: 28px; height: 28px;
  flex-shrink: 0;
  border-radius: 6px;
  object-fit: contain;
}

/* ---------- FLOATING PANEL (messengers + gosuslugi) ---------- */
.floating-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.25rem;
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  transition: transform var(--transition), box-shadow var(--transition);
}
.floating-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

.floating-btn--phone    { background: var(--gold); color: var(--navy); }
.floating-btn--telegram  { background: #2AABEE; }
.floating-btn--whatsapp  { background: #25D366; }
.floating-btn--max       { background: #0077FF; }
.floating-btn--gosuslugi { background: #0065B1; }

.floating-btn__logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
}

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
  transition: var(--transition);
}
.header.scrolled { background: rgba(26,39,68,.97); }

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

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.header__emblem {
  width: auto; height: 44px;
  object-fit: contain;
}
.header__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.header__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--gold);
  letter-spacing: .5px;
}
.header__subtitle {
  font-size: .8rem;
  color: rgba(255,255,255,.75);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.header__nav a {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .3px;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition);
}
.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.header__nav a:hover { color: var(--gold); }
.header__nav a:hover::after { width: 100%; }

.header__phones {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}
.header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 500;
  font-size: .85rem;
  white-space: nowrap;
}
.header__phone i { font-size: .8rem; }
.header__phone:hover { color: var(--gold-light); }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 100%; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #2d4a7a 100%);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 60px;
  width: 100%;
}

.hero__label {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 16px;
}
.hero__name {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.15;
}
.hero__position {
  font-size: 1rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 40px;
  max-width: 460px;
}
.hero__seo-text {
  font-size: 1rem;
  color: rgba(255,255,255,.88);
  margin-bottom: 32px;
  max-width: 620px;
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero photo */
.hero__photo-frame {
  width: 280px; height: 360px;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid rgba(201,168,76,.4);
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.hero__photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero__wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
}
.hero__wave svg { display: block; width: 100%; }

/* ---------- ABOUT ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 48px;
}
.about__text p { color: var(--text-muted); margin-bottom: 16px; }
.about__text p:last-child { margin-bottom: 0; }

.about__stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
}
.stat-card__icon {
  font-size: 1.5rem;
  color: var(--gold);
  flex-shrink: 0;
}
.stat-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stat-card__value {
  display: block;
  font-weight: 600;
  color: var(--navy);
  font-size: 1rem;
}
.stat-card__label {
  display: block;
  font-size: .85rem;
  color: var(--text-muted);
}

/* ---------- SERVICES ---------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 16px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 3px solid transparent;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(26,39,68,.16);
  border-top-color: var(--gold);
}
.service-card__icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 1.3rem;
}
.service-card__title {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 8px;
  font-family: 'Playfair Display', serif;
}
.service-card__text {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- SCHEDULE ---------- */
.schedule__grid {
  max-width: 560px;
  margin: 48px auto 0;
}
.schedule__subtitle {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.schedule__subtitle i { color: var(--gold); }

.schedule__table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}
.schedule__table td {
  padding: 12px 16px;
  font-size: .95rem;
  border-bottom: 1px solid #e8eaf0;
}
.schedule__table td:first-child { color: var(--text-muted); }
.schedule__table td:last-child { font-weight: 500; color: var(--navy); text-align: right; }
.schedule__table-weekend td { color: #aaa !important; }

.schedule__note {
  font-size: .85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.schedule__note i { color: var(--gold); }


/* ---------- CONTACTS ---------- */
.faq__list {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 28px;
  border-left: 4px solid var(--gold);
}

.faq-item__title {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.faq-item__text {
  color: var(--text-muted);
}

.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  margin-top: 48px;
  align-items: start;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}
.contact-item:last-child { margin-bottom: 0; }
.contact-item__icon {
  width: 44px; height: 44px;
  background: rgba(201,168,76,.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-item strong { display: block; margin-bottom: 2px; color: var(--white); }
.contact-item p { color: rgba(255,255,255,.7); font-size: .95rem; }
.contact-item a { color: var(--gold); }
.contact-item a:hover { color: var(--gold-light); }

.contacts__map {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.contacts__map iframe { display: block; }

/* ---------- FOOTER ---------- */
.footer {
  background: #0f1a33;
  color: rgba(255,255,255,.55);
  padding: 28px 0;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.footer p { font-size: .85rem; margin-bottom: 4px; }
.footer__region { color: rgba(255,255,255,.35); font-size: .8rem; }
.footer__right { text-align: right; }
.footer__right span { color: var(--gold); }

/* ---------- ANIMATIONS ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger for grid children */
.services__grid .fade-in:nth-child(2) { transition-delay: .05s; }
.services__grid .fade-in:nth-child(3) { transition-delay: .10s; }
.services__grid .fade-in:nth-child(4) { transition-delay: .15s; }
.services__grid .fade-in:nth-child(5) { transition-delay: .20s; }
.services__grid .fade-in:nth-child(6) { transition-delay: .25s; }
.services__grid .fade-in:nth-child(7) { transition-delay: .30s; }
.services__grid .fade-in:nth-child(8) { transition-delay: .35s; }
.services__grid .fade-in:nth-child(9) { transition-delay: .40s; }
.services__grid .fade-in:nth-child(10) { transition-delay: .45s; }


/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .contacts__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }

  .header__nav {
    display: none;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .header__nav.open { display: flex; }
  .header__nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    font-size: 1rem;
  }
  .header__nav a:last-child { border-bottom: none; }

  .burger { display: flex; }
  .header__phones { flex-direction: row; gap: 12px; }
  .header__phone span { display: none; }

  .floating-panel {
    right: 12px;
    bottom: 16px;
    gap: 8px;
  }
  .floating-btn {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }

  .hero { padding: 110px 0 60px; min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__photo { display: flex; justify-content: center; order: -1; }
  .hero__photo-frame { width: 200px; height: 240px; }

  .hero__actions { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }


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

@media (max-width: 480px) {
  .services__grid { grid-template-columns: 1fr; }
  .hero__name { font-size: 2rem; }
}
