:root {
  --navy: #071936;
  --navy-soft: #102746;
  --gold: #bd8a3c;
  --gold-dark: #a87931;
  --ivory: #fbf8f1;
  --warm: #f4eee3;
  --line: rgba(7, 25, 54, 0.12);
  --gold-line: rgba(189, 138, 60, 0.34);
  --muted: #5c6170;
  --shadow: 0 24px 70px rgba(52, 38, 18, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--navy);
  background: var(--ivory);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

body::selection {
  color: #fff;
  background: var(--gold-dark);
}

img,
svg {
  display: block;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

[id] {
  scroll-margin-top: 104px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 88px;
  padding: 10px clamp(24px, 5vw, 78px);
  background: rgba(251, 248, 241, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand img {
  width: 90px;
  height: 70px;
  object-fit: contain;
}

.site-header nav {
  display: flex;
  justify-content: center;
  gap: clamp(22px, 3.2vw, 52px);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1;
}

.site-header nav a {
  position: relative;
  padding: 16px 0;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 180ms ease;
}

.site-header nav a:hover::after,
.site-header nav a:focus-visible::after {
  width: 100%;
}

.phone-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 22px;
  color: var(--gold-dark);
  border: 1px solid var(--gold);
  font-weight: 700;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.phone-button:hover,
.phone-button:focus-visible {
  color: #fff;
  background: var(--gold);
  transform: translateY(-1px);
}

.phone-button svg,
.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  display: grid;
  grid-template-columns: minmax(560px, 1fr) minmax(0, 1fr);
  min-height: 620px;
  overflow: hidden;
  background:
    linear-gradient(90deg, var(--ivory) 0%, var(--ivory) 42%, rgba(251, 248, 241, 0.68) 52%, rgba(251, 248, 241, 0) 66%),
    #f5efe4;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 660px;
  padding: clamp(54px, 7vw, 96px) clamp(22px, 2.6vw, 38px) clamp(54px, 7vw, 96px) clamp(24px, 5vw, 78px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.28em;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  margin-bottom: 18px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.02;
}

h1 {
  font-size: clamp(50px, 4.55vw, 66px);
}

h2 {
  font-size: clamp(30px, 3vw, 48px);
}

h3 {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.2;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 540px;
  margin: 0 0 28px;
  color: #2f3747;
  font-size: clamp(17px, 1.35vw, 21px);
}

.gold-rule {
  width: 64px;
  height: 1px;
  margin: 6px 0 24px;
  background: var(--gold);
}

.hero-image {
  position: relative;
  min-height: 620px;
  margin: 0;
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: 26%;
  background: linear-gradient(90deg, rgba(251, 248, 241, 0.92), rgba(251, 248, 241, 0));
  pointer-events: none;
}

.hero-image picture,
.hero-image img {
  width: 100%;
  height: 100%;
}

.hero-image img {
  object-fit: cover;
  object-position: center;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

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

.button.primary {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--navy-soft);
}

.button.secondary {
  color: var(--gold-dark);
  background: rgba(255, 255, 255, 0.46);
  border-color: var(--gold);
}

.button.secondary:hover,
.button.secondary:focus-visible,
.button.gold-fill {
  color: #fff;
  background: var(--gold);
  border-color: var(--gold);
}

.button.gold-fill:hover,
.button.gold-fill:focus-visible {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 clamp(24px, 5vw, 78px);
  background: #fffdf8;
  border-bottom: 1px solid var(--line);
}

.trust-bar article {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 72px;
  padding: 16px 22px;
  border-right: 1px solid var(--line);
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
}

.trust-bar article:last-child {
  border-right: 0;
}

.trust-bar svg,
.services-list svg,
.footer-signature svg {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  color: var(--gold);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(420px, 0.72fr);
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}

.services-block,
.booking-block {
  padding: 52px clamp(24px, 5vw, 78px);
}

.booking-block {
  padding-left: clamp(24px, 4vw, 54px);
  padding-right: clamp(24px, 4vw, 54px);
  border-left: 1px solid var(--line);
  background:
    radial-gradient(circle at 90% 12%, rgba(189, 138, 60, 0.12), transparent 30%),
    rgba(255, 253, 248, 0.86);
}

.services-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.services-list article {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 26px 18px 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid var(--line);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.services-list article:hover {
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--gold-line);
  transform: translateY(-3px);
}

.services-list svg {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
}

.services-list p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.services-list span {
  margin-top: auto;
  color: var(--gold-dark);
  font-size: 24px;
  line-height: 1;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.text-link span {
  font-size: 22px;
  line-height: 1;
  transition: transform 180ms ease;
}

.text-link:hover span,
.text-link:focus-visible span {
  transform: translateX(4px);
}

.booking-block > p:not(.eyebrow) {
  max-width: 500px;
  color: var(--muted);
  font-size: 14px;
}

.calendar-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 14px;
  max-width: 100%;
  margin: 28px 0 22px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.calendar-head {
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.calendar-head button {
  width: 30px;
  height: 30px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 26px;
}

.calendar-head strong,
.slots span {
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  grid-column: 1;
  color: var(--navy);
  text-align: center;
  font-size: 11px;
}

.calendar-grid span {
  color: var(--muted);
  font-weight: 900;
}

.calendar-grid b,
.calendar-grid i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: auto;
  border-radius: 50%;
  font-style: normal;
  font-weight: 500;
}

.calendar-grid i {
  color: #a8a8a8;
}

.calendar-grid .selected {
  color: #fff;
  background: var(--navy);
}

.slots {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  gap: 10px;
  align-content: start;
}

.slots button {
  min-height: 34px;
  padding: 0 8px;
  color: var(--navy);
  background: #fbfaf6;
  border: 1px solid var(--line);
  box-shadow: 0 5px 14px rgba(7, 25, 54, 0.06);
}

.slots .active {
  color: #fff;
  background: var(--navy);
}

.about-strip {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1.25fr;
  gap: clamp(28px, 4vw, 70px);
  align-items: center;
  padding: 44px clamp(24px, 5vw, 78px);
  background:
    linear-gradient(90deg, rgba(251, 248, 241, 0.97) 0%, rgba(251, 248, 241, 0.96) 62%, rgba(251, 248, 241, 0.66) 100%),
    url("../images/notariat-light-hero-960.webp") right center / auto 120% no-repeat;
  border-bottom: 1px solid var(--line);
}

.about-strip > div:nth-child(2) {
  padding-right: clamp(22px, 3vw, 54px);
  border-right: 1px solid var(--line);
}

.about-strip p,
.faq-strip p {
  color: var(--muted);
}

blockquote {
  margin: 0;
  padding-left: clamp(22px, 3vw, 46px);
}

blockquote::before {
  content: "“";
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 68px;
  line-height: 0.6;
}

blockquote p {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(21px, 1.6vw, 28px);
  font-style: italic;
  line-height: 1.38;
}

blockquote footer {
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

.faq-strip {
  padding: 44px clamp(24px, 5vw, 78px);
  background: #fffdf8;
  border-bottom: 1px solid var(--line);
}

.faq-strip > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.faq-strip article {
  padding-top: 20px;
  border-top: 1px solid var(--gold-line);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(110px, 0.6fr) 1.25fr 0.9fr 1fr 1.45fr;
  gap: clamp(24px, 4vw, 58px);
  padding: 36px clamp(24px, 5vw, 78px) 34px;
  background: var(--ivory);
}

.footer-logo img {
  width: 104px;
  height: 104px;
  object-fit: contain;
}

.site-footer h3 {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-footer a,
.site-footer span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.footer-signature {
  border-left: 1px solid var(--line);
  padding-left: clamp(22px, 3vw, 42px);
}

.footer-signature svg {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
}

.footer-signature strong,
.footer-signature small {
  display: block;
}

.footer-signature strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
}

.footer-signature small {
  margin-top: 22px;
  color: var(--muted);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .site-header nav {
    gap: 22px;
    font-size: 14px;
  }

  .main-grid,
  .about-strip,
  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .services-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .booking-block {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .footer-logo,
  .footer-signature {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
    min-height: 78px;
  }

  .site-header nav {
    display: none;
  }

  .brand img {
    width: 76px;
    height: 58px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-copy {
    max-width: none;
    padding-top: 54px;
    padding-bottom: 34px;
  }

  .hero-image {
    min-height: 380px;
  }

  .hero-image::before {
    width: 100%;
    height: 18%;
    background: linear-gradient(180deg, var(--ivory), rgba(251, 248, 241, 0));
  }

  .hero-image img {
    object-position: center;
  }

  .trust-bar,
  .main-grid,
  .about-strip,
  .faq-strip > div,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .trust-bar {
    padding: 0;
  }

  .trust-bar article {
    justify-content: flex-start;
    min-height: 64px;
    padding: 16px 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .about-strip {
    background: var(--ivory);
  }

  .about-strip > div:nth-child(2),
  .footer-signature {
    border-right: 0;
    border-left: 0;
    padding-left: 0;
    padding-right: 0;
  }

  blockquote {
    padding-left: 0;
  }

  .footer-logo,
  .footer-signature {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 14px;
  }

  [id] {
    scroll-margin-top: 80px;
  }

  .site-header {
    padding: 10px 18px;
  }

  .phone-button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }

  .phone-button svg {
    display: none;
  }

  h1 {
    font-size: 43px;
  }

  h2 {
    font-size: 32px;
  }

  .hero-copy,
  .services-block,
  .booking-block,
  .about-strip,
  .faq-strip,
  .site-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .button-row,
  .button {
    width: 100%;
  }

  .services-list {
    grid-template-columns: 1fr;
  }

  .services-list article {
    min-height: auto;
    align-items: flex-start;
    text-align: left;
  }

  .calendar-card {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .slots {
    grid-column: auto;
    grid-row: auto;
  }

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

  .slots span {
    grid-column: 1 / -1;
  }
}
