:root {
  --ink: #14181f;
  --ink-soft: #2a3038;
  --navy: #161d28;
  --navy-mid: #1e2836;
  --paper: #f6f1e8;
  --sheet: #fbf8f2;
  --gold: #8d7544;
  --gold-bright: #b89a5a;
  --gold-line: #c9b88a;
  --muted: #5c6159;
  --line: #d9d2c4;
  --line-dark: #2c3544;
  --danger: #7a3b32;
  --ok: #2f4a3a;
  --shadow: 0 18px 40px rgba(20, 24, 31, 0.08);
  --serif: "Cormorant Garamond", "Times New Roman", Times, serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: clip;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
.logo-name {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

h1,
h2,
h3 {
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(1.7rem, 6.4vw, 3.6rem);
  margin: 0 0 0.6em;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 0 0 0.55em;
}

h3 {
  font-size: 1.35rem;
  margin: 0 0 0.4em;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

.topbar {
  background: var(--navy);
  color: #efe8d8;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}

.topbar a:hover {
  color: var(--gold-line);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(22, 29, 40, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 74px;
}

.brand {
  display: block;
  min-width: 0;
  flex: 1;
}

.logo-name {
  font-size: 1.15rem;
  color: #f3ead8;
  line-height: 1.1;
}

.logo-city {
  display: block;
  margin-top: 3px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-line);
}

.nav {
  display: none;
  flex-direction: column;
  align-items: stretch;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 50;
  max-height: calc(100dvh - 74px);
  overflow: auto;
  background: #121821;
  padding: 8px 16px calc(20px + env(safe-area-inset-bottom));
  border-bottom: 1px solid var(--line-dark);
}

.nav.open {
  display: flex;
}

.nav a,
.nav-btn {
  color: #ddd4c2;
  padding: 10px 12px;
  font-size: 14px;
  background: none;
  border: 0;
  cursor: pointer;
  min-height: 44px;
  text-align: left;
  width: 100%;
}

.nav a:hover,
.nav-btn:hover,
.nav a.active {
  color: #fff8ea;
}

.drop-menu {
  display: none;
  background: #1b2330;
  padding: 0 0 8px;
}

.drop.open .drop-menu {
  display: block;
}

.drop-menu a {
  display: block;
  color: #efe8d8;
  padding: 10px 16px 10px 24px;
}

.drop-menu a:hover {
  background: #243044;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}

.header-book[hidden] {
  display: none !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #16130c;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn:hover {
  background: var(--gold-bright);
}

.btn-ghost {
  background: transparent;
  color: #f3ead8;
  border-color: #6d6248;
}

.btn-ghost:hover {
  border-color: var(--gold-line);
  color: #fff;
}

.btn-line {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-line:hover {
  background: var(--ink);
  color: var(--paper);
}

.menu-toggle {
  display: inline-flex;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #6d6248;
  background: transparent;
  color: #f3ead8;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #f3ead8;
}

.btn-short {
  display: none;
}

.hero p:has(.btn),
.page-hero p:has(.btn) {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero,
.page-hero {
  background:
    linear-gradient(180deg, rgba(22, 29, 40, 0.08), transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(184, 154, 90, 0.14), transparent 36%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero {
  padding: 72px 0 80px;
}

.page-hero {
  padding: 48px 0 42px;
}

.eyebrow {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 40rem;
}

.booking-body {
  padding: 8px 0 64px;
}

.booking-note {
  width: min(520px, 100%);
  margin: 4px auto 22px;
  padding: 0 8px;
  text-align: center;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.booking-note p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
}

.booking-note p + p {
  margin-top: 8px;
}

.booking-form {
  width: min(440px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  height: 48px;
  min-height: 48px;
  padding: 0 14px;
  line-height: 1.2;
}

.booking-form textarea {
  height: 96px;
  min-height: 96px;
  padding: 12px 14px;
  line-height: 1.45;
  resize: vertical;
}

.booking-form .captcha-row img,
.booking-form .captcha-refresh {
  height: 48px;
  min-height: 48px;
}

.booking-form .btn {
  width: 100%;
  min-height: 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 48px;
  align-items: end;
}

.hero-card {
  background: var(--navy);
  color: #efe8d8;
  padding: 32px;
  box-shadow: var(--shadow);
}

.hero-card p {
  color: #cfc6b4;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.meta-row strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.section {
  padding: 72px 0;
}

.section-tight {
  padding: 48px 0;
}

.section-dark {
  background: var(--navy);
  color: #efe8d8;
}

.section-dark .muted,
.section-dark p {
  color: #c9c0ae;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 20px;
}

.grid-2 > *,
.grid-3 > *,
.grid-4 > *,
.hero-grid > *,
.form-row > * {
  min-width: 0;
}

.grid-2 {
  grid-template-columns: 1fr 1fr;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 24px;
  min-height: 100%;
}

.card h3 {
  font-size: 1.55rem;
}

.card a.more {
  color: var(--gold);
  font-weight: 600;
  font-size: 14px;
}

.rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 0 0 16px;
}

.portrait {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #ece6d8;
  border: 1px solid var(--line);
}

.portrait.round {
  border-radius: 50%;
  border: 2px solid var(--gold-line);
}

.lawyer-mini {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  align-items: center;
}

.muted {
  color: var(--muted);
}

.list-plain {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-plain li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.list-plain li:last-child {
  border-bottom: 0;
}

.steps {
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding-left: 48px;
  position: relative;
  margin-bottom: 18px;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.2rem;
}

.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 36px;
  background: var(--navy);
  color: #f3ead8;
}

.form {
  display: grid;
  gap: 16px;
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

input,
select,
textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  font-size: 16px;
  box-sizing: border-box;
}

input[type="date"] {
  display: block;
  max-width: 100%;
}

input[type="date"]::-webkit-datetime-edit {
  min-width: 0;
  padding: 0;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  margin-left: 0;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.note {
  font-size: 13px;
  color: var(--muted);
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
}

.check input {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 0;
  margin-top: 3px;
  flex-shrink: 0;
}

.check span {
  flex: 1;
  min-width: 0;
}

.form-alert {
  display: none;
  padding: 14px 16px;
  background: #efe4cf;
  border: 1px solid var(--gold-line);
  color: var(--ink);
}

.form-alert.show {
  display: block;
}

.captcha-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.captcha-row img {
  width: 180px;
  height: 56px;
  background: #fff;
  border: 1px solid var(--line);
}

.captcha-refresh {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.calc-result {
  padding: 24px;
  background: var(--navy);
  color: #f3ead8;
}

.calc-result .sum {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 7vw, 2.4rem);
  color: var(--gold-line);
  overflow-wrap: anywhere;
}

.breadcrumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  overflow-wrap: anywhere;
}

.breadcrumbs a:hover {
  color: var(--gold);
}

.site-footer {
  background: #10151c;
  color: #cfc6b4;
  padding: 48px 0 24px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 28px;
}

.site-footer a:hover {
  color: #fff8ea;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid #2a323d;
  font-size: 13px;
}

.disclaimer {
  font-size: 12px;
  color: #8d8778;
  max-width: 52rem;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.article {
  max-width: 46rem;
}

.article p,
.article li {
  font-size: 1.05rem;
}

.tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.price-hint {
  font-family: var(--serif);
  font-size: 1.8rem;
}

@media (max-width: 1180px) {
  .header-row {
    gap: 10px;
  }

  .logo-name {
    font-size: 1.02rem;
  }
}

@media (max-width: 1100px) {
  .grid-3,
  .grid-4,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 720px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .form-row,
  .footer-grid,
  .cta-band {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero,
  .section {
    padding: 40px 0;
  }

  .page-hero {
    padding: 32px 0 28px;
  }

  .hero-card,
  .cta-band,
  .form,
  .card {
    padding: 20px;
  }

  .lead {
    font-size: 1.05rem;
  }

  .lawyer-mini {
    grid-template-columns: 72px 1fr;
  }

  .btn,
  .btn-line,
  .btn-ghost {
    width: 100%;
  }

  .hero p:has(.btn) .btn,
  .page-hero p:has(.btn) .btn,
  .header-cta .btn,
  .calc-result .btn {
    width: auto;
  }

  .cta-band .btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .logo-name {
    font-size: 0.95rem;
  }

  .btn-full {
    display: none;
  }

  .btn-short {
    display: inline;
  }

  .header-cta .btn {
    padding: 0 12px;
  }
}
