@font-face {
  font-family: "Onest Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("./assets/onest-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
  font-family: "Onest Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("./assets/onest-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --page: #0b1e45;
  --panel: #112a5e;
  --panel-hover: #15336f;
  --border: #27529e;
  --text: #f3f6fc;
  --muted: #9db2d6;
  --accent: #ff7a1f;
  --accent-soft: #ff9a4d;
  --gold: #c9a961;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Onest Variable", "Onest", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  font: inherit;
}

.pageShell {
  min-height: 100vh;
  padding: 34px 18px 60px;
  overflow: hidden;
}

.wrap {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.portraitRing {
  width: 118px;
  height: 118px;
  padding: 3px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 154, 77, 0.22),
    0 14px 38px rgba(2, 9, 25, 0.42);
}

.portrait {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 2px solid var(--page);
  border-radius: 50%;
}

.monogram {
  margin-top: 8px;
  margin-bottom: -2px;
  color: rgba(243, 246, 252, 0.96);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  font-style: italic;
  line-height: 1;
  letter-spacing: -5px;
  transform: translateX(-2px);
}

h1 {
  max-width: 460px;
  margin: 0;
  color: var(--text);
  font-size: 27px;
  font-weight: 620;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.profession {
  margin: 13px 0 0;
  color: var(--accent-soft);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.intro {
  max-width: 455px;
  margin: 21px auto 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
}

.intro strong {
  color: var(--text);
  font-weight: 620;
}

.sectionLabel {
  display: grid;
  grid-template-columns: minmax(38px, 1fr) auto minmax(38px, 1fr);
  align-items: center;
  gap: 15px;
  margin: 42px 0 16px;
}

.sectionLabel span {
  height: 1px;
  background: var(--border);
}

.sectionLabel b {
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  white-space: nowrap;
}

.group,
.singleContact,
.serviceCard {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.group,
.singleContact {
  margin-bottom: 10px;
  overflow: hidden;
}

.group,
.singleContact,
.serviceCard,
.serviceButton {
  transition: border-color 180ms ease, background-color 180ms ease,
    transform 180ms ease, box-shadow 180ms ease;
}

.group:hover,
.singleContact:hover,
.serviceCard:hover {
  border-color: #3666bb;
}

.groupHead,
.singleContact {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) 19px;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 73px;
  padding: 15px 16px;
  border: 0;
  color: var(--text);
  text-align: left;
  text-decoration: none;
}

.groupHead {
  background: transparent;
  cursor: pointer;
}

.groupHead:hover,
.singleContact:hover {
  background: var(--panel-hover);
}

.groupHead:focus-visible,
.singleContact:focus-visible,
.contactRow:focus-visible,
.serviceButton:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}

.serviceIcon,
.quickIcon {
  display: block;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
}

.serviceIcon {
  object-fit: cover;
  border-radius: 8px;
}

.quickIcon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(201, 169, 97, 0.7);
  border-radius: 6px;
}

.quickIcon i {
  display: block;
  height: 1px;
  background: var(--gold);
}

.quickIcon i:nth-child(2) {
  width: 75%;
}

.headText,
.rowText {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.headText strong,
.rowText strong {
  color: var(--text);
  font-size: 15.5px;
  font-weight: 620;
  line-height: 1.35;
}

.headText small,
.rowText small {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.chevron {
  width: 18px;
  height: 18px;
  stroke: var(--muted);
  stroke-width: 1.7;
  fill: none;
  transition: transform 180ms ease;
}

.chevronOpen {
  transform: rotate(180deg);
}

.arrow {
  align-self: center;
  color: var(--accent);
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
}

.accordionBody {
  border-top: 1px solid var(--border);
}

.accordionBody[hidden] {
  display: none;
}

.contactRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  min-height: 69px;
  padding: 14px 16px 14px 55px;
  color: var(--text);
  text-decoration: none;
}

.contactRow + .contactRow {
  border-top: 1px solid var(--border);
}

.contactRow:hover {
  background: var(--panel-hover);
}

.rowBadge {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 4px;
  padding: 2px 7px;
  border: 1px solid rgba(157, 178, 214, 0.48);
  border-radius: 5px;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.singleContact > .arrow {
  justify-self: end;
}

.serviceCard {
  margin-bottom: 10px;
  padding: 18px 17px;
}

.serviceCard h2 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 620;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.serviceCard p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.serviceButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 15px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 122, 31, 0.72);
  border-radius: 8px;
  color: var(--accent-soft);
  font-size: 13px;
  font-weight: 580;
  text-decoration: none;
}

.serviceButton:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #101a31;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(255, 122, 31, 0.2);
}

.closing {
  margin: 34px 0 0;
  color: var(--accent-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-style: italic;
  line-height: 1.45;
  text-align: center;
}

footer {
  margin-top: 34px;
  color: rgba(157, 178, 214, 0.72);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 560px) {
  .pageShell {
    padding: 26px 14px 42px;
  }

  .portraitRing {
    width: 110px;
    height: 110px;
  }

  h1 {
    max-width: 340px;
    font-size: 25px;
  }

  .profession {
    max-width: 350px;
    font-size: 10px;
    letter-spacing: 0.17em;
  }

  .intro {
    max-width: 390px;
    font-size: 15px;
  }

  .sectionLabel {
    margin-top: 36px;
  }
}

@media (max-width: 390px) {
  .headText small,
  .rowText small {
    font-size: 11.5px;
  }

  .contactRow {
    padding-left: 50px;
  }

  .serviceCard h2 {
    font-size: 16px;
  }

  .serviceButton {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
