@font-face {
  font-family: "Garamond Narrow";
  src: url("garamond-narrow-plain-001-022/garamond-narrow-plain-001-022.woff2") format("woff2"),
       url("garamond-narrow-plain-001-022/garamond-narrow-plain-001-022.woff") format("woff"),
       url("garamond-narrow-plain-001-022/garamond-narrow-plain-001-022.ttf") format("truetype"),
       url("garamond-narrow-plain-001-022/garamond-narrow-plain-001-022.otf") format("opentype"),
       url("garamond-narrow-plain-001-022/garamond-narrow-plain-001-022.eot") format("embedded-opentype"),
       url("garamond-narrow-plain-001-022/garamond-narrow-plain-001-022.svg") format("svg");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Garamond Narrow";
  src: url("garamond-narrow-plain-001-022/garamond-narrow-plain-001-022.woff2") format("woff2"),
       url("garamond-narrow-plain-001-022/garamond-narrow-plain-001-022.woff") format("woff"),
       url("garamond-narrow-plain-001-022/garamond-narrow-plain-001-022.ttf") format("truetype"),
       url("garamond-narrow-plain-001-022/garamond-narrow-plain-001-022.otf") format("opentype");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Garamond Narrow";
  src: url("garamond-narrow-plain-001-022/garamond-narrow-plain-001-022.woff2") format("woff2"),
       url("garamond-narrow-plain-001-022/garamond-narrow-plain-001-022.woff") format("woff"),
       url("garamond-narrow-plain-001-022/garamond-narrow-plain-001-022.ttf") format("truetype"),
       url("garamond-narrow-plain-001-022/garamond-narrow-plain-001-022.otf") format("opentype");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Garamond Narrow", "Garamond", "Times New Roman", serif;
  background: #f7f4f1;
  color: #1d1b1a;
  display: flex;
  justify-content: center;
  font-weight: normal;
  font-style: normal;
}

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

h2 {
  margin: 0 0 12px;
  text-align: center;
  font-size: 22px;
  letter-spacing: 1.2px;
}

p {
  margin: 0 0 12px;
  line-height: 1.4;
}

.page {
  width: 100%;
  background: #ffffff;
  overflow: hidden;
}

.hero {
  position: relative;
  background: #111111;
  color: #ffffff;
  padding-bottom: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}

.hero-title {
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  text-align: left;
  font-size: 72px;
  line-height: 0.9;
  letter-spacing: -1px;
  text-transform: none;
  z-index: 2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.name-line-1 {
  display: block;
  font-size: clamp(60px, 22vw, 130px);
  margin-top: -30px;
  margin-bottom: -30px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.25'/%3E%3C/svg%3E"), linear-gradient(#ffffff, #ffffff);
  background-size: 100px 100px, auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.name-line-2 {
  display: block;
  padding-left: clamp(120px, 35vw, 240px);
  padding-top: 40px;
  margin-top: -10px;
  font-size: clamp(60px, 22vw, 130px);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.25'/%3E%3C/svg%3E"), linear-gradient(#ffffff, #ffffff);
  background-size: 100px 100px, auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-title .amp {
  font-family: "Bickham Script One", cursive;
  font-style: normal;
  font-weight: normal;
  font-size: 150px;
  margin-left: 0px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.25'/%3E%3C/svg%3E"), linear-gradient(#ffffff, #ffffff);
  background-size: 100px 100px, auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-vector10 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 3;
}

.hero-vector10-bg {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

.hero-vector10-date {
  position: absolute;
  bottom: 25px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: "Garamond Narrow", serif;
  font-size: 32px;
  font-style: italic;
  letter-spacing: 0.5px;
  color: #1d1b1a;
  margin: 0;
  z-index: 4;
  pointer-events: none;
  width: 100%;
  text-shadow: 8px 4px 8px rgba(0, 0, 0, 0.5);
  border-color: rgba(0, 0, 0, 0);
  border-image: none;
}

.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 0;
}

.invitation-block {
  position: relative;
  background-image: url("фото/фотодлякалендаря.png");
  background-size: cover;
  background-position: center;
  color: #ffffff;
  margin-top: -20px; /* Slight overlap to prevent gaps */
}

.invitation-header {
  position: relative;
  width: 100%;
}

.invitation-title {
  position: absolute;
  top: 35%; /* Adjusted to be more centered on the white part of the wave */
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  margin-top: 0;
  margin-bottom: 0;
  text-align: center;
  font-family: "Garamond Narrow", serif;
  font-style: italic;
  font-size: 48px; /* Slightly larger */
  color: #1d1b1a;
  z-index: 2;
  font-weight: 400;
}

.block-vector-top {
  width: 100%;
  display: block;
  position: relative;
  z-index: 1;
}

.block-vector-bottom {
  width: 100%;
  display: block;
  transform: translateY(1px);
  margin-top: -10px;
}

.block-content {
  padding: 20px 30px;
  text-align: center;
}

.invitation-text {
  font-size: 19px;
  line-height: 1.4;
  margin-top: -40px;
  margin-bottom: 15px;
}

.invitation-subtext {
  font-size: 19px;
  line-height: 1.4;
  margin-bottom: 10px;
}

.divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  margin: 25px 0;
  width: 100%;
}

.calendar {
  padding: 10px 0 20px;
  text-align: center;
  color: #ffffff;
}

.calendar-title {
  font-family: "Garamond Narrow", serif;
  font-size: 32px;
  letter-spacing: 1px;
  margin-bottom: 25px;
  text-transform: uppercase;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 15px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 15px 0;
  font-size: 18px;
  align-items: center;
}

.calendar-day {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.calendar-day.muted {
  opacity: 0;
}

.calendar-day.selected {
  font-weight: 700;
  color: #1d1b1a;
  z-index: 1;
}

.calendar-day .heart-icon {
  position: absolute;
  width: 42px;
  height: 42px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.countdown {
  padding: 10px 0 30px;
  text-align: center;
  color: #ffffff;
}

.section-title {
  font-family: "Garamond Narrow", serif;
  font-size: 32px;
  margin-bottom: 35px;
  font-style: italic;
}

.countdown-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.countdown-separator {
  font-size: 42px;
  font-weight: normal;
  font-style: italic;
  line-height: 1;
  color: #ffffff;
  padding-top: 5px;
}

.countdown-value {
  font-size: 42px;
  font-weight: normal;
  font-style: italic;
  line-height: 1;
  margin-bottom: 12px;
}

.countdown-label {
  font-size: 20px;
  color: #ffffff;
  font-style: italic;
}

.location-item {
  padding: 40px 20px;
  background-image: url("фото/fon.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.location-item--ceremony {
  z-index: 1;
  position: relative;
  margin-top: -30px;
  margin-bottom: -30px;
  padding-top: 0;
  padding-bottom: 0;
}

.location-title-wrap {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 35px;
}

.location-title {
  font-family: "Garamond Narrow", serif;
  font-size: 30px;
  font-weight: normal;
  text-transform: uppercase;
  margin: 0;
  white-space: nowrap;
  letter-spacing: 2px;
  text-align: right;
}

.location-item--dinner .location-title {
  white-space: normal;
  line-height: 1.2;
}

.title-line {
  flex-grow: 1;
  height: 1px;
  background-color: #1d1b1a;
}

.location-item--ceremony .location-title-wrap {
  flex-direction: row;
}

.location-item--dinner .location-title-wrap {
  flex-direction: row-reverse;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 40px;
}

.location-info {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.location-item--ceremony .location-info {
  flex-direction: row;
}

.location-item--dinner .location-info {
  flex-direction: row-reverse;
  text-align: right;
}

.location-time-large {
  font-family: "Garamond Narrow", serif;
  font-style: italic;
  font-size: 60px;
  line-height: 0.8;
  color: #1d1b1a;
}

.location-address {
  font-family: "Garamond Narrow", serif;
  font-size: 16px;
  line-height: 1.3;
  color: #1d1b1a;
  flex: 1;
}

.location-place-name {
  font-family: "Garamond Narrow", serif;
  font-size: 22px;
  margin-bottom: 25px;
  color: #1d1b1a;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.location-item--ceremony .location-place-name {
  text-align: left;
}

.location-item--dinner .location-place-name {
  text-align: right;
}

.location-image {
  width: 100%;
  max-width: 360px;
  height: auto;
  aspect-ratio: 320 / 200;
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  text-align: left;
  object-fit: cover;
}

.location-item--dinner .location-image {
  margin-left: auto;
  margin-right: 0;
}

.primary-button {
  border: none;
  background: #000000;
  color: #ffffff;
  padding: 18px 20px;
  font-size: 16px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
  max-width: 360px;
  font-family: "Garamond Narrow", serif;
}

.location-item--dinner .primary-button {
  display: block;
  margin-left: auto;
  margin-right: 0;
}

.program {
  padding: 10px 20px;
  text-align: center;
  background-color: #f9f9f9;
  background-image: url("фото/fon.png");
  background-size: cover;
  background-position: center;
  position: relative;
  color: #1d1b1a;
}

.program-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 40px;
}

.ornament {
  width: 80px;
  height: auto;
  opacity: 1;
  margin-top: 0;
  margin-bottom: 0;
}

.ornament--right {
  transform: scaleX(-1);
}

.program-title {
  font-family: "Garamond Narrow", serif;
  font-size: 38px;
  line-height: 1;
  letter-spacing: 1px;
  margin: 10px 0 0;
  text-transform: uppercase;
  font-weight: normal;
}

.program-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.program-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  width: 100%;
}

.program-time {
  font-family: "Garamond Narrow";
  font-size: 40px;
  font-weight: 400;
  margin-bottom: 0px;
  color: rgba(29, 27, 26, 1);
  background-clip: unset;
  -webkit-background-clip: unset;
}

.program-desc {
  font-family: "Garamond Narrow", serif;
  font-size: 32px;
  color: #1d1b1a;
  line-height: 1.2;
}

.program-divider {
  width: 150px;
  height: 1px;
  background-color: #000000;
  opacity: 0.2;
}

.dresscode {
  padding: 20px 20px 60px;
  text-align: center;
  background-image: url("фото/fon.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #1d1b1a;
}

.dresscode-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.header-line {
  flex-grow: 1;
  height: 1px;
  background-color: #000000;
  max-width: 100px;
}

.dresscode-title {
  font-family: "Garamond Narrow", serif;
  font-size: 38px;
  letter-spacing: 2px;
  margin: 0;
  text-transform: uppercase;
  font-weight: normal;
  white-space: nowrap;
}

.dresscode-text {
  font-family: "Garamond Narrow", serif;
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 35px;
  color: #1d1b1a;
}

.color-palette {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 0 auto 50px;
  flex-wrap: wrap;
}

.color-palette span {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: block;
}

.dresscode-looks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  width: 100%;
}

.dresscode-looks img {
  width: 100%;
  height: 314px;
  display: block;
  object-fit: cover;
  border-radius: 0; /* Removing radius as per mockup */
}

.guest-form {
  padding: 60px 20px;
  text-align: center;
  background-image: url("фото/fon.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #1d1b1a;
  margin-top: -50px;
  margin-bottom: -50px;
}

.form-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
}

.form-title {
  font-family: "Garamond Narrow", serif;
  font-size: 38px;
  margin: 0;
  font-weight: normal;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-subtitle {
  font-family: "Garamond Narrow", serif;
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 50px;
  color: #1d1b1a;
}

.field {
  margin-bottom: 35px;
  text-align: left;
}

.field--text {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 45px;
}

.field--text label {
  font-family: "Garamond Narrow", serif;
  font-size: 22px;
}

.field--text input {
  border: none;
  border-bottom: 1px solid #000000;
  padding: 8px 0;
  font-family: inherit;
  font-size: 20px;
  background: transparent;
  outline: none;
  color: #000000;
}

.field-label {
  font-family: "Garamond Narrow", serif;
  font-size: 24px;
  margin-bottom: 18px;
  line-height: 1.2;
}

.custom-radio, .custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  cursor: pointer;
  font-family: "Garamond Narrow", serif;
  font-size: 20px;
  line-height: 1.3;
  position: relative;
}

.custom-radio input, .custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.radio-mark {
  height: 20px;
  width: 20px;
  border: 2px solid #000000;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox-mark {
  height: 20px;
  width: 20px;
  border: 2px solid #000000;
  border-radius: 0;
  display: inline-block;
  flex-shrink: 0;
  margin-top: 2px;
}

.custom-radio input:checked ~ .radio-mark {
  background-color: #000000;
  box-shadow: inset 0 0 0 3px #ffffff;
}

.custom-checkbox input:checked ~ .checkbox-mark {
  background-color: #000000;
  box-shadow: inset 0 0 0 3px #ffffff;
}

.form-footer-note {
  font-family: "Garamond Narrow", serif;
  font-size: 19px;
  line-height: 1.4;
  text-align: left;
  margin: 40px 0 50px;
  font-style: italic;
}

.form-submit-wrap {
  display: flex;
  justify-content: center;
}

.submit-button {
  width: 100%;
  max-width: 280px;
  background: #000000;
  color: #ffffff;
  padding: 18px;
  font-size: 18px;
  letter-spacing: 2px;
}

.materials {
  padding: 40px 20px 140px;
  text-align: center;
  position: relative;
  background-image: url("фото/fon.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #1d1b1a;
  overflow: hidden;
}

.materials-title {
  font-family: "Garamond Narrow", serif;
  font-size: 38px;
  line-height: 1.1;
  margin-bottom: 30px;
  font-weight: normal;
}

.materials-button-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.materials-button {
  background: #000000;
  color: #ffffff;
  padding: 10px 40px;
  font-size: 24px;
  text-transform: none;
  letter-spacing: 0;
  width: auto;
  min-width: 200px;
}

.materials-note {
  font-family: "Garamond Narrow", serif;
  font-size: 20px;
  color: #6f6a66;
  font-style: italic;
}

.materials-flowers {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  pointer-events: none;
}

.materials-flower {
  position: absolute;
  width: 260px;
  height: auto;
  bottom: -80px;
  filter: grayscale(1);
  pointer-events: none;
}

.materials-flower--left {
  top: -80px;
  bottom: auto;
  left: 0px;
  transform: matrix(-0.939693, -0.34202, -0.34202, 0.939693, 0, 0) rotate(20deg);
}

.materials-flower--right {
  top: -120px;
  right: -80px;
  left: 200px;
  bottom: -80px;
  transform: rotate(20deg);
}

@media (min-width: 600px) {
  body {
    background: #e9e4df;
  }

  .page {
    max-width: 520px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
  }

  h2 {
    font-size: 26px;
  }

  .hero-title {
    font-size: 88px;
    left: 30px;
    right: 30px;
  }

  .name-line-1 {
    font-size: clamp(90px, 24vw, 130px);
    margin-top: -40px;
  }

  .name-line-2 {
    font-size: clamp(90px, 24vw, 130px);
    padding-left: clamp(160px, 38vw, 240px);
    margin-top: -15px;
  }

  .hero-title .amp {
    font-size: 180px;
  }

  .hero-vector10-date {
    font-size: 40px;
    bottom: 30px;
  }

  .invitation-title {
    font-size: 58px;
  }

  .invitation-text,
  .invitation-subtext {
    font-size: 22px;
  }

  .calendar-title,
  .section-title {
    font-size: 38px;
  }

  .calendar-weekdays {
    font-size: 18px;
  }

  .calendar-grid {
    font-size: 21px;
    gap: 20px 0;
  }

  .calendar-day .heart-icon {
    width: 50px;
    height: 50px;
  }

  .countdown-value {
    font-size: 52px;
  }

  .countdown-separator {
    font-size: 52px;
  }

  .countdown-label {
    font-size: 22px;
  }

  .location-title {
    font-size: 34px;
  }

  .location-time-large {
    font-size: 72px;
  }

  .location-address {
    font-size: 18px;
  }

  .location-place-name {
    font-size: 26px;
  }

  .program-title,
  .dresscode-title,
  .form-title,
  .materials-title {
    font-size: 44px;
  }

  .program-time {
    font-size: 48px;
  }

  .program-desc {
    font-size: 36px;
  }

  .dresscode-text,
  .form-subtitle,
  .materials-note {
    font-size: 24px;
  }

  .color-palette span {
    width: 56px;
    height: 56px;
  }

  .field-label {
    font-size: 28px;
  }

  .field--text label {
    font-size: 24px;
  }

  .field--text input {
    font-size: 22px;
  }

  .custom-radio,
  .custom-checkbox {
    font-size: 22px;
  }

  .radio-mark,
  .checkbox-mark {
    height: 24px;
    width: 24px;
  }

  .countdown-grid {
    max-width: 440px;
  }

  .location-image {
    max-width: 440px;
  }

  .primary-button {
    max-width: 440px;
  }

  .submit-button {
    max-width: 320px;
    font-size: 20px;
  }

  .materials-button {
    font-size: 28px;
    min-width: 240px;
  }

  .materials-flower {
    width: 200px;
  }

  .materials-flower--left {
    left: -20px;
    top: -60px;
  }

  .materials-flower--right {
    right: -40px;
    top: -100px;
    left: auto;
  }
}

@media (min-width: 1024px) {
  .page {
    max-width: 620px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
  }

  .hero-title {
    font-size: 104px;
    top: 30px;
  }

  .name-line-1 {
    font-size: clamp(110px, 26vw, 130px);
  }

  .name-line-2 {
    font-size: clamp(110px, 26vw, 130px);
    padding-left: clamp(200px, 40vw, 240px);
  }

  .hero-title .amp {
    font-size: 210px;
  }

  .invitation-title {
    font-size: 68px;
  }

  .invitation-text,
  .invitation-subtext {
    font-size: 24px;
  }

  .calendar-title,
  .section-title {
    font-size: 44px;
  }

  .location-time-large {
    font-size: 84px;
  }

  .location-address {
    font-size: 20px;
  }

  .program-title,
  .dresscode-title,
  .form-title,
  .materials-title {
    font-size: 52px;
  }

  .program-time {
    font-size: 56px;
  }

  .program-desc {
    font-size: 42px;
  }

  .location-image {
    max-width: 520px;
  }

  .primary-button {
    max-width: 520px;
  }

  .countdown-grid {
    max-width: 500px;
  }

  .dresscode-text,
  .form-subtitle,
  .materials-note {
    font-size: 26px;
  }

  .materials-flower {
    width: 220px;
  }

  .materials-flower--left {
    left: -30px;
    top: -70px;
  }

  .materials-flower--right {
    right: -50px;
    top: -110px;
    left: auto;
  }
}
