:root {
  /* Основные цвета из логотипа */
  --primary: #0556db;
  --primary-dark: #043ea0;
  --secondary: #071c4b;
  --accent-light: #ced9e9;
  --bg-white: #fefefe;
  --bg-alt: #f7faff; /* чуть светлее #ced9e9 */
  --text: #1a1a2e;
  --text-light: #4a4a6a;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(7, 28, 75, 0.08);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg-white);
  line-height: 1.7;
  scroll-behavior: smooth;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- Шапка ----- */
.header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 12px rgba(7, 28, 75, 0.06);
  z-index: 100;
  border-bottom: 1px solid rgba(206, 217, 233, 0.3);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--secondary);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--primary);
}

.nav-list {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-list a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 1rem;
  transition: color var(--transition), border-bottom 0.2s;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
}

.nav-list a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.burger span {
  width: 26px;
  height: 3px;
  background: var(--secondary);
  border-radius: 3px;
  transition: var(--transition);
}

/* ----- Hero ----- */
.hero {
  padding: 120px 0 100px;
  background: linear-gradient(145deg, #f0f5ff 0%, var(--bg-white) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(5, 86, 219, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--secondary);
  margin-bottom: 1.2rem;
  letter-spacing: -1px;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 650px;
  margin: 0 auto 2.2rem;
}

.btn {
  display: inline-block;
  padding: 16px 38px;
  background: var(--primary);
  color: #fff;
  border-radius: 60px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: background var(--transition), transform var(--transition), box-shadow 0.2s;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(5, 86, 219, 0.25);
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(5, 86, 219, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  box-shadow: inset 0 0 0 2px var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(5, 86, 219, 0.35);
}

/* ----- Секции ----- */
.section {
  padding: 90px 0;
}

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

.section-title {
  font-size: 2.4rem;
  text-align: center;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  max-width: 620px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
}

/* ----- О нас (about) ----- */
.about-content {
  display: flex;
  gap: 4rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.about-text {
  flex: 1 1 480px;
}

.about-text p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  color: var(--text);
}

.about-text strong {
  color: var(--secondary);
}

.about-image {
  flex: 1 1 400px;
  background: linear-gradient(145deg, var(--bg-alt), #e8edf5);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.about-image:hover {
  transform: scale(1.01);
}

.logo-site {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* ----- Портфолио (карточки) ----- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.portfolio-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
  border: 1px solid rgba(206, 217, 233, 0.3);
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(7, 28, 75, 0.12);
}

.card-img {
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.9rem;
  overflow: hidden;
  padding: 12px;
}

.portfolio-card.portrait .card-img {
  height: 400px;
}

.portfolio-card.landscape .card-img {
  height: 280px;
}

.card-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.portfolio-card:hover .card-img img {
  transform: scale(1.02);
}

.card-body {
  padding: 1.8rem 1.5rem 1.5rem;
}

.card-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.card-body p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.5;
}

.card-link-text {
  display: inline-block;
  margin-top: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: margin-left var(--transition);
}

.portfolio-card:hover .card-link-text {
  margin-left: 6px;
}

/* ----- Контакты ----- */
.contact-info {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}

.contact-info p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.social-links .btn {
  min-width: 140px;
  text-align: center;
}

.social-links .btn-telegram {
  background: #2aabee;
}

.social-links .btn-vk {
  background: #0077ff;
}

.social-links .btn-email {
  background: #6c7a8d;
}

.social-links .btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* ----- Футер ----- */
.footer {
  background: var(--secondary);
  color: #ced9e9;
  padding: 2.5rem 0;
  text-align: center;
  border-top: 4px solid var(--primary);
}

.footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.footer a:hover {
  text-decoration: underline;
}

/* ----- Адаптивность (мобильные) ----- */
@media (max-width: 768px) {
  .nav-list {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.2rem;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-150%);
    transition: transform var(--transition);
    z-index: 99;
    border-bottom: 1px solid #eee;
  }

  .nav-list.active {
    transform: translateY(0);
  }

  .burger {
    display: flex;
  }

  .about-content {
    flex-direction: column;
    gap: 2rem;
  }

  .about-image {
    width: 100%;
  }

  .hero {
    padding: 80px 0 60px;
  }

  .section {
    padding: 60px 0;
  }

  .social-links .btn {
    min-width: 120px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .btn {
    padding: 14px 28px;
    font-size: 0.95rem;
  }

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