/* ===== CSS VARIABLES ===== */
:root {
  --navy: #1a2f5e;
  --navy-dark: #122244;
  --navy-light: #243d7a;
  --gold: #c9a84c;
  --gold-light: #dfc070;
  --white: #ffffff;
  --light-gray: #f5f7fa;
  --mid-gray: #e8ecf2;
  --text: #2d3748;
  --text-light: #718096;
  --font: 'Inter', sans-serif;
  --radius: 8px;
  --shadow: 0 2px 16px rgba(26,47,94,0.10);
  --shadow-hover: 0 6px 24px rgba(26,47,94,0.18);
  --transition: 0.2s ease;
  --container: 1100px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 80px; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); }

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; line-height: 1.3; }
h3 { font-size: 1.1rem; font-weight: 600; line-height: 1.4; }
p { line-height: 1.7; }

/* ===== LAYOUT ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
section { padding: 4rem 0; }
.section-title { text-align: center; color: var(--navy); margin-bottom: 2.5rem; }
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 0.75rem auto 0;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
}
.btn-primary { background: var(--gold); color: var(--navy-dark); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-dark); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ===== NAVIGATION ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--mid-gray);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav__logo {
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  line-height: 1.2;
}
.nav__logo span { display: block; font-size: 0.75rem; font-weight: 400; color: var(--text-light); }
.nav__links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
  white-space: nowrap;
}
.nav__links a:hover,
.nav__links a.active { color: var(--navy); font-weight: 600; }
.nav__links a.active { border-bottom: 2px solid var(--gold); }
.nav__links .btn { padding: 0.45rem 1rem; font-size: 0.85rem; }

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: all var(--transition);
  border-radius: 2px;
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 5rem 0 4rem;
  background-image: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-light) 100%);
}
.hero__content { max-width: 720px; }
.hero__title { color: var(--white); margin-bottom: 1.25rem; }
.hero__title em { color: var(--gold); font-style: normal; }
.hero__subtitle { font-size: 1.125rem; color: rgba(255,255,255,0.85); margin-bottom: 2rem; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ===== FOR WHOM ===== */
.for-whom { background: var(--white); }
.for-whom__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 2rem;
  margin-bottom: 2rem;
}
.for-whom__item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.for-whom__item:hover { background: var(--light-gray); }
.for-whom__icon { color: var(--gold); font-size: 1.1rem; flex-shrink: 0; margin-top: 0.1rem; }
.for-whom__cta {
  text-align: center;
  padding: 1.5rem;
  background: var(--light-gray);
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
}
.for-whom__cta p { margin-bottom: 1rem; font-size: 1rem; }

/* ===== SERVICES ===== */
.services { background: var(--light-gray); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border-top: 3px solid transparent;
}
.service-card:hover {
  box-shadow: var(--shadow-hover);
  border-top-color: var(--gold);
  transform: translateY(-2px);
}
.service-card__icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.service-card__title { color: var(--navy); margin-bottom: 0.5rem; }
.service-card__text { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }

/* ===== ABOUT ===== */
.about { background: var(--white); }
.about__intro { font-size: 1.05rem; margin-bottom: 1rem; }
.about__location {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--light-gray);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  color: var(--navy);
  font-weight: 500;
}
.about__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.about__col h3 { color: var(--navy); margin-bottom: 1rem; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.about__col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.about__col li { display: flex; gap: 0.5rem; font-size: 0.95rem; }
.about__col li::before { content: '▸'; color: var(--gold); flex-shrink: 0; }
.about__practice h3 { color: var(--navy); margin-bottom: 1rem; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.about__practice ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-bottom: 1.5rem; }
.about__practice li { display: flex; gap: 0.5rem; font-size: 0.95rem; }
.about__practice li::before { content: '▸'; color: var(--gold); flex-shrink: 0; }
.about__quote {
  background: var(--navy);
  color: var(--white);
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== PRICING ===== */
.pricing { background: var(--light-gray); }
.pricing__intro { text-align: center; max-width: 600px; margin: 0 auto 2.5rem; color: var(--text-light); }
.pricing__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.pricing-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
  border-top: 3px solid var(--mid-gray);
  transition: all var(--transition);
}
.pricing-card:hover { box-shadow: var(--shadow-hover); }
.pricing-card.featured { border-top-color: var(--gold); }
.pricing-card__icon { font-size: 2rem; margin-bottom: 1rem; }
.pricing-card__title { color: var(--navy); margin-bottom: 0.75rem; }
.pricing-card__text { font-size: 0.9rem; color: var(--text-light); }
.pricing-card.featured .pricing-card__title { color: var(--gold); }

/* ===== CONTACT ===== */
.contact { background: var(--white); }
.contact__intro { text-align: center; color: var(--text-light); margin-bottom: 2.5rem; font-size: 1.05rem; }
.contact__layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; align-items: start; }
.contact__info h3 { color: var(--navy); margin-bottom: 1.25rem; }
.contact__links { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.contact__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  background: var(--light-gray);
  font-weight: 500;
  transition: all var(--transition);
  font-size: 0.95rem;
}
.contact__link:hover { background: var(--mid-gray); color: var(--navy); }
.contact__link-icon { font-size: 1.2rem; }
.contact__messengers { display: flex; flex-direction: column; gap: 0.6rem; }
.contact__urgent {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--light-gray);
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
  font-size: 0.875rem;
}
.contact__urgent a { color: var(--navy); font-weight: 600; text-decoration: underline; }

/* ===== FORM ===== */
.contact-form { background: var(--light-gray); padding: 2rem; border-radius: var(--radius); }
.contact-form h3 { color: var(--navy); margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--navy); margin-bottom: 0.4rem; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--mid-gray);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--navy); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input:focus-visible,
.form-group textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }

.form-checkbox { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 1.25rem; }
.form-checkbox input[type="checkbox"] { flex-shrink: 0; margin-top: 0.2rem; width: 1rem; height: 1rem; cursor: pointer; accent-color: var(--navy); }
.form-checkbox label { font-size: 0.875rem; color: var(--text); cursor: pointer; }
.form-checkbox a { color: var(--navy); text-decoration: underline; font-weight: 500; }
.form-checkbox a:hover { color: var(--gold); }

.form-submit .btn { width: 100%; padding: 0.875rem; font-size: 1rem; }
.form-message { display: none; padding: 0.875rem 1rem; border-radius: var(--radius); margin-top: 1rem; font-size: 0.9rem; font-weight: 500; }
.form-message.success { display: block; background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-message.error { display: block; background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.form-message.error a { color: #721c24; font-weight: 700; }

.recaptcha-notice { font-size: 0.75rem; color: var(--text-light); margin-top: 0.75rem; text-align: center; }
.recaptcha-notice a { color: var(--text-light); text-decoration: underline; }
.grecaptcha-badge { visibility: hidden; }

/* ===== TERMS ===== */
.terms { background: var(--light-gray); }
.terms__toggle-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}
.terms__toggle-btn:hover { background: var(--navy-dark); }
.terms__toggle-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.terms__arrow { font-size: 1.2rem; transition: transform 0.3s ease; }
.terms__toggle-btn[aria-expanded="true"] .terms__arrow { transform: rotate(180deg); }
.terms__content {
  display: none;
  background: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 2rem 2.5rem;
  border: 1px solid var(--mid-gray);
  border-top: none;
}
.terms__content.open { display: block; }
.terms__meta { font-size: 0.875rem; color: var(--text-light); margin-bottom: 2rem; }
.terms__section { margin-bottom: 1.75rem; }
.terms__section h3 { color: var(--navy); font-size: 1rem; margin-bottom: 0.75rem; border-bottom: 1px solid var(--mid-gray); padding-bottom: 0.4rem; }
.terms__section p, .terms__section li { font-size: 0.9rem; line-height: 1.7; margin-bottom: 0.5rem; }
.terms__section ul { padding-left: 1rem; }
.terms__section li::before { content: '• '; color: var(--gold); }
.terms__requisites {
  background: var(--light-gray);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-top: 1.5rem;
}
.terms__requisites strong { color: var(--navy); }

/* ===== FOOTER ===== */
.footer { background: var(--navy-dark); color: rgba(255,255,255,0.75); padding: 2.5rem 0; }
.footer__inner { display: flex; flex-direction: column; gap: 1rem; align-items: center; text-align: center; }
.footer__status {
  font-size: 0.825rem;
  line-height: 1.6;
  max-width: 780px;
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
}
.footer__links { display: flex; gap: 1.5rem; font-size: 0.875rem; }
.footer__links a { color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer__links a:hover { color: var(--gold); }
.footer__copy { font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .pricing__cards { grid-template-columns: 1fr 1fr; }
  .about__practice ul { grid-template-columns: 1fr; }
}

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

  .nav__links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow);
    gap: 0;
    border-top: 1px solid var(--mid-gray);
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 0.75rem 0; border-bottom: 1px solid var(--mid-gray); font-size: 0.95rem; }
  .nav__links a.active { border-bottom: 1px solid var(--mid-gray); }
  .nav__links .btn { margin-top: 0.5rem; text-align: center; }
  .nav__burger { display: flex; }
  .nav { position: sticky; }

  .hero { padding: 3rem 0 2.5rem; }
  .hero__buttons { flex-direction: column; }
  .hero__buttons .btn { width: 100%; text-align: center; }

  .for-whom__grid { grid-template-columns: 1fr; }

  .about__cols { grid-template-columns: 1fr; gap: 1.25rem; }
  .about__practice ul { grid-template-columns: 1fr; }

  .contact__layout { grid-template-columns: 1fr; gap: 2rem; }
  .contact-form { padding: 1.25rem; }

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

  .terms__content { padding: 1.25rem 1rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  .services__grid { grid-template-columns: 1fr; }
}
