/* ========================================
   Variables
   ======================================== */
:root {
  --color-dark: #141210;
  --color-dark-soft: #1E1B18;
  --color-cream: #E8DFD0;
  --color-cream-muted: rgba(232, 223, 208, 0.65);
  --color-white: #FAF8F5;
  --color-accent: #A68B6A;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', system-ui, sans-serif;

  --container: 1280px;
  --header-height: 80px;
  --transition: 0.3s ease;
}

/* ========================================
   Reset & Base
   ======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-white);
  background: var(--color-dark);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition), color var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: var(--transition);
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--color-white);
  background: transparent;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.btn--wide {
  width: 100%;
}

/* ========================================
   Header
   ======================================== */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
}

.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
}

.header__nav {
  display: flex;
  gap: 28px;
}

.header__nav a {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.header__nav a:hover {
  color: var(--color-cream);
}

.header__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--color-white);
}

.header__logo-icon {
  width: 52px;
  height: 52px;
}

.header__logo-text {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.header__contacts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.header__location,
.header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
}

.header__location:hover,
.header__phone:hover {
  color: var(--color-cream);
}

.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  justify-self: end;
}

.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: var(--transition);
}

.header__burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__burger.active span:nth-child(2) {
  opacity: 0;
}

.header__burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Hero
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(20, 18, 16, 0.45) 0%,
    rgba(20, 18, 16, 0.55) 40%,
    rgba(20, 18, 16, 0.75) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: calc(var(--header-height) + 48px) 32px 48px;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-family: var(--font-serif);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-cream-muted);
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero__services {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.hero__divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.35);
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero__cards {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: auto;
  padding-bottom: 0;
}

.hero-card {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-card:hover img {
  transform: scale(1.05);
}

.hero-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(20, 18, 16, 0.8) 100%);
}

.hero-card__title {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--color-dark-soft);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 64px 32px;
  align-items: start;
}

.footer__social {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer__social-link:hover {
  border-color: var(--color-cream);
  color: var(--color-cream);
}

.footer__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
}

.footer__info-item--phone {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--color-white);
  letter-spacing: 0.02em;
}

.footer__info-item--phone:hover {
  color: var(--color-cream);
}

.footer__form-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.footer__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.footer__fields input {
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 14px 16px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--color-white);
  outline: none;
  transition: var(--transition);
}

.footer__fields input::placeholder {
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
}

.footer__fields input:focus {
  border-color: rgba(255, 255, 255, 0.6);
}

.footer__form-success {
  margin-top: 16px;
  font-size: 13px;
  color: var(--color-cream);
  text-align: center;
}

.footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__bar-inner {
  padding: 16px 32px;
}

.footer__bar-inner p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.05em;
}

/* ========================================
   Mobile menu overlay
   ======================================== */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: rgba(20, 18, 16, 0.97);
  padding: 32px;
  z-index: 99;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  transform: translateY(-120%);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav a {
  font-family: var(--font-serif);
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .hero__cards {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .header__inner {
    grid-template-columns: 1fr auto;
  }

  .header__nav--left,
  .header__contacts {
    display: none;
  }

  .header__logo {
    justify-self: start;
  }

  .header__burger {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }

  .hero__content {
    padding-top: calc(var(--header-height) + 32px);
  }

  .hero__services {
    gap: 10px;
  }

  .hero__divider {
    display: none;
  }

  .hero__services span:not(.hero__divider) {
    position: relative;
  }

  .hero__services span:not(.hero__divider)::after {
    content: '·';
    margin-left: 10px;
    opacity: 0.5;
  }

  .hero__services span:not(.hero__divider):last-child::after {
    display: none;
  }

  .footer__fields {
    grid-template-columns: 1fr;
  }

  .footer__info-item--phone {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .hero__actions .btn {
    width: 100%;
  }
}
