:root {
  --navy: #1f2f44;
  --navy-deep: #172536;
  --gold: #c6a461;
  --bg: #f7f6f3;
  --surface: #fbfaf7;
  --text: #2b2b2b;
  --muted: #4d5560;
  --line: rgba(31, 47, 68, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.72;
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  color: var(--navy-deep);
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.18;
  font-weight: 600;
}

p {
  margin: 0 0 1.2rem;
}

.container {
  width: min(1140px, 91%);
  margin: 0 auto;
}

.hero-wrap {
  background: var(--navy);
  color: #f8f7f3;
  border-bottom: 1px solid rgba(198, 164, 97, 0.45);
}

.top-nav {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  color: rgba(248, 247, 243, 0.9);
  text-decoration: none;
  font-size: 0.96rem;
  letter-spacing: 0.02em;
}

.menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.menu a {
  color: rgba(248, 247, 243, 0.9);
  text-decoration: none;
  font-size: 0.94rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.12rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.menu a:hover,
.menu a:focus-visible {
  color: #ffffff;
  border-color: rgba(198, 164, 97, 0.85);
}

.hero {
  padding: clamp(5.3rem, 11vh, 8.3rem) 0;
  text-align: center;
  background: radial-gradient(850px 360px at 86% -12%, rgba(255, 255, 255, 0.03), transparent 62%);
}

.hero-inner {
  max-width: 920px;
}

.hero h1 {
  color: #ffffff;
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: 0.01em;
  margin-bottom: 1.05rem;
}

.hero-main {
  margin: 0 auto 0.95rem;
  max-width: 760px;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: rgba(248, 247, 243, 0.93);
}

.hero-sub {
  margin: 0 auto 2rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.18rem;
  color: rgba(228, 218, 198, 0.9);
}

.hero-btn {
  display: inline-block;
  color: #f8f7f3;
  text-decoration: none;
  border: 1px solid rgba(198, 164, 97, 0.75);
  padding: 0.68rem 1.25rem;
  border-radius: 2px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.hero-btn:hover,
.hero-btn:focus-visible {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.section {
  padding: clamp(4rem, 8vw, 6.2rem) 0;
}

.section-soft {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

h2 {
  font-size: clamp(2rem, 3.1vw, 2.8rem);
  margin-bottom: 1.35rem;
}

h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 1px;
  margin-top: 0.72rem;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(198, 164, 97, 0.2) 100%);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.8rem, 4vw, 4rem);
  align-items: start;
}

.intro-text {
  max-width: 760px;
}

.portrait-wrap {
  margin: 0;
}

.portrait {
  width: 100%;
  max-width: 360px;
  display: block;
  margin-left: auto;
  border: 1px solid rgba(31, 47, 68, 0.14);
  box-shadow: 0 18px 34px rgba(23, 37, 54, 0.12);
}

.cards {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.card {
  background: #ffffff;
  border: 1px solid rgba(31, 47, 68, 0.13);
  border-top: 1px solid rgba(198, 164, 97, 0.7);
  padding: 1.25rem 1.2rem;
}

.card h3 {
  font-size: 1.64rem;
  margin-bottom: 0.65rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.contact-text {
  max-width: 620px;
}

.mail-label {
  margin-bottom: 0.1rem;
  color: var(--navy);
  font-weight: 600;
}

.mail-link {
  color: var(--navy-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(198, 164, 97, 0.55);
  font-weight: 600;
}

.mail-link:hover,
.mail-link:focus-visible {
  color: var(--gold);
  border-color: var(--gold);
}

.contact-form {
  background: #ffffff;
  border: 1px solid rgba(31, 47, 68, 0.12);
  padding: 1.15rem;
  display: grid;
  gap: 0.62rem;
}

.contact-form label {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.96rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(31, 47, 68, 0.18);
  background: #fff;
  color: var(--text);
  font: inherit;
  padding: 0.68rem 0.74rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 1px solid rgba(198, 164, 97, 0.7);
  border-color: rgba(198, 164, 97, 0.7);
}

.contact-form button {
  justify-self: start;
  border: 1px solid rgba(198, 164, 97, 0.7);
  background: transparent;
  color: var(--navy-deep);
  padding: 0.62rem 1.1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.contact-form button:hover,
.contact-form button:focus-visible {
  border-color: var(--gold);
}

.site-footer {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 1.3rem 0 1.65rem;
  color: #5e6670;
  font-size: 0.94rem;
}

.site-footer p {
  margin: 0.2rem 0;
}

@media (max-width: 980px) {
  .intro-grid,
  .contact-layout,
  .cards {
    grid-template-columns: 1fr;
  }

  .portrait {
    margin: 0;
    max-width: 420px;
  }
}

@media (max-width: 700px) {
  .nav-inner {
    min-height: 62px;
  }

  .brand {
    display: none;
  }

  .menu {
    width: 100%;
    justify-content: space-between;
    gap: 0.6rem;
  }

  .hero {
    padding: 4.4rem 0 4.8rem;
  }

  .section {
    padding: 3.4rem 0;
  }
}
