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

:root {
  --bg: #e7e0d5;
  --bg-soft: rgba(241, 235, 227, 0.94);
  --surface: rgba(223, 216, 207, 0.96);
  --surface-soft: rgba(233, 226, 217, 0.92);
  --text: #2f3336;
  --text-soft: #66625c;
  --border: rgba(47, 51, 54, 0.1);
  --accent: #c58a55;
  --accent-dark: #9b6636;
  --hero-start: #5a6166;
  --hero-mid: #697177;
  --hero-end: #7a8389;
  --shadow: 0 24px 70px rgba(35, 32, 28, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(244, 238, 230, 0.8), rgba(229, 220, 208, 0.84)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 30%),
    url("./specteh.png") center center / cover fixed no-repeat;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(47, 51, 54, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 51, 54, 0.028) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 92%);
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.hero {
  position: relative;
  width: 100%;
  min-height: 80px;
  background:
    linear-gradient(135deg, var(--hero-start) 0%, var(--hero-mid) 48%, var(--hero-end) 100%);
  box-shadow: 0 18px 34px rgba(35, 32, 28, 0.16);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07), transparent 30%, rgba(197, 138, 85, 0.06) 68%, rgba(255, 255, 255, 0.04));
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  height: 80px;
  margin: 0 auto;
}

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

.modal-kicker {
  margin: 0 0 14px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.hero-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.28rem, 2vw, 1.72rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: 0.02em;
  color: #f7efe5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-subtitle {
  margin: 6px 0 0;
  font-size: 0.84rem;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(247, 239, 229, 0.8);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(247, 239, 229, 0.2);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

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

.hero-button-primary {
  background: linear-gradient(135deg, rgba(197, 138, 85, 0.96), rgba(223, 172, 125, 0.94));
  color: #2f3336;
  box-shadow: 0 14px 24px rgba(35, 32, 28, 0.14);
}

.hero-button-primary:hover,
.hero-button-primary:focus-visible {
  box-shadow: 0 18px 28px rgba(35, 32, 28, 0.18);
}

.hero-button-secondary {
  background: rgba(247, 239, 229, 0.14);
  color: #f7efe5;
}

.hero-button-secondary:hover,
.hero-button-secondary:focus-visible {
  border-color: rgba(247, 239, 229, 0.34);
  background: rgba(247, 239, 229, 0.14);
}

.section-card {
  border: 1px solid var(--border);
  border-radius: 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.section-card {
  padding: clamp(30px, 4vw, 42px);
  margin-bottom: 24px;
  background:
    linear-gradient(180deg, rgba(244, 239, 232, 0.9), rgba(236, 230, 221, 0.88)),
    linear-gradient(145deg, rgba(197, 138, 85, 0.08), transparent 46%);
}

.section-head {
  display: block;
  margin-bottom: 26px;
}

.section-head h2 {
  margin: 0;
  font-family: "Prata", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  color: var(--text);
}

.directions-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.direction-item {
  position: relative;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(47, 51, 54, 0.08);
  background:
    linear-gradient(180deg, rgba(231, 224, 214, 0.88), rgba(222, 215, 205, 0.86)),
    linear-gradient(145deg, rgba(197, 138, 85, 0.08), transparent 50%);
  color: var(--text);
  box-shadow: 0 18px 30px rgba(35, 32, 28, 0.1);
}

.direction-item::before {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #e2b186);
}

.direction-item h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  line-height: 1.35;
}

.direction-item p {
  margin: 0;
  line-height: 1.7;
  color: var(--text-soft);
}

.site-footer {
  padding: 10px 0 0;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #726a61;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 24px;
}

.lead {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.85;
  color: var(--text-soft);
}

.benefits {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(235, 228, 219, 0.9), rgba(226, 219, 209, 0.88));
  border: 1px solid rgba(47, 51, 54, 0.08);
}

.benefits h3 {
  margin: 0 0 18px;
  font-size: 1.12rem;
  color: var(--text);
}

.benefits-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefits-list li {
  position: relative;
  padding-left: 24px;
  line-height: 1.65;
  color: var(--text-soft);
}

.benefits-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #d5a173);
  box-shadow: 0 0 0 5px rgba(190, 111, 55, 0.12);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  text-align: left;
  border: 1px solid rgba(47, 51, 54, 0.08);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(240, 233, 224, 0.84);
  color: var(--text);
  box-shadow: 0 18px 32px rgba(35, 32, 28, 0.1);
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
  animation: rise 0.6s ease both;
}

.service-card:nth-child(2) {
  animation-delay: 0.06s;
}

.service-card:nth-child(3) {
  animation-delay: 0.12s;
}

.service-card:nth-child(4) {
  animation-delay: 0.18s;
}

.service-card:nth-child(5) {
  animation-delay: 0.24s;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-8px) scale(1.03);
  border-color: rgba(197, 138, 85, 0.34);
  box-shadow: 0 24px 34px rgba(35, 32, 28, 0.16);
  outline: none;
}

.service-card-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 0.82;
  overflow: hidden;
  background: rgba(139, 111, 86, 0.22);
}

.service-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 30%, rgba(39, 37, 34, 0.16)),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.08) 100%);
  pointer-events: none;
}

.service-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 220ms ease, filter 220ms ease;
}

.service-card:hover .service-card-media img,
.service-card:focus-visible .service-card-media img {
  transform: scale(1.07);
  filter: saturate(1.02);
}

.service-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 10px;
  min-height: 140px;
  padding: 18px 20px 20px;
  background:
    linear-gradient(180deg, rgba(235, 228, 220, 0.95), rgba(226, 219, 210, 0.94)),
    linear-gradient(145deg, rgba(197, 138, 85, 0.1), transparent 58%);
}

.service-card-title {
  display: block;
  margin: 0;
  font-size: 1.16rem;
  font-weight: 800;
  line-height: 1.28;
}

.service-card-text {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--text-soft);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.service-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: auto;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(47, 51, 54, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.service-card:hover .service-card-cta,
.service-card:focus-visible .service-card-cta {
  transform: translateY(-1px);
  border-color: rgba(197, 138, 85, 0.34);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 20px rgba(35, 32, 28, 0.1);
}

.contacts-card {
  background:
    linear-gradient(180deg, rgba(241, 234, 225, 0.9), rgba(232, 225, 216, 0.88)),
    linear-gradient(145deg, rgba(197, 138, 85, 0.08), transparent 44%);
}

.contacts-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}

.contacts-text {
  max-width: 700px;
  margin: 0;
  font-size: clamp(1.08rem, 2vw, 1.26rem);
  line-height: 1.8;
  color: var(--text-soft);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

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

.contact-button-primary {
  background: linear-gradient(135deg, rgba(197, 138, 85, 0.96), rgba(223, 172, 125, 0.94));
  color: #2f3336;
  box-shadow: 0 18px 28px rgba(35, 32, 28, 0.12);
}

.contact-button-primary:hover,
.contact-button-primary:focus-visible {
  box-shadow: 0 22px 32px rgba(35, 32, 28, 0.16);
}

.contact-button-secondary {
  border-color: rgba(47, 51, 54, 0.1);
  background: rgba(255, 255, 255, 0.46);
  color: var(--text);
}

.contact-button-secondary:hover,
.contact-button-secondary:focus-visible {
  border-color: rgba(47, 51, 54, 0.16);
  background: rgba(255, 255, 255, 0.7);
}

.service-modal {
  width: min(1040px, calc(100% - 24px));
  padding: 0;
  border: none;
  border-radius: 30px;
  background: transparent;
  box-shadow: none;
}

.service-modal::backdrop {
  background: rgba(56, 50, 44, 0.28);
  backdrop-filter: blur(3px);
}

.modal-shell {
  position: relative;
  padding: 18px;
  border-radius: 30px;
  border: 1px solid rgba(47, 51, 54, 0.1);
  background:
    linear-gradient(180deg, rgba(244, 239, 232, 0.98), rgba(233, 225, 216, 0.96)),
    linear-gradient(145deg, rgba(197, 138, 85, 0.08), transparent 52%);
  color: var(--text);
  box-shadow: 0 30px 64px rgba(35, 32, 28, 0.18);
}

.modal-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: stretch;
}

.modal-media {
  min-height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(120, 104, 90, 0.16);
}

.modal-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

.modal-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 10px 12px 0;
}

.modal-shell h2 {
  margin: 0;
  padding-right: 48px;
  font-family: "Prata", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.14;
  color: var(--text);
}

#modal-description {
  display: grid;
  gap: 14px;
  color: var(--text-soft);
}

#modal-description p {
  margin: 0;
  line-height: 1.9;
}

#modal-description ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0 0 0 22px;
}

#modal-description li {
  line-height: 1.75;
}

#modal-description strong {
  color: var(--text);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(47, 51, 54, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
  color: var(--text);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: rgba(255, 255, 255, 0.92);
  outline: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero-inner {
    height: auto;
    padding: 16px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-title {
    white-space: normal;
  }

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

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

  .contacts-content {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .modal-media {
    min-height: 300px;
  }

  .modal-content {
    padding: 0 4px 6px;
  }
}

@media (max-width: 680px) {
  .page {
    width: min(100% - 20px, 1180px);
    padding: 20px 0 56px;
  }

  .hero-inner {
    width: min(100% - 20px, 1180px);
  }

  .section-card,
  .direction-item,
  .service-card,
  .modal-shell {
    border-radius: 24px;
  }

  .section-head {
    display: block;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .hero-button {
    width: 100%;
  }

  .contact-actions {
    width: 100%;
    flex-direction: column;
  }

  .contact-button {
    width: 100%;
  }

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

  .service-card {
    min-height: auto;
  }

  .modal-shell {
    padding: 28px 22px;
  }

  .service-card-body {
    min-height: 0;
  }

  .modal-shell {
    padding: 14px;
  }

  .modal-media {
    min-height: 240px;
  }
}
