/* Ивашкова Е. А. — строгий деловой стиль */
:root {
  --ink: #0e1a2b;
  --ink-soft: #2a3a4f;
  --navy: #16325a;
  --navy-deep: #0b1c33;
  --steel: #5a6b7d;
  --line: #d5dde8;
  --paper: #f3f6fa;
  --paper-2: #e8eef5;
  --white: #ffffff;
  --accent: #9a7b4f;
  --accent-soft: #c4a574;
  --shadow: 0 18px 50px rgba(14, 26, 43, 0.12);
  --radius: 2px;
  --font-sans: "Manrope", "Segoe UI", sans-serif;
  --font-serif: "Literata", "Times New Roman", serif;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(22, 50, 90, 0.08), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(154, 123, 79, 0.07), transparent 50%),
    linear-gradient(180deg, #eef2f7 0%, var(--paper) 30%, #f7f9fc 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent);
}

address {
  font-style: normal;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--white);
  /* Видна только при фокусе с клавиатуры, не при обычном скролле */
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.skip-link:focus {
  clip-path: none;
  width: auto;
  height: auto;
  overflow: visible;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(243, 246, 250, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(213, 221, 232, 0.9);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.brand:hover {
  color: inherit;
}

.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--navy);
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}

.brand-role {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}

.nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.nav-list a:hover {
  color: var(--navy);
}

.header-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-decoration: none;
  line-height: 1.15;
  color: var(--ink);
  flex-shrink: 0;
}

.header-phone:hover {
  color: var(--navy);
}

.header-phone-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}

.header-phone-num {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.menu-toggle span {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(247, 249, 252, 0.98);
  padding: 0.75rem 1.25rem 1.25rem;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav a {
  display: block;
  padding: 0.85rem 0;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

.mobile-nav[hidden] {
  display: none !important;
}

/* Hero — портрет в естественных пропорциях, без full-bleed crop */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 80% at 88% 30%, rgba(154, 123, 79, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 70% at 12% 80%, rgba(22, 50, 90, 0.07), transparent 50%),
    linear-gradient(165deg, #e4ebf3 0%, #f4f7fb 42%, #eef2f7 100%);
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 26, 43, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 26, 43, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 75%);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.78fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  min-height: min(86vh, 760px);
  padding: 3.5rem 0 3.25rem;
}

.hero-content {
  max-width: 34rem;
  padding: 0.5rem 0;
}

.hero-eyebrow {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}

.hero-title {
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.hero-brand {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.05rem, 4.6vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-line {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-lead {
  margin: 0 0 2rem;
  max-width: 30rem;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-portrait {
  margin: 0;
  justify-self: end;
  width: min(100%, 380px);
  /* Больше места снизу: плашка не залезает на лицо */
  padding: 0 0 3.5rem 0.85rem;
}

.hero-portrait-stage {
  position: relative;
}

/* Смещённая контурная рамка, как на референсе */
.hero-portrait-outline {
  position: absolute;
  inset: 1.1rem -0.85rem -1.1rem 1.1rem;
  border: 1px solid rgba(22, 50, 90, 0.35);
  border-radius: 6px;
  pointer-events: none;
  z-index: 0;
}

.hero-portrait-frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #b9c5d2;
  border-radius: 6px;
  box-shadow:
    0 0 0 1px rgba(14, 26, 43, 0.04),
    0 22px 50px rgba(14, 26, 43, 0.16);
}

.hero-portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 78%, rgba(11, 28, 51, 0.18) 100%);
  pointer-events: none;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Чуть ниже кроп — лицо крупнее и открытее */
  object-position: 50% 18%;
  filter: contrast(1.05) saturate(0.92) brightness(1.03);
  transform: scale(1.02);
  animation: portrait-settle 1.4s var(--ease) both;
}

/* Плашка смещена вниз/вбок — не перекрывает лицо */
.hero-portrait-note {
  position: absolute;
  left: -0.75rem;
  right: auto;
  bottom: -2.85rem;
  z-index: 2;
  width: min(88%, 15.5rem);
  margin: 0;
  padding: 0.85rem 1rem 0.8rem;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(196, 165, 116, 0.35);
  border-radius: 6px;
  box-shadow: 0 16px 36px rgba(14, 26, 43, 0.22);
}

.hero-portrait-note::before {
  content: "“";
  position: absolute;
  top: 0.35rem;
  left: 0.75rem;
  font-family: var(--font-serif);
  font-size: 2.4rem;
  line-height: 1;
  color: rgba(196, 165, 116, 0.45);
  pointer-events: none;
}

.hero-portrait-note p {
  position: relative;
  margin: 0 0 0.7rem;
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
}

.hero-portrait-note footer {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.hero-portrait-note footer::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--accent-soft);
}

@keyframes portrait-settle {
  from {
    opacity: 0;
    transform: scale(1.04) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1.01) translateY(0);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #866840;
  border-color: #866840;
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.8);
}

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

.btn-ghost-dark:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-secondary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-secondary:hover {
  background: var(--navy-deep);
  color: var(--white);
}

/* Sections */
.section {
  padding: 5.5rem 0;
}

.section-label {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.section h2 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.5vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 700;
}

.section-lead {
  margin: 0 0 2.5rem;
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

/* About */
.about {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 3rem;
  align-items: start;
}

.about-copy p {
  color: var(--ink-soft);
  margin: 0 0 1.1rem;
}

.about-points {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.about-points li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--ink);
  font-weight: 500;
}

.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.55rem;
  height: 1px;
  background: var(--accent);
}

.about-card {
  background:
    linear-gradient(160deg, rgba(22, 50, 90, 0.04), transparent 45%),
    var(--paper);
  border: 1px solid var(--line);
  padding: 1.75rem 1.5rem;
}

.about-card dl {
  margin: 0;
  display: grid;
  gap: 1.25rem;
}

.about-card dt {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.25rem;
}

.about-card dd {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service {
  padding: 1.75rem 1.4rem 1.6rem;
  border-top: 2px solid var(--navy);
  background: rgba(255, 255, 255, 0.72);
  border-right: 1px solid transparent;
  border-bottom: 1px solid transparent;
  border-left: 1px solid transparent;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.service:hover {
  background: var(--white);
  box-shadow: var(--shadow);
}

.service-num {
  display: block;
  margin-bottom: 1.1rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
}

.service h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.25;
  font-weight: 650;
}

.service p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* License */
.license {
  background: var(--navy-deep);
  color: var(--white);
}

.license .section-label {
  color: var(--accent-soft);
}

.license h2 {
  color: var(--white);
}

.license-copy > p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 34rem;
}

.license-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.license-meta {
  margin: 1.75rem 0 2rem;
  display: grid;
  gap: 1rem;
}

.license-meta div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.license-meta dt {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.license-meta dd {
  margin: 0;
  font-weight: 600;
}

.license-visual {
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
  background: #1a2433;
}

.license-visual img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 40%;
  display: block;
  filter: saturate(0.92) contrast(1.04);
}

/* Contacts */
.contacts {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-block {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.contact-block h3 {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 600;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contact-list a {
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
}

.contact-list a:hover {
  color: var(--navy);
}

.contact-list span {
  font-size: 0.8rem;
  color: var(--steel);
}

.contact-mail {
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  word-break: break-all;
}

.contact-mail:hover {
  color: var(--navy);
}

.contact-block address {
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.55;
}

.muted {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.9rem;
  color: var(--steel);
}

.contacts-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 2.75rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-inner {
  display: grid;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-brand strong {
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

.footer-brand span,
.footer-note,
.footer-copy {
  color: var(--steel);
  font-size: 0.92rem;
}

.footer-note {
  margin: 0;
  max-width: 40rem;
}

.footer-copy {
  margin: 0.5rem 0 0;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(8, 18, 32, 0.88);
  backdrop-filter: blur(6px);
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox img {
  max-height: min(92vh, 1100px);
  width: auto;
  max-width: min(92vw, 820px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--white);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal-up 0.9s var(--ease) forwards;
}

.hero-eyebrow.reveal { animation-delay: 0.08s; }
.hero-title.reveal { animation-delay: 0.18s; }
.hero-lead.reveal { animation-delay: 0.3s; }
.hero-actions.reveal { animation-delay: 0.42s; }
.hero-portrait.reveal { animation-delay: 0.16s; }

@keyframes reveal-up {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .hero-portrait img {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .about-grid,
  .license-grid,
  .services-grid,
  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .header-phone {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .mobile-nav {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: 0;
    padding: 2.25rem 0 2.75rem;
  }

  .hero-portrait {
    order: -1;
    justify-self: center;
    width: min(100%, 300px);
    padding: 0 0.5rem 3.25rem;
  }

  .hero-portrait-outline {
    inset: 0.85rem -0.55rem -0.85rem 0.85rem;
  }

  .hero-portrait-note {
    left: 0;
    right: auto;
    bottom: -2.55rem;
    width: min(90%, 14.5rem);
  }

  .hero-content {
    max-width: none;
    text-align: center;
  }

  .hero-lead {
    margin-inline: auto;
    font-size: 1rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .license-visual img {
    max-height: 420px;
  }
}

@media (max-width: 560px) {
  :root {
    --header-h: 3.85rem;
  }

  .container {
    width: min(1120px, calc(100% - 1.75rem));
  }

  .brand-text {
    display: none;
  }

  .section {
    padding: 4rem 0;
  }

  .hero-portrait {
    width: min(78vw, 240px);
    padding-bottom: 3.1rem;
  }

  .hero-portrait-frame {
    aspect-ratio: 4 / 5;
  }

  .hero-portrait-note {
    padding: 0.75rem 0.85rem 0.7rem;
  }

  .hero-portrait-note p {
    font-size: 0.82rem;
  }

  .hero-eyebrow {
    margin-bottom: 0.65rem;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .hero-title {
    margin-bottom: 0.85rem;
    gap: 0.35rem;
  }

  .hero-brand {
    font-size: clamp(1.7rem, 7.8vw, 2.15rem);
  }

  .hero-line {
    font-size: 0.92rem;
  }

  .hero-lead {
    margin-bottom: 1.35rem;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .btn {
    min-height: 2.75rem;
  }

  .hero-actions,
  .contacts-cta {
    width: 100%;
  }

  .hero-actions .btn,
  .contacts-cta .btn {
    width: 100%;
  }

  .license-meta div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
