/* ============================================================
   ЛОКАЛЬНЫЕ ШРИФТЫ
   ============================================================ */

@font-face{
  font-family:'Cormorant Garamond';
  src:url('../fonts/cormorant-garamond-400-normal.woff2') format('woff2');
  font-style:normal;
  font-weight:400;
  font-display:swap;
}
@font-face{
  font-family:'Cormorant Garamond';
  src:url('../fonts/cormorant-garamond-300-italic.woff2') format('woff2');
  font-style:italic;
  font-weight:300;
  font-display:swap;
}
@font-face{
  font-family:'Cormorant Garamond';
  src:url('../fonts/cormorant-garamond-400-italic.woff2') format('woff2');
  font-style:italic;
  font-weight:400;
  font-display:swap;
}
@font-face{
  font-family:'Cormorant Garamond';
  src:url('../fonts/cormorant-garamond-500-italic.woff2') format('woff2');
  font-style:italic;
  font-weight:500;
  font-display:swap;
}

@font-face{
  font-family:'Playfair Display';
  src:url('../fonts/playfair-display-500-normal.woff2') format('woff2');
  font-style:normal;
  font-weight:500;
  font-display:swap;
}
@font-face{
  font-family:'Playfair Display';
  src:url('../fonts/playfair-display-500-italic.woff2') format('woff2');
  font-style:italic;
  font-weight:500;
  font-display:swap;
}

@font-face{
  font-family:'Manrope';
  src:url('../fonts/manrope-400-normal.woff2') format('woff2');
  font-style:normal;
  font-weight:400;
  font-display:swap;
}
@font-face{
  font-family:'Manrope';
  src:url('../fonts/manrope-500-normal.woff2') format('woff2');
  font-style:normal;
  font-weight:500;
  font-display:swap;
}

@font-face{
  font-family:'Caveat';
  src:url('../fonts/caveat-500-normal.woff2') format('woff2');
  font-style:normal;
  font-weight:500;
  font-display:swap;
}

/* ============================================================
   РАДИК & АДЕЛЯ — адаптивные стили
   ============================================================ */
:root{
  --bg:          #f3efe6;
  --bg-card:     #faf7f0;
  --green-dark:  #575e46;
  --green-mid:   #6b7355;
  --green-soft:  #aab29a;
  --text:        #2a2a26;
  --text-soft:   #00000; /*#6A6A60*/
  --line:        #d3cdbc;
  --line-soft:   #e2ddcf;
  --white:       #ffffff;
  --page-max:    1080px;
  --text-main:   clamp(20px, 2vw, 26px);

  /* Основной шрифт для кириллицы и татарского текста */
  --font-tat:    'Cormorant Garamond', 'Playfair Display', serif;
}

*{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth; overflow-x: hidden;}

body{
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,svg{display:block; max-width:100%;}
a{color:inherit; text-decoration:none;}
button{font-family:inherit; cursor:pointer; border:none; background:none; color:inherit;}

.m-only{ display: none !important; }
@media (max-width: 900px){
  .d-only{ display: none !important; }
  .m-only{ display: revert !important; }
}

/* ---------- Типографика ---------- */
.h2{
  font-family:'Cormorant Garamond', 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.005em;
}
.h2 em{
  font-family:'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--green-dark);
}
.h2--light{ color: #f3efe6; }
.h2--light em{ color: #e8e0d2; }

.num{
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--text-soft);
  margin-bottom: 20px;
}
.num--light{ color: rgba(243,239,230,.6); }

.tag{
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 16px;
}
.tag--light{ color: rgba(243,239,230,.72); }

.script{
  font-family:'Caveat', cursive;
  font-size: clamp(26px, 3vw, 42px);
  line-height: .95;
  color: var(--green-dark);
  font-weight: 500;
}

/* ---------- HEADER ---------- */
.header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243,239,230,.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner{
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 22px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo{
  font-family:'Playfair Display', serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: .02em;
}
.logo span{
  font-style: italic;
  color: var(--green-mid);
  font-size: 24px;
  margin: 0 1px;
}
.logo--small{ font-size:16px; }
.logo--small span{ font-size:18px; }
.logo--center{ text-align: center; display: block; margin: 40px 0 20px; }

.nav{
  display: none;
}
.nav a:hover{ color: var(--green-dark); }
.nav-lang{ color: var(--green-dark); font-weight: 600; }

/* ---------- Переключатель языка ---------- */
.lang-switch{
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.lang-link{
  color: var(--text-soft);
  cursor: pointer;
  transition: color .2s, opacity .2s;
  opacity: .6;
  font-weight: 500;
}
.lang-link:hover{ color: var(--green-dark); opacity: 1; }
.lang-link--active{ color: var(--green-dark); opacity: 1; font-weight: 700; }
.lang-sep{ color: var(--line); font-weight: 300; opacity: .8; }

.burger{
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.burger span{
  width: 24px;
  height: 1.5px;
  background: var(--text);
}

/* ---------- ЛЕНТА ---------- */
.ribbon-area{ position: relative; z-index: 1; }

.ribbon-layer{
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.ribbon-layer img{
  position: absolute;
  top: -4%;
  right: 0;
  width: 60vw;
  max-width: 720px;
  min-width: 380px;
  height: 108%;
  object-fit: cover;
  object-position: right top;
  transform: translateZ(0) rotate(3deg);
  transform-origin: top right;
  opacity: 0.95;
}

.hero-ribbon-mobile{ display: none; }

/* ---------- HERO ---------- */
.hero{
  position: relative;
  padding: 70px 40px 90px;
  max-width: var(--page-max);
  margin: 0 auto;
  text-align: center;
  overflow: hidden;
}
.hero-side{
  position: absolute;
  top: 40px;
  right: 40px;
  z-index: 2;
}
.ornament{ width: 48px; height: 48px; color: var(--green-dark); }

.hero-content{
  position: relative;
  z-index: 1;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
}

.hero-eyebrow-wrap{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 36px;
}
.hero-laurel{
  width: 44px;
  height: 16px;
  color: var(--green-dark);
  opacity: .85;
  flex-shrink: 0;
}
.hero-laurel--right{ transform: scaleX(-1); }

.hero-eyebrow{
  font-size: 10px;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--text-soft);
  white-space: nowrap;
  padding-left: .38em;
  font-family:'Manrope', sans-serif;
  font-weight: 400;
}

.names{
  font-family:'Cormorant Garamond', 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(52px, 6.4vw, 96px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  text-align: center;
  white-space: nowrap;
}
.names-line .name-word:last-child{
  font-family:'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
}

.name-word{ display: inline-block; }
.names-line{ display: inline-block; white-space: nowrap; }

.amp-decor{
  display: inline-flex;
  align-items: center;
  gap: 0.22em;
  margin: 0 0.16em;
  vertical-align: middle;
  position: relative;
  top: -0.04em;
}
.amp-diamond{
  width: 6px;
  height: 6px;
  background: var(--green-dark);
  transform: rotate(45deg);
  flex-shrink: 0;
  opacity: 0.55;
}
.amp{
  font-family:'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--green-dark);
  font-size: 0.92em;
}

.hero-divider{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 32px;
}
.hero-divider-line{
  width: 70px;
  height: 1px;
  background: var(--line);
  display: block;
}
.hero-divider-diamond{
  width: 6px;
  height: 6px;
  background: var(--green-dark);
  transform: rotate(45deg);
  display: block;
  opacity: 0.6;
}

.hero-date{
  font-family:'Manrope', system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: .42em;
  color: var(--text);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
  display: block;
  padding-left: .42em;
}
.hero-place{
  font-size: 10.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: 12px;
}
.hero-invite{
  font-family:'Cormorant Garamond', serif;
  font-style: italic;
  font-size: var(--text-main);
  line-height: 1.5;
  margin: 32px auto 26px;
  max-width: 520px;
}
.hero-confirm{
  font-family:'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16px;
  line-height: 1.4;
  color: var(--text-soft);
  margin: 0 auto 24px;
  max-width: 430px;
}

.btn{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  border-radius: 40px;
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  transition: .25s;
}
.btn-primary{ background: var(--green-dark); color: #f3efe6; }
.btn-primary:hover{ background:#434a35; transform: translateY(-1px); }
.btn-outline{ border: 1px solid var(--line); color: var(--text); }
.btn-outline:hover{ border-color: var(--green-dark); color: var(--green-dark); }

.divider{
  height: 1px;
  background: var(--line);
  opacity: .6;
  max-width: var(--page-max);
  margin: 0 auto;
}

/* ============================================================
   STORY (02)
   ============================================================ */
.story{
  padding: 80px 40px;
  max-width: var(--page-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 160px 1fr 200px;
  gap: 50px;
  align-items: start;
}
.story-label{ position: relative; z-index: 1; }
.story-content{ max-width: 640px; position: relative; z-index: 1; }

.story-eyebrow{
  font-family:'Caveat', cursive;
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1;
  color: var(--green-dark);
  font-weight: 500;
  margin-bottom: 26px;
}
.story-text{
  font-family:'Cormorant Garamond', serif;
  font-size: var(--text-main);
  line-height: 1.55;
  color: var(--text-soft);
  margin-bottom: 18px;
  max-width: 560px;
}
.story-side{ text-align: right; position: relative; z-index: 1; }
.story-h2-side{
  font-family:'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.2;
  color: var(--text);
  margin-top: 12px;
}
/*.story-h2-side em{
  font-family:'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--green-dark);
}*/
.story-h2-side em{
  font-family:'Cormorant Garamond', 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--green-dark);
}
/* ============================================================
   PROGRAM
   ============================================================ */
.program{
  background: linear-gradient(180deg, #5f6650 0%, #565d47 100%);
  color: #f3efe6;
  padding: 90px 40px;
  position: relative;
  z-index: 2;
}
.program-inner{
  max-width: var(--page-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 70px;
  align-items: start;
}
.program-title{ max-width: 480px; }

.timeline{
  list-style: none;
  display: grid;
  gap: 6px;
  padding-left: 40px;
  border-left: 1px solid rgba(243,239,230,.22);
  max-width: 560px;
}
.timeline li{
  display: grid;
  grid-template-columns: 88px 30px 1fr;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
}
.tl-time{
  font-family:'Cormorant Garamond', serif;
  font-size: var(--text-main);
  color: rgba(243,239,230,.95);
  letter-spacing: .04em;
  white-space: nowrap;
}
.tl-icon{
  width: 26px;
  height: 26px;
  color: rgba(243,239,230,.92);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tl-icon svg{ width: 100%; height: 100%; }
.tl-text{
  font-family:'Cormorant Garamond', serif;
  font-size: var(--text-main);
  letter-spacing: .02em;
  color: rgba(243,239,230,.96);
  line-height: 1.35;
}

.program-quote{ display: none; }

/* ============================================================
   PLACE
   ============================================================ */
.place{
  padding: 90px 40px;
  max-width: var(--page-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  grid-template-areas:
    "head photo"
    "body photo";
  column-gap: 30px;
  align-items: start;
}
.place-head{ grid-area: head; position: relative; z-index: 1; padding-bottom: 6px; }
.place-body{ grid-area: body; position: relative; z-index: 1; }
.place-body .h2{ margin: 0 0 22px; }
.place-addr{
  font-family:'Cormorant Garamond', serif;
  font-size: var(--text-main);
  line-height: 1.5;
  color: var(--text-soft);
  margin-bottom: 32px;
}
.place-addr span{ display: inline; }
.place-addr span + span::before{ content: " "; }

.place-photo{
  grid-area: photo;
  align-self: center;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow:
    0 24px 60px rgba(80,75,55,.14),
    0 4px 12px rgba(80,75,55,.06);
}
.place-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s ease;
}
.place-photo:hover img{ transform: scale(1.04); }
.place-photo::after{
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 16px;
  pointer-events: none;
}

/* ============================================================
   DRESS
   ============================================================ */
.dress{
  padding: 90px 40px;
  max-width: var(--page-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.dress-title{ position: relative; z-index: 1; }
.dress-title .h2{ margin: 4px 0 32px; }

.palette{ display: flex; gap: 14px; margin-bottom: 30px; }
.palette span{
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: block;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.05);
}
.dress-note{
  font-family:'Cormorant Garamond', serif;
  font-size: var(--text-main);
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 480px;
}

.dress-script{ text-align: center; padding: 20px; position: relative; z-index: 1; }
.heart-doodle{
  width: 30px; height: 28px; margin: 18px auto 0;
  color: var(--green-dark); opacity: .85;
}
.dress-gallery, .dress-dots{ display: none !important; }

/* ============================================================
   FORM
   ============================================================ */
.form{
  padding: 60px 40px 100px;
  max-width: var(--page-max);
  margin: 0 auto;
}
.form-card{
  background: var(--bg-card);
  border-radius: 24px;
  padding: 52px 54px;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 60px;
  border: 1px solid var(--line-soft);
  box-shadow: 0 12px 40px rgba(80,75,55,.05);
  position: relative;
  z-index: 5;
  overflow: hidden;
}
.form-left{ position: relative; z-index: 2; }
.form-left .h2{ margin: 4px 0 20px; }
.form-sub{
  font-family:'Cormorant Garamond', serif;
  font-size: var(--text-main);
  line-height: 1.5;
  color: var(--text-soft);
  margin-bottom: 32px;
  max-width: 380px;
}
.form-left .script{ margin-top: 24px; font-size: clamp(22px, 2.4vw, 30px); }

.flower-decor{
  position: absolute;
  left: -30px;
  bottom: -20px;
  width: 240px;
  height: auto;
  opacity: .85;
  pointer-events: none;
  z-index: 1;
  content-visibility: auto;
  contain-intrinsic-size: 240px;
}

.form-right{ display: grid; gap: 26px; align-content: start; position: relative; z-index: 2; }
.field{ display: grid; gap: 10px; border: none; }
.field > span, .field legend{
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 500;
}
.field em{ color: #a86248; font-style: normal; }

.field input[type="text"]{
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  color: var(--text);
  width: 100%;
  transition: border-color .2s;
}
.field input[type="text"]:focus{ outline: none; border-color: var(--green-mid); }
.field input[type="text"]::placeholder{
  color: #b3ae9f;
  font-style: italic;
  font-family:'Cormorant Garamond', serif;
  font-size: 18px;
}

.radio{
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  padding: 6px 0;
}
.radio input{
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: .2s;
}
.radio input:checked{ border-color: var(--green-dark); }
.radio input:checked::after{
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--green-dark);
}

.btn-submit{ justify-content: center; width: 100%; margin-top: 8px; }
.form-success{
  text-align: center;
  color: var(--green-dark);
  font-family:'Cormorant Garamond', serif;
  font-size: 20px;
  font-style: italic;
  padding: 8px 0;
}

/* ============================================================
   CONTACTS
   ============================================================ */
.contacts{
  padding: 90px 40px 110px;
  max-width: var(--page-max);
  margin: 0 auto;
  position: relative;
}
.contacts .num{
  position: absolute;
  top: 90px;
  left: 40px;
  margin-bottom: 0;
}
.contacts-inner{
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.contacts .tag{ margin-bottom: 26px; }

/* Имя координатора — Cormorant Garamond с поддержкой татарских букв */
.coord-name{
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 12px;
}

.coord-sep{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 32px auto;
}
.coord-sep-line{
  width: 50px;
  height: 1px;
  background: var(--line);
  display: block;
}
.coord-sep-diamond{
  width: 5px;
  height: 5px;
  background: var(--green-dark);
  transform: rotate(45deg);
  display: block;
  opacity: 0.6;
}

.coord-text{
  font-family:'Cormorant Garamond', serif;
  font-size: var(--text-main);
  line-height: 1.55;
  color: var(--text-soft);
  margin: 0 auto 32px;
  max-width: 500px;
}

.coord-phone{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family:'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--green-dark);
  padding: 15px 30px;
  border: 1px solid var(--line);
  border-radius: 40px;
  transition: .25s;
}
.coord-phone:hover{
  border-color: var(--green-dark);
  background: rgba(87,94,70,.04);
  transform: translateY(-1px);
}
.coord-phone svg{ width: 20px; height: 20px; flex-shrink: 0; }

.quote{ display: none !important; }
.finale{ display: none !important; }

/* ---------- FOOTER ---------- */
.footer{
  border-top: 1px solid var(--line);
  padding: 32px 40px;
}
.footer-inner{
  max-width: var(--page-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-note, .footer-date{
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--text-soft);
}

/* ============================================================
   АДАПТИВ — TABLET
   ============================================================ */
@media (max-width: 1100px){
  .hero{ padding: 60px 26px 80px; }
  .hero-side{ top: 30px; right: 26px; }
  .names{ font-size: clamp(46px, 7vw, 82px); }
  .story{
    grid-template-columns: 130px 1fr 160px;
    gap: 36px;
    padding: 60px 26px;
  }
  .story-eyebrow{ font-size: clamp(32px, 4vw, 48px); }
  .story-h2-side{ font-size: clamp(17px, 1.6vw, 22px); }
  .place{ column-gap: 26px; padding: 70px 26px; }
  .form{ padding: 50px 26px 80px; }
  .contacts{ padding: 70px 26px 90px; }
  .contacts .num{ top: 70px; left: 26px; }
  .program{ padding: 80px 26px; }
  .program-inner{ gap: 50px; }
  .dress{ padding: 70px 26px; }
  .ribbon-layer img{ width: 55vw; max-width: 640px; }
  .header-inner{ padding: 22px 26px; }
}

/* ============================================================
   МОБИЛЬНАЯ ВЕРСИЯ (≤ 900px)
   ============================================================ */
@media (max-width: 900px){

:root{ --text-main: 19px; }

.header-inner{ padding: 18px 20px; }
.nav{ display: none; }
.burger{ display: flex; }

.ribbon-layer{ display: none !important; }
.hero-ribbon-mobile{ display: none; }


  @media (max-width: 900px){

  .header-inner{
    padding: 18px 20px;
  }

  .nav{
    display: none;
  }

  .lang-switch{
    display: inline-flex;
    margin-left: auto;
    margin-right: 14px;
    font-size: 11px;
    letter-spacing: .12em;
  }

  .lang-link{
    opacity: .8;
  }

  .lang-link--active{
    opacity: 1;
  }

  .burger{
    display: flex;
  }

}
/* HERO */
.hero{
  display: block;
  padding: 30px 20px 40px;
  max-width: 480px;
  margin: 0 auto;
  overflow: hidden;
  text-align: center;
}
.hero-side{ display: none !important; }
.hero-content{ position: relative; z-index: 1; max-width: 100%; text-align: center; }
.hero-eyebrow-wrap{ gap: 10px; margin-bottom: 30px; }
.hero-laurel{ width: 32px; height: 12px; }
.hero-eyebrow{ font-size: 9px; letter-spacing: .26em; padding-left: .26em; }
.names{
  font-size: 54px;
  line-height: .95;
  margin: 0 0 24px;
  white-space: normal;
}
.name-word{ display: block; }
.names-line{ display: block; margin-top: -0.05em; }
.amp-decor{ display: inline-flex; gap: 0; margin-right: 0.22em; margin-left: 0; vertical-align: baseline; top: 0; }
.amp-diamond{ display: none; }
.hero-divider{ gap: 10px; margin-bottom: 26px; }
.hero-divider-line{ width: 40px; }
.hero-divider-diamond{ width: 5px; height: 5px; }
.hero-date{ font-size: 13px; letter-spacing: .32em; padding-left: .32em; display: block; }
.hero-place{ font-size: 10px; margin-top: 6px; }
.hero-invite{ font-size: 18px; margin: 22px auto 18px; max-width: 100%; }
.hero .btn{ display: flex; width: 100%; justify-content: center; margin-top: 8px; }

/* Общие отступы */
.story, .program, .place, .dress, .form{
  padding: 30px 20px;
  max-width: 480px;
  margin: 0 auto;
  display: block;
}
.divider{ display: none; }

/* STORY */
.story-label{ margin-bottom: 20px; }
.story-content{ max-width: 100%; }
.story-eyebrow{ font-size: 38px; margin-bottom: 20px; }
.story-text{ font-size: 19px; max-width: 100%; }
.story-side{ display: none !important; }

/* PROGRAM */
.program{
  background: linear-gradient(180deg, #5f6650 0%, #565d47 100%);
  color: #f3efe6;
  padding: 50px 20px;
  max-width: 100%;
}
.program-inner{ display: block; }
.program-title .num,
.program-title .tag{ color: rgba(243,239,230,.6); }
.program-h2{ display: none !important; }

.timeline{
  border-left: none;
  padding: 0;
  gap: 20px;
  margin-top: 20px;
  position: relative;
  max-width: 100%;
}
.timeline::before{
  content: '';
  position: absolute;
  left: 24px; top: 12px; bottom: 12px;
  width: 1px;
  background: rgba(243,239,230,.25);
}
.timeline li{
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-areas: "icon time" "icon text";
  align-items: center;
  column-gap: 16px;
  row-gap: 4px;
  padding: 0;
  position: relative;
  z-index: 1;
}
.tl-icon{
  grid-area: icon;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  color: var(--green-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.tl-icon svg{ width: 24px; height: 24px; }
.tl-time{ grid-area: time; font-family:'Cormorant Garamond', serif; font-size: 20px; font-weight: 500; color: #f3efe6; }
.tl-text{ grid-area: text; font-family:'Cormorant Garamond', serif; font-size: 19px; color: rgba(243,239,230,.92); line-height: 1.3; }

.program-quote{
  display: block !important;
  position: relative;
  background: rgba(243,239,230,.08);
  border-radius: 12px;
  padding: 28px 24px;
  margin-top: 30px;
  color: #f3efe6;
}
.program-quote svg{ position: absolute; top: 20px; right: 20px; width: 32px; height: 24px; opacity: .3; color: #f3efe6; }
.program-quote p{ font-family:'Cormorant Garamond', serif; font-size: 28px; line-height: 1.15; }

/* PLACE */
.place{ display: block; padding: 30px 20px; max-width: 480px; margin: 0 auto; }
.place-head{ padding-bottom: 0; margin-bottom: 22px; }
.place-head .num{ margin-bottom: 14px; }
.place-head .tag{ margin-bottom: 0; }
.place-photo{
  margin: 0 0 28px;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(80,75,55,.14), 0 4px 10px rgba(80,75,55,.06);
}
.place-photo::after{ inset: 8px; border-radius: 12px; }
.place-body .h2{ font-size: 34px; margin: 0 0 20px; }
.place-addr{ font-size: 19px; margin-bottom: 24px; }
.place-addr span{ display: block; }
.place-addr span + span::before{ content: none; }
.place .btn{ display: flex; width: 100%; justify-content: center; margin-top: 8px; }

/* DRESS */
.dress-title .h2{ font-size: 34px; margin: 4px 0 20px; }
.dress-script{ display: none !important; }
.palette{ gap: 10px; margin-bottom: 20px; }
.palette span{ width: 40px; height: 40px; }
.dress-note{ font-size: 19px; margin-bottom: 24px; }
.dress .btn{ display: flex; width: 100%; justify-content: center; }

.dress-gallery{
  display: grid !important;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 8px;
  margin: 24px 0 14px;
}
.dress-gallery img{ width: 100%; height: 220px; object-fit: cover; border-radius: 8px; }
.dress-dots{ display: flex !important; gap: 6px; justify-content: center; }
.dress-dots span{ width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.dress-dots span.active{ background: var(--green-dark); }

/* FORM */
.form-card{ display: block; padding: 0; border: none; background: transparent; box-shadow: none; border-radius: 0; }
.form-left{ padding-bottom: 0; }
.form-left .h2{ font-size: 34px; margin: 4px 0 20px; }
.form-sub{ font-size: 19px; max-width: 100%; }
.form-left .script{ display: none !important; }
.form-right{ gap: 20px; margin-top: 24px; }
.field > span, .field legend{ font-size: 12px; letter-spacing: .06em; margin-bottom: 4px; }
.field input[type="text"]{ font-size: 18px; padding: 15px 16px; }
.field input[type="text"]::placeholder{ font-size: 17px; }
.radio{ font-size: 18px; padding: 8px 0; }
.radio input{ width: 20px; height: 20px; border-width: 1.5px; }
.radio input:checked::after{ inset: 4px; }

/* CONTACTS — на мобильном весь блок СЛЕВА */
.contacts{ padding: 40px 20px 70px; max-width: 480px; margin: 0 auto; position: static; }
.contacts .num{ position: static; top: auto; left: auto; margin-bottom: 14px; }
.contacts-inner{ max-width: 100%; margin: 0; text-align: left; }
.contacts .tag{ margin-bottom: 22px; text-align: left; }
.coord-name{ font-size: 44px; margin-bottom: 12px; text-align: left; }
.coord-sep{ margin: 26px 0; justify-content: flex-start; }
.coord-sep-line{ width: 40px; }
.coord-text{ font-size: 19px; margin: 0 0 28px; text-align: left; max-width: 100%; }
.coord-phone{ font-size: 17px; padding: 14px 26px; gap: 10px; display: inline-flex; }

/* QUOTE / FINALE */
.quote{
  display: block !important;
  background: linear-gradient(180deg, #5f6650 0%, #565d47 100%);
  color: #f3efe6;
  padding: 50px 26px 40px;
  text-align: center;
}
.quote svg{ width: 40px; height: 30px; opacity: .55; margin: 0 auto 18px; }
.quote-text{ font-family:'Cormorant Garamond', serif; font-size: 32px; line-height: 1.1; margin-bottom: 24px; }
.quote-sign{ font-size: 10px; letter-spacing: .35em; text-transform: uppercase; opacity: .75; }

.finale{ display: block !important; padding: 40px 20px; text-align: center; position: relative; }
.finale-flower{ display: block; width: 220px; margin: 0 auto 20px; opacity: .9; }
.finale-words{ font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--text-soft); line-height: 1.9; margin-bottom: 24px; }
.finale-date{ font-family:'Manrope', system-ui, sans-serif; font-size: 11px; letter-spacing: .28em; color: var(--text-soft); line-height: 1.9; margin-bottom: 30px; }
.up{
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--green-dark);
  transition: .2s;
}
.up:hover{ background: var(--green-dark); color: #f3efe6; border-color: var(--green-dark); }
.up svg{ width: 20px; height: 20px; }

.footer{ display: none !important; }
}

@media (max-width: 380px){
  :root{ --text-main: 18px; }
  .names{ font-size: 44px; }
  .h2{ font-size: 28px; }
  .hero-laurel{ width: 24px; height: 10px; }
  .hero-eyebrow{ font-size: 8px; letter-spacing: .22em; padding-left: .22em; }
  .story-eyebrow{ font-size: 32px; }
  .story-text{ font-size: 18px; }
  .coord-name{ font-size: 38px; }
  .coord-text{ font-size: 18px; }
}
/* ============================================================
   ОПТИМИЗАЦИЯ ПРОИЗВОДИТЕЛЬНОСТИ
   ============================================================ */

/* Пропускать рендер блоков вне экрана — ускоряет первый рендер */
.ribbon-area--bottom .ribbon-layer,
.program-quote,
.quote,
.finale,
.m-finale {
  content-visibility: auto;
  contain-intrinsic-size: 0 600px;
}

/* Лента — не перерисовывается при скролле */
.ribbon-layer img {
  will-change: auto;
  transform: translateZ(0) rotate(3deg);
}

/* Радио и кнопки — быстрый отклик */
.radio input,
.btn {
  will-change: auto;
}

/* Картинки — не дёргают layout */
img {
  height: auto;
}
/* Секции после hero — рендерятся только когда доскроллят */
.story,
.program,
.place,
.dress,
.form,
.questions,
.contacts {
  content-visibility: auto;
  contain-intrinsic-size: 0 900px;
}

/* Но первый экран (hero) должен быть виден сразу */
.hero {
  content-visibility: visible;
}
/* ============================================================
   ДРЕСС-КОД
   ============================================================ */

.dress-code{
  padding: 70px 40px;
  max-width: var(--page-max);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dress-code-inner{
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  column-gap: 55px;
  align-items: center;
}


/* ---------- Левая часть ---------- */

.dress-code-head{
  position: relative;
  z-index: 1;
}

.dress-code-head .num{
  margin-bottom: 16px;
}

.dress-code-label-row{
  display: flex;
  align-items: center;
  gap: 12px;
}


/* ---------- Текст ---------- */

.dress-code-content{
  min-width: 0;
}

.dress-code-text{
  margin: 0;
  max-width: none;

  font-family: 'Cormorant Garamond', serif;
  font-size: var(--text-main);
  line-height: 1.45;
  color: var(--text-soft);

  white-space: nowrap;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1100px){

  .dress-code{
    padding: 60px 26px;
  }

  .dress-code-inner{
    grid-template-columns: 140px minmax(0, 1fr);
    column-gap: 40px;
  }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 900px){

  .dress-code{
    padding: 40px 20px;
    max-width: 480px;
    margin: 0 auto;
  }

  .dress-code-inner{
    display: block;
  }

  .dress-code-head{
    margin-bottom: 18px;
  }

  .dress-code-head .num{
    margin-bottom: 14px;
  }

  .dress-code-label-row{
    gap: 10px;
  }

  .dress-code-icon{
    width: 25px;
    height: 25px;
    flex-basis: 25px;
  }

  .dress-code-text{
    font-size: 19px;
    line-height: 1.45;
    max-width: 100%;
    white-space: normal;
  }
}


/* ============================================================
   VERY SMALL MOBILE
   ============================================================ */

@media (max-width: 380px){

  .dress-code{
    padding: 36px 20px;
  }

  .dress-code-icon{
    width: 23px;
    height: 23px;
    flex-basis: 23px;
  }

  .dress-code-text{
    font-size: 18px;
    white-space: normal;
  }
}