/* ============================================================
   typ.o digital — brand-faithful stylesheet
   Brandbook: Fog 60% · Ink 20% · Victoria Blue 12% · Red 8%
   Type: Unbounded (display) · Manrope (body)
   ============================================================ */

:root {
  --fog: #EDEFF0;
  --ink: #15171A;
  --slate: #8A8F98;
  --slate-text: #5B6068;
  --blue: #07569B;
  --blue-tint: #E4EEF6;
  --red: #E63946;
  --red-deep: #C92A37;
  --red-tint: #FBE4E6;
  --white: #FFFFFF;
  --border: #C9CDD2;
  --border-soft: #D5D8DC;
  --ink-border: #33363B;
  --ink-muted: #C4C8CE;

  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  --pad-x: clamp(20px, 8.3vw, 120px);
  --header-h: 80px;
  --radius-card: 20px;
  --radius-big: 28px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--fog);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

/* Всяка секция спира под sticky хедъра при anchor скрол */
section[id], footer[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

/* ---- Logo wordmark ---- */
.wordmark {
  font-family: var(--font-display);
  letter-spacing: -0.5px;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark b { font-weight: 700; color: var(--ink); }
.wordmark b .dot { color: var(--red); }
.wordmark .light { font-weight: 400; color: var(--slate); }
.wordmark--on-dark b { color: var(--white); }
.wordmark--on-dark .light { color: #B5BAC1; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(237, 239, 240, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--border-soft); }
.site-header .wordmark { font-size: 24px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 36px);
  font-size: 15px;
  font-weight: 600;
}
.site-nav a.nav-link {
  text-decoration: none;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.site-nav a.nav-link:hover { color: var(--red); }
.site-nav a.nav-link.active { border-bottom-color: var(--red); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}
.lang-switch a { text-decoration: none; color: var(--slate-text); }
.lang-switch a:hover { color: var(--ink); }
.lang-switch .sep { color: var(--slate); }
.lang-switch .current { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--ink { background: var(--ink); color: var(--white); padding: 14px 22px; font-size: 15px; }
.btn--ink:hover { background: #24262B; }
.btn--red { background: var(--red); color: var(--white); padding: 18px 30px; font-size: 19px; box-shadow: 0 10px 26px rgba(230, 57, 70, 0.28); }
.btn--red:hover { background: var(--red-deep); }
.btn--white { background: var(--white); color: var(--ink); padding: 16px 26px; font-size: 16px; }
.btn--white:hover { background: var(--fog); }

/* Mobile menu button */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Sections — shared
   ============================================================ */
.section {
  padding: clamp(64px, 7.8vw, 112px) var(--pad-x);
}
.section--white { background: var(--white); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
  margin-bottom: clamp(36px, 3.9vw, 56px);
}
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--red);
  text-transform: uppercase;
}
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  text-wrap: balance;
}
h2 {
  font-weight: 700;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.15;
  letter-spacing: -1px;
}
.muted { color: var(--slate-text); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: clamp(40px, 5vw, 72px) var(--pad-x) clamp(72px, 8.3vw, 120px);
  display: flex;
  gap: clamp(36px, 4.4vw, 64px);
  align-items: center;
}
.hero-copy {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.hero-copy h1 {
  font-weight: 700;
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.1;
  letter-spacing: -1.5px;
}
.hero-copy h1 .dot { color: var(--red); }
.hero-copy .sub {
  margin: 0;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  color: var(--slate-text);
  max-width: 600px;
}

.hero-card {
  width: min(500px, 42vw);
  aspect-ratio: 500 / 480;
  flex-shrink: 0;
  background: var(--ink);
  border-radius: var(--radius-big);
  padding: clamp(28px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}
.hero-card .chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--white);
  padding: 8px 14px;
  border-radius: 999px;
  text-transform: uppercase;
}
.chip--blue { background: var(--blue); }
.chip--red { background: var(--red-deep); }
.hero-card .mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(84px, 10.4vw, 150px);
  line-height: 1;
  color: var(--fog);
}
.hero-card .mark .dot { color: var(--red); }
.hero-card .tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.25;
  color: var(--white);
  text-wrap: balance;
}

/* ============================================================
   Situations (challenges)
   ============================================================ */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.sit-card {
  background: var(--fog);
  border-radius: var(--radius-card);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sit-card h3 {
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
}
.sit-card p { margin: 0; font-size: 16px; color: var(--slate-text); }

.brand-story {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  border-top: 1px solid var(--border-soft);
  padding-top: 48px;
  margin-top: clamp(36px, 3.9vw, 56px);
}
.brand-story .big-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
  flex-shrink: 0;
}
.brand-story .big-mark .dot { color: var(--red); }
.brand-story p {
  margin: 0;
  font-size: 19px;
  line-height: 1.65;
  max-width: 820px;
}

/* ============================================================
   Services
   ============================================================ */
.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.svc-card {
  background: var(--white);
  border-radius: 24px;
  padding: clamp(30px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.svc-head { display: flex; align-items: center; gap: 16px; }
.svc-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  color: var(--ink);
  flex-shrink: 0;
}
.svc-icon--blue { background: var(--blue-tint); }
.svc-icon--blue .dot { color: var(--blue); }
.svc-icon--red { background: var(--red-tint); }
.svc-icon--red .dot { color: var(--red); }
.svc-card h3 { font-weight: 600; font-size: clamp(21px, 1.8vw, 26px); }
.svc-card > p { margin: 0; font-size: 17px; color: var(--slate-text); }
.svc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 16px;
  font-weight: 600;
}
.svc-list li { display: flex; gap: 12px; align-items: center; }
.svc-list .pt {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.svc-list .pt--blue { background: var(--blue); }
.svc-list .pt--red { background: var(--red); }

.both-banner {
  margin-top: 24px;
  background: var(--ink);
  border-radius: 24px;
  padding: clamp(28px, 3vw, 40px) clamp(28px, 3vw, 44px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.both-banner .txt { display: flex; flex-direction: column; gap: 10px; }
.both-banner h3 {
  font-weight: 600;
  font-size: clamp(21px, 1.8vw, 26px);
  color: var(--white);
}
.both-banner p { margin: 0; font-size: 17px; color: var(--ink-muted); max-width: 760px; }
.both-banner .btn { flex-shrink: 0; }

/* ============================================================
   Process
   ============================================================ */
.process-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: clamp(36px, 3.9vw, 56px);
}
.process-head .section-head { margin-bottom: 0; }
.process-head .aside {
  margin: 0;
  font-size: 17px;
  color: var(--slate-text);
  max-width: 400px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 2px solid var(--ink);
  padding-top: 24px;
}
.step .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--red);
}
.step h3 { font-weight: 600; font-size: 19px; line-height: 1.3; }
.step p { margin: 0; font-size: 15px; color: var(--slate-text); }

/* ============================================================
   Experience
   ============================================================ */
.exp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.exp-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.exp-card h3 { font-weight: 600; font-size: 20px; }
.exp-card p { margin: 0; font-size: 15px; color: var(--slate-text); }
.exp-note {
  margin: clamp(28px, 3vw, 48px) 0 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--slate-text);
}

/* ============================================================
   Team
   ============================================================ */
.team-card {
  background: var(--fog);
  border-radius: 24px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  color: var(--white);
}
.avatar--ink { background: var(--ink); color: var(--fog); }
.avatar--blue { background: var(--blue); }
.avatar--red { background: var(--red-deep); }
.team-card h3 { font-weight: 600; font-size: 22px; }
.team-card .role {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--slate-text);
  text-transform: uppercase;
  margin-top: 6px;
}
.team-card p { margin: 0; font-size: 15px; color: var(--slate-text); }

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  display: flex;
  gap: 80px;
}
.faq .section-head { width: 400px; flex-shrink: 0; margin-bottom: 0; }
.faq-list { flex: 1 1 0; display: flex; flex-direction: column; }
.faq-item {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item h3 { font-weight: 600; font-size: 19px; }
.faq-item p { margin: 0; font-size: 16px; color: var(--slate-text); }

/* ============================================================
   Contact
   ============================================================ */
.contact {
  background: var(--ink);
  color: var(--white);
  padding: clamp(64px, 7.8vw, 112px) var(--pad-x) 56px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.contact-inner { display: flex; gap: clamp(40px, 5.5vw, 80px); }
.contact-copy {
  width: 460px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact-copy .eyebrow { color: #F07882; }
.contact-copy h2 {
  font-size: clamp(32px, 3.3vw, 48px);
  color: var(--white);
}
.contact-copy h2 .dot { color: var(--red); }
.contact-copy .sub { margin: 0; font-size: 17px; color: var(--ink-muted); }
.contact-people { display: flex; flex-direction: column; gap: 20px; padding-top: 12px; }
.contact-person .who { font-weight: 700; font-size: 16px; }
.contact-person .how { font-size: 15px; color: var(--ink-muted); }
.contact-person a { color: var(--ink-muted); text-decoration: none; }
.contact-person a:hover { color: var(--white); }

.contact-form {
  flex: 1 1 0;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-big);
  padding: clamp(28px, 3.3vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 700; }
.field label .opt { font-weight: 500; color: var(--slate-text); }
.field input,
.field textarea {
  box-sizing: border-box;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.field input { height: 52px; padding: 0 16px; }
.field textarea { padding: 14px 16px; line-height: 1.5; resize: vertical; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--ink); }

.need-set { margin: 0; padding: 0; border: 0; }
.need-set legend { font-size: 14px; font-weight: 700; padding: 0; margin-bottom: 12px; }
.pills { display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  position: relative;
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--border);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.pill input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.pill:hover { border-color: var(--ink); }
.pill:has(input:checked) {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.pill:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.form-foot .gdpr {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--slate-text);
  max-width: 340px;
}
.form-foot .btn--red { height: 60px; padding: 0 32px; font-size: 19px; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--ink-border);
  padding-top: 32px;
  font-size: 14px;
  color: var(--ink-muted);
}
.site-footer .wordmark { font-size: 20px; }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .hero { flex-direction: column; align-items: stretch; }
  .hero-card { width: 100%; aspect-ratio: auto; min-height: 360px; }
  .cards-3, .exp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq { flex-direction: column; gap: 36px; }
  .faq .section-head { width: auto; }
  .contact-inner { flex-direction: column; }
  .contact-copy { width: auto; }
  .process-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .both-banner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 760px) {
  .cards-2, .cards-3, .exp-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-foot { flex-direction: column-reverse; align-items: stretch; text-align: center; }
  .form-foot .btn--red { width: 100%; }
  .brand-story { flex-direction: column; gap: 20px; }
  .site-footer { flex-direction: column; align-items: flex-start; }

  /* Mobile nav */
  .menu-toggle { display: flex; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border-soft);
    padding: 8px 20px 20px;
    box-shadow: 0 18px 40px rgba(21, 23, 26, 0.12);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a.nav-link {
    padding: 14px 4px;
    border-bottom: 1px solid var(--fog);
    font-size: 17px;
  }
  .site-nav a.nav-link.active { border-bottom-color: var(--fog); color: var(--red); }
  .lang-switch { padding: 16px 4px 8px; }
  .site-nav .btn--ink { margin-top: 8px; }
}

/* Contact form status + honeypot */
.form-status { margin: 0; font-size: 15px; font-weight: 600; display: none; }
.form-status.ok { display: block; color: #1E7443; }
.form-status.err { display: block; color: var(--red-deep); }
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}
