:root {
  --navy: #0c2344;
  --navy-deep: #07182f;
  --blue: #2fa8e8;
  --blue-soft: #eaf6fd;
  --text: #233044;
  --muted: #64748b;
  --line: #dbe7ef;
  --white: #ffffff;
  --soft-bg: #f5f8fa;
  --shadow: 0 24px 70px rgba(12, 35, 68, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(219, 231, 239, 0.8);
}

.nav-wrapper {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  width: 230px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

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

.nav a:hover {
  color: var(--blue);
}

.nav-button {
  padding: 11px 18px;
  border: 1px solid var(--navy);
  border-radius: 999px;
}

.nav-button:hover {
  background: var(--navy);
  color: var(--white) !important;
}

.mobile-menu-button {
  display: none;
  background: none;
  border: 0;
  font-size: 28px;
  color: var(--navy);
  cursor: pointer;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 112px 0 96px;
  background:
    radial-gradient(circle at 84% 18%, rgba(47, 168, 232, 0.18), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f7fbfe 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -180px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(47, 168, 232, 0.08);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}

.eyebrow.light {
  color: #8fd6ff;
}

h1,
h2,
h3 {
  font-family: 'Libre Baskerville', serif;
  color: var(--navy);
  line-height: 1.14;
}

h1 {
  font-size: clamp(44px, 6vw, 76px);
  max-width: 780px;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.035em;
}

h3 {
  font-size: 23px;
  margin-bottom: 14px;
}

.hero-text {
  margin-top: 24px;
  max-width: 640px;
  font-size: 19px;
  color: var(--muted);
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 0;
}

.button.primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(12, 35, 68, 0.18);
}

.button.primary:hover {
  background: var(--blue);
  transform: translateY(-2px);
}

.button.secondary {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--line);
}

.button.secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

.hero-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 42px;
  box-shadow: var(--shadow);
  position: relative;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(47, 168, 232, 0.18);
  border-radius: 22px;
  pointer-events: none;
}

.leaf-mark {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--white);
  font-size: 46px;
  margin-bottom: 30px;
}

.hero-card h2 {
  font-size: 32px;
  margin-bottom: 18px;
}

.hero-card p,
.section p,
.portfolio-box p,
.contact-section p {
  color: var(--muted);
  font-size: 17px;
}

.section {
  padding: 96px 0;
}

.intro-section {
  background: var(--white);
}

.two-column {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.two-column p + p,
.philosophy-grid p + p {
  margin-top: 18px;
}

.soft-bg {
  background: var(--soft-bg);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px;
  min-height: 270px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(12, 35, 68, 0.1);
}

.card-number {
  display: inline-block;
  color: var(--blue);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.12em;
  margin-bottom: 28px;
}

.card p {
  color: var(--muted);
  font-size: 15.5px;
}

.dark-section {
  background:
    linear-gradient(135deg, rgba(47, 168, 232, 0.12), transparent 34%),
    var(--navy-deep);
}

.dark-section h2,
.dark-section p {
  color: var(--white);
}

.dark-section p {
  opacity: 0.84;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: start;
}

.portfolio-box {
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 60px;
  background:
    radial-gradient(circle at 90% 20%, rgba(47, 168, 232, 0.12), transparent 30%),
    var(--white);
  box-shadow: var(--shadow);
}

.portfolio-box p {
  max-width: 760px;
  margin: 22px 0 30px;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: start;
}

.contact-grid > div p {
  margin-top: 18px;
  max-width: 460px;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 34px;
  box-shadow: 0 20px 55px rgba(12, 35, 68, 0.09);
}

.contact-form label {
  display: block;
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 18px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 15px;
  font: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 168, 232, 0.12);
}

.full-width {
  width: 100%;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  min-height: 1em;
}

.form-status.ok {
  color: #137a3d;
}

.form-status.err {
  color: #b3261e;
}

button[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.site-footer {
  padding: 34px 0;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.footer-logo {
  width: 170px;
}

@media (max-width: 980px) {
  .hero-grid,
  .two-column,
  .philosophy-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding-top: 80px;
  }
}

@media (max-width: 760px) {
  .nav-wrapper {
    min-height: 78px;
  }

  .logo {
    width: 190px;
  }

  .mobile-menu-button {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 20px;
    right: 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .nav.open {
    display: flex;
  }

  .nav-button {
    text-align: center;
  }

  .hero {
    padding: 70px 0 70px;
  }

  .section {
    padding: 72px 0;
  }

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

  .hero-card,
  .portfolio-box,
  .contact-form {
    padding: 28px;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}
