:root {
  --bg: #fbf7ee;
  --cream: #f3e9d2;
  --gold: #c9a24a;
  --pale: #e9d9a6;
  --ink: #3b1f4e;
  --muted: #6e5f72
}

* {
  box-sizing: border-box
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.7 Manrope,Arial,sans-serif
}

a {
  color: inherit
}

button {
  font: inherit
}

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

h1,h2,h3,p {
  margin: 0
}

h1,h2,h3 {
  font-family: 'Cormorant Garamond',Georgia,serif;
  line-height: 1.05
}

h1 {
  font-size: clamp(55px,7.2vw,104px);
  font-weight: 500;
  letter-spacing: -.04em
}

h2 {
  font-size: clamp(43px,5vw,68px);
  font-weight: 500;
  letter-spacing: -.025em
}

h3 {
  font-size: 30px;
  font-weight: 600
}

.wrap {
  width: min(1200px,calc(100% - 48px));
  margin: auto
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 10px;
  font-weight: 700
}

.header {
  height: 78px;
  position: sticky;
  top: 0;
  background: rgba(251,247,238,.94);
  backdrop-filter: blur(14px);
  z-index: 10;
  border-bottom: 1px solid #e9dec8
}

.header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px
}

.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px
}

.brand img {
  width: 47px;
  height: 47px;
  object-fit: contain;
  object-position: center
}

.brand strong {
  font: 600 26px/1 'Cormorant Garamond',Georgia,serif
}

.brand small {
  display: block;
  font: 9px Manrope,sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-top: 4px
}

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

.nav a {
  font-size: 12px;
  text-decoration: none;
  font-weight: 600
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gold);
  color: #281338;
  text-decoration: none;
  border: 1px solid var(--gold);
  padding: 15px 23px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  transition: .2s
}

.btn:hover {
  background: #dfbd6d;
  transform: translateY(-2px)
}

.btn svg {
  width: 16px
}

.menu {
  display: none;
  background: none;
  border: 0;
  font-size: 25px;
  color: var(--ink)
}

.hero {
  padding: 24px 0 72px
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr .95fr;
  min-height: 590px;
  background: #efe3c9
}

.hero-copy {
  padding: clamp(38px,6vw,86px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start
}

.hero-copy .eyebrow {
  margin-bottom: 32px
}

.hero h1 em {
  font-weight: 500;
  color: #9b7330
}

.hero p {
  max-width: 410px;
  color: #5d4d5e;
  margin: 24px 0 30px;
  font-size: 15px
}

.hero-img {
  min-height: 550px;
  background: #efe3c9 url('assets/wedding.jpg') center / contain no-repeat
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase
}

.star {
  color: #a88132
}

.section {
  padding: 95px 0
}

.head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 40px
}

.head p {
  max-width: 360px;
  color: var(--muted)
}

.kicker {
  display: block;
  margin-bottom: 17px;
  color: #88652d
}

.intro {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 80px;
  align-items: start;
  border-top: 1px solid #ddcfb3;
  padding-top: 35px
}

.intro p {
  font-size: 19px;
  line-height: 1.7;
  max-width: 660px
}

.intro .note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 20px
}

.services {
  background: var(--cream)
}

.groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 70px
}

.group {
  border-top: 1px solid #b9a685;
  padding-top: 20px
}

.group h3 {
  margin-bottom: 16px
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid #ded1b7;
  font-size: 13px
}

.row span:last-child {
  white-space: nowrap;
  font-weight: 700
}

.price-note {
  margin-top: 30px;
  color: var(--muted);
  font-size: 12px
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 440px;
  background: #3b1f4e;
  color: #fbf7ee
}

.feature-image {
  background: #3b1f4e url('assets/hair.jpg') center / contain no-repeat;
  min-height: 420px
}

.feature-copy {
  padding: 65px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start
}

.feature-copy h2 {
  margin: 18px 0
}

.feature-copy p {
  max-width: 390px;
  color: #e5d7de;
  margin-bottom: 25px
}

.gallery {
  border-top: 1px solid #ded1b7
}

.carousel {
  position: relative
}

.slides {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none
}

.slides::-webkit-scrollbar {
  display: none
}

.slide {
  flex: 0 0 calc((100% - 36px)/3);
  min-height: 330px;
  background: #e9ddc5;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 26px;
  border: 1px solid #d9c9aa
}

.slide:nth-child(2) {
  background: #e5d6be
}

.slide:nth-child(3) {
  background: #dcd0c3
}

.slide b {
  font: 500 31px 'Cormorant Garamond',Georgia,serif
}

.slide span {
  font-size: 12px;
  color: #65546a
}

.controls {
  display: flex;
  gap: 8px
}

.controls button {
  width: 44px;
  height: 44px;
  border: 1px solid #a99379;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 20px
}

.controls button:hover {
  background: var(--pale)
}

.gallery+.gallery {
  padding-top: 0;
  border: 0
}

.faq {
  background: #f1e8d7
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px
}

.faq p {
  color: var(--muted);
  margin-top: 18px;
  max-width: 330px
}

details {
  border-top: 1px solid #cdbfa8;
  padding: 18px 0
}

details: last-child {
  border-bottom: 1px solid #cdbfa8
}

summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px
}

summary: after {
  content: '+';
  font-size: 20px;
  font-weight: 400
}

details[open] summary:after {
  content: '−'
}

details p {
  font-size: 13px;
  margin: 12px 0 0;
  max-width: 100%
}

.contact {
  padding: 100px 0;
  text-align: center
}

.contact h2 {
  max-width: 720px;
  margin: 20px auto
}

.contact p {
  color: var(--muted);
  margin: 0 auto 25px
}

.footer {
  background: var(--ink);
  color: #ead9b1;
  padding: 45px 0
}

.footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center
}

.footer a {
  text-decoration: none
}

.footer small {
  font-size: 11px
}

.fab {
  display: none
}

a: focus-visible,button:focus-visible,summary:focus-visible {
  outline: 3px solid #795a18;
  outline-offset: 4px
}

@media(max-width:800px) {
  .wrap {
    width: min(100% - 32px,1200px)
  }

  .nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 25px;
    box-shadow: 0 15px 20px #3b1f4e22;
    align-items: stretch;
    flex-direction: column
  }

  .nav.open {
    display: flex
  }

  .menu {
    display: block
  }

  .hero-grid {
    grid-template-columns: 1fr
  }

  .hero-copy {
    padding: 46px 28px
  }

  .hero-img {
    min-height: 390px
  }

  .hero {
    padding-top: 12px
  }

  .intro,.faq-grid {
    grid-template-columns: 1fr;
    gap: 24px
  }

  .groups {
    gap: 35px
  }

  .feature-copy {
    padding: 35px
  }

  .slide {
    flex-basis: 75%
  }

  .section {
    padding: 70px 0
  }

  .gallery+.gallery {
    padding-top: 0
  }

  .head {
    align-items: start
  }

  .footer .wrap {
    flex-direction: column;
    align-items: start
  }

  .fab {
    display: flex;
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 9;
    box-shadow: 0 5px 20px #3b1f4e44
  }

  .contact {
    padding: 80px 0
  }

}

@media(max-width:520px) {
  .groups,.feature {
    grid-template-columns: 1fr
  }

  .feature-image {
    min-height: 300px
  }

  .hero-img {
    min-height: 310px
  }

  .head {
    flex-direction: column
  }

  .slide {
    flex-basis: 87%;
    min-height: 290px
  }

  .hero-bottom span:last-child {
    display: none
  }

  .intro p {
    font-size: 17px
  }

  .hero h1 {
    font-size: 54px
  }

}


/* Фото студии в галерее */
.slide.photo {
  position: relative;
  margin: 0;
  padding: 0;
  height: 440px;
  overflow: hidden;
  border: 0;
  background: #2a1a33
}

.slide.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.slide.photo figcaption {
  position: relative;
  margin-top: auto;
  padding: 60px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #fff;
  background: linear-gradient(transparent, rgba(30, 15, 35, .75))
}

.slide.photo figcaption span {
  color: #f1e2c4
}

@media (max-width: 640px) {
  .slide.photo {
    height: 380px
  }
}

/* Афиши услуг */
.slide.poster {
  padding: 0;
  min-height: 0;
  justify-content: start;
  gap: 12px;
  background: none;
  border: 0;
  color: inherit;
  text-decoration: none
}

.slide.poster img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  border: 1px solid #d9c9aa;
  background: #3b0d18
}

.slide.poster span {
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase
}
