:root {
  --bg: #ffffff;
  --bg-muted: #f4f7fb;
  --text: #152033;
  --muted: #667085;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --border: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 18px 50px rgba(21, 32, 51, 0.08);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 15px;
}

.nav a:hover {
  color: var(--primary);
}

.menu-button {
  display: none;
  border: 0;
  background: var(--bg-muted);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 22px;
  cursor: pointer;
}

.hero {
  padding: 88px 0;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

h3 {
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-text {
  max-width: 640px;
  color: var(--muted);
  font-size: 19px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s ease;
}

.button-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.28);
}

.button-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.button-secondary {
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
}

.button-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hero-card,
.card,
.portfolio-item,
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 28px;
}

.avatar-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.85), rgba(14, 165, 233, 0.78)),
    #dbeafe;
  color: white;
  font-size: 32px;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
}

.hero-card ul {
  padding-left: 20px;
  color: var(--muted);
}

.section {
  padding: 84px 0;
}

.section-muted {
  background: var(--bg-muted);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 36px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.about-grid p {
  color: var(--muted);
  font-size: 18px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stat {
  padding: 24px;
  border-radius: 20px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
}

.stat strong {
  display: block;
  color: var(--primary);
  font-size: 34px;
  line-height: 1;
  margin-bottom: 10px;
}

.stat span {
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  padding: 28px;
}

.card p {
  color: var(--muted);
}

.price {
  display: inline-block;
  margin-top: 12px;
  font-weight: 800;
  color: var(--primary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.portfolio-item {
  overflow: hidden;
}

.portfolio-item h3,
.portfolio-item p {
  padding-left: 22px;
  padding-right: 22px;
}

.portfolio-item p {
  padding-bottom: 22px;
  color: var(--muted);
}

.portfolio-image {
  height: 190px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  background: linear-gradient(135deg, #dbeafe, #e0f2fe);
  color: var(--primary);
  font-weight: 800;
}

.section-contacts {
  background: #0f172a;
  color: white;
}

.section-contacts .eyebrow {
  color: #93c5fd;
}

.section-contacts p {
  color: #cbd5e1;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.contact-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.contact-card a,
.contact-card p {
  display: block;
  color: white;
  margin-bottom: 12px;
}

.contact-card a:hover {
  color: #93c5fd;
}

.site-footer {
  padding: 26px 0;
  background: #070b14;
  color: #cbd5e1;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: white;
}

@media (max-width: 860px) {
  .nav {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 12px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 12px;
  }

  .menu-button {
    display: inline-flex;
  }

  .hero {
    padding: 56px 0;
  }

  .hero-grid,
  .about-grid,
  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .cards,
  .portfolio-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 58px 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
