:root {
  --primary: #1a1a2e;
  --secondary: #c9a96e;
  --accent: #e8d5b7;
  --text: #f5f5f5;
  --bg: #0f0f1a;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

body,
h1,
h2,
p {
  margin-block: 0;
}

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

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

.container {
  width: min(100% - 32px, 1120px);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 10;
  inset: 0 0 auto;
  padding-block: 24px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
  transition:
    background-color 220ms ease,
    opacity 220ms ease,
    padding-block 220ms ease,
    transform 220ms ease;
}

.site-header.is-visible,
.site-header.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-header.is-scrolled,
.site-header.is-open {
  padding-block: 14px;
  background: rgba(8, 8, 16, 0.9);
  backdrop-filter: blur(18px);
}

.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 32px, 1120px);
  margin-inline: auto;
}

.logo {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0;
}

.nav-toggle {
  display: inline-grid;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid rgba(232, 213, 183, 0.3);
  background: rgba(245, 245, 245, 0.04);
  cursor: pointer;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--text);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.site-header.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  left: 0;
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid rgba(232, 213, 183, 0.14);
  background: rgba(8, 8, 16, 0.96);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.site-header.is-open .nav-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-menu a,
.footer-nav a {
  color: rgba(245, 245, 245, 0.76);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.nav-menu a {
  padding: 12px;
}

.nav-menu a:hover,
.nav-menu a:focus-visible,
.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--secondary);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  place-items: center;
  background-image: url('https://images.unsplash.com/photo-1560066984-138dadb4c035?w=1920');
  background-position: center;
  background-size: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(15, 15, 26, 0.92), rgba(26, 26, 46, 0.72)),
    linear-gradient(0deg, rgba(15, 15, 26, 0.86), rgba(15, 15, 26, 0.18));
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding-block: 120px 72px;
  animation: heroReveal 900ms ease-out 160ms both;
}

.hero__eyebrow {
  margin-bottom: 18px;
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__title {
  max-width: 720px;
  font-family: var(--font-heading);
  font-size: clamp(3rem, 16vw, 5.4rem);
  font-weight: 700;
  line-height: 0.95;
}

.hero__subtitle {
  max-width: 580px;
  margin-top: 24px;
  color: rgba(245, 245, 245, 0.82);
  font-size: clamp(1.05rem, 4vw, 1.35rem);
  font-weight: 300;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 34px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 0;
  font-weight: 700;
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    transform 220ms ease,
    box-shadow 220ms ease;
}

.btn--primary {
  color: var(--primary);
  background: var(--secondary);
  box-shadow: 0 18px 40px rgba(201, 169, 110, 0.24);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  color: var(--text);
  background: transparent;
  border-color: var(--secondary);
  transform: translateY(-3px);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.3);
}

.section {
  padding-block: 80px;
  background: var(--bg);
}

.section:nth-of-type(odd) {
  background: var(--primary);
}

.section h2 {
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 8vw, 3.5rem);
  line-height: 1.1;
}

.section-eyebrow {
  margin-bottom: 12px;
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 640px;
  margin-bottom: 36px;
}

.about__grid {
  display: grid;
  gap: 34px;
}

.about__image {
  margin: 0;
  overflow: hidden;
  background: var(--primary);
}

.about__image--placeholder {
  display: grid;
  width: min(100%, 400px);
  min-height: 500px;
  place-items: center;
  border: 1px solid rgba(232, 213, 183, 0.18);
  background:
    linear-gradient(135deg, rgba(201, 169, 110, 0.16), rgba(26, 26, 46, 0.9)),
    var(--primary);
}

.master-photo-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 500px;
  place-items: center;
  color: rgba(232, 213, 183, 0.78);
  font-family: var(--font-heading);
  font-size: 1.4rem;
}

.about__image img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.about__content {
  position: relative;
  padding-top: 28px;
}

.about__content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 72px;
  height: 1px;
  background: var(--secondary);
}

.about__content p:not(.section-eyebrow) {
  max-width: 620px;
  margin-top: 22px;
  color: rgba(245, 245, 245, 0.78);
  font-weight: 300;
}

.services__grid {
  display: grid;
  gap: 18px;
}

.service-card {
  display: grid;
  gap: 14px;
  min-height: 268px;
  padding: 28px;
  border: 1px solid rgba(232, 213, 183, 0.16);
  background: rgba(245, 245, 245, 0.035);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.service-card:hover,
.service-card:focus-within {
  border-color: rgba(201, 169, 110, 0.58);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.28);
  transform: translateY(-6px);
}

.service-card__icon {
  width: 44px;
  height: 44px;
  color: var(--secondary);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.service-card h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 1.55rem;
  line-height: 1.15;
}

.service-card p {
  color: rgba(245, 245, 245, 0.72);
  font-weight: 300;
}

.service-card span {
  align-self: end;
  color: var(--accent);
  font-weight: 700;
}

.gallery__grid {
  display: grid;
  grid-auto-rows: 170px;
  gap: 14px;
}

.gallery__item {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: var(--primary);
  cursor: pointer;
}

.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 15, 26, 0.42), transparent 55%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.gallery__item:hover::after,
.gallery__item:focus-visible::after {
  opacity: 1;
}

.gallery__item:hover img,
.gallery__item:focus-visible img {
  transform: scale(1.055);
}

.gallery__item--tall {
  grid-row: span 2;
}

.reviews-slider {
  overflow: hidden;
}

.reviews-slider__track {
  display: flex;
  transition: transform 420ms ease;
}

.review-card {
  position: relative;
  flex: 0 0 100%;
  min-height: 360px;
  padding: 34px;
  border: 1px solid rgba(232, 213, 183, 0.14);
  background: rgba(245, 245, 245, 0.04);
}

.review-card__quote {
  width: 58px;
  height: 58px;
  margin-bottom: 28px;
  color: rgba(201, 169, 110, 0.44);
  fill: currentColor;
}

.review-card p {
  max-width: 760px;
  color: rgba(245, 245, 245, 0.82);
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 8vw, 2.5rem);
  line-height: 1.18;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.review-card__author img {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(201, 169, 110, 0.52);
  border-radius: 50%;
  object-fit: cover;
}

.review-card__author span {
  color: var(--accent);
  font-weight: 700;
}

.slider-dots {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.slider-dots button {
  width: 34px;
  height: 3px;
  padding: 0;
  border: 0;
  background: rgba(245, 245, 245, 0.24);
  cursor: pointer;
  transition: background-color 180ms ease;
}

.slider-dots button.is-active {
  background: var(--secondary);
}

.contacts__grid {
  display: grid;
  gap: 40px;
}

.contacts__info address {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  color: rgba(245, 245, 245, 0.78);
  font-style: normal;
  font-weight: 300;
}

.contacts__info address a {
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 700;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}

.social-links a {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(232, 213, 183, 0.22);
  color: var(--accent);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--primary);
  background: var(--secondary);
  border-color: var(--secondary);
  transform: translateY(-2px);
}

.social-links svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 26px;
  border: 1px solid rgba(232, 213, 183, 0.14);
  background: rgba(245, 245, 245, 0.04);
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid rgba(232, 213, 183, 0.18);
  padding: 14px 16px;
  color: var(--text);
  background: rgba(15, 15, 26, 0.76);
  font: inherit;
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.contact-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--secondary) 50%),
    linear-gradient(135deg, var(--secondary) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;
  background-repeat: no-repeat;
  background-size: 6px 6px;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.12);
}

.contact-form .btn {
  width: 100%;
  margin-top: 4px;
  cursor: pointer;
}

.lightbox {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 5, 10, 0.88);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(100%, 1120px);
  max-height: 84vh;
  object-fit: contain;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
}

.lightbox__close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(232, 213, 183, 0.3);
  color: var(--text);
  background: rgba(15, 15, 26, 0.86);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.modal {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 5, 10, 0.78);
}

.modal[hidden] {
  display: none;
}

.modal__content {
  position: relative;
  width: min(100%, 440px);
  padding: 38px 30px;
  border: 1px solid rgba(232, 213, 183, 0.2);
  background: var(--primary);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.modal__content h2 {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 2.2rem;
  line-height: 1.1;
}

.modal__content p {
  margin-top: 14px;
  color: rgba(245, 245, 245, 0.78);
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(232, 213, 183, 0.26);
  color: var(--text);
  background: rgba(15, 15, 26, 0.7);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.floating-call {
  position: fixed;
  z-index: 20;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  color: var(--primary);
  background: var(--secondary);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
  transition:
    box-shadow 220ms ease,
    transform 220ms ease;
}

.floating-call:hover,
.floating-call:focus-visible {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 22px 48px rgba(201, 169, 110, 0.3);
}

.floating-call svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

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

.site-footer {
  padding-block: 44px;
  color: rgba(245, 245, 245, 0.7);
  background: #080810;
  font-size: 0.95rem;
}

.footer__grid {
  display: grid;
  gap: 26px;
}

.footer-nav {
  display: grid;
  gap: 12px;
}

.site-footer .social-links {
  margin-top: 0;
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

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

@media (min-width: 640px) {
  .container,
  .site-nav {
    width: min(100% - 48px, 1120px);
  }

  .hero__content {
    padding-block-start: 140px;
  }

  .btn {
    padding-inline: 34px;
  }

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

  .gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 220px;
  }

  .gallery__item--wide {
    grid-column: span 2;
  }

  .contact-form {
    padding: 34px;
  }
}

@media (min-width: 960px) {
  .site-header {
    padding-block: 32px;
  }

  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-menu a {
    padding: 0;
  }

  .hero {
    place-items: center start;
  }

  .hero__content {
    padding-block: 160px 96px;
  }

  .about__grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 72px;
  }

  .about__content {
    order: 1;
    padding-top: 0;
    padding-left: 34px;
  }

  .about__content::before {
    width: 1px;
    height: 100%;
  }

  .about__image {
    order: 2;
  }

  .about__image img {
    min-height: 520px;
  }

  .about__image--placeholder,
  .master-photo-placeholder {
    min-height: 500px;
  }

  .section-heading {
    margin-bottom: 48px;
  }

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

  .gallery__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 190px;
  }

  .contacts__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
    gap: 72px;
  }

  .footer__grid {
    grid-template-columns: 1fr auto auto;
    align-items: start;
  }

  .footer-nav {
    grid-template-columns: repeat(4, auto);
    gap: 22px;
  }

  .site-footer p {
    grid-column: 1 / -1;
  }
}
