/* ===== Fonts (self-hosted, ParaType — Cyrillic + Latin subsets) ===== */
@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/pt-serif-400-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/pt-serif-400-latin.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/pt-serif-700-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/pt-serif-700-latin.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/pt-sans-400-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/pt-sans-400-latin.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/pt-sans-700-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/pt-sans-700-latin.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "PT Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/pt-mono-400-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "PT Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/pt-mono-400-latin.woff2") format("woff2");
  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;
}

/* ===== Tokens ===== */
:root {
  --paper: #eff1ea;
  --ledger: #d7e0cc;
  --ink: #14213d;
  --ink-soft: #52607a;
  --red: #9b2f27;
  --rule: rgba(20, 33, 61, 0.16);
  --rule-strong: rgba(20, 33, 61, 0.3);

  --font-serif: "PT Serif", Georgia, "Times New Roman", serif;
  --font-sans: "PT Sans", "Segoe UI", Arial, sans-serif;
  --font-mono: "PT Mono", "SFMono-Regular", Consolas, monospace;

  --measure: 68rem;
  --ease-settle: cubic-bezier(0.2, 1.4, 0.4, 1);
}

/* ===== Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

::selection {
  background-color: rgba(155, 47, 39, 0.18);
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.container {
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.nav__row {
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: 1.5rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__mark {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-family: var(--font-serif);
}

.nav__mark-text {
  font-size: 1.25rem;
  font-weight: 700;
}

.nav__mark-sub {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  font-style: italic;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  font-size: 0.9375rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.15s;
}
.nav__links a:hover {
  border-color: var(--red);
}

.nav__cta {
  color: var(--red);
}

.nav__phone {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
}

@media (min-width: 800px) {
  .nav__links {
    display: flex;
  }
  .nav__phone {
    display: none;
  }
}

/* ===== Hero ===== */
.hero {
  padding-block: clamp(3rem, 6vw, 5rem) 0;
}

.hero__inner {
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.5rem, 4vw + 1.2rem, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 14ch;
}

.hero__lead {
  margin-top: 1.5rem;
  max-width: 46ch;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.hero__actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.btn {
  display: inline-block;
  background-color: var(--ink);
  color: var(--paper);
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  transition: background-color 0.15s;
}
.btn:hover {
  background-color: var(--red);
}

.hero__phone {
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 2px;
  transition: border-color 0.15s, color 0.15s;
}
.hero__phone:hover {
  color: var(--red);
  border-color: var(--red);
}

.hero__stamp-wrap {
  display: flex;
  justify-content: center;
}

.stamp {
  width: clamp(9rem, 16vw + 4rem, 13rem);
  height: auto;
  color: var(--red);
  opacity: 0.88;
  transform: rotate(-14deg) scale(1.6);
  animation: stamp-down 0.6s 0.15s var(--ease-settle) both;
}

@keyframes stamp-down {
  from {
    opacity: 0;
    transform: rotate(-30deg) scale(2.2);
  }
  to {
    opacity: 0.88;
    transform: rotate(-8deg) scale(1);
  }
}

.stamp text {
  font-family: var(--font-mono);
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr auto;
  }
  .hero__stamp-wrap {
    justify-content: flex-end;
  }
}

/* Ledger stat rows */
.ledger {
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--rule-strong);
}

.ledger__row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--rule);
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.ledger__label {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.ledger__leader {
  flex: 1;
  border-bottom: 1px dotted var(--rule-strong);
  margin-bottom: 5px;
}

.ledger__value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
}

/* ===== Section shell ===== */
.section {
  padding-block: clamp(4rem, 8vw, 6.5rem);
  padding-inline: 1.5rem;
}

.section__inner {
  max-width: var(--measure);
  margin-inline: auto;
}

.section__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 2vw + 1.1rem, 2.5rem);
  line-height: 1.15;
  max-width: 20ch;
}

/* ===== Services rows ===== */
.rows {
  margin-top: 3rem;
  border-top: 1px solid var(--rule-strong);
}

.rows__row {
  display: grid;
  gap: 0.5rem 3rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--rule);
}

.rows__name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.375rem;
}

.rows__text {
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 56ch;
}

@media (min-width: 700px) {
  .rows__row {
    grid-template-columns: 12rem 1fr;
    align-items: baseline;
  }
}

/* ===== Balance (debit / credit) ===== */
.section--ledger {
  background-color: var(--ink);
  color: var(--paper);
}

.section--ledger .section__title {
  max-width: 22ch;
}

.balance {
  margin-top: 3rem;
  display: grid;
  gap: 2.5rem;
  border-top: 1px solid rgba(239, 241, 234, 0.2);
}

.balance__col {
  padding-top: 2rem;
}

.balance__col-label {
  display: block;
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: rgba(239, 241, 234, 0.6);
}

.balance__list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.balance__list li {
  line-height: 1.6;
  padding-left: 1.1rem;
  position: relative;
}

.balance__col--debit li::before {
  content: "−";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

.balance__col--credit li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: #9fd3a8;
  font-weight: 700;
}

.balance__total {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(239, 241, 234, 0.2);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
}

@media (min-width: 700px) {
  .balance {
    grid-template-columns: 1fr 1fr;
  }
  .balance__col--debit {
    padding-right: 2rem;
    border-right: 1px solid rgba(239, 241, 234, 0.2);
  }
  .balance__col--credit {
    padding-left: 2rem;
  }
}

/* ===== Values (definition rows) ===== */
.values {
  display: grid;
  gap: 3rem;
}

.values__intro p {
  margin-top: 1.25rem;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 42ch;
}

.values__list {
  border-top: 1px solid var(--rule-strong);
}

.values__row {
  display: grid;
  gap: 0.4rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.values__row dt {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.0625rem;
}

.values__row dd {
  color: var(--ink-soft);
  line-height: 1.6;
}

@media (min-width: 700px) {
  .values__row {
    grid-template-columns: 11rem 1fr;
    align-items: baseline;
  }
}

@media (min-width: 1000px) {
  .values {
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
  }
}

/* ===== Footer ===== */
.footer {
  background-color: var(--ink);
  color: var(--paper);
  padding-block: clamp(3.5rem, 6vw, 5.5rem) 2.5rem;
  padding-inline: 1.5rem;
}

.footer__inner {
  max-width: var(--measure);
  margin-inline: auto;
}

.footer__cta-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  max-width: 20ch;
}

.footer__phone {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 2vw + 1rem, 2rem);
  border-bottom: 1px solid rgba(239, 241, 234, 0.35);
  transition: color 0.15s, border-color 0.15s;
}
.footer__phone:hover {
  color: var(--red);
  border-color: var(--red);
}

.letterhead {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(239, 241, 234, 0.2);
  display: grid;
  gap: 0.6rem;
  max-width: 30rem;
}

.letterhead__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9375rem;
}

.letterhead__row span:first-child {
  color: rgba(239, 241, 234, 0.55);
}

.letterhead__row span:last-child {
  font-family: var(--font-mono);
  text-align: right;
}

.footer__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(239, 241, 234, 0.2);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.8125rem;
  color: rgba(239, 241, 234, 0.5);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.footer__links a {
  transition: color 0.15s;
}
.footer__links a:hover {
  color: var(--red);
}

@media (min-width: 600px) {
  .footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  padding: 1rem;
}
.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__inner {
  max-width: 46rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background-color: var(--paper);
  border: 1px solid var(--rule-strong);
  padding: 1.5rem;
}

.cookie-banner__desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.cookie-banner__desc a {
  color: var(--ink);
  border-bottom: 1px solid var(--rule-strong);
}
.cookie-banner__desc a:hover {
  color: var(--red);
  border-color: var(--red);
}

.cookie-banner__button {
  flex-shrink: 0;
  background-color: var(--ink);
  color: var(--paper);
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  font-weight: 700;
  transition: background-color 0.15s;
}
.cookie-banner__button:hover {
  background-color: var(--red);
}

@media (min-width: 600px) {
  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }
}

/* ===== Legal pages ===== */
.legal-main {
  padding: clamp(3rem, 5vw, 4.5rem) 1.5rem clamp(4rem, 8vw, 6rem);
}

.legal-container {
  max-width: 46rem;
  margin-inline: auto;
}

.legal-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  line-height: 1.15;
}

.legal-updated {
  margin-top: 1rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule-strong);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.legal-sections > * + * {
  border-top: 1px solid var(--rule);
}

.legal-section {
  display: grid;
  gap: 1rem;
  padding-block: 2.25rem;
}

.legal-section__number {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--red);
}

.legal-section__title {
  margin-bottom: 1rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.375rem;
}

.legal-section__body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.legal-section__body ul {
  list-style: disc;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal-section__body a {
  color: var(--red);
  border-bottom: 1px solid currentColor;
}

@media (min-width: 640px) {
  .legal-section {
    grid-template-columns: 3rem 1fr;
  }
}
