/* Сброс отступов */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Основной фон */
body, html {
  height: 100%;
  font-family: 'Georgia', serif;
  background-color: #fff;
  font-family: 'Cormorant', serif;
}

.letter {
  font-size: 100px;
  font-weight: bold;
  line-height: 1;
}
/* Таймер */
.countdown {
  display: flex;
  gap: 20px;
  justify-content: center;
}
.select {
   padding: 60px 20px;
    background-color: #fff;
    font-family: 'Georgia', serif;
    color: #000;
        font-size: 21px;
}
.select h2 { text-align: center;}
.time-box {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.number {
  font-size: 18px;
  font-weight: bold;
  color: white;
}

.label {
  font-size: 12px;
  color: #000;
}


/* Адаптивность */
@media (max-width: 768px) {
  .letter {
    font-size: 70px;
  }

  .time-box {
    width: 60px;
    height: 60px;
  }

  .number {
    font-size: 16px;
  }

  .label {
    font-size: 10px;
  }
}
.greeting {
  background-color: #fff;
  color: #000;
  text-align: center;
  padding: 60px 20px;
  position: relative;
  font-family: 'Georgia', serif;
}

.music-button {
  margin: 10px 0 30px;
  padding: 20px 40px;
  border: 1px dotted black;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
}

.music-button .icon {
  margin-right: 8px;
  font-size: 16px;
}

.greeting-text {
  max-width: 500px;
  margin: 0 auto 40px;
  font-size: 16px;
  line-height: 1.6;
}

.calendar {
  display: inline-block;
}

.weekdays {
  font-weight: bold;
  margin-bottom: 10px;
  letter-spacing: 3px;
}

.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  font-size: 16px;
  max-width: 350px;
  margin: 0 auto;
}

.days span {
  display: inline-block;
  padding: 5px;
}

.days .empty {
  visibility: hidden;
}

.decor {
  position: absolute;
  font-size: 16px;
}

.decor-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 130px; /* подстрой по высоте рисунка */
  background-image: url('mord3.jpg');
  background-repeat: no-repeat;
  background-size: auto 100%;
  background-position: left;
  z-index: -1;
}


.decor-bottom {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 130px; /* подстрой по высоте рисунка */
  background-image: url('mord33.jpg');
  background-repeat: no-repeat;
  background-size: auto 100%;
  background-position: right;
  z-index: -1;
}
.timeline {
  padding: 60px 20px;
  text-align: center;
  background-color: #fff;
  color: #000;
  font-family: 'Georgia', serif;
}

.timeline-items {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.timeline-item img {
  width: 160px;
  height: auto;
  margin-bottom: -25px;
  opacity: 0.8;
}

.timeline-item .time {
  font-size: 21px;
  margin-bottom: 5px;
}

.timeline-item .label {
  font-size: 21px;
}
.location {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  color: #000;
  font-family: 'Georgia', serif;
}

.section-title, .contacts-title, .timeline-title, .calendar h3, .greeting-title {
  font-size: 41px;
  margin-bottom: 20px;
  font-weight: 600;
  font-family: 'Cormorant', serif;
}

.address {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 30px;
}

.map-button {
  border: 1px dotted black;
  background: transparent;
  padding: 20px 60px;
  font-size: 16px;
  cursor: pointer;
  color: #000;
}

.details {
  background: url('bg2.webp') center / cover no-repeat;
  padding: 80px 20px;
  text-align: center;
  color: #000;
  font-family: 'Cormorant', serif;
}

.details .text {
   font-size: 21px;
   margin: 30px 0;
}

.heart {
  font-size: 18px;
  display: inline-block;
  margin-bottom: 10px;
}

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

.palette span {
  display: block;
  width: 65px;
  height: 100px;
  border-radius: 4px;
  border: 1px solid #b0b0b0;
}
.contacts {
  padding: 60px 20px;
  background-color: #fff;
  text-align: center;
  font-family: 'Georgia', serif;
  color: #000;
}

.contact {
  margin-bottom: 30px;
}

.contact p {
  font-size: 16px;
  margin-bottom: 10px;
}

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

.whatsapp img:hover {
  opacity: 1;
}
.coordinator {
  padding: 60px 20px;
  background-color: #fff;
  text-align: center;
  font-family: 'Georgia', serif;
  color: #000;
}

.coordinator-title {
  font-size: 41px;
  margin-bottom: 20px;
  font-weight: 300;
}

.coordinator-text {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.coordinator-name {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 5px;
}

.coordinator-phone a {
  color: #000;
  text-decoration: none;
  font-size: 21px;
}

.coordinator .whatsapp img:hover {
  opacity: 1;
}
.contact-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 30px auto;
  max-width: 400px;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
}

.contact-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ddd;
}

.contact-info {
  text-align: left;
}

.contact-name {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
  color: #000;
}
.whatsapp {color:#646464;}

.contact-phone {
  display: block;
  color: #000;
  font-size: 16px;
  text-decoration: none;
  margin-bottom: 8px;
}

.contact-phone:hover {
  text-decoration: underline;
}
.hero {
  position: relative;
  height: 100vh;
  background: url('shapka.jpg') center center / cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 1;
}
.overlay {
  position: relative;
  z-index: 3;
  color: white;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 20px;
}
.initials {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: rotate(-90deg);
  margin-bottom: 40px;
}
.names {
  writing-mode: vertical-rl;
  font-size: 32px;
  letter-spacing: 2px;
}
.countdown-circles {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-end;
}

.circle-box {
  position: relative;
  width: 60px;
  height: 60px;
}
svg {
  width: 60px;
  height: 60px;
  transform: rotate(-90deg);
}
circle {
  fill: none;
  stroke-width: 2;
  opacity: 0.8;
}
.bg {
  stroke: rgba(255, 255, 255, 0.2);
}
.progress {
  stroke: #fff;
  stroke-dasharray: 176;
  stroke-dashoffset: 176;
  transition: stroke-dashoffset 0.5s linear;
}
.value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
}
.value span {
  font-size: 20px;
  font-weight: bold;
}
.value small {
  font-size: 12px;
}
.map-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.map-popup.active {
  display: flex;
}

.map-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.map-container {
  position: relative;
  width: 90%;
  max-width: 800px;
  background: white;
  padding: 10px;
  border-radius: 12px;
  z-index: 1001;
  animation: fadeIn 0.4s ease;
}

.close-map {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.days .heart {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #000;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  animation: pulse 1.5s infinite;
}

.days .heart::before {
  content: "❤";
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 40px;
  color: #ff4753;
  z-index: -2;
}

@keyframes pulse {
  0% { transform: scale(1);   }
  50% { transform: scale(1.1);   }
  100% { transform: scale(1);   }
}
.music-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 16px;
  cursor: pointer;
  background: transparent;
  border: 2px dotted black;
  border-radius: 50px;
  position: relative;
  color: black;
  font-family: 'Cormorant', serif;
  font-weight: 500;
  z-index: 1;
  animation: pulse-glow 1.6s infinite ease-in-out;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.music-button:hover {
  transform: scale(1.08);
  box-shadow: 0 0 14px rgba(255, 128, 149, 0.4);
}

.music-button .icon {
  font-size: 20px;
}

/* Пульсация */
@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(234, 176, 181, 0.6);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(234, 176, 181, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(234, 176, 181, 0);
  }
}
.form-card {
  background: #fff;
  max-width: 500px;
  margin: 0 auto;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
  font-family: 'Cormorant', serif;
  color: #000;
}

.form-group {
  margin-bottom: 30px;
  text-align: left;
}

.form-group label {
  display: block;
  margin: 10px 0;
  font-size: 16px;
  cursor: pointer;
}

input[type="text"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  font-family: 'Cormorant', serif;
  font-size: 16px;
  margin-top: 8px;
}

input[type="radio"],
input[type="checkbox"] {
  margin-right: 10px;
}
.submit-wrapper {
  display: flex;
  justify-content: center;
}

.submit-button {
  padding: 10px 30px;
  background: transparent;
  border: 1px dotted #000;
  font-family: 'Cormorant', serif;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  background: #000;
  color: #fff;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('main_blank.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.9; /* регулируй прозрачность */
  z-index: 2;
  pointer-events: none;
  background-position-y: -20px;
}

@media (min-width: 1280px) {
  .hero::after {
    background-size: contain;
    height: 100vh;
  }
}