
:root {
  --bg-main: #fdf6ec;
  --bg-card: #fffaf3;
  --accent: #c49a6c;
  --accent-soft: rgba(196,154,108,0.2);
  --text-main: #4b3c2f;
  --muted: #8c7966;
  --border-radius: 24px;
  --shadow-soft: 0 20px 40px rgba(0,0,0,0.08);
  --transition: all .6s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(196,154,108,0.18) 0, transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(196,154,108,0.15) 0, transparent 55%);
  opacity: 0.6;
  pointer-events: none;
  z-index: -2;
}

.overlay {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(to bottom, rgba(253,246,236,0.9), rgba(253,246,236,0.98));
  z-index: -1;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 80px;
}

section {
  margin: 32px 0;
  padding: 32px 20px;
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  section {
    padding: 48px 56px;
    margin: 40px 0;
  }
}

section::before,
section::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(196,154,108,0.35);
  width: 140px;
  height: 140px;
  pointer-events: none;
  opacity: 0.4;
}

section::before {
  top: -70px;
  left: -40px;
}

section::after {
  bottom: -70px;
  right: -40px;
}

h1, h2, h3 {
  font-family: "Playfair Display", serif;
  text-align: center;
  margin-bottom: 16px;
  color: var(--text-main);
}

h1 {
  font-size: 2.1rem;
  letter-spacing: 0.08em;
}

h2 {
  font-size: 1.8rem;
}

h3 {
  font-size: 1.2rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

p {
  margin-bottom: 12px;
  font-size: 0.98rem;
}

.center {
  text-align: center;
}

.script {
  font-family: "Great Vibes", cursive;
  font-size: 1.6rem;
  color: var(--accent);
}

.small {
  font-size: 0.88rem;
  color: var(--muted);
}

/* HERO */

.hero {
  text-align: center;
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 16px 26px;
  border: 1px solid var(--accent-soft);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.8);
}

.hero-logo::before {
  content: "";
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(circle at 0 0, rgba(196,154,108,.18) 0, transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(196,154,108,.16) 0, transparent 50%);
  opacity: .5;
}

.hero-logo span {
  position: relative;
  font-family: "Playfair Display", serif;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.hero-names {
  font-size: 1.4rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-top: 6px;
}

.hero-subtitle {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
}

.hero-date {
  margin-top: 24px;
  font-family: "Great Vibes", cursive;
  font-size: 1.8rem;
  color: var(--accent);
}

.hero-place {
  margin-top: 10px;
  font-size: 0.9rem;
}

.hero-hint {
  margin-top: 18px;
}

.divider {
  margin: 24px auto;
  width: 120px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-soft), transparent);
}

/* COUNTDOWN */

.countdown-wrapper {
  margin-top: 12px;
}

.countdown-label {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.count-box {
  min-width: 70px;
  padding: 10px 6px;
  border-radius: 14px;
  border: 1px solid var(--accent-soft);
  background: rgba(255,255,255,0.7);
  box-shadow: 0 10px 25px rgba(0,0,0,0.04);
}

.count-number {
  font-size: 1.1rem;
  font-weight: 600;
}

.count-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* INVITE + PHOTO */

.invite-text {
  max-width: 640px;
  margin: 0 auto 24px;
  text-align: center;
}

.photo-wrapper {
  margin-top: 16px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 16px 32px rgba(0,0,0,0.12);
}

.photo-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.4s ease;
}

.photo-wrapper:hover img {
  transform: scale(1.08);
}

.signature {
  margin-top: 24px;
  text-align: center;
  font-family: "Great Vibes", cursive;
  font-size: 1.8rem;
  color: var(--accent);
}

/* CIRCLE GALLERY */

.gallery-section {
  text-align: center;
}

.circle-gallery {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.circle-gallery.circle-column {
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.circle-item {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent-soft);
  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
  background: #fdf6ec;
}

.circle-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 0.8s ease;
}

.circle-item:hover img {
  transform: scale(1.16);
}

.circle-item.circle-large {
  width: 180px;
  height: 180px;
}

@media (max-width: 480px) {
  .circle-item.circle-large {
    width: 150px;
    height: 150px;
  }
}

/* DETAILS SECTION */

.details-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .details-grid {
    gap: 32px;
  }
}

.detail-block h3 {
  margin-bottom: 8px;
}

.detail-block p + p {
  margin-top: 4px;
}

.palette {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.palette span {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}

.palette span:nth-child(1) { background: #f6d6cc; }
.palette span:nth-child(2) { background: #f3e3cf; }
.palette span:nth-child(3) { background: #e6d4f5; }
.palette span:nth-child(4) { background: #d3e8f1; }
.palette span:nth-child(5) { background: #f4d5eb; }

/* CONTACT BUTTONS */

.contacts-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 6px;
}

.contacts-vk-title {
  margin-top: 10px;
}

/* SCHEDULE */

.schedule-grid {
  display: grid;
  gap: 24px;
  margin-top: 16px;
}

@media (min-width: 768px) {
  .schedule-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.schedule-item {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.65);
  border: 1px solid var(--accent-soft);
  box-shadow: 0 18px 30px rgba(0,0,0,0.06);
}

.schedule-time {
  font-weight: 600;
  font-size: 0.96rem;
  margin-bottom: 6px;
}

.schedule-title {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.schedule-place {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 6px;
}

/* MAP */

.map-wrapper {
  margin-top: 20px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.16);
  border: 1px solid var(--accent-soft);
  min-height: 260px;
}

.map-wrapper iframe {
  border: 0;
  width: 100%;
  height: 100%;
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: rgba(196,154,108,0.1);
  color: var(--text-main);
  font-size: 0.9rem;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.btn:hover {
  background: var(--accent);
  color: #fffaf3;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

.btn-telegram {
  border-color: #229ED9;
  background: rgba(34,158,217,0.08);
}

.btn-telegram:hover {
  background: #229ED9;
  color: #fff;
}

.btn-vk {
  border-color: #2787F5;
  background: rgba(39,135,245,0.08);
}

.btn-vk:hover {
  background: #2787F5;
  color: #fff;
}

/* FOOTER */

footer {
  text-align: center;
  padding-top: 8px;
  font-size: 0.86rem;
  color: var(--muted);
}

/* АНИМАЦИИ ПРОКРУТКИ */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: var(--transition);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatIn {
  from {
    transform: translateY(18px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero-anim {
  animation: floatIn 1.4s ease forwards;
}
