/* === ЖЕМЧУЖИНА — общие стили подстраниц === */
:root {
  --blue-dark:  #0d2d5e;
  --blue:       #1a4a8a;
  --blue-mid:   #2563b0;
  --blue-light: #3b82d4;
  --blue-pale:  #dbeafe;
  --blue-frost: #eff6ff;
  --white:      #ffffff;
  --gray-1:     #f1f5f9;
  --gray-2:     #e2e8f0;
  --gray-3:     #94a3b8;
  --gray-4:     #475569;
  --ink:        #0f172a;
  --ink-2:      #1e293b;
  --ink-3:      #334155;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Защита от выделения текста (не мешает индексации) */
body { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* Поля ввода и телефоны можно выделять */
input, textarea, a[href^="tel:"], a[href^="mailto:"] { -webkit-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text; }

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', sans-serif; background: var(--white); color: var(--ink); font-weight: 300; line-height: 1.7; overflow-x: hidden; }

/* DISCLAIMER */
.disclaimer-top { background: var(--blue-dark); color: rgba(255,255,255,.75); font-size: .73rem; text-align: center; padding: .5rem 2rem; }
.disclaimer-top strong { color: #93c5fd; }

/* NAV */
nav.main-nav { position: fixed; top: 0; width: 100%; z-index: 100; background: rgba(255,255,255,.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--gray-2); transition: box-shadow .3s; }
nav.main-nav.scrolled { box-shadow: 0 2px 24px rgba(13,45,94,.1); }
.nav-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 2rem; height: 70px; }
.logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.logo-gem { width: 36px; height: 36px; background: var(--blue); clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-gem span { color: white; font-size: 15px; font-weight: 600; font-family: 'Playfair Display', serif; }
.logo-text strong { display: block; font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 500; color: var(--blue-dark); }
.logo-text small { font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-3); }
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--ink-3); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 400; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--blue-mid); }
.nav-phone { font-size: .9rem; font-weight: 600; color: var(--blue-dark); text-decoration: none; }
.nav-cta { background: var(--blue-mid); color: white; padding: .5rem 1.25rem; border: none; cursor: pointer; font-family: 'Inter', sans-serif; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; transition: background .2s; margin-left: .5rem; text-decoration: none; display: inline-block; }
.nav-cta:hover { background: var(--blue); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { width: 24px; height: 1.5px; background: var(--ink); display: block; }
.mobile-nav { display: none; position: fixed; inset: 0; z-index: 90; background: white; padding: 5rem 2rem 2rem; flex-direction: column; gap: 1.25rem; overflow-y: auto; }
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 1.3rem; color: var(--blue-dark); text-decoration: none; font-family: 'Playfair Display', serif; border-bottom: 1px solid var(--gray-2); padding-bottom: 1rem; }

/* PAGE HERO */
.page-hero { background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, var(--blue-mid) 100%); padding: 7rem 2rem 4rem; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; right: -5%; top: -10%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 65%); border-radius: 50%; }
.page-hero-inner { max-width: 860px; margin: 0 auto; position: relative; z-index: 2; }
.page-breadcrumb { font-size: .75rem; color: rgba(255,255,255,.5); margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.page-breadcrumb a { color: rgba(255,255,255,.5); text-decoration: none; transition: color .2s; }
.page-breadcrumb a:hover { color: #93c5fd; }
.page-breadcrumb span { color: rgba(255,255,255,.3); }
.page-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 500; color: white; line-height: 1.15; margin-bottom: 1rem; }
.page-hero p { font-size: 1rem; color: rgba(255,255,255,.75); max-width: 620px; line-height: 1.8; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-white { background: white; color: var(--blue-dark); padding: .85rem 2rem; font-family: 'Inter', sans-serif; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; text-decoration: none; display: inline-block; transition: background .2s, transform .15s; border: none; cursor: pointer; }
.btn-white:hover { background: var(--blue-pale); transform: translateY(-2px); }
.btn-outline-w { background: transparent; color: white; padding: .85rem 2rem; border: 1px solid rgba(255,255,255,.4); font-family: 'Inter', sans-serif; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 400; text-decoration: none; display: inline-block; transition: border-color .2s, background .2s; }
.btn-outline-w:hover { border-color: white; background: rgba(255,255,255,.08); }

/* CONTENT */
.section { padding: 4.5rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--blue-mid); font-weight: 600; margin-bottom: .6rem; display: flex; align-items: center; gap: .75rem; }
.section-label::before { content: ''; width: 2rem; height: 2px; background: var(--blue-mid); }
h2.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 500; color: var(--blue-dark); margin-bottom: 1rem; line-height: 1.2; }
h3.sub-title { font-family: 'Playfair Display', serif; font-size: 1.35rem; font-weight: 500; color: var(--blue-dark); margin-bottom: .6rem; }
.lead { font-size: 1.05rem; color: var(--gray-4); line-height: 1.85; margin-bottom: 1.5rem; max-width: 820px; }
.prose { font-size: .92rem; color: var(--ink-3); line-height: 1.85; margin-bottom: 1rem; }
.bg-frost { background: var(--blue-frost); }
.bg-white { background: var(--white); }
.bg-gray { background: var(--gray-1); }
.bg-dark { background: var(--blue-dark); }

/* CARDS GRID */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.card { background: white; padding: 2rem; border: 1px solid var(--gray-2); border-left: 3px solid var(--blue-mid); }
.card h3 { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 500; color: var(--blue-dark); margin-bottom: .5rem; }
.card p { font-size: .87rem; color: var(--gray-4); line-height: 1.7; }
.card-icon { font-size: 1.75rem; margin-bottom: 1rem; display: block; }

/* STEPS */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-top: 2.5rem; counter-reset: steps; }
.step { position: relative; padding-left: 4rem; }
.step::before { counter-increment: steps; content: counter(steps); position: absolute; left: 0; top: 0; width: 44px; height: 44px; background: var(--blue-mid); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 500; }
.step h4 { font-size: .95rem; font-weight: 600; color: var(--blue-dark); margin-bottom: .35rem; }
.step p { font-size: .85rem; color: var(--gray-4); line-height: 1.65; }

/* FAQ */
.faq { margin-top: 2.5rem; }
.faq-item { border-bottom: 1px solid var(--gray-2); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 1.1rem 0; font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 500; color: var(--blue-dark); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-q::after { content: '+'; font-size: 1.4rem; color: var(--blue-mid); flex-shrink: 0; transition: transform .3s; font-family: 'Inter', sans-serif; font-weight: 300; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { display: none; padding-bottom: 1.1rem; font-size: .9rem; color: var(--ink-3); line-height: 1.75; }
.faq-item.open .faq-a { display: block; }

/* PRICE TABLE */
.price-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; }
.price-table tr { border-bottom: 1px solid var(--gray-1); }
.price-table tr:hover { background: var(--blue-frost); }
.price-table td { padding: .85rem .5rem; font-size: .88rem; color: var(--ink-3); }
.price-table td:last-child { text-align: right; color: var(--blue-mid); font-weight: 600; white-space: nowrap; }

/* CTA BAND */
.cta-band { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); padding: 4rem 2rem; text-align: center; }
.cta-band h2 { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 500; color: white; margin-bottom: .75rem; }
.cta-band p { font-size: .95rem; color: rgba(255,255,255,.65); margin-bottom: 2rem; }
.cta-form { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; max-width: 560px; margin: 0 auto; }
.cta-input { flex: 1; min-width: 160px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); padding: .85rem 1.2rem; color: white; font-family: 'Inter', sans-serif; font-size: .9rem; outline: none; }
.cta-input::placeholder { color: rgba(255,255,255,.4); }
.cta-input:focus { border-color: #93c5fd; }
.cta-btn { background: white; color: var(--blue-dark); border: none; padding: .85rem 1.75rem; cursor: pointer; font-family: 'Inter', sans-serif; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.cta-btn:hover { background: var(--blue-pale); }
.consent-row { display: flex; gap: .75rem; align-items: flex-start; max-width: 560px; margin: .85rem auto 0; text-align: left; }
.consent-row input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: #93c5fd; }
.consent-row label { font-size: .7rem; color: rgba(255,255,255,.4); line-height: 1.5; }
.consent-row label a { color: rgba(255,255,255,.6); }

/* LINKS SECTION */
.services-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 2rem; }
.service-link { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; background: white; border: 1px solid var(--gray-2); text-decoration: none; color: var(--ink-3); font-size: .88rem; font-weight: 400; transition: border-color .2s, color .2s, background .2s; }
.service-link:hover { border-color: var(--blue-mid); color: var(--blue-mid); background: var(--blue-frost); }
.service-link span { font-size: 1.2rem; }

/* FOOTER */
footer.sub-footer { background: var(--blue-dark); color: rgba(255,255,255,.5); padding: 2.5rem 2rem; }
.sub-footer-inner { max-width: 1280px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; font-size: .75rem; }
.sub-footer-inner a { color: rgba(255,255,255,.4); text-decoration: none; }
.sub-footer-inner a:hover { color: #93c5fd; }

/* PHONE FLOAT */
.phone-fixed { position: fixed; bottom: 2rem; right: 2rem; z-index: 200; background: var(--blue-mid); color: white; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; text-decoration: none; box-shadow: 0 4px 20px rgba(37,99,176,.45); transition: transform .2s; }
.phone-fixed:hover { transform: scale(1.1); }

/* COOKIE */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 999; background: var(--blue-dark); color: rgba(255,255,255,.8); padding: 1rem 2rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; border-top: 3px solid var(--blue-light); font-size: .8rem; }
.cookie-banner.hidden { display: none; }
.cookie-banner a { color: #93c5fd; }
.cookie-accept { background: var(--blue-light); color: white; border: none; padding: .55rem 1.25rem; cursor: pointer; font-family: 'Inter', sans-serif; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; white-space: nowrap; }
.cookie-decline { background: transparent; color: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.2); padding: .55rem 1rem; cursor: pointer; font-family: 'Inter', sans-serif; font-size: .78rem; text-transform: uppercase; white-space: nowrap; }

/* FADE */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.fade-up.visible { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav-links, .nav-phone, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .page-hero { padding: 6rem 1.25rem 3rem; }
}
@media (max-width: 600px) {
  .section { padding: 3rem 1.25rem; }
  .steps { grid-template-columns: 1fr; }
}
