/* ============================================
   Intett v4.1 — Styles
   ============================================ */

/* --- Variables --- */
:root {
  --bg: #eef2f7;
  --bg-2: #f6f8fb;
  --white: rgba(255, 255, 255, 0.92);
  --soft: rgba(248, 250, 252, 0.88);
  --line: rgba(16, 24, 32, 0.1);
  --line-soft: rgba(16, 24, 32, 0.08);
  --text: #101820;
  --muted: #5e6b79;
  --accent: #0f56ff;
  --accent-soft: rgba(15, 86, 255, 0.08);
  --dark: #0f1720;
  --dark-line: rgba(255, 255, 255, 0.08);
  --container: 1180px;
  --header-bg: rgba(243, 246, 250, 0.92);
}

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  -webkit-font-smoothing: antialiased;
}

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

/* --- Container --- */
.container {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(16, 24, 32, 0.06);
}

.header-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand-shell {
  display: inline-flex;
  align-items: center;
  width: 360px;
  height: 80px;
  overflow: hidden;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  margin-left: -6px;
}

/* --- Navigation --- */
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.site-nav .nav-cta {
  color: var(--accent);
  font-weight: 600;
}

/* --- Burger (mobile) --- */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border: none;
  background: none;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.burger-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger-open span:nth-child(2) {
  opacity: 0;
}

.burger-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Kicker --- */
.kicker,
.kicker-dark {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.kicker {
  color: var(--accent);
  border: 1px solid rgba(15, 86, 255, 0.14);
  background: rgba(255, 255, 255, 0.7);
}

.kicker-dark {
  color: #c4d4ff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity 0.2s, transform 0.2s;
}

.btn:hover {
  opacity: 0.88;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
}

/* --- Hero --- */
.hero {
  padding: 32px 0 32px;
}

.hero-main h1 {
  margin: 14px 0 0;
  max-width: 820px;
  font-size: clamp(2.6rem, 4.8vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-text {
  max-width: 720px;
  margin-top: 16px;
  font-size: 1.04rem;
  color: var(--muted);
  line-height: 1.65;
}

.hero-theses {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-theses li {
  position: relative;
  padding-left: 20px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}

.hero-theses li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.5;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 22px;
  flex-wrap: wrap;
}

/* --- Architecture strip --- */
.architecture-strip {
  padding: 0 0 48px;
}

.architecture-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.arch-card {
  min-height: 136px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  backdrop-filter: blur(10px);
}

.arch-card-accent {
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--white) 100%);
}

.arch-card span {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.arch-card strong {
  display: block;
  font-size: 1.04rem;
  line-height: 1.35;
}

/* --- Sections --- */
.section {
  padding: 88px 0;
}

.section-white {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
}

.section-soft {
  background: rgba(247, 249, 252, 0.82);
  backdrop-filter: blur(10px);
}

.section-dark {
  background: linear-gradient(180deg, rgba(15, 23, 32, 0.96) 0%, rgba(12, 20, 29, 0.98) 100%);
  color: #eef3fb;
}

.top-border {
  border-top: 1px solid rgba(16, 24, 32, 0.06);
}

.top-border-dark {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.section-intro {
  max-width: 620px;
}

.section-stack {
  display: grid;
  gap: 34px;
}

.section-header.narrow {
  max-width: 620px;
}

.section-intro h2,
.section-header h2,
.cta-block h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.section-intro p,
.section-header p {
  color: var(--muted);
  line-height: 1.7;
}

/* --- Approach --- */
.approach-list {
  border-top: 1px solid var(--line-soft);
}

.list-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
}

.list-index {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.list-item h3 {
  margin: 0 0 10px;
  font-size: 1.14rem;
  line-height: 1.35;
}

.list-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* --- Services (3x2 grid) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card {
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.service-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.94rem;
}

/* --- Results --- */
.results-panel {
  border-top: 1px solid var(--line-soft);
}

.result-line {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
}

.result-line span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.result-line p {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  line-height: 1.5;
}

/* --- Team & Expertise --- */
.team-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-card {
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.stat-label {
  font-size: 0.88rem;
  color: var(--muted);
}

.expertise-block h3 {
  margin: 0 0 16px;
  font-size: 1.08rem;
  font-weight: 600;
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--white);
  border: 1px solid var(--line-soft);
  color: var(--text);
}

.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.expertise-tag {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--accent-soft);
  border: 1px solid rgba(15, 86, 255, 0.12);
  color: var(--text);
}

/* --- Principles --- */
.light h2,
.light p {
  color: #eef3fb;
}

.light p {
  color: #aab4c2;
}

.principle-list {
  border-top: 1px solid var(--dark-line);
}

.principle-row {
  padding: 22px 0;
  border-bottom: 1px solid var(--dark-line);
}

.principle-row h3 {
  margin: 0 0 10px;
  font-size: 1.14rem;
  line-height: 1.35;
  color: #eef3fb;
}

.principle-row p {
  margin: 0;
  color: #aab4c2;
  line-height: 1.7;
}

/* --- CTA --- */
.cta-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.cta-block p {
  color: var(--muted);
  line-height: 1.7;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: var(--accent);
}

.form-input::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-submit {
  border: none;
  cursor: pointer;
  font-family: inherit;
  align-self: flex-start;
}

.form-hint {
  font-size: 0.84rem;
  color: var(--muted);
}

.form-hint a {
  color: var(--accent);
  text-decoration: none;
}

.form-hint a:hover {
  text-decoration: underline;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  width: 120px;
  height: 36px;
  object-fit: contain;
  object-position: left center;
}

.footer-copy {
  font-size: 0.84rem;
  color: var(--muted);
}

.footer-contacts {
  display: flex;
  gap: 24px;
}

.footer-contacts a {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contacts a:hover {
  color: var(--text);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1080px) {
  .section-grid,
  .cta-block {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .architecture-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .header-inner {
    min-height: auto;
    padding: 16px 0;
  }

  /* Mobile nav */
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--header-bg);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
  }

  .site-nav.nav-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .burger {
    display: flex;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 48px 0 32px;
  }

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

  .architecture-row {
    grid-template-columns: 1fr;
  }

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

}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .brand-shell {
    width: 180px;
    height: 48px;
  }

  .hero-main h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .form-submit {
    align-self: stretch;
    width: 100%;
  }

  .list-item,
  .result-line {
    grid-template-columns: 1fr;
    gap: 10px;
  }

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

  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
