:root {
    --bg-main: #f8fafc;        /* основной фон сайта */
    --bg-section: #ffffff;    /* фон карточек / блоков */
    --bg-soft: #f1f5f9;       /* альтернативный фон секций */
  
    --text-color: #0f172a;    /* основной текст */
    --text-muted: #475569;    /* вторичный текст */
  
    --accent: #2563eb;        /* основной акцент (синий) */
    --nav-height: 72px;
  }

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

body {
    background: var(--bg-main);
    color: var(--text-color);
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
  }

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 96px 24px;
  }
  
  .section.light {
    background: var(--bg-main);
  }
  
  .section.white {
    background: var(--bg-section);
  }
  
  .section.soft {
    background: var(--bg-soft);
  }

  h1, h2, h3 {
    color: #020617;
  }
  
  p {
    color: var(--text-muted);
  }

/* ================= HEADER ================= */
.header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
  
    height: 72px; /* ← ВАЖНО */
    background: var(--nav-bg);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--nav-border);
  
    transition: background 0.4s ease, border 0.4s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
  
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 32px;
    transform: scale(2.0);
    width: auto;
    transform-origin: left center;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  
  .nav-logo:hover img {
    transform: scale(1.35);
    opacity: 0.9;
  }

nav a {
    margin-left: 20px;
    font-size: 0.95rem;
}

.nav-menu {
    display: flex;
    gap: 28px;
  }
  
  .nav-menu a {
    position: relative;
    text-decoration: none;
    color: var(--text-color);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
  
    transition: color 0.3s ease;
  }

  .navbar.scrolled {
    background: var(--nav-bg-scrolled);
    border-bottom: 1px solid transparent;
  }

  .nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
  }
  
  .nav-menu a:hover {
    color: var(--accent);
  }
  
  .nav-menu a:hover::after {
    width: 100%;
    box-shadow: 0 0 8px rgba(79, 124, 255, 0.6);
  }

/* ================= HERO ================= */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh; /* ВСЯ ВЫСОТА ЭКРАНА */
    background: var(--bg-main);
    overflow: hidden;
    padding-top: var(--nav-height);
  
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .hero-content {
    max-width: 1200px;
    padding: 0 24px;
    text-align: center;
    z-index: 2;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    line-height: 1.15;
    margin-bottom: 24px;
  }
  
  .hero p {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    max-width: 720px;
    margin: 0 auto 40px;
    color: var(--text-muted);
  }

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn {
    padding: 14px 30px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
  }
  
  .btn.primary {
    background: var(--accent);
    color: #fff;
  }
  
  .btn.secondary {
    border: 1px solid #cbd5f5;
    color: #1e3a8a;
  }

  .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
  
    background:
      linear-gradient(
        180deg,
        rgba(248,250,252,0.95) 0%,
        rgba(248,250,252,0.85) 40%,
        rgba(248,250,252,1) 100%
      ),
      url("assets/images/hero-bg.webp");
  
    background-size: cover;
    background-position: center;
  }

/* ================= SECTIONS ================= */
.section {
    padding: 80px 0;
}

.section.light {
    background: #f9fafb;
}

.section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

/* ================= SERVICES ================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 25px;
}

.service-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.service-card h3 {
    margin-bottom: 10px;
}

/* ================= PROJECTS ================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.project-card {
    padding: 40px;
    text-align: center;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
}

/* ================= FOOTER ================= */
.footer {
    background: #0f172a;
    color: #ffffff;
    padding: 40px 0;
    text-align: center;
    font-size: 0.85rem;
}

.footer a {
    color: #93c5fd;
}