:root {
  --ink: #23171a;
  --muted: #725d63;
  --paper: #fffafb;
  --white: #ffffff;
  --petal: #ffe7ee;
  --rose: #c8214d;
  --rose-dark: #8e1535;
  --wine: #4b1024;
  --emerald: #0f5d4a;
  --gold: #c99b3f;
  --champagne: #f7e4c6;
  --line: rgba(75, 16, 36, 0.16);
  --shadow: 0 24px 70px rgba(75, 16, 36, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  padding: 18px 40px;
  color: var(--wine);
  background: rgba(255, 250, 251, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 34px rgba(75, 16, 36, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 31px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 15px;
}

.main-nav a,
.header-call {
  text-decoration: none;
}

.main-nav a:hover,
.header-call:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.header-call {
  border: 1px solid rgba(201, 155, 63, 0.64);
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--wine);
  background: linear-gradient(180deg, #fff9f0, var(--champagne));
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: var(--wine);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(47, 9, 24, 0.72), rgba(47, 9, 24, 0.28) 50%, rgba(47, 9, 24, 0.02)),
    linear-gradient(0deg, rgba(47, 9, 24, 0.42), rgba(47, 9, 24, 0.02) 48%);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 64%;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(780px, calc(100% - 48px));
  padding: 154px 0 82px 40px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--rose);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: #ffd7e1;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 88px;
  font-weight: 700;
  line-height: 0.96;
}

.hero-text {
  max-width: 620px;
  margin: 26px 0 0;
  font-size: 19px;
  color: #fff3f6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  border-radius: 8px;
  padding: 14px 20px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: linear-gradient(180deg, #fff8ef, var(--champagne));
  color: var(--wine);
  box-shadow: 0 16px 38px rgba(83, 42, 8, 0.24);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.66);
  color: #fff;
}

.summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 3;
}

.summary-item {
  min-height: 138px;
  padding: 34px 40px;
  background: var(--white);
}

.summary-item strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--wine);
  font-size: 40px;
  line-height: 1;
}

.summary-item span {
  color: var(--muted);
}

.cities-section,
.car-section,
.weddings-section {
  padding: 104px 40px;
}

.cities-section {
  background: linear-gradient(180deg, #fff, #fff3f6);
}

.city-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.city-list span {
  border: 1px solid rgba(201, 155, 63, 0.45);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--wine);
  background: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.car-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 44px;
  align-items: center;
  background: var(--paper);
  position: relative;
}

.car-section::before,
.weddings-section::before {
  content: "";
  width: 90px;
  height: 2px;
  background: var(--gold);
}

.car-section::before {
  position: absolute;
  top: 72px;
  left: 40px;
}

.weddings-section::before {
  display: block;
  margin: 0 0 28px;
}

.section-copy {
  max-width: 620px;
}

.section-copy.narrow {
  max-width: 760px;
}

h2 {
  margin: 0 0 18px;
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--wine);
  font-size: 56px;
  font-weight: 700;
  line-height: 0.98;
}

.section-copy p,
.wedding-card p {
  color: var(--muted);
  font-size: 18px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 10px;
  border-bottom: 2px solid rgba(201, 155, 63, 0.72);
  color: var(--wine);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  color: var(--rose-dark);
}

.car-photos {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 18px;
  align-items: stretch;
}

.car-photos-expanded {
  grid-template-columns: 1fr 0.86fr;
}

.car-photos img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.car-photos img:first-child {
  object-position: center;
}

.car-photos img:last-child {
  height: 430px;
  align-self: end;
  object-position: center 72%;
}

.car-photos-expanded img:first-child {
  grid-row: span 2;
}

.car-photos-expanded img:nth-child(2),
.car-photos-expanded img:nth-child(3) {
  height: 270px;
}

.car-photos-expanded img:nth-child(4) {
  grid-column: 1 / -1;
  height: 330px;
  object-position: center 62%;
}

.weddings-section {
  background: var(--white);
}

.slider-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.slider-controls button {
  min-height: 42px;
  border: 1px solid rgba(201, 155, 63, 0.62);
  border-radius: 8px;
  padding: 10px 16px;
  color: var(--wine);
  background: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.wedding-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(520px, 58vw);
  gap: 24px;
  margin-top: 34px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 0 0 18px;
  scroll-snap-type: x mandatory;
}

.wedding-card {
  display: grid;
  grid-template-columns: minmax(200px, 0.78fr) 1fr;
  gap: 24px;
  align-items: center;
  min-height: 380px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: linear-gradient(180deg, #fff, #fff6f8);
  box-shadow: 0 18px 46px rgba(75, 16, 36, 0.08);
  scroll-snap-align: start;
}

.wedding-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 8px;
}

.wedding-card h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--wine);
  font-size: 36px;
  line-height: 1.15;
}

.wedding-card .date {
  margin: 0 0 10px;
  color: var(--rose);
  font-size: 15px;
  font-weight: 800;
}

.wedding-card p:last-child {
  margin-bottom: 0;
}

.weddings-section:last-child {
  padding-bottom: 128px;
}

.gallery-page {
  background: linear-gradient(180deg, #fffafb, #fff3f6);
}

.gallery-main {
  padding-top: 82px;
}

.gallery-hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(0, 1.14fr);
  gap: 44px;
  align-items: end;
  padding: 88px 40px 54px;
}

.gallery-hero > div {
  max-width: 620px;
}

.gallery-hero h1 {
  color: var(--wine);
  font-size: 72px;
}

.gallery-hero p:not(.eyebrow) {
  color: var(--muted);
  font-size: 19px;
}

.gallery-hero img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.car-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 18px 40px 112px;
}

.car-gallery img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(75, 16, 36, 0.12);
}

.car-gallery img:first-child,
.car-gallery img:nth-child(5) {
  grid-column: span 2;
}

.car-gallery img:first-child {
  height: 420px;
}

.car-gallery img:nth-child(5) {
  height: 360px;
}

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

  .main-nav {
    display: none;
  }

  h1 {
    font-size: 58px;
  }

  h2 {
    font-size: 44px;
  }

  .summary,
  .car-section,
  .gallery-hero {
    grid-template-columns: 1fr;
  }

  .wedding-slider {
    grid-auto-columns: minmax(420px, 82vw);
  }

  .car-photos {
    grid-template-columns: 1fr 1fr;
  }

  .car-photos img,
  .car-photos img:last-child {
    height: 360px;
  }

  .car-photos-expanded img:first-child {
    grid-row: auto;
  }

  .car-photos-expanded img:nth-child(2),
  .car-photos-expanded img:nth-child(3),
  .car-photos-expanded img:nth-child(4) {
    grid-column: auto;
    height: 360px;
  }

  .gallery-hero img {
    height: 430px;
  }

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

@media (max-width: 700px) {
  .site-header {
    padding: 12px 16px;
    gap: 12px;
  }

  .brand {
    font-size: 25px;
  }

  .header-call {
    display: none;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-copy {
    width: calc(100% - 32px);
    max-width: calc(100vw - 32px);
    padding: 132px 0 48px 16px;
  }

  h1 {
    max-width: 330px;
    font-size: 33px;
    line-height: 1.06;
  }

  .hero-text {
    font-size: 16px;
    max-width: 340px;
  }

  .button {
    width: 100%;
    justify-content: center;
  }

  .summary-item,
  .cities-section,
  .car-section,
  .weddings-section,
  .gallery-hero,
  .car-gallery {
    padding-left: 16px;
    padding-right: 16px;
  }

  .cities-section,
  .car-section,
  .weddings-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .car-photos,
  .wedding-card {
    grid-template-columns: 1fr;
  }

  .wedding-slider {
    grid-auto-columns: minmax(286px, 86vw);
  }

  .slider-controls {
    justify-content: flex-start;
  }

  .car-photos img,
  .car-photos img:last-child,
  .wedding-card img,
  .car-photos-expanded img:nth-child(2),
  .car-photos-expanded img:nth-child(3),
  .car-photos-expanded img:nth-child(4) {
    height: 300px;
  }

  .car-section::before {
    top: 42px;
    left: 16px;
  }

  .gallery-main {
    padding-top: 68px;
  }

  .gallery-hero {
    gap: 26px;
    padding-top: 54px;
    padding-bottom: 24px;
  }

  .gallery-hero h1 {
    max-width: 340px;
    font-size: 40px;
  }

  .gallery-hero img {
    height: 330px;
  }

  .car-gallery {
    grid-template-columns: 1fr;
    padding-top: 12px;
    padding-bottom: 64px;
  }

  .car-gallery img,
  .car-gallery img:first-child,
  .car-gallery img:nth-child(5) {
    grid-column: auto;
    height: 310px;
  }
}
