/* =========================================================
   СепулькаОпт — статический сайт
   Палитра: тёмный хвойный, бумага, латунь, тиль.
   ========================================================= */

:root {
  --ink: #12201e;
  --paper: #f7f2e8;
  --paper-deep: #efe7d8;
  --card: #fffdf8;
  --gold: #c69a4b;
  --gold-light: #e6ce97;
  --teal: #24655f;
  --teal-deep: #17443f;
  --muted: #6f6d64;
  --muted-light: rgba(247, 242, 232, 0.68);
  --line: rgba(18, 32, 30, 0.14);
  --line-strong: rgba(18, 32, 30, 0.28);
  --line-light: rgba(247, 242, 232, 0.16);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --radius: 20px;
  --shadow: 0 24px 60px rgba(18, 32, 30, 0.12);
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 44px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  z-index: 0;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 88% -8%, rgba(198, 154, 75, 0.16), transparent 62%),
    radial-gradient(900px 560px at -12% 18%, rgba(36, 101, 95, 0.1), transparent 60%),
    linear-gradient(45deg, transparent 49.6%, rgba(18, 32, 30, 0.028) 49.6%, rgba(18, 32, 30, 0.028) 50.4%, transparent 50.4%),
    linear-gradient(-45deg, transparent 49.6%, rgba(18, 32, 30, 0.028) 49.6%, rgba(18, 32, 30, 0.028) 50.4%, transparent 50.4%);
  background-size: auto, auto, 46px 46px, 46px 46px;
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--gold-light);
  color: var(--ink);
}

.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 242, 232, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
}

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

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

.brand-text {
  display: grid;
  line-height: 1;
}

.brand-text strong {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand-text small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

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

.nav a {
  position: relative;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:not(.nav-login)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 1px;
  background: var(--gold);
  transition: right 220ms ease;
}

.nav a:not(.nav-login):hover::after,
.nav a[aria-current="page"]:not(.nav-login)::after {
  right: 0;
}

.nav-login {
  padding: 10px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.nav-login:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* ---------- typography helpers ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
  flex: 0 0 auto;
}

.section-dark .eyebrow {
  color: var(--gold-light);
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 500;
}

h1 {
  letter-spacing: -0.035em;
}

.lead {
  color: #4f534d;
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.75;
}

.fineprint {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.6;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

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

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--teal);
  box-shadow: 0 14px 30px rgba(18, 32, 30, 0.18);
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}

.btn-gold:hover {
  background: var(--gold-light);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

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

.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(255, 253, 248, 0.7);
}

.btn-light {
  background: var(--paper);
  color: var(--ink);
}

.btn-light:hover {
  background: var(--gold-light);
}

.btn-outline-light {
  border-color: rgba(247, 242, 232, 0.4);
  color: var(--paper);
}

.btn-outline-light:hover {
  border-color: var(--paper);
  background: rgba(247, 242, 232, 0.08);
}

.btn-block {
  width: 100%;
}

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

.hero {
  padding: clamp(52px, 8vw, 104px) 0 clamp(64px, 9vw, 120px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}

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

.hero h1 {
  margin: 20px 0 24px;
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  line-height: 0.98;
}

.hero h1 em {
  color: var(--teal);
  font-style: italic;
}

.hero .lead {
  max-width: 55ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 52px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hero-stats div {
  min-width: 0;
}

.hero-stats dt {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero-stats dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(340px, 42vw, 520px);
  isolation: isolate;
}

.hero-art::before {
  content: "";
  position: absolute;
  width: min(90%, 500px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, rgba(230, 206, 151, 0.62), rgba(198, 154, 75, 0.16) 52%, transparent 70%);
  filter: blur(4px);
  z-index: -1;
}

.hero-art::after {
  content: "";
  position: absolute;
  width: min(76%, 420px);
  aspect-ratio: 1;
  border: 1px solid rgba(198, 154, 75, 0.26);
  border-radius: 50%;
  z-index: -1;
}

.hero-art svg {
  width: min(100%, 530px);
  height: auto;
  filter: drop-shadow(0 34px 38px rgba(18, 32, 30, 0.18));
  animation: float 10s ease-in-out infinite;
}

.art-note {
  position: absolute;
  right: 0;
  bottom: 7%;
  display: grid;
  gap: 3px;
  min-width: 176px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 18px 40px rgba(18, 32, 30, 0.1);
  backdrop-filter: blur(8px);
}

.art-note span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.art-note strong {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
}

.art-note em {
  color: var(--teal);
  font-size: 0.7rem;
  font-style: normal;
}

.art-note em::before {
  content: "●";
  margin-right: 6px;
  font-size: 0.55rem;
  vertical-align: 1px;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* ---------- generic sections ---------- */

.section {
  padding: clamp(64px, 9vw, 112px) 0;
}

.section-tight {
  padding: clamp(48px, 6vw, 76px) 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head h2 {
  margin: 14px 0 18px;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.section-dark {
  background: var(--ink);
  color: var(--paper);
}

.section-dark .section-head p {
  color: var(--muted-light);
}

.section-dark .section-head h2 {
  color: var(--paper);
}

/* ---------- catalog ---------- */

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

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.product-card::after {
  content: "";
  position: absolute;
  right: -58px;
  bottom: -70px;
  width: 168px;
  height: 168px;
  border: 1px solid var(--line);
  border-radius: 26px;
  transform: rotate(45deg);
  transition: transform 400ms ease, border-color 400ms ease;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(198, 154, 75, 0.55);
  box-shadow: var(--shadow);
}

.product-card:hover::after {
  transform: rotate(45deg) scale(1.08);
  border-color: rgba(198, 154, 75, 0.4);
}

.product-no {
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.product-card h3 {
  margin: 14px 0 10px;
  font-size: 1.72rem;
  line-height: 1.1;
}

.product-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.spec-list {
  display: grid;
  gap: 8px;
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
  color: #51554f;
  font-size: 0.82rem;
}

.spec-list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.spec-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  margin-top: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}

.price {
  margin: auto 0 0;
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1.1;
}

.price span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 20px;
  padding-bottom: 3px;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(36, 101, 95, 0.35);
}

.card-link::after {
  content: "→";
  transition: transform 180ms ease;
}

.card-link:hover::after {
  transform: translateX(4px);
}

.catalog-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
}

/* ---------- features ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-light);
}

.feature {
  padding: 30px 28px 6px 0;
  border-right: 1px solid var(--line-light);
}

.feature:last-child {
  border-right: 0;
  padding-right: 0;
}

.feature-num {
  display: block;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1;
}

.feature h3 {
  margin: 15px 0 9px;
  color: var(--paper);
  font-size: 1.05rem;
  line-height: 1.3;
}

.feature p {
  margin: 0;
  color: var(--muted-light);
  font-size: 0.83rem;
  line-height: 1.65;
}

.feature + .feature {
  padding-left: 28px;
}

/* ---------- process ---------- */

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

.process-step {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.55);
}

.step-no {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--teal);
  font-family: var(--serif);
  font-size: 0.95rem;
}

.process-step h3 {
  margin: 18px 0 8px;
  font-size: 1.35rem;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* ---------- cta band ---------- */

.cta-wrap {
  padding: 0 0 clamp(64px, 8vw, 100px);
}

.cta-band {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  overflow: hidden;
  padding: clamp(32px, 5vw, 58px);
  border-radius: 28px;
  background: linear-gradient(118deg, var(--teal-deep), var(--teal) 58%, #2f7a72);
  color: var(--paper);
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -110px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(247, 242, 232, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(247, 242, 232, 0.045), 0 0 0 84px rgba(247, 242, 232, 0.03);
  pointer-events: none;
}

.cta-band h2 {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3.7vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.cta-band p {
  position: relative;
  z-index: 1;
  max-width: 52ch;
  margin: 0;
  color: rgba(247, 242, 232, 0.74);
  font-size: 0.92rem;
}

.cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 0 0 auto;
}

/* ---------- page hero ---------- */

.page-hero {
  padding: clamp(52px, 7vw, 92px) 0 clamp(40px, 6vw, 64px);
}

.page-hero h1 {
  max-width: 980px;
  margin: 18px 0 22px;
  font-size: clamp(2.6rem, 6vw, 4.9rem);
  line-height: 0.98;
}

.page-hero .lead {
  max-width: 65ch;
}

/* ---------- mission ---------- */

.mission {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(40px, 6vw, 72px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.mission-label {
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.mission blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2.55rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.mission blockquote em {
  color: var(--teal);
  font-style: italic;
}

.mission p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.75;
}

/* ---------- values ---------- */

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

.value-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.55);
}

.value-card .value-no {
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.value-card h3 {
  margin: 14px 0 9px;
  font-size: 1.35rem;
}

.value-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* ---------- team ---------- */

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

.team-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.team-portrait {
  position: relative;
  aspect-ratio: 1.16 / 1;
  background: var(--paper-deep);
  overflow: hidden;
}

.team-portrait svg {
  width: 100%;
  height: 100%;
}

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

.team-role {
  color: var(--teal);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.team-body h3 {
  margin: 7px 0 10px;
  font-size: 1.42rem;
  line-height: 1.15;
}

.team-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.68;
}

.team-quote {
  margin: auto 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--teal);
  font-family: var(--serif);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.45;
}

.team-note {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.team-note a {
  color: var(--teal);
  text-underline-offset: 3px;
}

/* ---------- login ---------- */

.login-section {
  padding: clamp(44px, 7vw, 88px) 0 clamp(64px, 9vw, 110px);
}

.login-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 28px 70px rgba(18, 32, 30, 0.09);
}

.login-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  overflow: hidden;
  padding: clamp(30px, 5vw, 54px);
  background: var(--ink);
  color: var(--paper);
}

.login-aside::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(230, 206, 151, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(230, 206, 151, 0.05), 0 0 0 76px rgba(230, 206, 151, 0.035);
  pointer-events: none;
}

.login-aside .eyebrow {
  color: var(--gold-light);
}

.login-aside h2 {
  position: relative;
  z-index: 1;
  max-width: 16ch;
  margin: 20px 0 0;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.login-aside h2 em {
  color: var(--gold-light);
  font-style: italic;
}

.login-aside p {
  position: relative;
  z-index: 1;
  max-width: 40ch;
  margin: 18px 0 0;
  color: var(--muted-light);
  font-size: 0.88rem;
  line-height: 1.7;
}

.login-benefits {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(247, 242, 232, 0.78);
  font-size: 0.82rem;
}

.login-benefits li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.login-benefits li::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  margin-top: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}

.login-form-wrap {
  padding: clamp(30px, 5vw, 58px);
}

.login-form-head h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  line-height: 1.05;
}

.login-form-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.login-form {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.95rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.field input::placeholder {
  color: #9a978d;
}

.field input:hover {
  border-color: rgba(18, 32, 30, 0.42);
}

.field input:focus {
  outline: none;
  border-color: var(--teal);
  background: #fffdf8;
  box-shadow: 0 0 0 4px rgba(36, 101, 95, 0.12);
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.form-row a {
  color: var(--teal);
  font-size: 0.78rem;
  text-underline-offset: 3px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

.form-note strong {
  color: var(--ink);
  font-weight: 700;
}

.form-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-divider::before,
.form-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.login-foot {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.login-foot a {
  color: var(--teal);
  text-underline-offset: 3px;
}

/* ---------- 403 ---------- */

.error-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 32px;
  background: var(--ink);
  color: var(--paper);
}

.error-card {
  width: min(100%, 760px);
  text-align: center;
}

.error-code {
  margin: 0;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: clamp(6rem, 20vw, 13rem);
  line-height: 0.82;
  letter-spacing: -0.06em;
}

.error-card h1 {
  margin: 26px 0 14px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.error-card p {
  max-width: 56ch;
  margin: 0 auto;
  color: var(--muted-light);
  font-size: 0.95rem;
  line-height: 1.75;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.error-meta {
  margin-top: 36px;
  color: rgba(247, 242, 232, 0.4);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.error-meta a {
  color: var(--gold-light);
  text-underline-offset: 3px;
}

.error-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  opacity: 0.9;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(247, 242, 232, 0.72);
  padding: 56px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.8fr) minmax(0, 0.9fr);
  gap: 40px;
}

.footer-brand .brand-text strong {
  color: var(--paper);
}

.footer-brand .brand-text small {
  color: rgba(247, 242, 232, 0.48);
}

.footer-brand p {
  max-width: 42ch;
  margin: 20px 0 0;
  color: rgba(247, 242, 232, 0.58);
  font-size: 0.84rem;
  line-height: 1.7;
}

.footer-col h3 {
  margin: 0 0 14px;
  color: var(--gold-light);
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-col a,
.footer-col p {
  display: block;
  margin: 8px 0;
  color: rgba(247, 242, 232, 0.68);
  font-size: 0.84rem;
  text-decoration: none;
  line-height: 1.5;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid var(--line-light);
  color: rgba(247, 242, 232, 0.4);
  font-size: 0.7rem;
  line-height: 1.55;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: rgba(247, 242, 232, 0.58);
  text-underline-offset: 3px;
}

/* ---------- responsive ---------- */

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

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

  .hero-art {
    order: -1;
    min-height: 300px;
  }

  .hero-art svg {
    width: min(82%, 430px);
  }

  .art-note {
    right: 4%;
    bottom: 2%;
  }

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

  .feature {
    padding: 28px 24px 24px 0;
    border-bottom: 1px solid var(--line-light);
  }

  .feature + .feature {
    padding-left: 0;
  }

  .feature:nth-child(2n) {
    border-right: 0;
    padding-right: 0;
    padding-left: 24px;
  }

  .feature:nth-child(2n + 1) {
    padding-left: 0;
  }

  .feature:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

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

  .process-grid,
  .values-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .catalog-grid .product-card:last-child {
    grid-column: 1 / -1;
    min-height: 340px;
  }

  .team-grid .team-card:last-child {
    grid-column: 1 / -1;
  }

  .team-grid .team-card:last-child .team-portrait {
    aspect-ratio: 2.2 / 1;
  }

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

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

  .login-aside {
    min-height: 320px;
  }

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

@media (max-width: 720px) {
  .site-header {
    position: static;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 14px;
    padding: 14px 0;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .nav a {
    font-size: 0.78rem;
  }

  .nav-login {
    padding: 8px 12px;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-art {
    min-height: 250px;
  }

  .hero-art svg {
    width: min(78%, 330px);
  }

  .art-note {
    position: static;
    justify-self: end;
    margin-top: -14px;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
    margin-top: 38px;
  }

  .hero-stats div:last-child {
    grid-column: 1 / -1;
  }

  .catalog-grid,
  .process-grid,
  .values-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .catalog-grid .product-card:last-child,
  .team-grid .team-card:last-child {
    grid-column: auto;
  }

  .team-grid .team-card:last-child .team-portrait {
    aspect-ratio: 1.16 / 1;
  }

  .product-card {
    min-height: 0;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-actions {
    width: 100%;
  }

  .cta-actions .btn {
    flex: 1 1 auto;
  }

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

  .footer-bottom {
    flex-direction: column;
  }

  .section-head h2 {
    font-size: clamp(1.9rem, 8vw, 2.8rem);
  }

  .login-form-wrap {
    padding: 26px 20px 30px;
  }

  .login-aside {
    padding: 26px 20px;
    min-height: 0;
  }

  .error-page {
    padding: 22px;
  }
}

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

  .feature {
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-light);
  }

  .feature:nth-child(2n) {
    padding-left: 0;
  }

  .feature:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line-light);
  }

  .feature:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 420px) {
  .nav {
    flex-wrap: wrap;
  }

  .nav a {
    font-size: 0.74rem;
  }

  .brand-text small {
    letter-spacing: 0.14em;
  }

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

  .form-row {
    align-items: flex-start;
  }
}

@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;
  }

  .hero-art svg {
    animation: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .cta-wrap,
  .hero-art,
  .btn {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .section,
  .hero,
  .page-hero {
    padding: 0 0 24px;
  }
}
