@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Playfair+Display:wght@400;500;600&display=swap');

* {
  box-sizing: border-box;
}
.registry-item {
  display: none;
}

body.show-registry .registry-item {
  display: flex;
}

body {
  margin: 0;
  background: #0d0d0c;
  color: #f4ead8;
  font-family: 'Playfair Display', serif;
}

.page {
  max-inline-size: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(120, 22, 20, 0.35), transparent 35%),
    linear-gradient(180deg, #111 0%, #171412 45%, #0d0d0c 100%);
  overflow: hidden;
}

.hero {
  padding: 34px 20px 35px;
  text-align: center;
}

.hero-photo {
  width: 82%;
  margin: 0 auto;
  padding: 5px;
  border: 1px solid #b98a45;
  border-radius: 150px 150px 8px 8px;
  background: rgba(255, 255, 255, 0.03);
}

.hero-photo img {
  width: 100%;
  display: block;
  border-radius: 145px 145px 6px 6px;
}

h1 {
  margin: 20px 0 22px;
  font-family: 'Great Vibes', cursive;
  font-size: 46px;
  line-height: 1.05;
  color: #f8ead8;
  font-weight: 400;
}

h1 span {
  display: block;
  font-size: 34px;
}

.divider {
  display: none;
}

.quote {
  margin: 28px auto 0;
  max-width: 310px;
  font-size: 17px;
  line-height: 1.45;
}

.card {
  margin: 10px 18px 42px;
  padding: 32px 24px;
  border: 1px solid #b98a45;
  border-radius: 28px;
  text-align: center;
  background: rgba(10, 10, 10, 0.72);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

h2 {
  margin: 0 0 18px;
  font-family: 'Great Vibes', cursive;
  font-size: 40px;
  font-weight: 400;
  color: #d7b06d;
}

h3 {
  margin: 0 0 20px;
  font-size: 19px;
  font-weight: 500;
}

.card p,
.text,
.contacts p {
  font-size: 16px;
  line-height: 1.45;
}

.timeline {
  margin-top: 28px;
  text-align: left;
}

.item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
  position: relative;
}

.item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 52px;
  width: 1px;
  height: 70px;
  background: #b98a45;
  z-index: 0;
}

.icon {
  width: 52px;
  height: 52px;
  border: 1px solid #b98a45;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: #0d0d0c;
  position: relative;
  z-index: 2;
}

.item b {
  color: #d7b06d;
  font-size: 18px;
}

.item p {
  margin: 3px 0 0;
}

.section {
  padding: 0 20px 42px;
  text-align: center;
}

.image-card {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid #b98a45;
  margin-top: 18px;
}

.image-card img {
  width: 100%;
  display: block;
}

.text {
  margin: 20px auto 0;
}

.contacts {
  padding: 0 28px 45px;
  text-align: center;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 8px;
  font-size: 16px;
}

.contact-row a {
  color: #d7b06d;
  text-decoration: none;
}

.divider {
    display: block;
    width: 260px;
    margin: 26px auto 24px;
    color: #d7b06d;
    font-size: 22px;
    position: relative;
  }

  .divider::before,
  .divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 95px;
    height: 1px;
    background: #b98a45;
  }

  .divider::before {
    left: 0;
  }

  .divider::after {
    right: 0;
  }
  
  .rsvp-card{
    margin: 10px 18px 42px;
    padding: 36px 24px;
    border:1px solid #b98a45;
    border-radius:28px;
    text-align:center;
    background:rgba(10,10,10,.72);
}

.rsvp-card p{
    max-width:520px;
    margin:20px auto 28px;
    line-height:1.7;
}

.rsvp-btn{
    display:inline-block;
    padding:14px 34px;
    border-radius:40px;
    border:1px solid #b98a45;
    color:#111;
    background:#d7b06d;
    text-decoration:none;
    font-weight:600;
    transition:.25s;
}

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

.hero {
    position: relative;
    overflow: visible;
}

.corner {
    position: absolute;
    width: 170px;      /* было 170px */
    pointer-events: none;
    z-index: 5;
}

.left-corner {
    top: 0px;
    left: 0px;

}

.right-corner {
    top: 0px;
    right: 0px;
}

.venue-list {
  max-width: 620px;
  margin: 28px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.venue-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid rgba(185, 138, 69, 0.45);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
}

.venue-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid #b98a45;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.venue-label {
  color: #d7b06d;
  font-size: 20px;
  font-weight: 600;
}

.venue-address {
  margin-top: 3px;
  color: #f4ead8;
  font-size: 17px;
  line-height: 1.4;
}

@media (max-width: 899px) {
  .venue-row {
    padding: 14px 16px;
  }

  .venue-label {
    font-size: 18px;
  }

  .venue-address {
    font-size: 15px;
  }
}
/* ПК-версия */
@media (min-width: 900px) {
    body.show-registry .timeline {
        grid-template-columns: repeat(4, 1fr);
    }
    .corner {
        display: none;
    }
  body {
    background:
      radial-gradient(circle at top left, rgba(70, 50, 30, 0.25), transparent 35%),
      radial-gradient(circle at bottom right, rgba(80, 20, 18, 0.15), transparent 35%),
      #111;
  }

  .page {
    max-width: 1480px;
    width: calc(100% - 80px);
    margin: 0 auto;
    padding: 36px 0 48px;
    background: transparent;
    overflow: visible;
  }

  .hero,
  .card,
  .section,
  .contacts {
    border: 1px solid rgba(185, 138, 69, 0.65);
    border-radius: 28px;
    background:
      radial-gradient(circle at top left, rgba(255,255,255,0.035), transparent 35%),
      linear-gradient(135deg, #171716 0%, #0e0e0d 100%);
    box-shadow: none;
  }

  .hero {
    min-height: 320px;
    padding: 0;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 42% 58%;
    overflow: hidden;
    text-align: center;
  }

  .hero-photo {
    width: 100%;
    height: 320px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: none;
    position: relative;
  }

  .hero-photo::after {
    content: "";
    position: absolute;
    top: 0;
    right: -1px;
    width: 45%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #10100f 85%);
  }

  .hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%;
    border-radius: 0;
  }

  .hero-content {
    padding: 55px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  h1 {
    margin: 0;
    font-size: 54px;
    line-height: 1.1;
    white-space: nowrap;
  }

  h1 span {
    display: inline;
    font-size: inherit;
  }

  .divider {
    display: block;
    width: 260px;
    margin: 26px auto 24px;
    color: #d7b06d;
    font-size: 22px;
    position: relative;
  }

  .divider::before,
  .divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 95px;
    height: 1px;
    background: #b98a45;
  }

  .divider::before {
    left: 0;
  }

  .divider::after {
    right: 0;
  }

  .quote {
    margin: 0;
    max-width: 560px;
    font-size: 20px;
    line-height: 1.45;
  }

  .program-card {
    margin: 0 0 20px;
    padding: 30px 56px 34px;
    display: grid;
    grid-template-columns: 42% 58%;
    align-items: center;
    gap: 30px;
  }

  h2 {
    font-size: 42px;
    margin-bottom: 18px;
  }

  h3 {
    font-size: 22px;
    color: #d7b06d;
  }

  .card p,
  .text,
  .contacts p {
    font-size: 18px;
    line-height: 1.5;
  }

  .timeline {
    --icon-size: 68px;
    margin: 10px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    text-align: center;
  }

  .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    position: relative;
  }

  .item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: calc(var(--icon-size) / 2);
    left: 50%;
    width: 100%;
    height: 1px;
    background: #b98a45;
    z-index: 0;
  }

  .icon {
    width: var(--icon-size);
    height: var(--icon-size);
    margin: 0 auto 12px;
    font-size: 26px;
    color: #d7b06d;
    background: #111;
    position: relative;
    z-index: 1;
  }

  .bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.section,
.contacts,
.rsvp-card {
  min-height: 430px;
  padding: 42px 42px 36px;
  margin: 0;
}

  .item b {
    font-size: 22px;
  }

  .item p {
    font-size: 17px;
  }

  .rsvp-card {
  border: 1px solid rgba(185, 138, 69, 0.65);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.035), transparent 35%),
    linear-gradient(135deg, #171716 0%, #0e0e0d 100%);
  text-align: center;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rsvp-card h2 {
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.rsvp-card p {
  max-width: 520px;
  margin: 20px auto 30px;
  font-size: 18px;
  line-height: 1.6;
}

.rsvp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0 auto;
  padding: 14px 34px;
  border-radius: 999px;
  border: 1px solid #b98a45;
  background: #d7b06d;
  color: #111;
  text-decoration: none;
  font-weight: 600;
}

  .image-card {
    margin: 18px auto 20px;
    width: 100%;
    height: auto;
    border: none;
    background: transparent;
    overflow: visible;
  }

  .image-card picture {
    display: block;
    width: 100%;
  }

  .image-card img,
  .image-card picture img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    display: block;
    border: 1px solid #b98a45;
    border-radius: 18px;
  }

  .venue-section .image-card,
  .dress-section .image-card {
    height: auto;
  }

  .contacts {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .contacts p {
    margin: 14px 0 32px;
  }

  .contact-row {
    max-width: 360px;
    width: 100%;
    margin: 0 auto;
    padding: 14px 0;
    border-top: 1px solid rgba(185, 138, 69, 0.55);
    font-size: 18px;
  }

  .contact-row:last-child {
    border-bottom: 1px solid rgba(185, 138, 69, 0.55);
  }

  .contact-row a {
    color: #d7b06d;
  }
}

.registry-item {
  display: none !important;
}

body.show-registry .registry-item {
  display: grid !important;
}

@media (min-width: 900px) {
  body.show-registry .registry-item {
    display: flex !important;
  }

  body.show-registry .timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.show-registry .item:not(:last-child)::after {
    width: 100%;
  }

  body.show-registry .program-card {
    grid-template-columns: 34% 66%;
  }
}

@media (max-width: 899px) {
  .hero-photo {
    width: 82%;
    height: auto !important;
    margin: 0 auto;
    padding: 5px;
    border: 1px solid #b98a45;
    border-radius: 150px 150px 8px 8px;
    background: rgba(255, 255, 255, 0.03);
  }

  .hero-photo img {
    width: 100%;
    height: auto !important;
    object-fit: contain !important;
    display: block;
    border-radius: 145px 145px 6px 6px;
  }
}

@media (max-width: 899px) {
  .hero {
    position: relative;
    overflow: visible;
    padding-top: 34px;
  }

  .corner {
    position: absolute;
    width: 170px;      /* было 170px */
    pointer-events: none;
    z-index: 5;
    }

    .left-corner {
        transform: scale(1.45);
        transform-origin: top left;
    }

    .right-corner {
        transform: scale(1.45);
        transform-origin: top right;
    }
}