/* ==========================================================================
   Крайчинська Наталія Сергіївна — публічний сайт
   Design tokens first, then layout and components.
   ========================================================================== */

:root {
  --ink: #17251f;
  --ink-soft: #44534b;
  --ink-muted: #5f6a61;
  --forest: #173f33;
  --forest-deep: #0d2a22;
  --forest-soft: #285847;
  --sage: #e6ece2;
  --sage-mid: #b9c9b6;
  --cream: #f8f4ec;
  --paper: #fffdf8;
  --sand: #eadfce;
  --terracotta: #c96f4d;
  --terracotta-dark: #a85638;
  --gold: #d8af71;
  --line: rgba(23, 37, 31, 0.12);
  --line-light: rgba(255, 253, 248, 0.18);
  --shadow-sm: 0 8px 24px rgba(23, 40, 32, 0.07);
  --shadow-md: 0 22px 60px rgba(18, 44, 34, 0.12);
  --shadow-lg: 0 36px 90px rgba(12, 32, 24, 0.2);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-xl: 40px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1240px;
  --header-height: 88px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

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

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

p,
h1,
h2,
h3,
h4,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--terracotta);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 99px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

/* ------------------------------- Loading states ------------------------------- */

.page-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 300;
  height: 3px;
  overflow: hidden;
  background: transparent;
  pointer-events: none;
}

.page-progress span {
  display: block;
  width: 42%;
  height: 100%;
  background: var(--terracotta);
  animation: progress-slide 1.2s ease-in-out infinite;
}

body.content-ready .page-progress,
body.content-failed .page-progress {
  opacity: 0;
  transition: opacity 300ms ease;
}

body.is-loading main {
  opacity: 0.32;
  transition: opacity 250ms ease;
}

body.content-ready main {
  opacity: 1;
}

@keyframes progress-slide {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(350%);
  }
}

.load-error {
  position: fixed;
  z-index: 250;
  top: 106px;
  left: 50%;
  width: min(calc(100% - 32px), 620px);
  transform: translateX(-50%);
  padding: 16px 18px;
  border: 1px solid rgba(201, 111, 77, 0.35);
  border-radius: 16px;
  background: #fff8f3;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--terracotta-dark);
  font-size: 0.9rem;
  font-weight: 600;
}

.load-error[hidden] {
  display: none;
}

.load-error button {
  flex: none;
  border: 0;
  border-radius: 99px;
  padding: 8px 16px;
  background: var(--terracotta);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

/* ---------------------------------- Header ---------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition:
    height 240ms ease,
    background 240ms ease,
    box-shadow 240ms ease,
    backdrop-filter 240ms ease;
}

.site-header.is-scrolled {
  height: 74px;
  background: rgba(248, 244, 236, 0.88);
  box-shadow: 0 1px 0 rgba(23, 37, 31, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.brand-copy span {
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 600;
  transition: color 180ms ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--ink);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.62);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 220ms ease;
}

.menu-toggle span:first-child {
  transform: translateY(-4px);
}

.menu-toggle span:last-child {
  transform: translateY(4px);
}

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

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

/* --------------------------------- Buttons ---------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 99px;
  padding: 13px 22px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 200ms ease,
    background 200ms ease,
    color 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.button svg {
  width: 17px;
  height: 17px;
  transition: transform 200ms ease;
}

.button:hover svg {
  transform: translateX(3px);
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--forest);
  color: var(--paper);
  box-shadow: 0 8px 24px rgba(23, 63, 51, 0.16);
}

.button-primary:hover {
  background: var(--forest-deep);
  box-shadow: 0 12px 30px rgba(23, 63, 51, 0.22);
}

.button-light {
  background: var(--paper);
  color: var(--forest);
}

.button-light:hover {
  background: #fff;
}

.button-outline {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.button-outline:hover {
  border-color: var(--ink);
}

.button-small {
  padding: 11px 18px;
  font-size: 0.76rem;
}

.button-large {
  padding: 17px 26px;
  font-size: 0.86rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 700;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition:
    color 180ms ease,
    border-color 180ms ease;
}

.text-link svg {
  width: 16px;
  height: 16px;
  transition: transform 200ms ease;
}

.text-link:hover {
  color: var(--ink);
  border-color: var(--line);
}

.text-link:hover svg {
  transform: translateY(2px);
}

/* --------------------------------- Typography -------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--forest-soft);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(201, 111, 77, 0.12);
}

.eyebrow-muted {
  color: var(--ink-muted);
}

.eyebrow-light {
  color: var(--sage-mid);
}

.section {
  position: relative;
  padding-block: clamp(84px, 10vw, 136px);
}

.section-title {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.3vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.04;
  text-wrap: balance;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: clamp(40px, 5vw, 62px);
}

.section-heading > div {
  max-width: 690px;
}

.section-intro {
  max-width: 430px;
  color: var(--ink-muted);
  font-size: 0.98rem;
  line-height: 1.75;
  text-wrap: pretty;
}

.section-heading-light .section-title {
  color: var(--paper);
}

.section-heading-light .section-intro {
  color: rgba(255, 253, 248, 0.66);
}

.section-heading-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
}

.section-heading-centered .section-intro {
  margin-top: 20px;
  max-width: 620px;
}

/* ----------------------------------- Hero ----------------------------------- */

.hero {
  position: relative;
  padding-top: calc(var(--header-height) + 54px);
  padding-bottom: 32px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 30%, rgba(214, 225, 207, 0.72), transparent 34%),
    linear-gradient(150deg, #faf6ee 0%, #f6f1e7 48%, #f1ede3 100%);
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-shape-one {
  width: 560px;
  height: 560px;
  right: -160px;
  bottom: -220px;
  border: 1px solid rgba(23, 63, 51, 0.1);
}

.hero-shape-two {
  width: 330px;
  height: 330px;
  left: -170px;
  top: 210px;
  background: rgba(230, 236, 226, 0.65);
  filter: blur(2px);
}

.hero-linework {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  pointer-events: none;
  background-image: radial-gradient(rgba(23, 63, 51, 0.24) 0.7px, transparent 0.7px);
  background-size: 24px 24px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 24%, transparent 68%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.8fr);
  align-items: center;
  gap: clamp(40px, 6vw, 92px);
  min-height: 650px;
}

.hero-copy {
  padding-block: 30px;
}

.hero-title {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6.5vw, 6.3rem);
  font-weight: 500;
  letter-spacing: -0.062em;
  line-height: 0.93;
}

.hero-title span,
.hero-title em {
  display: block;
}

.hero-title em {
  color: var(--terracotta);
  font-weight: 400;
}

.hero-description {
  max-width: 600px;
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.75;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 34px;
}

.hero-stats {
  display: flex;
  align-items: stretch;
  gap: clamp(22px, 3.5vw, 44px);
  margin-top: 50px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  max-width: 620px;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  min-width: 90px;
}

.hero-stats li + li {
  position: relative;
  padding-left: clamp(22px, 3.5vw, 44px);
}

.hero-stats li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: var(--line);
}

.hero-stats strong {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero-stats span {
  margin-top: 7px;
  color: var(--ink-muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.hero-visual {
  position: relative;
  justify-self: end;
  width: min(100%, 460px);
  padding: 18px 0 44px;
}

.hero-photo-wrap {
  position: relative;
  z-index: 2;
}

.hero-photo {
  position: relative;
  aspect-ratio: 0.77;
  overflow: hidden;
  border-radius: 230px 230px 32px 32px;
  background: var(--sage-mid);
  box-shadow: var(--shadow-lg);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 25%;
  filter: saturate(0.82) contrast(1.02);
  transition: transform 800ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero-photo-wrap:hover .hero-photo img {
  transform: scale(1.025);
}

.photo-tint {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 44, 34, 0.04) 40%, rgba(18, 44, 34, 0.28) 100%),
    linear-gradient(135deg, rgba(201, 111, 77, 0.08), transparent 50%);
  pointer-events: none;
}

.hero-proof-card {
  position: absolute;
  z-index: 3;
  left: -42px;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(310px, 86%);
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 18px 50px rgba(15, 38, 29, 0.17);
  backdrop-filter: blur(12px);
}

.proof-icon {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sage);
  color: var(--forest);
}

.proof-icon svg {
  width: 19px;
  height: 19px;
}

.hero-proof-card > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.hero-proof-card strong {
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero-proof-card small {
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: 0.68rem;
}

.hero-note {
  position: absolute;
  z-index: 3;
  right: -32px;
  top: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 220px;
  padding: 12px 15px;
  border-radius: 14px;
  background: var(--forest);
  color: var(--paper);
  box-shadow: var(--shadow-md);
  transform: rotate(2deg);
}

.hero-note svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--gold);
}

.hero-note span {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.hero-note strong {
  font-size: 0.67rem;
  font-weight: 800;
}

.hero-note small {
  margin-top: 2px;
  color: rgba(255, 253, 248, 0.66);
  font-size: 0.6rem;
}

.hero-ring {
  position: absolute;
  z-index: 0;
  inset: 45px -28px 0 38px;
  border: 1px solid rgba(23, 63, 51, 0.2);
  border-radius: 50% 50% 28px 28px;
  pointer-events: none;
}

.hero-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-foot-line {
  flex: 1;
  height: 1px;
  max-width: 72px;
  background: var(--line);
}

/* ---------------------------------- About ----------------------------------- */

.about {
  background: var(--paper);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(60px, 9vw, 130px);
}

.about-visual {
  position: relative;
  padding: 20px 26px 42px 0;
}

.about-photo {
  position: relative;
  z-index: 1;
  overflow: hidden;
  aspect-ratio: 1.08;
  border-radius: var(--radius-lg);
  background: var(--sage);
  box-shadow: var(--shadow-md);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.82);
  transition: transform 800ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.about-photo:hover img {
  transform: scale(1.03);
}

.about-frame {
  position: absolute;
  z-index: 0;
  inset: 0 0 0 30px;
  border: 1px solid rgba(23, 63, 51, 0.24);
  border-radius: var(--radius-lg);
}

.about-stamp {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  width: 134px;
  height: 134px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(23, 63, 51, 0.14);
  border-radius: 50%;
  background: var(--cream);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.about-stamp strong {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1;
}

.about-stamp span {
  max-width: 90px;
  margin-top: 6px;
  color: var(--ink-muted);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.3;
  text-transform: uppercase;
}

.about-copy .section-title {
  max-width: 560px;
}

.about-body {
  margin-top: 26px;
}

.about-body p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.85;
}

.about-body p + p {
  margin-top: 18px;
}

.about-body p:first-child {
  font-size: 1.06rem;
}

.check-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.check-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.55;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: inset 0 0 0 1px rgba(23, 63, 51, 0.1);
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 6.5px;
  width: 6px;
  height: 3px;
  border-left: 1.5px solid var(--forest);
  border-bottom: 1.5px solid var(--forest);
  transform: rotate(-45deg);
}

.signature {
  margin-top: 28px;
  color: var(--terracotta);
  font-family: var(--font-display);
  font-size: 2rem;
  font-style: italic;
  letter-spacing: -0.03em;
}

/* ---------------------------------- Contact --------------------------------- */

.contact-section {
  background:
    radial-gradient(circle at 0% 100%, rgba(201, 111, 77, 0.09), transparent 28%),
    linear-gradient(180deg, var(--cream), #f3ede2);
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}

.contact-info {
  position: relative;
  padding: clamp(34px, 5vw, 64px);
  overflow: hidden;
  background:
    radial-gradient(circle at 110% 8%, rgba(216, 175, 113, 0.16), transparent 30%),
    linear-gradient(150deg, var(--forest) 0%, var(--forest-deep) 100%);
  color: var(--paper);
}

.contact-info::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -180px;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(255, 253, 248, 0.09);
  border-radius: 50%;
  pointer-events: none;
}

.contact-info .section-title {
  max-width: 460px;
  color: var(--paper);
  font-size: clamp(2.1rem, 3.5vw, 3.3rem);
}

.contact-description {
  margin-top: 20px;
  color: rgba(255, 253, 248, 0.66);
  font-size: 0.93rem;
  line-height: 1.75;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 38px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-icon {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 253, 248, 0.14);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.05);
  color: var(--sage-mid);
}

.contact-icon svg {
  width: 18px;
  height: 18px;
}

.contact-list li > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.45;
}

.contact-list small {
  color: rgba(255, 253, 248, 0.44);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.contact-list a,
.contact-list li > span:last-child > span {
  color: var(--paper);
  font-size: 0.84rem;
  font-weight: 600;
  word-break: break-word;
  transition: color 180ms ease;
}

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

.response-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 253, 248, 0.14);
  border-radius: 99px;
  background: rgba(255, 253, 248, 0.06);
  color: rgba(255, 253, 248, 0.75);
  font-size: 0.68rem;
  font-weight: 600;
}

.response-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8fbc8f;
  box-shadow: 0 0 0 4px rgba(143, 188, 143, 0.1);
}

.contact-form-card {
  padding: clamp(34px, 5vw, 62px);
}

.form-card-heading {
  margin-bottom: 28px;
}

.form-kicker {
  color: var(--terracotta-dark);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.form-card-heading h3 {
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.5vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 17px;
}

.field label {
  margin-bottom: 7px;
  color: var(--ink-soft);
  font-size: 0.71rem;
  font-weight: 700;
}

.field label span {
  color: var(--ink-muted);
  font-weight: 500;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid rgba(23, 37, 31, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, 0.72);
  color: var(--ink);
  padding: 13px 14px;
  font-size: 0.85rem;
  line-height: 1.5;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.field textarea {
  min-height: 128px;
  resize: vertical;
}

.field select {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236d796f' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9ca49d;
}

.field input:hover,
.field textarea:hover,
.field select:hover {
  border-color: rgba(23, 37, 31, 0.28);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--forest-soft);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(23, 63, 51, 0.09);
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: var(--terracotta);
  background: #fff9f6;
}

.field-error {
  min-height: 16px;
  margin-top: 4px;
  color: var(--terracotta-dark);
  font-size: 0.66rem;
  font-weight: 600;
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.submit-button {
  position: relative;
  width: 100%;
  margin-top: 5px;
}

.button-spinner {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.submit-button.is-submitting span:not(.button-spinner),
.submit-button.is-submitting svg {
  display: none;
}

.submit-button.is-submitting .button-spinner {
  display: block;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.78;
  transform: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form-status {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.5;
}

.form-status.is-success,
.form-status.is-error {
  display: block;
}

.form-status.is-success {
  border: 1px solid rgba(23, 63, 51, 0.15);
  background: var(--sage);
  color: var(--forest);
}

.form-status.is-error {
  border: 1px solid rgba(201, 111, 77, 0.25);
  background: #fff4ee;
  color: var(--terracotta-dark);
}

.form-note {
  margin-top: 13px;
  color: var(--ink-muted);
  font-size: 0.65rem;
  line-height: 1.55;
}

/* ---------------------------------- Footer ---------------------------------- */

.site-footer {
  padding: 70px 0 26px;
  background: var(--forest-deep);
  color: var(--paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(140px, 0.65fr) minmax(200px, 0.8fr);
  gap: 60px;
  padding-bottom: 54px;
}

.brand-light .brand-mark {
  background: var(--paper);
  color: var(--forest);
}

.brand-light .brand-copy span {
  color: rgba(255, 253, 248, 0.6);
}

.footer-brand p {
  max-width: 400px;
  margin-top: 20px;
  color: rgba(255, 253, 248, 0.55);
  font-size: 0.86rem;
  line-height: 1.75;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}

.footer-label {
  margin-bottom: 6px;
  color: rgba(255, 253, 248, 0.55);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-column a,
.footer-column > span:not(.footer-label) {
  color: rgba(255, 253, 248, 0.7);
  font-size: 0.79rem;
  line-height: 1.5;
  transition: color 180ms ease;
}

.footer-column a:hover {
  color: var(--paper);
}

.footer-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 253, 248, 0.1);
  color: rgba(255, 253, 248, 0.55) !important;
  font-size: 0.69rem !important;
}

.footer-admin-link svg {
  width: 13px;
  height: 13px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 253, 248, 0.09);
  color: rgba(255, 253, 248, 0.55);
  font-size: 0.66rem;
}

/* ------------------------------- Empty states ------------------------------- */

.empty-state {
  grid-column: 1 / -1;
  padding: 44px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  color: var(--ink-muted);
  font-size: 0.86rem;
  text-align: center;
}

/* ---------------------------------- Reveal ---------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 620ms cubic-bezier(0.2, 0.7, 0.2, 1),
      transform 620ms cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .js [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------- Responsive -------------------------------- */

@media (max-width: 1080px) {
  .main-nav {
    gap: 22px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
    gap: 44px;
  }

  .hero-proof-card {
    left: -18px;
  }

  .hero-note {
    right: -10px;
  }

  .check-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  :root {
    --header-height: 76px;
  }

  .main-nav {
    position: fixed;
    top: 84px;
    left: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 253, 248, 0.98);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 200ms ease,
      transform 200ms ease,
      visibility 200ms ease;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav a {
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
  }

  .main-nav a:hover,
  .main-nav a.is-active {
    background: var(--cream);
  }

  .main-nav a::after {
    display: none;
  }

  .menu-toggle {
    position: relative;
    display: grid;
  }

  .hero {
    padding-top: calc(var(--header-height) + 36px);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 32px;
  }

  .hero-copy {
    padding-block: 20px 0;
  }

  .hero-title {
    font-size: clamp(3.1rem, 11vw, 5.4rem);
  }

  .hero-description {
    max-width: 640px;
  }

  .hero-visual {
    justify-self: center;
    width: min(88%, 450px);
    margin-top: 16px;
  }

  .hero-note {
    right: -6px;
  }

  .hero-foot {
    margin-top: 50px;
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  .hero-foot-line {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .about-visual {
    width: min(100%, 580px);
  }

  .about-copy {
    max-width: 660px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .section-heading-centered {
    align-items: center;
  }

  .contact-shell {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr;
    gap: 44px 30px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .brand-copy strong {
    font-size: 0.95rem;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding-bottom: 10px;
  }

  .hero-title {
    font-size: clamp(2.9rem, 13.6vw, 4.4rem);
  }

  .hero-description {
    margin-top: 22px;
    font-size: 0.98rem;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-stats {
    gap: 16px;
    margin-top: 36px;
  }

  .hero-stats li {
    min-width: 0;
    flex: 1;
  }

  .hero-stats li + li {
    padding-left: 16px;
  }

  .hero-stats strong {
    font-size: 1.5rem;
  }

  .hero-stats span {
    font-size: 0.6rem;
  }

  .hero-proof-card {
    left: 12px;
    bottom: 24px;
    width: calc(100% - 24px);
    max-width: 310px;
  }

  .hero-note {
    display: none;
  }

  .hero-ring {
    inset: 28px -8px 0 20px;
  }

  .hero-foot {
    font-size: 0.58rem;
    line-height: 1.6;
  }

  .section {
    padding-block: 74px;
  }

  .section-title {
    font-size: clamp(2rem, 9.5vw, 3rem);
  }

  .about-visual {
    padding: 12px 18px 32px 0;
  }

  .about-stamp {
    width: 108px;
    height: 108px;
  }

  .about-stamp strong {
    font-size: 1.9rem;
  }

  .about-stamp span {
    font-size: 0.56rem;
  }

  .check-list {
    gap: 12px;
  }

  .contact-info,
  .contact-form-card {
    padding: 30px 22px;
  }

  .contact-shell {
    border-radius: 26px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 400px) {
  .hero-stats {
    flex-wrap: wrap;
  }

  .hero-stats li {
    flex: 1 1 40%;
  }

  .hero-stats li:nth-child(3) {
    padding-left: 0;
  }

  .hero-stats li:nth-child(3)::before {
    display: none;
  }
}

/* ==========================================================================
   Bilingual teacher site — navigation, pages and collections (v2)
   Appended after the original theme so these rules win where they overlap.
   ========================================================================== */

:root {
  --header-height: 0px;
}

html {
  scroll-padding-top: 170px;
}

/* ---------------------------------- Header ---------------------------------- */

.site-header {
  position: sticky;
  inset: auto;
  top: 0;
  height: auto;
  display: block;
  background: rgba(248, 244, 236, 0.92);
  border-bottom: 1px solid rgba(23, 37, 31, 0.07);
  backdrop-filter: blur(18px);
  transition:
    background 200ms ease,
    box-shadow 200ms ease;
}

.site-header.is-scrolled {
  height: auto;
  background: rgba(248, 244, 236, 0.98);
  box-shadow: 0 10px 30px rgba(18, 44, 34, 0.08);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.header-phone:hover {
  border-color: rgba(23, 63, 51, 0.28);
  background: rgba(230, 236, 226, 0.6);
  color: var(--forest);
}

.header-phone svg {
  width: 14px;
  height: 14px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 253, 248, 0.72);
}

.lang-button {
  min-width: 34px;
  padding: 5px 8px;
  border: 0;
  border-radius: 99px;
  background: transparent;
  color: var(--ink-muted);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.lang-button:hover {
  color: var(--forest);
}

.lang-button.is-active {
  background: var(--forest);
  color: var(--paper);
}

.menu-toggle {
  position: relative;
  display: none;
}

.header-tabs {
  border-top: 1px solid rgba(23, 37, 31, 0.07);
}

.tab-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  padding-block: 8px 9px;
}

.tab-link {
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 99px;
  color: var(--ink-soft);
  font-size: 0.735rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.tab-link:hover {
  border-color: rgba(23, 63, 51, 0.12);
  background: rgba(230, 236, 226, 0.7);
  color: var(--forest);
}

.tab-link.is-active {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--paper);
  box-shadow: 0 6px 16px rgba(23, 63, 51, 0.16);
}

/* ----------------------------------- Hero ----------------------------------- */

.home-hero {
  padding-top: 56px;
}

.home-hero .hero-proof-card strong {
  font-size: 0.82rem;
}

.home-intro-section {
  background: linear-gradient(180deg, var(--cream) 0%, #f6f1e7 100%);
}

.home-intro-text {
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.8;
}

.home-intro-section .hero-actions {
  margin-top: 26px;
}

/* ------------------------------- Home directions ----------------------------- */

.directions-section {
  background: linear-gradient(180deg, #f6f1e7 0%, var(--cream) 100%);
}

.direction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.direction-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 22px 20px;
  border: 1px solid rgba(23, 37, 31, 0.09);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: 0 2px 0 rgba(23, 37, 31, 0.01);
  transition:
    transform 240ms cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 240ms ease,
    border-color 240ms ease;
}

.direction-card:hover {
  transform: translateY(-4px);
  border-color: rgba(23, 63, 51, 0.2);
  box-shadow: var(--shadow-sm);
}

.direction-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--sage);
  color: var(--forest);
}

.direction-icon svg {
  width: 21px;
  height: 21px;
}

.direction-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.direction-copy strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.direction-copy small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 0.78rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.direction-arrow {
  flex: none;
  margin-top: 12px;
  color: var(--terracotta-dark);
  transition: transform 200ms ease;
}

.direction-arrow svg {
  width: 18px;
  height: 18px;
}

.direction-card:hover .direction-arrow {
  transform: translateX(3px);
}

/* ----------------------------------- News ----------------------------------- */

.latest-news-section {
  background: #f5f0e6;
}

.news-page-section {
  background: linear-gradient(180deg, var(--cream) 0%, #f5f0e6 100%);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.news-card {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(23, 37, 31, 0.09);
  border-radius: var(--radius-lg);
  background: var(--paper);
  transition:
    transform 260ms cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 260ms ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.news-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 1.6;
  background: linear-gradient(135deg, var(--sage) 0%, var(--sand) 100%);
}

.news-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.74) contrast(1.02);
  transition: transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.news-card:hover .news-media img {
  transform: scale(1.035);
}

.news-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 24px 26px;
}

.news-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--ink-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.news-pin {
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(201, 111, 77, 0.12);
  color: var(--terracotta-dark);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-body h3 {
  margin-top: 11px;
  font-family: var(--font-display);
  font-size: 1.36rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.news-body h3 a:hover {
  color: var(--terracotta-dark);
}

.news-body p {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 10px;
  color: var(--ink-muted);
  font-size: 0.83rem;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-link svg {
  width: 15px;
  height: 15px;
  transition: transform 200ms ease;
}

.news-link:hover svg {
  transform: translateX(3px);
}

/* ---------------------------------- Quote ----------------------------------- */

.quote-section {
  overflow: hidden;
  background: var(--forest-deep);
  color: var(--paper);
}

.quote-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: radial-gradient(rgba(255, 253, 248, 0.18) 0.7px, transparent 0.7px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 70% 40%, #000, transparent 68%);
}

.quote-inner {
  position: relative;
  max-width: 900px;
  text-align: center;
}

.quote-mark {
  display: block;
  color: var(--terracotta);
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 0.6;
  opacity: 0.9;
}

.quote-inner blockquote {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.quote-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 26px;
}

.quote-author strong {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote-author span {
  color: rgba(255, 253, 248, 0.55);
  font-size: 0.72rem;
}

/* ------------------------------- Contact CTA -------------------------------- */

.contact-cta-section {
  background: linear-gradient(135deg, #b95f3e 0%, var(--terracotta) 55%, #d88a62 100%);
  color: var(--paper);
}

.contact-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 46px;
}

.contact-cta > div:first-child {
  max-width: 660px;
}

.contact-cta .section-title {
  color: var(--paper);
  font-size: clamp(2rem, 3.8vw, 3.4rem);
}

.contact-cta p {
  margin-top: 14px;
  color: rgba(255, 253, 248, 0.76);
  font-size: 0.94rem;
  line-height: 1.7;
}

.contact-cta-actions {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.contact-cta-phone {
  color: rgba(255, 253, 248, 0.82);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------- Page hero -------------------------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 62px;
  background:
    radial-gradient(circle at 82% 18%, rgba(214, 225, 207, 0.7), transparent 30%),
    linear-gradient(150deg, #faf6ee 0%, #f4efe5 100%);
}

.page-hero-shape {
  position: absolute;
  top: -150px;
  right: -120px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(23, 63, 51, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  align-items: center;
  gap: clamp(36px, 6vw, 80px);
}

.page-hero-grid.is-text-only {
  display: block;
  max-width: 850px;
}

.page-hero-copy {
  max-width: 780px;
}

.page-title {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

.page-description {
  max-width: 680px;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.75;
  text-wrap: pretty;
}

.page-hero-photo {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transform: rotate(1.6deg);
}

.page-hero-photo img {
  width: 100%;
  aspect-ratio: 1.18;
  object-fit: cover;
  filter: saturate(0.78);
}

/* ---------------------------------- About ----------------------------------- */

.about-page-section {
  background: linear-gradient(180deg, var(--cream) 0%, #f5f0e6 100%);
}

.about-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: start;
  gap: clamp(36px, 6vw, 76px);
}

.about-page-copy p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.85;
  text-wrap: pretty;
}

.about-page-copy p + p {
  margin-top: 20px;
}

.fact-panel {
  padding: 28px 28px 24px;
  border: 1px solid rgba(23, 37, 31, 0.09);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.fact-panel .panel-kicker {
  color: var(--terracotta-dark);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.fact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
}

.fact-list > div + div {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.fact-list dt {
  color: var(--ink-muted);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.fact-list dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.55;
}

.about-quote {
  max-width: 900px;
  margin-top: clamp(48px, 7vw, 90px);
  padding-top: 34px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.about-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.7vw, 2.2rem);
  line-height: 1.3;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.about-quote span {
  display: block;
  margin-top: 14px;
  color: var(--ink-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --------------------------------- Contacts --------------------------------- */

.contact-page-section .contact-description {
  margin-bottom: 24px;
}

.contact-section {
  background: var(--forest-deep);
}

.contact-section .contact-shell {
  background: transparent;
}

/* ---------------------------------- Article --------------------------------- */

.article-page {
  background: linear-gradient(180deg, var(--cream) 0%, #f5f0e6 100%);
}

.article-header {
  padding: 66px 0 36px;
  background:
    radial-gradient(circle at 78% 20%, rgba(214, 225, 207, 0.65), transparent 32%),
    linear-gradient(150deg, #faf6ee 0%, #f4efe5 100%);
}

.article-header-inner {
  max-width: 860px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 26px;
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.back-link svg {
  width: 16px;
  height: 16px;
}

.back-link:hover {
  color: var(--forest);
}

.article-header h1 {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.article-excerpt {
  max-width: 720px;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.75;
}

.article-body {
  max-width: 900px;
  padding-block: 46px 96px;
}

.article-image {
  overflow: hidden;
  margin-bottom: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.article-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.article-copy {
  max-width: 760px;
}

.article-copy p {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.85;
}

.article-copy p + p {
  margin-top: 18px;
}

/* ---------------------------------- Gallery --------------------------------- */

.gallery-section {
  background: linear-gradient(180deg, var(--cream) 0%, #f5f0e6 100%);
}

.album-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.album-button {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.album-button:hover {
  border-color: rgba(23, 63, 51, 0.25);
}

.album-button.is-active {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--paper);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gallery-item {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  padding: 0;
  border: 1px solid rgba(23, 37, 31, 0.09);
  border-radius: var(--radius-md);
  background: var(--paper);
  text-align: left;
  cursor: pointer;
  transition:
    transform 240ms cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 240ms ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.gallery-item[hidden] {
  display: none;
}

.gallery-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1.28;
  background: var(--sage);
}

.gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.75);
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gallery-item:hover .gallery-media img {
  transform: scale(1.04);
}

.gallery-zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(13, 42, 34, 0.66);
  color: var(--paper);
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 200ms ease,
    transform 200ms ease;
  backdrop-filter: blur(6px);
}

.gallery-zoom svg {
  width: 16px;
  height: 16px;
}

.gallery-item:hover .gallery-zoom {
  opacity: 1;
  transform: none;
}

.gallery-caption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 15px 17px 17px;
}

.gallery-caption strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.3;
}

.gallery-caption small {
  color: var(--ink-muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* --------------------------------- Resources -------------------------------- */

.resources-section {
  background: linear-gradient(180deg, var(--cream) 0%, #f5f0e6 100%);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.resource-card {
  display: flex;
  flex-direction: column;
  padding: 26px 26px 22px;
  border: 1px solid rgba(23, 37, 31, 0.09);
  border-radius: var(--radius-md);
  background: var(--paper);
  transition:
    transform 240ms cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 240ms ease;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.resource-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.resource-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--sage);
  color: var(--forest);
}

.resource-icon svg {
  width: 20px;
  height: 20px;
}

.resource-category {
  color: var(--terracotta-dark);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.resource-card h3 {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.resource-card p {
  margin-top: 9px;
  color: var(--ink-muted);
  font-size: 0.83rem;
  line-height: 1.65;
}

.resource-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
}

.resource-meta {
  color: var(--ink-muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.resource-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--forest);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.resource-link svg {
  width: 14px;
  height: 14px;
  transition: transform 180ms ease;
}

.resource-link:hover svg {
  transform: translateX(3px);
}

.resource-soon {
  padding: 4px 9px;
  border-radius: 99px;
  background: rgba(23, 63, 51, 0.07);
  color: var(--ink-muted);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* -------------------------------- Lightbox ---------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 34px;
  background: rgba(9, 25, 19, 0.9);
  backdrop-filter: blur(8px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-figure {
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  text-align: center;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 78vh;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.lightbox-figure figcaption {
  margin-top: 14px;
  color: rgba(255, 253, 248, 0.8);
  font-size: 0.82rem;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--paper);
  cursor: pointer;
}

.lightbox-close svg {
  width: 20px;
  height: 20px;
}

/* -------------------------------- Utilities --------------------------------- */

.loading-state {
  padding: 140px 24px;
  color: var(--ink-muted);
  font-size: 0.9rem;
  text-align: center;
}

.not-found-page {
  min-height: 62vh;
}

.not-found-note {
  margin-top: 26px;
  color: var(--ink-muted);
  font-size: 0.75rem;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

/* -------------------------------- Responsive -------------------------------- */

@media (max-width: 1180px) {
  .header-phone {
    display: none;
  }

  .tab-link {
    white-space: normal;
  }
}

@media (max-width: 1100px) {
  .menu-toggle {
    display: grid;
  }

  .header-tabs {
    border-top: 0;
  }

  .tab-nav {
    position: fixed;
    z-index: 120;
    top: 78px;
    right: 16px;
    left: 16px;
    display: flex;
    overflow: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    max-height: calc(100vh - 98px);
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 253, 248, 0.99);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 200ms ease,
      transform 200ms ease,
      visibility 200ms ease;
  }

  .tab-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .tab-link {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.84rem;
  }

  .tab-link.is-active {
    box-shadow: none;
  }

  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .direction-grid {
    grid-template-columns: 1fr;
  }

  .page-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .page-hero-photo {
    max-width: 520px;
    transform: none;
  }

  .about-page-grid {
    grid-template-columns: 1fr;
  }

  .contact-cta {
    align-items: flex-start;
    flex-direction: column;
    gap: 26px;
  }

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

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .home-hero {
    padding-top: 40px;
  }

  .header-top {
    padding-block: 10px;
  }

  .header-actions {
    gap: 8px;
  }

  .brand-copy strong {
    font-size: 0.92rem;
  }

  .brand-copy span {
    font-size: 0.56rem;
  }

  .lang-button {
    min-width: 30px;
    padding: 5px 6px;
  }

  .tab-nav {
    top: 68px;
  }

  .page-hero {
    padding: 48px 0 46px;
  }

  .page-title {
    font-size: clamp(2.2rem, 10.5vw, 3.2rem);
  }

  .page-description {
    font-size: 0.94rem;
  }

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

  .news-body {
    padding: 21px 21px 23px;
  }

  .direction-card {
    padding: 19px;
  }

  .quote-mark {
    font-size: 4rem;
  }

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

  .album-filter {
    gap: 6px;
  }

  .album-button {
    padding: 6px 11px;
    font-size: 0.66rem;
  }

  .resource-card {
    padding: 22px 20px 20px;
  }

  .footer-nav {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }

  .lightbox {
    padding: 18px;
  }

  .lightbox-close {
    top: 14px;
    right: 14px;
  }
}

@media (max-width: 420px) {
  .footer-nav {
    grid-template-columns: 1fr;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .header-actions {
    gap: 6px;
  }
}
