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

:root {
  --color-bg: #e8e8eb;
  --color-bg-alt: #f0f0f2;
  --color-white: #ffffff;
  --color-red: #890005;
  --color-red-dark: #6d0004;
  --color-red-accent: #9f040c;
  --color-grey-line: #d8d8db;
  --color-text: #1a1a1a;
  --color-muted: #555;
  --font: 'Montserrat', system-ui, sans-serif;
  --container: 1140px;
  --radius: 10px;
  --shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.1);
  --nav-h: 76px;
  --nav-line-w: calc((100vw - min(100vw, var(--container))) / 2 + 1.5rem + 13rem);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Nav decorative lines � full header height, behind logo */
.nav__lines {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--nav-line-w);
  min-width: 240px;
  height: var(--nav-h);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.nav__lines img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: left bottom;
}

.nav__lines-grey {
  width: calc(100% + 18px);
  height: 100%;
  transform: translateX(40px) translateY(-20px);
  opacity: 0.95;
}

.nav__lines-red {
  z-index: 1;
}

.nav--scrolled .nav__lines {
  opacity: 0;
  visibility: hidden;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.logo__img {
  height: 32px;
  width: auto;
  display: block;
}

.logo__img--dark {
  display: none;
}

.nav--scrolled .logo__img--white {
  display: none;
}

.nav--scrolled .logo__img--dark {
  display: block;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s, box-shadow 0.3s;
}

.nav--scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  position: relative;
  z-index: 1;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
}

.nav__links a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav__links a:hover {
  color: var(--color-red);
}

.nav__cta {
  background: var(--color-red) !important;
  color: var(--color-white) !important;
  margin-left: 0.5rem;
  padding: 0.55rem 1.1rem !important;
  border-radius: 6px;
}

.nav__cta:hover {
  background: var(--color-red-dark) !important;
  color: var(--color-white) !important;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 2rem;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--color-red);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-red-dark);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  max-height: 800px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background:
    linear-gradient(135deg, transparent 40%, var(--color-text) 40%, var(--color-text) 41%, transparent 41%),
    linear-gradient(225deg, transparent 60%, var(--color-text) 60%, var(--color-text) 61%, transparent 61%);
  background-size: 180px 180px;
}

.hero__dots {
  position: absolute;
  width: 44px;
  height: 44px;
  opacity: 0.1;
  background: radial-gradient(circle, var(--color-text) 2px, transparent 2px);
  background-size: 10px 10px;
}

.hero__dots--tl {
  top: 20px;
  left: 20px;
}

.hero__dots--br {
  bottom: 28px;
  right: 28px;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 3rem;
  width: 100%;
  padding: 5rem 1.5rem 6rem;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.08;
  max-width: 11ch;
  margin-bottom: 1.5rem;
}

.hero__tags {
  font-size: clamp(0.68rem, 1.2vw, 0.78rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.7;
  max-width: 38ch;
  margin-bottom: 2.25rem;
  color: var(--color-text);
}

.hero__logo {
  width: min(240px, 32vw);
  height: auto;
  flex-shrink: 0;
  opacity: 0.95;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section__title {
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2.5rem;
  padding-bottom: 0.65rem;
  border-bottom: 3px solid var(--color-text);
  display: inline-block;
}

.section__title--red {
  color: var(--color-red);
  border-bottom-color: var(--color-red);
}

.section__subtitle {
  font-style: italic;
  color: var(--color-muted);
  margin-top: -1.5rem;
  margin-bottom: 2.5rem;
  max-width: 55ch;
}

/* Approach */
.approach__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.approach__col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.profile-card {
  display: flex;
  gap: 1.25rem;
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.profile-card__photo {
  width: 120px;
  height: auto;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
}

.profile-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.profile-card__body p {
  font-size: 0.85rem;
  line-height: 1.55;
  margin-bottom: 0.5rem;
}

.profile-card__note {
  color: var(--color-muted);
  font-size: 0.82rem;
  font-style: italic;
  margin-bottom: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.25rem 0.5rem;
  border-right: 1px solid var(--color-grey-line);
}

.stat:last-of-type {
  border-right: none;
}

.stat__num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-red);
  line-height: 1;
}

.stat__label {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
}

.stats__clients {
  grid-column: 1 / -1;
  margin: 0.25rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--color-grey-line);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-red);
}

.highlight-card {
  flex: 1;
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--color-red);
}

.highlight-card h3 {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.85rem;
}

.highlight-card__lead {
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  line-height: 1.55;
}

.highlight-card__accent {
  color: var(--color-text);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.text-card {
  flex: 1;
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.text-card p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--color-muted);
  margin: 0;
}

/* Clients */
.clients__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.75rem;
}

.clients__item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  padding: 0.5rem 0.625rem;
  background: var(--color-white);
  border-radius: 8px;
}

.clients__item img {
  display: block;
  width: 100%;
  height: 56px;
  object-fit: contain;
  object-position: center;
  opacity: 0.92;
  filter: grayscale(100%);
  transition: opacity 0.2s, filter 0.2s;
}

.clients__item:hover img {
  opacity: 1;
  filter: grayscale(0%);
}

/* Services */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.service-card {
  background: var(--color-red);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.45;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: background 0.2s, transform 0.15s;
}

.service-card:hover {
  background: var(--color-red-dark);
  transform: translateY(-2px);
}

.service-card__num {
  font-size: 1.25rem;
  font-weight: 800;
  opacity: 0.45;
  line-height: 1;
  flex-shrink: 0;
}

/* Projects */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.project-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.project-card__client {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  margin-bottom: 0.35rem;
}

.project-card h3 {
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  color: var(--color-red);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-bg);
}

.project-card__body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.project-card__block--result p {
  color: var(--color-red);
  font-weight: 700;
}

.project-card__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  margin-bottom: 0.35rem;
}

.project-card__block p {
  font-size: 0.85rem;
  line-height: 1.55;
}

/* Expertise */
.expertise__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.expertise__profile {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.expertise__profile h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.expertise__role {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: var(--color-red);
}

.expertise__education {
  list-style: none;
  margin-bottom: 1rem;
}

.expertise__education li {
  font-size: 0.875rem;
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.3rem;
}

.expertise__education li::before {
  content: '\2014';
  position: absolute;
  left: 0;
  color: var(--color-red);
}

.expertise__note {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--color-muted);
}

.expertise__subheading {
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.expertise__courses {
  padding-left: 1.25rem;
  font-size: 0.85rem;
}

.expertise__courses li {
  margin-bottom: 0.45rem;
}

.expertise__sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}

.expertise__tags {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.expertise__tags li {
  background: var(--color-red);
  color: var(--color-white);
  padding: 0.85rem 1.1rem;
  font-weight: 700;
  font-size: 0.8rem;
  text-align: center;
  border-radius: 6px;
  transition: background 0.2s;
}

.expertise__tags li:hover {
  background: var(--color-red-dark);
}

/* Footer � PDF bottom line */
.footer {
  position: relative;
  background: var(--color-bg);
  padding: 3rem 0 0;
  overflow: hidden;
}

.footer__panel {
  position: relative;
  width: min(920px, 94vw);
  margin-left: max(0px, calc((100vw - var(--container)) / 2));
  min-height: 200px;
}

.footer__line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

.footer__inner {
  position: relative;
  z-index: 1;
  padding: 2.5rem 2rem 2.5rem 1.5rem;
}

.footer__contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.footer__contact-group {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer__contact-title {
  margin: 0 0 0.15rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-text);
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  font-size: 0.92rem;
  transition: opacity 0.2s;
}

.contact-link:hover {
  opacity: 0.75;
}

.contact-link__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.contact-link__icon--email {
  background: #f0c040;
  color: #1a1a1a;
}

.contact-link__icon--tg {
  background: #2aabee;
  color: #fff;
}

.contact-link__icon--phone {
  background: var(--color-red);
  color: #fff;
}

.contact-link--phone div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.contact-link--phone a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
}

.contact-link--phone a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .clients__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .approach__grid,
  .services__grid,
  .projects__grid,
  .expertise__grid {
    grid-template-columns: 1fr;
  }

  .project-card__body {
    grid-template-columns: 1fr;
  }

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

  .hero__logo {
    align-self: flex-end;
    width: min(200px, 50vw);
  }

  .expertise__sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-line-w: calc(1.5rem + 11rem);
    --nav-h: 68px;
  }

  .logo__img {
    height: 28px;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    gap: 0.25rem;
  }

  .nav__links--open {
    display: flex;
  }

  .nav__links a {
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .nav__cta {
    margin-left: 0 !important;
    text-align: center;
  }

  .profile-card {
    flex-direction: column;
  }

  .profile-card__photo {
    width: 160px;
  }

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

  .stat {
    border-right: none;
    border-bottom: 1px solid var(--color-grey-line);
    padding: 0.75rem 0;
  }

  .stat:last-of-type {
    border-bottom: none;
  }

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

  .clients__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.625rem;
  }

  .clients__item {
    height: 68px;
    padding: 0.5rem;
  }

  .clients__item img {
    height: 46px;
  }

  .footer__panel {
    width: calc(100% - 1.5rem);
    margin-left: 0.75rem;
    min-height: 180px;
  }

  .footer__inner {
    padding: 2rem 1.25rem 2rem 1rem;
  }

  .footer__contacts {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}