:root {
  --bg: #f8f7f4;
  --surface: #ffffff;
  --text: #1f1f1f;
  --muted: #666666;
  --soft: #8a8a8a;
  --border: #e7e4de;
  --accent: #2f5d73;
  --accent-light: #eef4f7;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-button: 0 8px 18px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  line-height: 1.7;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

header {
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--accent);
}

.logo,
h1.logo {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.logo a {
  text-decoration: none;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.hero {
  max-width: 860px;
  margin: 0 auto;
  padding: 110px 32px 90px;
}

.content-narrow {
  max-width: 780px;
}

.tagline {
  font-size: 0.92rem;
  color: var(--soft);
  margin-bottom: 22px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h2 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1.08;
  margin: 0 0 28px;
  letter-spacing: -0.04em;
}

.intro {
  font-size: 1.28rem;
  color: #4c4c4c;
  max-width: 760px;
  margin: 0 0 34px;
  line-height: 1.75;
}

.hero p {
  font-size: 1.06rem;
  color: #2d2d2d;
  line-height: 1.9;
  margin: 0 0 24px;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}

.hero p:last-of-type {
  margin-bottom: 0;
}

.hero a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.hero a:hover {
  border-bottom-color: var(--accent);
}

.buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 38px 0 54px;
}

.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--text);
  color: white;
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  background: #111111;
}

.btn-secondary {
  background: #ece9e3;
  color: var(--text);
}

.btn-secondary:hover {
  background: #e3dfd7;
}

.home-section {
  margin-top: 18px;
  padding-top: 10px;
}

.home-section h3 {
  margin-bottom: 18px;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.focus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.focus-tags span {
  display: inline-block;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.97rem;
  color: #444;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.contact-links {
  margin-top: 30px;
}

.contact-links p {
  margin-bottom: 16px;
}

.contact-links a {
  color: var(--accent);
  text-decoration: none;
}

.contact-links a:hover {
  text-decoration: underline;
}

footer {
  text-align: center;
  padding: 34px 20px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 80px;
  font-size: 0.96rem;
}

@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    gap: 16px;
    padding: 20px 24px;
  }

  .nav ul {
    justify-content: center;
    gap: 18px;
  }

  .hero {
    padding: 82px 24px 64px;
  }

  .hero h2 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .intro {
    font-size: 1.08rem;
  }

  .hero p {
    font-size: 1rem;
    line-height: 1.82;
  }

  .logo,
  h1.logo {
    font-size: 1.6rem;
  }

  .buttons {
    margin-top: 28px;
    margin-bottom: 42px;
  }
}
