/* Taliin Sonor — final brand, typography and responsive system */

:root {
  --ts-font-body: "Noto Sans", "Segoe UI", Arial, sans-serif;
  --ts-font-display: "Manrope", "Noto Sans", "Segoe UI", Arial, sans-serif;
  --ts-content-max: 1240px;
  --ts-copy-max: 68ch;
  --ts-radius-card: 18px;
  --ts-radius-control: 11px;
  --ts-gutter: clamp(18px, 4vw, 40px);
  --ts-focus: 0 0 0 3px rgba(240, 200, 0, 0.24);
}

html {
  font-size: 16px;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body.page-premium {
  --pd-font: var(--ts-font-body);
  --font: var(--ts-font-body);
  --font-display: var(--ts-font-display);
  --font-brand: var(--ts-font-display);
  font-family: var(--ts-font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0;
  font-synthesis: none;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

body.page-premium h1,
body.page-premium h2,
body.page-premium h3,
body.page-premium h4,
body.page-premium h5,
body.page-premium h6,
body.page-premium .logo-name,
body.page-premium .btn,
body.page-premium button,
body.page-premium .main-nav a {
  font-family: var(--ts-font-display);
}

body.page-premium h1,
body.page-premium h2,
body.page-premium h3,
body.page-premium h4,
body.page-premium h5,
body.page-premium h6 {
  letter-spacing: -0.025em;
  line-height: 1.16;
  text-wrap: balance;
}

body.page-premium p,
body.page-premium li,
body.page-premium dd,
body.page-premium figcaption {
  letter-spacing: 0;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
  text-wrap: pretty;
}

body.page-premium .container {
  width: min(100%, var(--ts-content-max));
  max-width: var(--ts-content-max);
  padding-inline: var(--ts-gutter);
}

body.page-premium .pd-section {
  padding-block: clamp(64px, 7vw, 92px);
}

body.page-premium .pd-section-title {
  max-width: 23ch;
  margin-inline: auto;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.16;
  letter-spacing: -0.035em;
}

body.page-premium .pd-section-title::after {
  width: 54px;
  height: 3px;
  border-radius: 999px;
}

body.page-premium .pd-hero h1,
body.page-premium .pd-hero-title {
  letter-spacing: -0.045em;
  line-height: 1.02;
}

/* The home headline uses the same Cyrillic-capable display face as inner pages. */
body.page-home .pd-hero-title,
body.page-home .pd-hero h1 {
  font-family: var(--ts-font-display) !important;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

body.page-home .pd-hero-sub {
  font-family: var(--ts-font-body) !important;
}

body.page-premium .pd-partner-logo img,
body.page-premium .pd-client-logo img {
  image-rendering: auto;
  backface-visibility: hidden;
}

body.page-premium .pd-hero-sub {
  max-width: 60ch;
  font-family: var(--ts-font-body);
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  line-height: 1.65;
  letter-spacing: 0;
}

body.page-premium .main-nav a {
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.015em;
}

body.page-premium .logo-name {
  letter-spacing: 0.035em;
}

body.page-premium .logo-tagline {
  font-family: var(--ts-font-body);
  letter-spacing: 0.055em;
}

body.page-premium .btn,
body.page-premium button,
body.page-premium input,
body.page-premium select,
body.page-premium textarea {
  border-radius: var(--ts-radius-control);
}

body.page-premium .btn,
body.page-premium button {
  min-height: 44px;
  letter-spacing: 0.01em;
}

body.page-premium :where(a, button, input, textarea, select):focus-visible {
  outline: 2px solid var(--pd-gold, #f0c800);
  outline-offset: 3px;
  box-shadow: var(--ts-focus);
}

body.page-premium .pd-about-intro-text p,
body.page-premium .pd-copy p,
body.page-premium .pd-section-copy,
body.page-premium .pd-content-copy {
  max-width: var(--ts-copy-max);
  font-size: clamp(0.94rem, 1.2vw, 1rem);
  line-height: 1.78;
}

/* Recruitment process: equal cards, left-aligned Cyrillic copy. */
body.page-about .pd-process {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% -25%, rgba(240, 200, 0, 0.075), transparent 44%),
    #0f0f0f;
}

body.page-about .pd-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
  margin-top: clamp(34px, 4vw, 48px);
}

body.page-about .pd-process-grid::before {
  display: none;
}

body.page-about .pd-process-step {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-width: 0;
  min-height: 100%;
  padding: 26px 22px 24px;
  overflow: hidden;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: var(--ts-radius-card);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 48%),
    rgba(18, 18, 18, 0.96);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

body.page-about .pd-process-step::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #f0c800, rgba(240, 200, 0, 0.08));
}

body.page-about .pd-process-step:hover {
  transform: translateY(-3px);
  border-color: rgba(240, 200, 0, 0.35);
  background-color: rgba(21, 21, 21, 0.98);
}

body.page-about .pd-process-num {
  display: inline-grid;
  width: 46px;
  height: 46px;
  margin: 0 0 22px;
  place-items: center;
  border: 1px solid rgba(240, 200, 0, 0.58);
  border-radius: 13px;
  background: rgba(240, 200, 0, 0.1);
  color: #f6d600;
  font-family: var(--ts-font-display);
  font-size: 1rem;
  font-weight: 800;
  box-shadow: none;
}

body.page-about .pd-process-step h3 {
  min-height: 2.4em;
  margin: 0 0 13px;
  color: #fff;
  font-size: clamp(1rem, 1.35vw, 1.08rem);
  font-weight: 780;
  line-height: 1.28;
  letter-spacing: -0.018em;
  text-align: left;
}

body.page-about .pd-process-step p {
  width: 100%;
  max-width: none;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--ts-font-body);
  font-size: clamp(0.86rem, 1vw, 0.92rem);
  font-weight: 450;
  line-height: 1.72;
  letter-spacing: 0;
  text-align: left;
  text-wrap: pretty;
}

/* Shared card polish without flattening the established visual identity. */
body.page-premium :where(.pd-stat-card, .pd-whycard, .pd-srv-card, .pd-guard-type, .pd-client-card) {
  border-radius: var(--ts-radius-card);
}

body.page-premium :where(.pd-stat-card, .pd-whycard, .pd-srv-card, .pd-guard-type) p {
  line-height: 1.7;
  text-align: left;
}

body.page-premium .site-footer p,
body.page-premium .site-footer a {
  font-family: var(--ts-font-body);
  line-height: 1.65;
}

@media (max-width: 1100px) {
  body.page-about .pd-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  body.page-about .pd-process-step h3 {
    min-height: 0;
  }
}

@media (max-width: 767px) {
  :root {
    --ts-gutter: max(17px, env(safe-area-inset-left));
  }

  body.page-premium {
    font-size: 0.94rem;
    line-height: 1.68;
  }

  body.page-premium .pd-section {
    padding-block: clamp(48px, 13vw, 66px);
  }

  body.page-premium .pd-section-title {
    max-width: 19ch;
    font-size: clamp(1.55rem, 8vw, 2.05rem);
  }

  body.page-premium .pd-hero-sub {
    max-width: 36ch;
  }

  body.page-about .pd-process-grid {
    grid-template-columns: 1fr;
    gap: 13px;
    margin-top: 30px;
  }

  body.page-about .pd-process-step {
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 16px;
    padding: 21px 18px 20px;
    border-radius: 16px;
  }

  body.page-about .pd-process-num {
    grid-row: 1 / span 2;
    margin: 0;
  }

  body.page-about .pd-process-step h3 {
    margin: 1px 0 7px;
    font-size: 1rem;
  }

  body.page-about .pd-process-step p {
    font-size: 0.875rem;
    line-height: 1.67;
  }
}

@media (max-width: 380px) {
  body.page-about .pd-process-step {
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 13px;
    padding: 18px 15px 18px;
  }

  body.page-about .pd-process-num {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }
}

/* Brand proportion: let the emblem lead, keep the company name quiet and readable. */
@media (min-width: 768px) {
  body.page-premium .site-header .logo {
    gap: 10px;
  }

  body.page-premium .site-header .logo-img {
    width: auto;
    height: 76px;
    max-height: 76px;
    max-width: 82px;
  }

  body.page-premium .site-header .logo-name {
    font-size: clamp(0.8rem, 0.9vw, 0.9rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: 0.065em;
  }

  body.page-premium .site-header .logo-tagline {
    max-width: 22em;
    font-size: clamp(0.55rem, 0.62vw, 0.64rem);
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: 0.065em;
  }
}

body.page-premium .pd-footer-brand {
  gap: 11px;
}

body.page-premium .pd-footer-brand img {
  width: auto;
  height: 76px;
  max-width: 72px;
}

body.page-premium .pd-footer-name {
  font-size: clamp(0.76rem, 0.82vw, 0.84rem);
  line-height: 1.2;
  letter-spacing: 0.055em;
}

body.page-premium .pd-footer-tagline {
  font-size: clamp(0.52rem, 0.57vw, 0.6rem);
  line-height: 1.35;
  letter-spacing: 0.05em;
}

body.page-premium .pd-footer-bottom {
  justify-content: center;
}

body.page-premium .pd-footer-copy {
  width: 100%;
  margin-inline: auto;
  text-align: center;
}

/* Home keeps one clear final action without repeating footer contact data. */
body.page-home .pd-home-final-cta {
  padding-block: clamp(38px, 5vw, 62px);
  border-top: 1px solid rgba(240, 200, 0, 0.22);
  background:
    radial-gradient(circle at 82% 50%, rgba(240, 200, 0, 0.08), transparent 34%),
    #0f0f0f;
}

body.page-home .pd-home-final-cta__card {
  margin: 0;
}

body.page-home .pd-home-final-cta__actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 767px) {
  html[data-viewport="mobile"] body.page-premium .site-header .logo {
    gap: 8px;
  }

  html[data-viewport="mobile"] body.page-premium .site-header .logo-img {
    width: auto;
    height: 58px;
    max-height: 58px;
    max-width: 62px;
  }

  html[data-viewport="mobile"] body.page-premium .site-header .logo-name {
    font-size: 0.75rem;
    line-height: 1.18;
    letter-spacing: 0.045em;
  }

  html[data-viewport="mobile"] body.page-premium .site-header .logo-tagline {
    max-width: 21em;
    font-size: 0.5rem;
    line-height: 1.3;
    letter-spacing: 0.04em;
  }

  html[data-viewport="mobile"] body.page-premium .pd-footer-brand img {
    height: 66px;
    max-width: 62px;
  }

  body.page-home .pd-home-final-cta__card,
  body.page-home .pd-home-final-cta__actions {
    width: 100%;
  }

  body.page-home .pd-home-final-cta__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.page-home .pd-home-final-cta__actions .pd-btn {
    width: 100%;
    justify-content: center;
  }
}

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