:root {
  --ink: #22343a;
  --ink-deep: #17272c;
  --paper: #f3f5f2;
  --white: #ffffff;
  --bronze: #c6a66b;
  --bronze-light: #ddc18b;
  --muted-dark: #637277;
  --muted-light: #b9c3c6;
  --line-dark: rgba(34, 52, 58, 0.18);
  --line-light: rgba(255, 255, 255, 0.2);
  --container: 78rem;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--bronze-light);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  display: grid;
  width: 100%;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 0.25rem var(--gutter);
  border-bottom: 1px solid var(--line-light);
  color: var(--white);
}

.main-nav {
  display: flex;
  grid-column: 1;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(1.25rem, 3vw, 2.75rem);
}

.header-mark {
  display: block;
  grid-column: 2;
  justify-self: center;
  border-radius: 50%;
  text-decoration: none;
}

.header-mark img {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
}

.main-nav a,
.header-call {
  position: relative;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.45rem;
  left: 0;
  height: 1px;
  background: var(--bronze-light);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-call {
  grid-column: 3;
  justify-self: end;
  padding: 0.75rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.52);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.header-call:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(60rem, 100svh);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 43%, rgba(255, 255, 255, 0.055), transparent 24rem),
    radial-gradient(circle at 50% 115%, rgba(198, 166, 107, 0.13), transparent 34rem),
    var(--ink);
  color: var(--white);
  text-align: center;
}

.hero-intro {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  max-width: 76rem;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: clamp(10rem, 18vh, 13rem) var(--gutter) clamp(4rem, 8vh, 7rem);
}

.eyebrow,
.section-label {
  margin: 0 0 1.5rem;
  color: var(--bronze-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero h1,
.license-section h2,
.contacts-section h2 {
  margin: 0;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.hero h1 {
  max-width: 15ch;
  font-size: clamp(3.2rem, 6.5vw, 6.8rem);
  letter-spacing: -0.052em;
  line-height: 0.94;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2.5rem;
}

.button {
  display: inline-flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--bronze-light);
  color: var(--ink-deep);
}

.button-primary:hover {
  background: var(--white);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--white);
}

.button-secondary:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.hero-location {
  display: grid;
  width: 100%;
  max-width: 34rem;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 1rem;
  margin-top: clamp(3rem, 8vh, 6rem);
  padding-top: 1rem;
  border-top: 1px solid var(--line-light);
  text-align: left;
}

.hero-location span {
  color: var(--bronze-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-location p {
  margin: 0;
  color: #d9dfe0;
  font-size: 0.95rem;
}

.contacts-section {
  position: relative;
  display: grid;
  max-width: 100%;
  grid-template-columns: minmax(18rem, 0.78fr) minmax(28rem, 1.22fr);
  gap: clamp(2rem, 5vw, 6rem);
  padding: clamp(5rem, 10vw, 9rem) max(var(--gutter), calc((100vw - var(--container)) / 2));
  background: var(--paper);
}

.contacts-heading h2 {
  max-width: 11ch;
  font-size: clamp(2.6rem, 4.8vw, 5rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.section-label {
  color: #8a7043;
}

.address-block > span {
  color: var(--muted-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.license-section {
  padding: clamp(5rem, 10vw, 9rem) max(var(--gutter), calc((100vw - var(--container)) / 2));
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--ink-deep);
  background-size: 4.5rem 4.5rem;
  color: var(--white);
}

.license-heading {
  display: grid;
  justify-items: center;
  text-align: center;
}

.section-label-light {
  color: var(--bronze-light);
}

.license-heading h2 {
  max-width: 21ch;
  font-size: clamp(2.6rem, 4.7vw, 4.8rem);
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.license-card {
  display: grid;
  grid-template-columns: minmax(17rem, 0.78fr) minmax(26rem, 1.22fr);
  margin-top: clamp(3.5rem, 7vw, 6rem);
  border: 1px solid var(--line-light);
  background: rgba(34, 52, 58, 0.55);
}

.license-identity {
  display: grid;
  min-height: 24rem;
  grid-template-rows: auto 1fr;
  padding: clamp(1.75rem, 4vw, 3.5rem);
  border-right: 1px solid var(--line-light);
}

.license-identity span {
  color: var(--muted-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.license-identity strong {
  align-self: center;
  justify-self: start;
  color: var(--white);
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(3.3rem, 6vw, 6.4rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}

.license-data {
  margin: 0;
  padding: 0 clamp(1.75rem, 4vw, 3.5rem);
}

.license-data div {
  display: grid;
  grid-template-columns: minmax(8rem, 0.75fr) minmax(12rem, 1.25fr);
  gap: 2rem;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--line-light);
}

.license-data div:last-child {
  border-bottom: 0;
}

.license-data dt {
  color: var(--muted-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.license-data dd {
  margin: 0;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  line-height: 1.45;
}

.contacts-heading {
  grid-row: span 2;
}

.contact-links {
  display: grid;
  align-self: start;
}

.contact-item {
  display: grid;
  gap: 0.35rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line-dark);
}

.contact-item:last-child {
  border-bottom: 1px solid var(--line-dark);
}

.contact-item span {
  color: var(--muted-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-item strong {
  width: fit-content;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3.4vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.address-block {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 2rem;
  padding-top: 1.4rem;
}

.address-block address {
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-style: normal;
  line-height: 1.55;
}

.site-footer {
  display: flex;
  min-height: 8rem;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 0.25rem max(var(--gutter), calc((100vw - var(--container)) / 2));
  border-top: 1px solid var(--line-light);
  background: var(--ink);
  color: var(--white);
}

.footer-mark {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
}

@media (max-width: 68rem) {
  .main-nav {
    display: none;
  }

  .contacts-section {
    grid-template-columns: minmax(18rem, 0.7fr) minmax(23rem, 1.3fr);
  }
}

@media (max-width: 50rem) {
  html {
    scroll-padding-top: 5rem;
  }

  .site-header {
    display: flex;
    justify-content: center;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }

  .header-mark img {
    width: 5.75rem;
    height: 5.75rem;
  }

  .header-call {
    position: absolute;
    right: var(--gutter);
    padding: 0.65rem 0.85rem;
  }

  .hero {
    min-height: 44rem;
  }

  .hero-intro {
    min-height: 44rem;
    padding-top: 9.5rem;
    padding-bottom: 4rem;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .contacts-section {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .contacts-heading {
    grid-column: auto;
    grid-row: auto;
  }

  .license-heading,
  .license-card {
    grid-template-columns: 1fr;
  }

  .license-identity {
    min-height: 19rem;
    border-right: 0;
    border-bottom: 1px solid var(--line-light);
  }

  .license-data div {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .address-block {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

@media (max-width: 34rem) {
  .header-call {
    font-size: 0.8rem;
  }

  .hero-intro {
    min-height: 41rem;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 15vw, 4rem);
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-location {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .license-identity strong {
    font-size: clamp(2.7rem, 16vw, 4.6rem);
  }

  .contact-item strong {
    font-size: 1.45rem;
  }

  .site-footer {
    text-align: center;
  }

  .footer-mark {
    width: 5.75rem;
    height: 5.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
