* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #20242a;
  background: #f5f6f7;
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

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

img {
  max-width: 100%;
}

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

.narrow {
  width: min(840px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(245, 246, 247, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #d9dde2;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
  color: #4b5563;
}

.nav a {
  transition: color 0.2s ease;
}

.nav a:hover {
  color: #20242a;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid #d9dde2;
  border-radius: 12px;
  background: #ffffff;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #20242a;
  border-radius: 2px;
}

.hero {
  padding: 72px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: #5b6f86;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

h2 {
  margin: 0 0 20px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.3;
}

p {
  margin: 0 0 16px;
}

.lead {
  margin: 0 0 14px;
  font-size: clamp(22px, 3vw, 28px);
  color: #2a3340;
  line-height: 1.35;
}

.hero-description {
  margin: 0 0 30px;
  font-size: 18px;
  color: #4b5563;
  max-width: 760px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 600;
  border: 1px solid #cfd6dd;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(25, 35, 49, 0.08);
}

.button-primary {
  background: #31465f;
  color: #ffffff;
  border-color: #31465f;
}

.button-secondary {
  background: #ffffff;
  color: #20242a;
}

.hero-facts {
  display: grid;
  gap: 8px;
  color: #4b5563;
  font-size: 15px;
}

.hero-photo {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid #d9dde2;
  background: #ffffff;
  box-shadow: 0 18px 60px rgba(25, 35, 49, 0.08);
}

.section {
  padding: 88px 0;
}

.section-alt {
  background: #eef1f4;
  border-top: 1px solid #d9dde2;
  border-bottom: 1px solid #d9dde2;
}

.section-intro {
  margin: 0 0 28px;
  color: #4b5563;
  font-size: 18px;
}

.section-note {
  margin-top: 24px;
  color: #4b5563;
}

.profile-note {
  margin-top: 26px;
  padding: 22px 24px;
  background: #ffffff;
  border: 1px solid #d9dde2;
  border-radius: 18px;
  color: #4b5563;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: #ffffff;
  border: 1px solid #d9dde2;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(25, 35, 49, 0.03);
}

.card p:last-child {
  margin-bottom: 0;
}

.list {
  margin: 0;
  padding-left: 22px;
}

.list li + li {
  margin-top: 10px;
}

.section-contacts {
  padding-bottom: 104px;
}

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

.contact-name {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
}

.contact-link {
  color: #31465f;
  font-weight: 500;
  word-break: break-word;
}

.contact-link:hover {
  text-decoration: underline;
}

.contact-box {
  background: #ffffff;
  border: 1px solid #d9dde2;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(25, 35, 49, 0.03);
}

.contact-box-title {
  font-size: 20px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 12px;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-photo {
    max-width: 520px;
    margin: 0 auto;
  }

  .contacts-grid,
  .grid-two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container,
  .narrow {
    width: min(100% - 32px, 1120px);
  }

  .header-row {
    min-height: 68px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav {
    position: fixed;
    top: 69px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #ffffff;
    border: 1px solid #d9dde2;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(25, 35, 49, 0.12);
    overflow: hidden;
  }

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

  .nav a {
    width: 100%;
    padding: 16px 18px;
    border-bottom: 1px solid #eef1f4;
  }

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

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

  .section {
    padding: 64px 0;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }
}
