/* ====== Base ====== */
:root{
  --bg: #FAF7F4;
  --soft: #E8D7D5;
  --text: #3A3A3A;
  --muted: #8A8A8A;
  --accent: #D8B7B3;
  --card: #ffffff;
  --border: rgba(58,58,58,.12);
  --shadow: 0 10px 30px rgba(58,58,58,.06);
  --radius: 18px;
  --radius-sm: 14px;
  --container: 1120px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

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

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section{
  padding: 72px 0;
}

.section--soft{
  background: color-mix(in srgb, var(--soft) 60%, #fff 40%);
}

.section--hero{
  background: linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--soft) 38%, var(--bg) 62%));
}

.section-head{
  margin-bottom: 22px;
}

h1{
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

h2{
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

h3{
  font-size: 18px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

p{margin: 0 0 12px}
.lead{font-size: 18px; color: var(--text)}
.subtitle{color: var(--muted); margin: 0}
.muted{color: var(--muted)}
.center{text-align:center}

/* ====== Header ====== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,247,244,.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand{
  display:flex;
  flex-direction:column;
  gap:2px;
  text-decoration:none!important;
}
.brand__name{font-weight:700; letter-spacing:-0.01em}
.brand__role{font-size:12px; color:var(--muted)}

.nav{
  display:flex;
  align-items:center;
  gap:14px;
}

.nav__menu{
  display:flex;
  align-items:center;
  gap: 14px;
  font-size: 14px;
  color: color-mix(in srgb, var(--text) 80%, var(--muted) 20%);
}

.nav__menu a{
  padding: 8px 10px;
  border-radius: 999px;
}
.nav__menu a:hover{
  background: rgba(216,183,179,.28);
  text-decoration:none;
}

.header-cta{
  display:flex;
  gap: 10px;
  align-items:center;
}

/* Mobile menu */
.nav__toggle{
  display:none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.7);
  box-shadow: 0 6px 20px rgba(58,58,58,.05);
  cursor:pointer;
}
.nav__toggle-line{
  display:block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 5px auto;
  border-radius: 2px;
}

/* ====== Buttons ====== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration:none!important;
}

.btn--primary{
  background: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--text) 45%);
  box-shadow: 0 10px 24px rgba(216,183,179,.35);
}
.btn--primary:hover{filter: brightness(0.98)}

.btn--ghost{
  background: rgba(255,255,255,.7);
  border-color: var(--border);
}
.btn--ghost:hover{background: rgba(255,255,255,.92)}

.btn--full{width:100%}

/* ====== Layout helpers ====== */
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 34px;
  align-items:center;
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
  margin-top: 18px;
}

.hero-badges{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 18px;
}

.badge{
  display:inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.6);
  border: 1px solid var(--border);
  font-size: 13px;
  color: color-mix(in srgb, var(--text) 72%, var(--muted) 28%);
}

.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.grid-3{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
}

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.card--wide{
  padding: 22px;
}

.card--note{
  background: rgba(255,255,255,.72);
  margin-top: 18px;
}

.list{
  margin: 10px 0 0;
  padding-left: 18px;
}
.list li{margin: 6px 0}

.list--ordered{
  padding-left: 18px;
}

/* Steps */
.step{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 700;
  background: rgba(216,183,179,.35);
  border: 1px solid var(--border);
  margin-bottom: 10px;
}

/* Photo */
.hero-photo .photo-card{
  padding: 18px;
}
.photo-placeholder{
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(216,183,179,.45), rgba(232,215,213,.35));
  border: 1px dashed rgba(58,58,58,.18);
  height: 420px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.photo-placeholder__inner{
  text-align:center;
  color: rgba(58,58,58,.75);
}
.photo-placeholder__inner span{
  font-weight: 700;
  font-size: 20px;
}
.photo-placeholder__inner small{
  display:block;
  margin-top: 6px;
  color: var(--muted);
}
.photo-note{
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

/* Pricing */
.pricing{
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.card--pricing{
  padding: 22px;
}
.pricing__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 14px;
}
.price{
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(216,183,179,.28);
  border: 1px solid var(--border);
}

/* Contacts */
.contact-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items:start;
}
.contact-cards{
  display:flex;
  flex-direction:column;
  gap: 10px;
  margin: 14px 0 10px;
}
.contact-card{
  display:flex;
  flex-direction:column;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.7);
  text-decoration:none!important;
}
.contact-card:hover{
  background: rgba(255,255,255,.92);
}
.contact-card__label{font-size:12px; color: var(--muted)}
.contact-card__value{font-weight:700}

.contact-note h3{margin-bottom:10px}

/* Footer */
.site-footer{
  border-top: 1px solid var(--border);
  padding: 26px 0;
  background: rgba(250,247,244,.9);
}
.footer {
  background-color: #ffffff;   /* белый фон */
  padding: 30px 0;
  border-top: 1px solid #e8e4e1;
  font-size: 14px;
  line-height: 1.0;
  color: #2f2f2f;              /* обычный темный текст */
  font-weight: 400;
}

.footer .container {
  max-width: 1100px;
  margin: 0 auto;
}

.footer div {
  margin-bottom: 10px;
}

.footer div:last-child {
  margin-bottom: 0;
}

/* Accessibility */
.skip-link{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left: 16px;
  top: 16px;
  width:auto;
  height:auto;
  padding: 10px 12px;
  background:#fff;
  border:1px solid var(--border);
  border-radius: 12px;
  z-index: 999;
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* ====== Responsive ====== */
@media (max-width: 920px){
  .hero-grid, .contact-grid{grid-template-columns: 1fr}
  .header-cta{display:none}
  .nav__toggle{display:block}
  .nav__menu{
    position:absolute;
    right: 20px;
    top: 62px;
    background: rgba(255,255,255,.92);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 10px;
    display:none;
    flex-direction:column;
    align-items:stretch;
    min-width: 220px;
  }
  .nav__menu a{padding: 10px 12px}
  .nav__menu.is-open{display:flex}
  .grid-3{grid-template-columns: 1fr}
  .grid-2{grid-template-columns: 1fr}
  .photo-placeholder{height: 340px}
}

@media (prefers-reduced-motion: reduce){
  *{scroll-behavior:auto!important; transition:none!important}
}

.photo-img{width:100%;height:420px;object-fit:cover;border-radius:22px;}

#help .center { margin-top: 40px; }


/* --- Mobile tweaks --- */
@media (max-width: 768px) {
  /* Comfortable safe-area insets so elements don't stick to the screen edge */
  .container {
    padding-left: calc(24px + env(safe-area-inset-left));
    padding-right: calc(24px + env(safe-area-inset-right));
  }

  /* Header */
  .header-inner {
    padding: 12px 0;
  }
  .brand {
    gap: 6px;
  }
  .brand__name {
    font-size: 20px;
    line-height: 1.15;
  }
  .brand__role {
    font-size: 14px;
  }

  /* Align all section headings/text to the same left edge */
  .section-title,
  .subtitle {
    margin-left: 0;
  }

  /* Make vertical rhythm tighter and consistent */
  .section {
    padding: 40px 0;
  }
  .section-head {
    margin-bottom: 16px;
  }
  .hero {
    padding-top: 18px;
  }
  .hero__grid {
    gap: 18px;
  }
  .hero__content {
    padding-top: 0;
  }

  /* Cards */
  .cards {
    gap: 14px;
  }
  .card {
    padding: 18px;
  }

  /* Buttons */
  .hero-actions {
    gap: 12px;
  }

  /* Prevent price / currency from wrapping */
  .price,
  .price-nowrap,
  .nowrap {
    white-space: nowrap;
  }
  /* Mobile: move адвокатские реквизиты в футер */
  .advocate-details { display: none; }
  .mobile-only { display: block; }

}


/* Helpers */
.mobile-only { display: none; }

.advocate-details p { margin: 0 0 8px; line-height: 1.25; }
.advocate-details p:last-child { margin-bottom: 0; }

.footer-advocate { margin-top: 18px; }

/* Official details */
.official-card{
  margin-top: 28px;
  margin-bottom: 6px;
  line-height: 1.0;
}
.footer-title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 12px;
}

.footer-small {
  font-size: 13px;
  line-height: 1.0;
  margin-bottom: 8px;
}

.footer-muted {
  font-size: 13px;
  color: #6b6b6b;
  margin-top: 8px;
  margin-bottom: 6px;
}

.footer-contacts {
  font-size: 13px;
  font-weight: 500;
  margin-top: 18px;
}
html, body, .footer, .footer * {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
}
#contacts {
  padding-bottom: 48px;
}
.footer {
  padding-top: 30px;
  padding-bottom: 30px;
}
.footer-small,
.footer-muted,
.advocate-details p {
  line-height: 1.35;
}
@media (max-width: 768px) {
  #contacts { padding-bottom: 48px; }
  .footer { padding-top: 30px; padding-bottom: 28px; }
}

  .footer-title,
  .footer-small,
  .footer-muted,
  .footer-contacts {
    font-size: inherit;
    line-height: 1.35;
  }
  .footer{
  margin-top: 68px !important; /* 80px ≈ 2 см */
}
@media (max-width: 768px){
  .footer{
    margin-top: 48px !important;
    padding-top: 30px !important;
  }
}
/* ===== Mobile: all blocks same width as photo block ===== */
@media (max-width: 768px) {

  /* 1) Единый контейнер (как у фото) */
  .container{
    padding-left: calc(16px + env(safe-area-inset-left)) !important;
    padding-right: calc(16px + env(safe-area-inset-right)) !important;
  }

  /* 2) Все сетки/колонки в одну колонку и на всю ширину */
  .hero-grid,
  .contact-grid,
  .grid-2,
  .grid-3{
    grid-template-columns: 1fr !important;
  }

  /* 3) Все карточки и блоки — на ширину контейнера */
  .card,
  .card--wide,
  .card--note,
  .card--pricing,
  .contact-card,
  .photo-card,
  .pricing,
  .contact-cards{
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
@media (max-width: 768px) {
  #contacts .card:last-child {
    margin-top: 20px;
  }
}
@media (max-width: 768px) {

  /* Кнопка над фото — на всю ширину контейнера */
  .hero-actions .btn {
    width: 100%;
  }

}