/* Demo layout aligned with fibex.su public palette (style.css) */
:root {
  --bg: #f8fafe;
  --bg-alt: #f3f9fc;
  --surface: #ffffff;
  --text: #333333;
  --muted: #737373;
  --accent-green: #39c11a;
  --accent-green-hover: #2fa816;
  --accent-blue: #1d8fcd;
  --accent-blue-bright: #2aaedf;
  --border-soft: #bbddf0;
  --border-medium: #b6daef;
  --demo: #b45309;
  --demo-bg: #fff7ed;
  --radius: 12px;
  --shadow-card: 0 4px 24px rgba(29, 143, 205, 0.12);
  --shadow-footer: 0 0 20px rgba(29, 143, 205, 0.15);
  --font: "Manrope", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

.demo-strip {
  background: var(--demo-bg);
  color: #7c2d12;
  text-align: center;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #fed7aa;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 1px 0 rgba(29, 143, 205, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  margin-right: auto;
}

.logo__img {
  display: block;
  height: 44px;
  width: auto;
}

.logo__tagline {
  display: none;
  font-size: 0.72rem;
  color: var(--muted);
  max-width: 11rem;
  line-height: 1.35;
}

@media (min-width: 640px) {
  .logo__tagline {
    display: block;
  }
}

.logo__mark {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: var(--text);
}

.logo__sub {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-medium);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  position: relative;
}

.nav-toggle::before,
.nav-toggle::after,
.nav-toggle span {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

.nav-toggle::before {
  top: 14px;
}

.nav-toggle span {
  top: 21px;
  display: block;
}

.nav-toggle::after {
  top: 28px;
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.nav a:hover {
  color: var(--accent-green);
}

.btn {
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 4px;
  padding: 0.65rem 1.25rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn--primary {
  background: var(--accent-green);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-green-hover);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--accent-green);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn--outline:hover {
  background: rgba(57, 193, 26, 0.08);
  color: var(--accent-green);
}

.btn--ghost {
  background: var(--accent-green);
  color: #fff;
}

.btn--ghost:hover {
  background: var(--accent-green-hover);
}

.header__cta {
  flex-shrink: 0;
}

.hero {
  padding: 3rem 0 3.5rem;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border-soft);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  color: var(--accent-blue);
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  color: #000;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
  max-width: 36rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.hero__card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-soft);
  border-bottom: 4px solid var(--accent-blue-bright);
  max-width: 320px;
  position: relative;
}

.hero__card p {
  margin: 0 0 0.35rem;
  font-weight: 700;
  color: #000;
}

.hero__card small {
  color: var(--muted);
}

.hero__pulse {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 10px;
  height: 10px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(57, 193, 26, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.65;
  }
}

.section {
  padding: 3.5rem 0;
}

.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.section__title {
  font-size: 1.65rem;
  margin: 0 0 1.5rem;
  color: #000;
}

.section__lead {
  color: var(--muted);
  margin: -0.5rem 0 1.5rem;
  max-width: 40rem;
}

.cards {
  display: grid;
  gap: 1.25rem;
}

.cards--3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .cards--3 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border-soft);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  color: #000;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.link-btn {
  margin-top: 1rem;
  background: none;
  border: none;
  color: var(--accent-blue);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  font-size: 0.9rem;
}

.link-btn:hover {
  color: var(--accent-green);
  text-decoration: underline;
}

.cases {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .cases {
    grid-template-columns: 1fr;
  }
}

.case {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border-soft);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.case h3 {
  margin: 0 0 0.25rem;
  color: #000;
}

.case__meta {
  color: var(--accent-blue);
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
}

.case p {
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tags li {
  font-size: 0.75rem;
  background: rgba(29, 143, 205, 0.1);
  color: var(--accent-blue);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  border: 1px solid var(--border-soft);
}

.news {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 700px) {
  .news {
    grid-template-columns: 1fr;
  }
}

.news__item {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border-soft);
}

.news__item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: #000;
}

.news__item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.news__note {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--demo);
}

.clients__placeholder {
  background: var(--surface);
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  color: var(--muted);
}

.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 800px) {
  .contacts__grid {
    grid-template-columns: 1fr;
  }
}

.contacts__card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
}

.contacts__card h3 {
  margin-top: 0;
  color: #000;
}

.footer {
  margin-top: 1.5rem;
  padding: 2rem 0 2.5rem;
  background: #fff;
  box-shadow: var(--shadow-footer);
  border-top: 1px solid var(--border-soft);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
}

.footer__logo {
  display: block;
  height: 40px;
  width: auto;
  margin-bottom: 0.35rem;
}

.footer__brand p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer__nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.footer__nav a:hover {
  color: var(--accent-green);
}

.footer__muted {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.footer__copy {
  width: 100%;
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    width: 100%;
    order: 10;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav.is-open {
    max-height: 320px;
  }

  .nav__list {
    flex-direction: column;
    padding: 1rem 0;
  }

  .header__cta {
    margin-left: auto;
  }
}
