/* danifo.ru — site composition layer.
   Tokens come from ./tokens/tokens.css.  df-* component recipes live below. */

@import url("./tokens/tokens.css");

/* =========================================================================
   1. Reset + base
   ========================================================================= */

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

html {
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--danifo-font-body);
  font-size: var(--ts-body);
  line-height: var(--lh-body);
  color: var(--text-primary);
  background: var(--surface-default);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

@media (max-width: 480px) {
  h1, h2, h3, h4, h5, h6 {
    hyphens: auto;
  }
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
}

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

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

/* =========================================================================
   2. Layout primitives
   ========================================================================= */

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: clamp(72px, 9vw, 128px) 0;
}

.section--tight-top {
  padding-top: clamp(32px, 4.5vw, 64px);
}

.section--tight {
  padding: clamp(56px, 6.5vw, 96px) 0;
}

.section--navy {
  background: var(--surface-navy);
  color: var(--text-on-dark);
}

.section--purple-soft {
  background: var(--surface-purple-soft);
}

/* =========================================================================
   3. df-eyebrow
   ========================================================================= */

.df-eyebrow {
  font-family: var(--danifo-font-body);
  font-weight: 700;
  font-size: var(--ts-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--action-default);
  display: inline-block;
  margin-bottom: var(--space-3);
}

.df-eyebrow--accent { color: var(--danifo-purple); }
.df-eyebrow--on-dark { color: var(--danifo-orange); }

/* =========================================================================
   4. df-cta-button
   ========================================================================= */

.df-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  background: var(--action-default);
  color: var(--text-on-orange);
  font-family: var(--danifo-font-body);
  font-weight: 700;
  font-size: var(--ts-body);
  letter-spacing: 0.01em;
  transition: background var(--duration-base) var(--ease-standard),
              transform var(--duration-base) var(--ease-standard);
  will-change: transform;
}

.df-cta:hover,
.df-cta:focus-visible {
  background: var(--action-hover);
  outline: none;
}

.df-cta--ghost {
  background: transparent;
  color: var(--danifo-navy);
  border: 1.5px solid var(--danifo-navy);
}

.df-cta--ghost:hover,
.df-cta--ghost:focus-visible {
  background: var(--danifo-navy);
  color: var(--text-on-dark);
}

.df-cta--on-dark {
  background: var(--danifo-orange);
  color: var(--text-on-orange);
}

.df-cta--on-dark.df-cta--ghost {
  background: transparent;
  color: var(--text-on-dark);
  border-color: rgba(255, 255, 255, 0.45);
}

.df-cta--on-dark.df-cta--ghost:hover {
  background: var(--text-on-dark);
  color: var(--danifo-navy);
}

.df-cta__icon {
  width: 1em;
  height: 1em;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  transition: transform var(--duration-base) var(--ease-emphasized);
}

.df-cta:hover .df-cta__icon {
  transform: translateX(4px);
}

/* =========================================================================
   5. df-service (service-cell)
   ========================================================================= */

.df-service {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--surface-default);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: transform var(--duration-base) var(--ease-standard),
              border-color var(--duration-base) var(--ease-standard),
              box-shadow var(--duration-base) var(--ease-standard);
}

.df-service:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 121, 41, 0.35);
  box-shadow: 0 18px 40px -22px rgba(41, 37, 106, 0.35);
}

.df-service__icon {
  width: 140px;
  height: 140px;
  display: block;
  object-fit: contain;
  margin-bottom: var(--space-3);
  transition: transform var(--duration-base) var(--ease-emphasized);
}

.df-service__icon--lg {
  width: 161px;
  height: 161px;
}

.df-service:hover .df-service__icon {
  transform: translateY(-4px);
}

.df-service__title {
  font-family: var(--danifo-font-display);
  font-weight: 900;
  font-size: var(--ts-h3);
  line-height: var(--lh-h3);
  color: var(--text-primary);
}

.df-service__body {
  font-family: var(--danifo-font-body);
  font-size: var(--ts-body);
  line-height: var(--lh-body);
  color: var(--text-secondary);
  flex: 1;
}

.df-service__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  color: var(--danifo-navy);
  font-weight: 700;
  transition: color var(--duration-base) var(--ease-standard),
              gap var(--duration-base) var(--ease-emphasized);
}

.df-service:hover .df-service__link {
  color: var(--action-default);
  gap: var(--space-3);
}

.df-service__link svg {
  width: 1em;
  height: 1em;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* =========================================================================
   6. df-tier-card
   ========================================================================= */

.df-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-5);
  background: var(--surface-default);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: transform var(--duration-base) var(--ease-standard),
              border-color var(--duration-base) var(--ease-standard),
              box-shadow var(--duration-base) var(--ease-standard);
}

.df-tier:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 121, 41, 0.35);
  box-shadow: 0 18px 40px -22px rgba(41, 37, 106, 0.35);
}

.df-tier.is-featured {
  background: var(--surface-navy);
  color: var(--text-on-dark);
  transform: translateY(calc(-1 * var(--space-3)));
  box-shadow: 0 28px 60px -28px rgba(41, 37, 106, 0.6);
  border-color: transparent;
}

.df-tier.is-featured:hover {
  transform: translateY(calc(-1 * var(--space-3) - 4px));
  box-shadow: 0 32px 64px -28px rgba(41, 37, 106, 0.7);
  border-color: transparent;
}

.df-tier__badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  left: auto;
  padding: var(--space-1) var(--space-3);
  background: var(--danifo-orange);
  color: var(--text-on-orange);
  border-radius: var(--radius-pill);
  font-family: var(--danifo-font-body);
  font-weight: 700;
  font-size: var(--ts-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}

.df-tier__name {
  font-family: var(--danifo-font-display);
  font-weight: 900;
  font-size: var(--ts-h3);
  line-height: var(--lh-h3);
  letter-spacing: 0;
  text-transform: none;
  color: var(--action-default);
  margin-bottom: var(--space-1);
}

.df-tier.is-featured .df-tier__name {
  color: var(--danifo-orange);
}

.df-tier__price {
  font-family: var(--danifo-font-display);
  font-weight: 900;
  font-size: var(--ts-h1);
  line-height: var(--lh-h1);
}

.df-tier__period,
.df-tier__audience {
  font-family: var(--danifo-font-body);
  font-size: var(--ts-body);
  line-height: var(--lh-body);
  color: var(--text-secondary);
}

.df-tier.is-featured .df-tier__period,
.df-tier.is-featured .df-tier__audience {
  color: rgba(255, 255, 255, 0.78);
}

.df-tier__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.df-tier__list li {
  position: relative;
  padding-left: var(--space-4);
  font-size: var(--ts-body);
  line-height: var(--lh-body);
}

.df-tier__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danifo-orange);
}

.df-tier .df-cta {
  margin-top: auto;
  align-self: stretch;
  justify-content: center;
}

/* =========================================================================
   7. df-step
   ========================================================================= */

.df-step {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: var(--space-5);
  row-gap: var(--space-2);
  align-items: baseline;
}

.df-step__number {
  grid-row: 1 / span 2;
  font-family: var(--danifo-font-display);
  font-weight: 900;
  font-size: var(--ts-display);
  line-height: 1;
  color: var(--danifo-orange);
}

.df-step__title {
  font-family: var(--danifo-font-display);
  font-weight: 900;
  font-size: var(--ts-h3);
  line-height: var(--lh-h3);
}

.df-step__body {
  font-family: var(--danifo-font-body);
  font-size: var(--ts-body);
  line-height: var(--lh-body);
  color: var(--text-secondary);
}

.section--navy .df-step__title { color: var(--text-on-dark); }
.section--navy .df-step__body  { color: rgba(255, 255, 255, 0.78); }

/* =========================================================================
   8. df-foot (running footer)
   ========================================================================= */

.df-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-6);
  border-top: 1px solid var(--border-subtle);
  font-family: var(--danifo-font-body);
  font-weight: 700;
  font-size: var(--ts-foot);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* =========================================================================
   9. Site header
   ========================================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-3) var(--space-6);
}

.site-header__brand img {
  height: 32px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.site-nav a {
  font-family: var(--danifo-font-body);
  font-weight: 700;
  font-size: var(--ts-body);
  color: var(--text-primary);
  transition: color var(--duration-fast) var(--ease-standard);
}

.site-nav a:hover { color: var(--action-default); }

.site-header__phone {
  font-family: var(--danifo-font-display);
  font-weight: 400;
  font-size: var(--ts-body);
  color: var(--text-primary);
  white-space: nowrap;
}

.site-header__phone:hover { color: var(--action-default); }

@media (max-width: 880px) {
  .site-nav { display: none; }
}

/* =========================================================================
   10. Hero
   ========================================================================= */

.hero {
  position: relative;
  padding: clamp(72px, 10vh, 120px) 0 clamp(60px, 9vh, 100px);
  min-height: clamp(420px, 58vh, 570px);
  background: #0E0B2C;
  overflow: hidden;
}

.hero__mesh {
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 70%;
  background:
    radial-gradient(50% 60% at 18% 20%, rgba(244, 121, 41, 0.22), transparent 70%),
    radial-gradient(40% 50% at 82% 30%, rgba(96, 72, 157, 0.22), transparent 75%),
    conic-gradient(from 220deg at 60% 40%, rgba(41, 37, 106, 0.08), rgba(244, 121, 41, 0.05), transparent 60%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(14, 11, 44, 0.55) 0%, rgba(14, 11, 44, 0.35) 40%, rgba(14, 11, 44, 0.78) 100%),
    radial-gradient(60% 70% at 20% 50%, rgba(14, 11, 44, 0.45), transparent 65%);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--space-7);
  align-items: center;
  z-index: 2;
}

.hero--video .hero__inner {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
  align-items: center;
  justify-items: center;
  text-align: center;
  min-height: inherit;
  padding-block: var(--space-6);
}

.hero__title {
  font-family: var(--danifo-font-display);
  font-weight: 900;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.hero--video .hero__title {
  color: #FFFFFF;
  max-width: 28ch;
  text-align: center;
}

.hero__title-line {
  display: block;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .hero__title-line { white-space: normal; }
}

.hero__title em {
  font-style: normal;
  color: var(--action-default);
}

.hero--video .df-eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.hero__lead {
  margin-top: var(--space-5);
  font-family: var(--danifo-font-display);
  font-weight: 300;
  font-size: var(--ts-lead);
  line-height: var(--lh-lead);
  color: var(--text-secondary);
  max-width: 52ch;
}

.hero__actions {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero--video .hero__actions {
  justify-content: center;
}

.hero--video .df-cta {
  min-width: 260px;
  justify-content: center;
}

.hero--video .df-cta--ghost {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.55);
}

.hero--video .df-cta--ghost:hover {
  border-color: #FFFFFF;
}

.hero__illustration {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__illustration img,
.hero__illustration svg {
  width: 100%;
  max-width: 520px;
  height: auto;
}

/* Sub-brand hero — navy + purple tone, orange reserved for CTA only */
.hero--patent .hero__mesh {
  background:
    radial-gradient(48% 58% at 20% 22%, rgba(96, 72, 157, 0.28), transparent 70%),
    radial-gradient(44% 52% at 80% 28%, rgba(41, 37, 106, 0.22), transparent 75%),
    conic-gradient(from 220deg at 60% 40%, rgba(96, 72, 157, 0.10), rgba(41, 37, 106, 0.06), transparent 60%);
}

.hero--patent .hero__title em {
  color: var(--danifo-purple);
}

/* Light patent hero — mirrors the live danifo.ru/patent first screen */
.hero--patent-light {
  background: var(--surface-soft);
  color: var(--text-primary);
  padding: clamp(96px, 11vw, 160px) 0;
}
.hero--patent-light .hero__mesh { display: none; }
.hero--patent-light .hero__title {
  color: var(--text-primary);
  max-width: 18ch;
  font-size: clamp(36px, 4.6vw, 60px);
}
.hero--patent-light .hero__title em {
  color: var(--danifo-orange);
  font-style: normal;
}
.hero--patent-light .hero__media img {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  margin-inline: auto;
}

.hero__bullets {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 var(--space-5);
  display: grid;
  gap: var(--space-3);
}
.hero__bullets li {
  position: relative;
  padding-left: 24px;
  color: var(--text-secondary, var(--text-primary));
}
.hero__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--danifo-orange);
}

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__illustration { order: -1; }
}

@media (max-width: 720px) {
  .hero--video {
    min-height: clamp(420px, 66vh, 540px);
    background:
      linear-gradient(180deg, rgba(14, 11, 44, 0.55), rgba(14, 11, 44, 0.85)),
      url("../video/hero-code-poster.jpg") center/cover no-repeat;
  }
  .hero--video .hero__video { display: none; }
  .hero--video .df-cta { width: 100%; min-width: 0; }
}

.trust-strip__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-5) var(--space-7);
  align-items: start;
}

.intro-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "media lead"
    "media body";
  column-gap: var(--space-7);
  row-gap: var(--space-6);
  align-items: center;
}

.intro-band__media {
  grid-area: media;
  align-self: center;
  background: var(--surface-purple-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.intro-band__lead  { grid-area: lead;  }
.intro-band__body  { grid-area: body;  }

.intro-band__media img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

.intro-band__body > p + p {
  margin-top: var(--space-3);
}

.intro-band__title,
.trust-strip__title {
  margin: var(--space-2) 0 0;
  font-family: var(--danifo-font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 1rem + 1.6vw, 2.1rem);
  line-height: 1.15;
  color: var(--text-primary);
}

.intro-band__body p,
.trust-strip__body p {
  margin: 0;
  font-size: var(--ts-body-lg, var(--ts-body));
  line-height: var(--lh-body);
  color: var(--text-secondary, var(--text-primary));
}

.trust-strip__contact {
  margin-top: var(--space-3) !important;
  font-family: var(--danifo-font-body);
  font-size: var(--ts-body);
  color: var(--text-primary);
}

.trust-strip__contact a {
  border-bottom: 1px solid currentColor;
}

@media (max-width: 880px) {
  .trust-strip__inner { grid-template-columns: 1fr; }
  .intro-band__inner {
    grid-template-columns: 1fr;
    grid-template-areas: "media" "lead" "body";
  }
  .intro-band__media { padding: var(--space-4); }
  .intro-band__media img {
    max-width: 400px;
    margin-inline: auto;
  }
}

/* =========================================================================
   11. Grids
   ========================================================================= */

.grid-services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

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

.grid-tiers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
  align-items: stretch;
}

.grid-tiers .df-tier { height: 100%; }
.grid-tiers .df-tier.is-featured { transform: none; }
.df-tier__price { white-space: nowrap; }

@media (max-width: 720px) {
  .grid-tiers { grid-template-columns: 1fr; }
  .df-tier__price { white-space: normal; }
}

.grid-reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5) var(--space-6);
}

@media (max-width: 960px) {
  .grid-reasons { grid-template-columns: repeat(2, 1fr); }
}

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

.reason {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: var(--space-4);
  row-gap: var(--space-2);
  align-items: start;
}

.reason__icon {
  grid-row: 1 / span 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: rgba(244, 121, 41, 0.12);
  color: var(--danifo-orange);
  flex-shrink: 0;
}

.reason__icon svg {
  width: 28px;
  height: 28px;
}

.grid-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6) var(--space-7);
}

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

/* =========================================================================
   12. Section heading
   ========================================================================= */

.section-head {
  max-width: 720px;
  margin: 0 auto var(--space-6);
  text-align: center;
}

.section-head--left {
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

.section-head__title {
  font-family: var(--danifo-font-display);
  font-weight: 900;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.section--navy .section-head__title { color: var(--text-on-dark); }

.section-head__lead {
  margin-top: var(--space-3);
  font-family: var(--danifo-font-display);
  font-weight: 300;
  font-size: var(--ts-lead);
  line-height: var(--lh-lead);
  color: var(--text-secondary);
}

.section--navy .section-head__lead { color: rgba(255, 255, 255, 0.78); }

/* =========================================================================
   13. Reason cell
   ========================================================================= */

.reason__title {
  margin-top: var(--space-2);
  font-family: var(--danifo-font-display);
  font-weight: 900;
  font-size: var(--ts-h3);
  line-height: var(--lh-h3);
  color: var(--text-primary);
}

.reason__body {
  margin-top: var(--space-2);
  color: var(--text-secondary);
}

.reason-footnote {
  margin-top: var(--space-6);
  font-size: var(--ts-small);
  line-height: var(--lh-body);
  color: var(--text-secondary);
}

/* =========================================================================
   14. Form
   ========================================================================= */

.form-card {
  background: var(--surface-default);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: grid;
  gap: var(--space-3);
  max-width: 640px;
  margin: 0 auto;
}

.section--navy .form-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text-on-dark);
  backdrop-filter: blur(8px);
}

.form-field {
  display: grid;
  gap: var(--space-1);
}

.form-field label {
  font-family: var(--danifo-font-body);
  font-weight: 700;
  font-size: var(--ts-small);
  color: var(--text-secondary);
}

.section--navy .form-field label { color: rgba(255, 255, 255, 0.7); }

.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--danifo-font-body);
  font-size: var(--ts-body);
  color: var(--text-primary);
  background: var(--surface-default);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  transition: border-color var(--duration-fast) var(--ease-standard),
              box-shadow var(--duration-fast) var(--ease-standard);
}

.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%2329256A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  padding-right: var(--space-7);
  cursor: pointer;
}

.form-field select:invalid { color: var(--text-secondary); }

.section--navy .form-field input,
.section--navy .form-field textarea,
.section--navy .form-field select {
  background-color: rgba(255, 255, 255, 0.94);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--action-default);
  box-shadow: 0 0 0 3px rgba(244, 121, 41, 0.18);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--ts-small);
  line-height: var(--lh-body);
  color: var(--text-secondary);
}

.section--navy .form-consent { color: rgba(255, 255, 255, 0.7); }

.form-consent input { margin-top: 4px; }

.form-consent a {
  color: var(--action-default);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-card__submit {
  display: flex;
  justify-content: center;
  margin-top: var(--space-2);
}

.form-status {
  font-family: var(--danifo-font-body);
  font-size: var(--ts-small);
  min-height: 1.4em;
  text-align: center;
}

.form-status--ok { color: var(--action-default); font-weight: 700; }
.form-status--err { color: #c0392b; font-weight: 700; }

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-5);
}

.form-success.is-visible { display: block; }
.form-card.is-sent .form-fields { display: none; }

/* =========================================================================
   16. Tariff comparison matrix
   ========================================================================= */

.tariff-matrix {
  margin-top: var(--space-7);
  width: 100%;
  border-collapse: collapse;
  font-family: var(--danifo-font-body);
  font-size: var(--ts-small);
}

.tariff-matrix th,
.tariff-matrix td {
  padding: var(--space-3);
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.tariff-matrix th:not(:first-child),
.tariff-matrix td:not(:first-child) {
  text-align: center;
}

.tariff-matrix thead th {
  font-family: var(--danifo-font-display);
  font-weight: 900;
  font-size: var(--ts-body);
  color: var(--text-primary);
}

.tariff-matrix tbody th {
  font-weight: 700;
  color: var(--text-primary);
}

.tariff-matrix td.has {
  color: var(--action-default);
  font-weight: 700;
}

.tariff-matrix td.has::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  margin: 0 auto;
  background: var(--action-default);
  border-radius: 50%;
}

.tariff-matrix td.no {
  color: rgba(41, 37, 106, 0.32);
}

.tariff-matrix__footnote {
  margin-top: var(--space-3);
  font-size: var(--ts-small);
  color: var(--text-secondary);
}

@media (max-width: 880px) {
  .tariff-matrix-wrap { overflow-x: auto; }
  .tariff-matrix { min-width: 720px; }
}

/* =========================================================================
   17. Generic data tables (госпошлины, ускорение)
   ========================================================================= */

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--danifo-font-body);
}

.data-table th,
.data-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table thead th {
  font-family: var(--danifo-font-display);
  font-weight: 900;
  font-size: var(--ts-body);
  color: var(--text-primary);
}

.data-table tbody td:last-child {
  font-family: var(--danifo-font-display);
  font-weight: 400;
  color: var(--danifo-navy);
  white-space: nowrap;
}

.data-table tbody tr:hover { background: rgba(244, 121, 41, 0.05); }

.examples-row {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
  margin-top: var(--space-5);
}

.example {
  flex: 1;
  min-width: 220px;
  padding: var(--space-4);
  background: var(--surface-purple-soft);
  border-radius: var(--radius-md);
}

.example__classes {
  font-family: var(--danifo-font-body);
  font-weight: 700;
  font-size: var(--ts-small);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--danifo-purple);
}

.example__total {
  margin-top: var(--space-2);
  font-family: var(--danifo-font-display);
  font-weight: 900;
  font-size: var(--ts-h2);
  color: var(--danifo-navy);
}

/* =========================================================================
   18. Site footer
   ========================================================================= */

.site-footer {
  background: var(--surface-navy);
  color: var(--text-on-dark);
  padding: var(--space-7) 0 var(--space-5);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-7);
  align-items: start;
}

.site-footer__brand img {
  height: 52px;
  width: auto;
}

.site-footer h4 {
  font-family: var(--danifo-font-body);
  font-weight: 700;
  font-size: var(--ts-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--danifo-orange);
  margin-bottom: var(--space-3);
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--ts-body);
  line-height: var(--lh-body);
}

.site-footer a:hover { color: var(--danifo-orange); }

.site-footer__contact-line {
  display: inline-block;
  font-size: var(--ts-h1);
  line-height: var(--lh-h1);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  margin-top: var(--space-1);
  letter-spacing: -0.01em;
}
.site-footer__contact--span { grid-column: span 2; }

.site-footer__contact-meta {
  margin-top: var(--space-2);
  font-size: var(--ts-small);
  line-height: var(--lh-body);
  color: rgba(255, 255, 255, 0.62);
}

.site-footer__legal {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: var(--ts-small);
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
}

@media (max-width: 880px) {
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__contact--span { grid-column: auto; }
  .site-footer__legal {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
}

/* =========================================================================
   19. Custom cursor accent (desktop pointer only)
   ========================================================================= */

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--danifo-orange);
  pointer-events: none;
  z-index: 100;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-standard),
              transform var(--duration-fast) var(--ease-standard),
              background var(--duration-fast) var(--ease-standard);
  mix-blend-mode: multiply;
}

.cursor-dot.is-active { opacity: 1; }
.cursor-dot.is-hover { transform: translate(-50%, -50%) scale(2.4); background: var(--danifo-navy); }

@media (hover: none) { .cursor-dot { display: none; } }

/* =========================================================================
   20. Scroll reveal initial state (Motion One overrides via inView)
   ========================================================================= */

[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  .hero--video .hero__video { display: none; }
  .hero--video {
    background:
      linear-gradient(180deg, rgba(14, 11, 44, 0.55), rgba(14, 11, 44, 0.85)),
      url("../video/hero-code-poster.jpg") center/cover no-repeat;
  }
}

/* =========================================================================
   21. Legal prose — /privacy.html
   ========================================================================= */

.legal-prose {
  max-width: 72ch;
  color: var(--text-primary);
  font-size: var(--ts-body);
  line-height: 1.7;
}

.legal-prose h2 {
  font-family: var(--danifo-font-display);
  font-weight: 800;
  font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.6rem);
  line-height: 1.25;
  color: var(--surface-navy);
  margin: var(--space-7) 0 var(--space-3);
}

.legal-prose h2:first-child {
  margin-top: 0;
}

.legal-prose p + p,
.legal-prose ul + p,
.legal-prose p + ul {
  margin-top: var(--space-3);
}

.legal-prose a {
  color: var(--action-default);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.legal-prose a:hover {
  color: var(--surface-navy);
}

.legal-prose strong {
  color: var(--surface-navy);
}

.legal-list {
  margin: var(--space-3) 0;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.legal-list li {
  position: relative;
  padding-left: var(--space-5);
}

.legal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--action-default);
}

/* Legal page (privacy.html) — width + spacing overrides */
.legal-page .section-head {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: var(--space-3);
  text-align: left;
}
.legal-page .section { padding-block: var(--space-6); }
.legal-page .section--tight { padding-block: var(--space-3) var(--space-6); }
.legal-page .legal-prose { max-width: none; }

/* Home page — collapse the doubled .section padding between intro-band and services */
.intro-band { padding-bottom: clamp(24px, 3vw, 48px); }
.intro-band + .section { padding-top: clamp(24px, 3vw, 48px); }

/* =========================================================================
   22. Utility
   ========================================================================= */

.u-center { text-align: center; }
.u-mt-5 { margin-top: var(--space-5); }
.u-mt-6 { margin-top: var(--space-6); }
.u-mt-7 { margin-top: var(--space-7); }
.u-mw-prose { max-width: 60ch; }
