:root {
  --bg-main: #eef2f6;
  --bg-panel: #ffffff;
  --bg-dark: #0f2235;
  --bg-dark-soft: #132a40;
  --text-main: #243342;
  --text-soft: #5d6b7b;
  --line: #d8e0e8;
  --accent: #f5a623;
  --accent-strong: #de8f0f;
  --white: #ffffff;
  --shadow-soft: 0 20px 50px rgba(15, 34, 53, 0.08);
  --shadow-hover: 0 24px 50px rgba(15, 34, 53, 0.15);
  --radius-lg: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  color: var(--text-main);
  background: var(--bg-main);
  line-height: 1.6;
}

h1,
h2,
h3 {
  margin: 0 0 0.8rem;
  font-family: "Montserrat", sans-serif;
  line-height: 1.2;
}

p {
  margin: 0 0 1rem;
}

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

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 24, 40, 0.82);
  backdrop-filter: blur(7px);
}

.header-wrap {
  min-height: 116px;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}

.brand-logo {
  width: 234px;
  height: 104px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(245, 166, 35, 0.5);
  box-shadow: 0 10px 22px rgba(5, 18, 32, 0.22);
  padding: 0.16rem;
}

.page-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.page-nav a {
  color: #d5e3f0;
  font-weight: 500;
  position: relative;
}

.page-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.25rem;
  height: 2px;
  transform: scaleX(0);
  background: var(--accent);
  transition: transform 0.25s ease;
}

.page-nav a:hover::after {
  transform: scaleX(1);
}

.btn-home {
  margin-left: 0.7rem;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(245, 166, 35, 0.55);
  color: #202f3e;
  background: linear-gradient(145deg, var(--accent), var(--accent-strong));
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
}

.hero {
  padding: clamp(3.6rem, 7vw, 5.2rem) 0;
  color: #e9f3fb;
  background:
    radial-gradient(circle at 10% 6%, rgba(245, 166, 35, 0.2), transparent 33%),
    linear-gradient(150deg, #0d1f30 0%, #17324a 100%);
}

.hero-content {
  max-width: 920px;
}

.eyebrow {
  margin-bottom: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffca73;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  margin-bottom: 1.1rem;
}

.hero p {
  color: #d4e2f0;
  max-width: 80ch;
}

.section {
  padding: clamp(4rem, 6vw, 5.4rem) 0;
}

.section-light {
  background: linear-gradient(180deg, #f4f7fb 0%, #edf3f8 100%);
}

.section-dark {
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 166, 35, 0.2), transparent 30%),
    linear-gradient(160deg, var(--bg-dark), var(--bg-dark-soft));
  color: #ecf3fa;
}

.section-tag {
  margin-bottom: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

.section-dark .section-tag {
  color: #ffbf54;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.section-text {
  max-width: 80ch;
  color: var(--text-soft);
}

.section-text.light {
  color: #d3e2f1;
}

.clients-grid {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.client-card {
  border-radius: var(--radius-lg);
  border: 1px solid #d5dfe9;
  background: var(--bg-panel);
  box-shadow: 0 14px 34px rgba(16, 40, 65, 0.08);
  padding: 0.75rem 0.9rem;
  display: grid;
  align-items: center;
  grid-template-columns: 64px 1fr;
  gap: 0.7rem;
  min-height: 84px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.client-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 166, 35, 0.7);
  box-shadow: var(--shadow-hover);
}

.client-logo-wrap {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: #f8fbff;
  border: 1px solid #d7e2ec;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.client-logo {
  width: 100%;
  height: 100%;
  padding: 12px;
  object-fit: contain;
  display: block;
}

.client-logo-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-family: "Montserrat", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #23415f;
  background:
    linear-gradient(145deg, rgba(245, 166, 35, 0.2), rgba(245, 166, 35, 0.07));
}

.client-name {
  font-weight: 700;
  line-height: 1.3;
}

.projects-grid {
  margin-top: 1.2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-block {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(184, 206, 228, 0.25);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 44px rgba(8, 22, 36, 0.28);
  padding: 1rem 1.1rem 1.15rem;
}

.project-block h3 {
  color: #fff3d6;
  font-size: 1.08rem;
}

.project-block ul {
  margin: 0;
  padding-left: 1.15rem;
}

.project-block li {
  margin-bottom: 0.6rem;
  color: #d8e7f6;
}

.project-block li:last-child {
  margin-bottom: 0;
}

.diff-grid {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.diff-item {
  border-radius: var(--radius-lg);
  border: 1px solid #d5dfe9;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  padding: 1rem;
  font-weight: 700;
}

.site-footer {
  padding: 2rem 0 2.2rem;
  background: #0a1b2d;
  color: #e3edf8;
}

.footer-wrap {
  text-align: center;
}

.footer-wrap p {
  margin: 0;
  max-width: 78ch;
  margin-inline: auto;
  color: #d8e5f3;
}

@media (max-width: 1024px) {
  .clients-grid,
  .projects-grid,
  .diff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

@media (max-width: 700px) {
  .clients-grid,
  .projects-grid,
  .diff-grid {
    grid-template-columns: 1fr;
  }

  .header-wrap {
    min-height: 76px;
  }

  .brand-logo {
    width: 138px;
    height: 60px;
  }

  .btn-home {
    margin-left: auto;
    font-size: 0.74rem;
    padding: 0.6rem 0.8rem;
  }
}
