:root {
  --ink: #21120d;
  --ink-soft: #352019;
  --brown: #61331d;
  --copper: #a85d1b;
  --gold: #d7a34f;
  --gold-light: #f0d6a5;
  --cream: #f5efe6;
  --paper: #fffdf9;
  --white: #ffffff;
  --muted: #746760;
  --line: rgba(48, 26, 17, 0.14);
  --radius-lg: 34px;
  --radius-md: 22px;
  --container: 1180px;
  --shadow: 0 28px 80px rgba(43, 22, 14, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

h1,
h2,
h3,
.brand-text strong,
.hero-phones strong,
.contact-list strong,
.site-footer strong {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  max-width: 880px;
  margin-bottom: 22px;
  font-size: clamp(3.4rem, 8vw, 7.2rem);
  font-weight: 500;
  line-height: 0.93;
  letter-spacing: -0.06em;
}

h1 span {
  display: block;
  margin-bottom: 10px;
  color: var(--gold-light);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.18em;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.3rem, 5.3vw, 4.8rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 24px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

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

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

button {
  font: inherit;
}

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

.section {
  position: relative;
  padding: 112px 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 16px;
  color: var(--ink);
  background: var(--white);
  border-radius: 10px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

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

.overline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.overline::before {
  width: 38px;
  height: 1px;
  background: currentColor;
  content: "";
}

.overline.dark {
  color: var(--copper);
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  color: var(--white);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  background: rgba(28, 14, 10, 0.95);
  box-shadow: 0 12px 40px rgba(15, 8, 5, 0.18);
}

.nav-shell {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 34px;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.brand-seal {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--ink);
  background: linear-gradient(145deg, var(--gold-light), var(--gold));
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.brand-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  overflow: hidden;
  font-size: 1rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-text small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.main-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-menu a {
  position: relative;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.main-menu a::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s ease;
}

.main-menu a:hover,
.main-menu a.active {
  color: var(--white);
}

.main-menu a:hover::after,
.main-menu a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-phone {
  padding: 10px 19px;
  color: var(--ink);
  background: var(--white);
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease;
}

.header-phone:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
  position: relative;
  display: grid;
  min-height: 820px;
  padding: 150px 0 104px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 74% 18%, rgba(189, 95, 23, 0.36), transparent 32%),
    linear-gradient(125deg, #160b08 0%, #2d1710 50%, #5b2b17 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: linear-gradient(to right, transparent, black 35%, black);
}

.hero-orb {
  position: absolute;
  border: 1px solid rgba(240, 214, 165, 0.16);
  border-radius: 50%;
}

.orb-one {
  top: 12%;
  right: -120px;
  width: 430px;
  height: 430px;
}

.orb-two {
  right: 14%;
  bottom: -180px;
  width: 520px;
  height: 520px;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.65fr);
  align-items: center;
  gap: 72px;
}

.hero-content {
  min-width: 0;
}

.hero-lead {
  max-width: 760px;
  margin-bottom: 38px;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(1rem, 2vw, 1.32rem);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.button-gold {
  color: var(--ink);
  background: linear-gradient(145deg, var(--gold-light), var(--gold));
}

.button-outline {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.22);
}

.button-outline:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.42);
}

.hero-phones {
  display: flex;
  gap: 36px;
  margin-top: 58px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-phones a {
  display: grid;
  gap: 3px;
}

.hero-phones span {
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-phones strong {
  color: var(--white);
  font-size: 1.18rem;
  font-weight: 500;
}

.hero-card {
  position: relative;
  padding: 32px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
}

.hero-card::before {
  position: absolute;
  top: -70px;
  right: -70px;
  width: 190px;
  height: 190px;
  background: radial-gradient(circle, rgba(215, 163, 79, 0.26), transparent 68%);
  content: "";
}

.hero-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.hero-card-top span {
  color: var(--gold-light);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-card-top b {
  color: rgba(255, 255, 255, 0.24);
  font-size: 1.1rem;
}

.hero-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-card li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-card li span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
}

.hero-card li i {
  color: rgba(255, 255, 255, 0.32);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
}

.hero-card > p {
  margin: 26px 0 0;
  color: var(--gold-light);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.intro-animation {
  animation: enter 0.8s ease both;
}

.delay-one {
  animation-delay: 0.12s;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: end;
  gap: 70px;
  margin-bottom: 56px;
}

.section-heading .overline {
  align-self: start;
}

.section-heading h2 {
  margin-bottom: 0;
}

.service-section {
  background:
    linear-gradient(180deg, rgba(245, 239, 230, 0.65), transparent 30%),
    var(--paper);
}

.service-layout {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.service-panel {
  position: relative;
  min-height: 470px;
  padding: 38px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.service-panel:nth-child(1) {
  grid-column: span 7;
}

.service-panel:nth-child(2) {
  grid-column: span 5;
}

.service-panel:nth-child(3) {
  grid-column: 3 / span 8;
  min-height: 310px;
}

.panel-number {
  position: absolute;
  top: 30px;
  right: 34px;
  color: rgba(255, 255, 255, 0.22);
  font-size: 1.1rem;
  font-weight: 800;
}

.panel-light .panel-number {
  color: rgba(33, 18, 13, 0.2);
}

.panel-kicker {
  margin-bottom: 52px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.panel-dark {
  color: var(--white);
  background:
    radial-gradient(circle at 90% 10%, rgba(215, 163, 79, 0.24), transparent 32%),
    linear-gradient(145deg, #1c0e0a, #4b2516);
}

.panel-dark .panel-kicker,
.panel-dark .tag-list span {
  color: var(--gold-light);
}

.panel-light {
  color: var(--ink);
  background: var(--cream);
  border: 1px solid rgba(33, 18, 13, 0.08);
}

.panel-light .panel-kicker {
  color: var(--copper);
}

.panel-accent {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  align-items: end;
  gap: 40px;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 255, 255, 0.35), transparent 26%),
    linear-gradient(135deg, #d7a34f, #b96520);
}

.panel-accent .panel-kicker {
  position: absolute;
  top: 38px;
  left: 38px;
  color: rgba(33, 18, 13, 0.68);
}

.panel-accent h3 {
  margin: 78px 0 0;
  max-width: 620px;
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list span {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.service-lines {
  border-top: 1px solid var(--line);
}

.service-lines p {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.service-lines span {
  color: var(--copper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
}

.accent-words {
  display: grid;
  gap: 10px;
}

.accent-words span {
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.statement {
  color: var(--white);
  background: var(--ink);
}

.statement-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  min-height: 168px;
  text-align: center;
}

.statement-inner span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 3vw, 2.7rem);
}

.statement-inner i {
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
}

.profile-section {
  background: var(--paper);
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 90px;
}

.profile-heading {
  position: sticky;
  top: 125px;
}

.profile-subtitle {
  color: var(--copper);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.credentials {
  display: grid;
  gap: 12px;
}

.credentials article {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 22px;
  min-height: 126px;
  padding: 26px 30px;
  background: var(--cream);
  border: 1px solid rgba(33, 18, 13, 0.08);
  border-radius: var(--radius-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.credentials article:hover {
  box-shadow: 0 18px 45px rgba(43, 22, 14, 0.1);
  transform: translateY(-4px);
}

.credentials span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
}

.credentials p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2.3vw, 1.75rem);
  line-height: 1.25;
}

.contact-section {
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(125deg, rgba(22, 11, 8, 0.98), rgba(86, 42, 21, 0.98)),
    var(--ink);
}

.contact-glow {
  position: absolute;
  top: -180px;
  right: -100px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(215, 163, 79, 0.28), transparent 68%);
}

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 80px;
}

.contact-copy h2 {
  margin-bottom: 0;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-list a {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 26px 76px 26px 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-list a::after {
  position: absolute;
  top: 50%;
  right: 28px;
  font-size: 1.5rem;
  content: "↗";
  transform: translateY(-50%);
}

.contact-list a:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(5px);
}

.contact-list span {
  color: var(--gold-light);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-list strong {
  font-size: clamp(1.65rem, 4vw, 2.65rem);
  font-weight: 500;
  line-height: 1.1;
}

.contact-list small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.76rem;
  font-weight: 700;
}

.site-footer {
  padding: 54px 0 24px;
  color: var(--white);
  background: #130a07;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 40px;
  padding-bottom: 36px;
}

.footer-grid strong {
  font-size: 1.2rem;
  font-weight: 500;
}

.footer-grid p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.86rem;
}

.footer-phones {
  display: grid;
  gap: 4px;
  justify-items: end;
  font-family: Georgia, "Times New Roman", serif;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
  color: rgba(255, 255, 255, 0.38);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.76rem;
}

.footer-bottom a {
  color: var(--gold-light);
}

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

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

@media (max-width: 980px) {
  .section {
    padding: 90px 0;
  }

  .nav-shell {
    grid-template-columns: 1fr auto;
  }

  .header-phone {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .main-menu {
    position: fixed;
    top: 74px;
    right: 14px;
    left: 14px;
    display: grid;
    gap: 0;
    padding: 12px;
    visibility: hidden;
    background: rgba(28, 14, 10, 0.99);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 18px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .main-menu.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .main-menu a {
    padding: 15px 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }

  .main-menu a:last-child {
    border-bottom: 0;
  }

  .main-menu a::after {
    display: none;
  }

  .menu-button.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-button.open span:nth-child(2) {
    opacity: 0;
  }

  .menu-button.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    min-height: auto;
    padding-top: 136px;
  }

  .hero-grid,
  .profile-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .hero-card {
    max-width: 650px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-panel:nth-child(1),
  .service-panel:nth-child(2) {
    grid-column: span 6;
  }

  .service-panel:nth-child(3) {
    grid-column: 1 / -1;
  }

  .profile-heading {
    position: static;
  }

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

  .footer-phones {
    grid-column: 1 / -1;
    justify-items: start;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 74px 0;
  }

  .nav-shell {
    min-height: 74px;
  }

  .brand-seal {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .brand-text strong {
    font-size: 0.88rem;
  }

  .brand-text small {
    font-size: 0.53rem;
  }

  .hero {
    padding: 118px 0 76px;
  }

  h1 {
    font-size: clamp(3.2rem, 16vw, 4.7rem);
  }

  h2 {
    font-size: clamp(2.25rem, 10vw, 3.2rem);
  }

  .hero-lead {
    font-size: 0.94rem;
    letter-spacing: 0.03em;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-phones {
    display: grid;
    gap: 18px;
    margin-top: 44px;
  }

  .hero-card {
    padding: 28px 22px;
    border-radius: 24px;
  }

  .service-layout {
    grid-template-columns: 1fr;
  }

  .service-panel,
  .service-panel:nth-child(1),
  .service-panel:nth-child(2),
  .service-panel:nth-child(3) {
    grid-column: auto;
    min-height: auto;
    padding: 30px 24px;
    border-radius: 24px;
  }

  .panel-accent {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 26px;
  }

  .panel-accent .panel-kicker {
    position: static;
  }

  .panel-accent h3 {
    margin-top: 0;
  }

  .panel-number {
    top: 24px;
    right: 24px;
  }

  .panel-kicker {
    margin-bottom: 40px;
    padding-right: 45px;
  }

  .statement-inner {
    grid-template-columns: 1fr;
    gap: 13px;
    min-height: 260px;
    padding: 42px 0;
  }

  .statement-inner i {
    justify-self: center;
  }

  .credentials article {
    grid-template-columns: 46px 1fr;
    gap: 16px;
    min-height: 112px;
    padding: 22px;
  }

  .credentials span {
    width: 42px;
    height: 42px;
  }

  .contact-list a {
    padding: 24px 58px 24px 22px;
  }

  .contact-list a::after {
    right: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-phones {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 9px;
  }
}
