/* ============================================================
   Aļona Kolmakova — site styles
   Colours and fonts are defined in :root below — edit there
   if you want to adjust the look.
   ============================================================ */

:root {
  --navy: #16233a;
  --navy-2: #1e2f4d;
  --navy-soft: #2a3d5c;
  --ivory: #f6f3ec;
  --ivory-2: #ede8dc;
  --paper: #fffcf7;
  --gold: #9a7b4f;
  --gold-light: #c4a572;
  --ink: #1c1b18;
  --muted: #5a5852;
  --line: rgba(22, 35, 58, 0.14);
  --line-strong: rgba(22, 35, 58, 0.28);
  --danger: #8b2e2e;
  --ok: #245c38;
  --ok-bg: #e7f3eb;
  --danger-bg: #f8ecec;
  --font-serif: "Cormorant Garamond", "Iowan Old Style", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-sans: "Source Sans 3", "Segoe UI", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  --max: 70rem;
  --header-h: 4.5rem;
  --radius: 2px;
  --shadow: 0 18px 40px rgba(22, 35, 58, 0.12);
  --focus: 0 0 0 3px rgba(154, 123, 79, 0.45);
}

/* --- Fonts (self-hosted; no Google request) --- */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 0.18em; }
a:hover { color: var(--gold); }
:focus-visible { outline: none; box-shadow: var(--focus); }
button, input, select, textarea { font: inherit; color: inherit; }

/* --- Skip link --- */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 1000;
  background: var(--navy);
  color: var(--ivory);
  padding: 0.5rem 0.9rem;
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; box-shadow: var(--focus); }

/* --- Layout helpers --- */
.wrap {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}
.section {
  padding: 4.5rem 0;
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}
.section + .section { padding-top: 0; }
.section-kicker {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.6rem;
}
.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
}
.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 40rem;
}
.gold-rule {
  width: 3rem;
  height: 1px;
  background: var(--gold);
  border: 0;
  margin: 0 0 1.5rem;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 243, 236, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.logo {
  text-decoration: none;
  color: var(--navy);
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  flex: 0 0 auto;
}
.logo:hover { color: var(--navy); }
.logo-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.logo-cred {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius);
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--navy);
  position: relative;
  content: "";
}
.nav-toggle-bars::before { position: absolute; top: -5px; }
.nav-toggle-bars::after { position: absolute; top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  text-decoration: none;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a:focus-visible { border-bottom-color: var(--gold); color: var(--navy); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-left: 1px solid var(--line);
  padding-left: 0.85rem;
  margin-left: 0.25rem;
}
.lang-switch a,
.lang-switch span {
  text-decoration: none;
  color: var(--muted);
  padding: 0.15rem 0.35rem;
}
.lang-switch a:hover { color: var(--navy); }
.lang-switch [aria-current="page"] {
  color: var(--navy);
  box-shadow: 0 1px 0 var(--gold);
}

/* --- Hero --- */
.hero {
  padding: 3.25rem 0 4.5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}
.hero-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.75rem;
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 0.95;
  color: var(--navy);
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
}
.hero-role {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.45rem;
  color: var(--navy-soft);
  margin: 0 0 1.5rem;
}
.hero-lead {
  font-size: 1.15rem;
  color: var(--ink);
  max-width: 36rem;
  margin: 0 0 2rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  border: 1px solid var(--navy);
  cursor: pointer;
  background: var(--navy);
  color: var(--ivory);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--navy-2); color: var(--ivory); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: var(--ivory); }

.hero-photo {
  position: relative;
  justify-self: end;
  width: min(100%, 26rem);
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 1.1rem -1.1rem -1.1rem 1.1rem;
  background: var(--navy);
  z-index: 0;
}
.hero-photo picture,
.hero-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 12%;
  background: var(--ivory-2);
  box-shadow: var(--shadow);
}

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  align-items: start;
}
.about-copy p { margin: 0 0 1rem; }
.about-copy p:last-child { margin-bottom: 0; }

/* --- Practice areas --- */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.6rem 1.5rem 1.5rem;
}
.card-num {
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  margin: 0 0 0.55rem;
}
.card h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--navy);
  margin: 0 0 0.55rem;
  line-height: 1.2;
}
.card p { margin: 0; color: var(--muted); font-size: 1.05rem; }

.practice-note {
  margin: 1.6rem 0 0;
  max-width: 42rem;
  color: var(--navy-soft);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.45;
}

/* --- Publications --- */
.pubs {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}
.pub {
  display: grid;
  grid-template-columns: 10rem 1fr auto;
  gap: 1.25rem;
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.5rem 1.6rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}
.pub:hover { border-color: var(--gold); color: inherit; }
.pub-meta {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.pub-meta span { display: block; }
.pub-meta strong {
  display: block;
  color: var(--navy);
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 0.2rem;
}
.pub h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--navy);
  margin: 0 0 0.4rem;
}
.pub-note { margin: 0; color: var(--muted); font-size: 1rem; }
.pub-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
  align-self: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --- Timeline / education --- */
.timeline {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  border-left: 1px solid var(--line-strong);
}
.timeline li {
  position: relative;
  padding: 0 0 1.75rem 1.5rem;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 0.45rem;
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
}
.time-when {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-variant: small-caps;
  color: var(--gold);
  margin: 0 0 0.25rem;
}
.time-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.25rem;
  line-height: 1.25;
}
.time-body { margin: 0; color: var(--muted); }

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.5rem;
  align-items: stretch;
}
.contact-panel {
  background: var(--navy);
  color: var(--ivory);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
}
.contact-panel h2,
.contact-panel .section-title { color: var(--ivory); }
.contact-panel .section-kicker { color: var(--gold-light); }
.contact-panel .gold-rule { background: var(--gold-light); }
.contact-panel p { color: rgba(246, 243, 236, 0.86); }
.contact-email {
  display: inline-block;
  color: var(--ivory);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0.5rem 0 1.25rem;
  text-decoration: none;
  border-bottom: 1px solid var(--gold-light);
}
.contact-email:hover { color: var(--gold-light); }
.disclaimer {
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  margin-top: auto;
  color: rgba(246, 243, 236, 0.72);
}

/* --- Form --- */
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.75rem 1.6rem;
}
.form-row { margin-bottom: 1rem; }
.form-row label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.req { color: var(--gold); }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #fff;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius);
}
.form-row textarea { min-height: 8.5rem; resize: vertical; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: var(--focus);
}
.form-consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.95rem;
  margin: 1.1rem 0 1.25rem;
  color: var(--muted);
}
.form-consent input { margin-top: 0.35rem; accent-color: var(--navy); flex: 0 0 auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  font-size: 0.98rem;
}
.form-status.ok { background: var(--ok-bg); color: var(--ok); }
.form-status.err { background: var(--danger-bg); color: var(--danger); }
.form-hint { font-size: 0.85rem; color: var(--muted); margin: 0.75rem 0 0; }

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  color: rgba(246, 243, 236, 0.78);
  padding: 2.25rem 0 2rem;
  margin-top: 2rem;
  font-size: 0.95rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}
.site-footer a { color: var(--ivory); }
.site-footer a:hover { color: var(--gold-light); }
.footer-legal { max-width: 42rem; margin: 0; }
.footer-meta { margin: 0; }

/* --- Privacy page --- */
.page-header { padding: 3rem 0 1rem; }
.prose { max-width: 42rem; padding-bottom: 4rem; }
.prose h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--navy);
  margin: 2rem 0 0.6rem;
}
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 1.2rem; }

/* --- 404 --- */
.notfound { padding: 6rem 0 7rem; text-align: center; }
.notfound h1 {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--navy);
  margin: 0 0 1rem;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .hero-photo { justify-self: center; width: min(100%, 22rem); order: -1; margin-bottom: 0.5rem; }
  .hero { padding-top: 2rem; }
  .pub { grid-template-columns: 1fr; gap: 0.4rem; }
  .pub-link { align-self: start; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1rem 1.1rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0.35rem; }
  .site-nav a { display: block; padding: 0.45rem 0; }
  .cards { grid-template-columns: 1fr; }
  .header-inner { min-height: 4rem; }
  .lang-switch { padding-left: 0.5rem; margin-left: 0; border-left: 0; }
}
@media (max-width: 480px) {
  .wrap { width: min(calc(100% - 1.5rem), var(--max)); }
  .hero h1 { font-size: 2.45rem; }
  .form-card, .contact-panel { padding: 1.35rem 1.1rem; }
}
