:root{--bg:#f5efe5;--paper:#fffaf2;--brown:#3f2b1d;--soft:#7d6149;--gold:#b8915b;--green:#35432b}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--brown);font-family:"Montserrat",sans-serif;font-weight:300}
.nav{position:fixed;z-index:10;top:0;left:0;width:100%;display:flex;justify-content:center;gap:34px;padding:22px 20px;background:linear-gradient(to bottom,rgba(20,14,10,.62),rgba(20,14,10,0))}
.nav a{color:#fff7ec;text-decoration:none;text-transform:uppercase;font-size:12px;letter-spacing:.12em}
.hero{min-height:100vh;position:relative;display:grid;place-items:center;overflow:hidden;background:url("hero.jpg") center/cover no-repeat}
.hero-overlay{position:absolute;inset:0;background:radial-gradient(circle at 50% 42%,rgba(0,0,0,.05),rgba(0,0,0,.58) 70%),linear-gradient(to bottom,rgba(0,0,0,.28),rgba(0,0,0,.45))}
.hero-content{position:relative;color:#fff8ed;text-align:center;padding:120px 20px 40px;max-width:900px;animation:fadeUp 1.2s ease both}
.monogram{font-family:"Cormorant Garamond",serif;font-size:42px;letter-spacing:.15em;color:#f1d3a4}.monogram span{font-family:"Great Vibes",cursive;color:#d3a66d;letter-spacing:0}
.overline{text-transform:uppercase;letter-spacing:.22em;font-size:14px;color:#e4c391;margin:24px 0 10px}.overline.dark{color:var(--gold)}
h1{font-family:"Cormorant Garamond",serif;font-size:clamp(58px,10vw,120px);font-weight:500;line-height:.78;margin:18px 0;text-transform:uppercase;letter-spacing:.07em}
h1 span{font-family:"Great Vibes",cursive;color:#d7a36d;font-size:.75em;text-transform:none}.date-line{font-family:"Cormorant Garamond",serif;font-size:28px;letter-spacing:.12em;color:#f0d8ac}
.scroll{display:inline-block;margin-top:35px;color:#fff;text-decoration:none;border:1px solid rgba(255,255,255,.55);border-radius:999px;padding:12px 22px;font-size:13px;letter-spacing:.08em}
.section{padding:90px 24px;text-align:center}.invite,.rsvp{background:radial-gradient(circle at left top,rgba(184,145,91,.14),transparent 32%),radial-gradient(circle at right bottom,rgba(53,67,43,.12),transparent 36%),var(--paper)}
.ornament{color:var(--gold);font-size:30px}.script{font-family:"Great Vibes",cursive;font-size:56px;font-weight:400;color:var(--soft);margin:10px 0 25px}
.invite p,.rsvp p{max-width:620px;margin:18px auto;line-height:1.9;font-size:17px}.signature{font-family:"Cormorant Garamond",serif;font-size:25px!important;color:var(--gold)}
.date-section{background:#efe3d5}.countdown{display:flex;justify-content:center;gap:22px;flex-wrap:wrap;margin:35px auto}.countdown div{min-width:130px;padding:22px 18px;background:rgba(255,250,242,.75);border:1px solid rgba(184,145,91,.28)}
.countdown span{display:block;font-family:"Cormorant Garamond",serif;font-size:52px}.countdown small{text-transform:uppercase;letter-spacing:.14em;color:var(--soft)}
.date-card{margin:40px auto 0;max-width:620px;display:flex;justify-content:center;gap:28px;flex-wrap:wrap}.date-card div{border-top:1px solid var(--gold);border-bottom:1px solid var(--gold);padding:18px 36px}.date-card span{display:block}.date-card .big{font-family:"Cormorant Garamond",serif;font-size:44px}
.story{display:grid;grid-template-columns:.85fr 1.15fr;gap:42px;align-items:center;background:var(--bg);text-align:left;max-width:1180px;margin:0 auto}.story h2,.place h2,.gallery-section h2,.rsvp h2{font-family:"Cormorant Garamond",serif;font-size:clamp(36px,5vw,58px);font-weight:500;margin:8px 0 18px}.story p{line-height:1.8;font-size:17px}
.story-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.story-grid img{width:100%;height:520px;object-fit:cover;box-shadow:0 22px 50px rgba(49,34,20,.16)}.story-grid img:nth-child(2){margin-top:60px}
.place{background:var(--paper)}.place-card{max-width:1050px;margin:34px auto 0;display:grid;grid-template-columns:1.2fr .8fr;gap:28px;align-items:center;text-align:left}.place-card img{width:100%;height:460px;object-fit:cover;box-shadow:0 18px 45px rgba(49,34,20,.12)}
.place-info{background:#f1e5d7;padding:44px;border:1px solid rgba(184,145,91,.25)}.place-info p{font-family:"Cormorant Garamond",serif;font-size:28px;margin:0 0 18px}
.button,button{display:inline-block;margin-top:14px;background:var(--soft);color:#fff;text-decoration:none;border:0;padding:15px 28px;text-transform:uppercase;letter-spacing:.12em;font-size:12px;cursor:pointer}
.gallery-section{background:#ece0d3}.gallery{max-width:1180px;margin:34px auto 0;columns:4 220px;column-gap:16px}.gallery img{width:100%;margin:0 0 16px;break-inside:avoid;cursor:pointer;transition:.35s ease}.gallery img:hover{transform:scale(.985);opacity:.88}
form{max-width:520px;margin:28px auto 0;display:grid;gap:14px}input,select,textarea{width:100%;padding:16px 18px;border:1px solid rgba(184,145,91,.35);background:#fffdf8;color:var(--brown);font-family:"Montserrat",sans-serif}textarea{resize:vertical;min-height:112px}.form-result{color:var(--green);font-weight:400}
footer{background:#2f2118;color:#f5e8d8;text-align:center;padding:45px 20px}.small{font-size:32px}
@keyframes fadeUp{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:760px){.nav{display:none}.hero{min-height:92vh;background-position:center top}.date-line{font-size:20px}.section{padding:68px 18px}.script{font-size:44px}.countdown{gap:10px}.countdown div{min-width:75px;padding:14px 8px}.countdown span{font-size:34px}.countdown small{font-size:10px}.story,.place-card{grid-template-columns:1fr;text-align:center}.story-grid img{height:430px}.story-grid img:nth-child(2){margin-top:0}.place-card img{height:320px}.place-info{text-align:center;padding:30px 20px}.place-info p{font-size:23px}}

.hero-phrase{font-family:"Cormorant Garamond",serif;font-size:27px;letter-spacing:.05em;color:#f0d8ac;margin:12px auto 0;max-width:620px}.palette{display:flex;gap:14px;flex-wrap:wrap;margin:28px 0 0}.palette span{width:58px;height:58px;border-radius:50%;border:1px solid rgba(184,145,91,.34);box-shadow:0 10px 25px rgba(49,34,20,.09)}.dress-image img{width:100%;max-height:640px;object-fit:cover;object-position:top center;box-shadow:0 22px 50px rgba(49,34,20,.16)}.wishes-card{max-width:850px;margin:34px auto 0;text-align:left;background:#f1e5d7;padding:44px;border:1px solid rgba(184,145,91,.25);box-shadow:0 18px 45px rgba(49,34,20,.08)}.wishes-card p{font-size:17px;line-height:1.8;margin:0 0 18px}.wishes-card p:last-child{margin-bottom:0}
@media(max-width:760px){.hero-phrase{font-size:21px}.palette{justify-content:center}.palette span{width:46px;height:46px}.dress-image img{max-height:520px}.wishes-card{text-align:left;padding:28px 22px}.wishes-card p{font-size:15px}}
.countdown-photo{
    position:relative;
    width:100%;
    overflow:hidden;
}

.countdown-photo img{
    width:100%;
    display:block;
    object-fit:cover;
}

.countdown-overlay{
    position:absolute;
    inset:0;

    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    align-items:center;

    padding-bottom:50px;

    background:linear-gradient(
        rgba(0,0,0,.15),
        rgba(0,0,0,.35)
    );

    color:#fff;
}

.countdown-overlay h2{
    font-family:'Great Vibes',cursive;
    font-size:48px;
    margin-bottom:30px;
}

.timer{
    display:flex;
    gap:35px;
}

.timer div{
    text-align:center;
}

.timer span{
    display:block;
    font-size:44px;
    font-family:'Cormorant Garamond',serif;
}

.timer small{
    font-size:16px;
    text-transform:uppercase;
}
.countdown-fullscreen{
  position:relative;
  min-height:100vh;
  width:100%;
  overflow:hidden;
  background:#111;
}

.countdown-bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

.countdown-dark{
  position:absolute;
  inset:0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.15), rgba(0,0,0,.75)),
    radial-gradient(circle at center, rgba(0,0,0,.05), rgba(0,0,0,.55));
  z-index:1;
}

.countdown-full-content{
  position:relative;
  z-index:2;
  min-height:100vh;
  padding:70px 22px 55px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:space-between;
  text-align:center;
  color:#fff;
}

.countdown-names{
  font-family:'Cormorant Garamond', serif;
  font-size:48px;
  line-height:.95;
  font-weight:500;
  letter-spacing:3px;
  text-transform:uppercase;
  margin:0;
  text-shadow:0 3px 18px rgba(0,0,0,.65);
}

.countdown-names span{
  font-family:'Great Vibes', cursive;
  font-size:56px;
  text-transform:none;
  font-weight:400;
}

.countdown-date{
  margin-top:18px;
  font-family:'Cormorant Garamond', serif;
  font-size:22px;
  letter-spacing:2px;
  text-transform:uppercase;
  text-shadow:0 2px 12px rgba(0,0,0,.7);
}

.countdown-line{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  margin-top:15px;
}

.countdown-line span{
  width:85px;
  height:1px;
  background:rgba(255,255,255,.7);
}

.countdown-line b{
  font-size:18px;
  font-weight:400;
}

.countdown-title{
  margin-top:auto;
  margin-bottom:22px;
  font-family:'Great Vibes', cursive;
  font-size:46px;
  line-height:1;
  text-shadow:0 3px 18px rgba(0,0,0,.75);
}

.countdown-timer{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  width:100%;
  max-width:520px;
}

.countdown-timer div{
  text-align:center;
}

.countdown-timer span{
  display:block;
  font-family:'Cormorant Garamond', serif;
  font-size:48px;
  line-height:1;
  font-weight:400;
  text-shadow:0 3px 16px rgba(0,0,0,.8);
}

.countdown-timer small{
  display:block;
  margin-top:8px;
  font-family:'Cormorant Garamond', serif;
  font-size:21px;
  color:#fff;
  text-shadow:0 3px 14px rgba(0,0,0,.8);
}

.timer-separator{
  width:1px;
  height:58px;
  background:rgba(255,255,255,.75);
}

.countdown-decor{
  margin-top:40px;
  font-size:32px;
  opacity:.95;
  text-shadow:0 3px 14px rgba(0,0,0,.8);
}

@media(max-width:600px){
  .countdown-full-content{
    padding:55px 16px 45px;
  }

  .countdown-names{
    font-size:38px;
  }

  .countdown-names span{
    font-size:48px;
  }

  .countdown-title{
    font-size:38px;
  }

  .countdown-timer{
    gap:12px;
  }

  .countdown-timer span{
    font-size:38px;
  }

  .countdown-timer small{
    font-size:17px;
  }

  .timer-separator{
    height:48px;
  }
}
@media (max-width: 600px){
  .hero-content h1{
    font-size: 52px !important;
    line-height: 0.95 !important;
    letter-spacing: 2px !important;
    word-break: normal !important;
    max-width: 92vw;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-content h1 span{
    font-size: 42px !important;
  }

  .monogram{
    font-size: 28px !important;
  }

  .date-line{
    font-size: 18px !important;
    letter-spacing: 4px !important;
  }

  .hero-phrase{
    font-size: 20px !important;
    max-width: 88vw;
  }
}
.music-control{
  position:fixed;
  top:28px;
  left:28px;
  z-index:99999;
  display:flex;
  align-items:flex-start;
  gap:14px;
}

.music-btn{
  position:relative;
  top:auto;
  left:auto;
  width:72px;
  height:72px;
  margin:0;
  padding:0;
  border-radius:50%;
  border:2px solid rgba(218,175,117,.9);
  background:rgba(20,20,20,.48);
  color:#d8ab6d;
  font-family:"Cormorant Garamond",serif;
  font-size:42px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 0 22px rgba(218,175,117,.32);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  cursor:pointer;
}

.music-hint{
  margin-top:18px;
  display:flex;
  align-items:flex-start;
  gap:7px;
  color:#e0b879;
  font-family:"Cormorant Garamond",serif;
  font-size:20px;
  line-height:1.15;
  text-align:left;
  text-shadow:0 2px 8px rgba(0,0,0,.7);
  animation:hintPulse 1.8s ease-in-out infinite;
}

.music-arrow{
  font-size:30px;
  line-height:.8;
  transform:rotate(-12deg);
}

.music-control.playing .music-hint{
  opacity:0;
  visibility:hidden;
  transform:translateX(-8px);
}

.music-hint{
  transition:.35s ease;
}

@keyframes hintPulse{
  0%,100%{opacity:.72;}
  50%{opacity:1;}
}

@media(max-width:760px){
  .music-control{
    top:16px;
    left:16px;
    gap:8px;
  }

  .music-btn{
    width:56px;
    height:56px;
    font-size:32px;
  }

  .music-hint{
    margin-top:10px;
    font-size:15px;
    max-width:145px;
  }

  .music-arrow{
    font-size:23px;
  }
}

/* ===== ПРЕМИАЛЬНЫЙ ЭКРАН С КОНВЕРТОМ ===== */
body.envelope-locked{overflow:hidden}

.envelope-screen{
  position:fixed;inset:0;z-index:1000000;
  display:grid;place-items:center;padding:24px;
  background:
    linear-gradient(180deg,rgba(18,12,8,.38),rgba(18,12,8,.58)),
    url("hero.jpg") center/cover no-repeat;
  opacity:1;visibility:visible;
  transition:opacity .9s ease,visibility .9s ease;
}
.envelope-screen::before{
  content:"";position:absolute;inset:0;
  background:radial-gradient(circle at 50% 43%,rgba(255,248,232,.25),rgba(30,20,14,.28) 72%);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)
}
.envelope-screen.opened{opacity:0;visibility:hidden;pointer-events:none}

.envelope-scene{position:relative;z-index:1;text-align:center;filter:drop-shadow(0 28px 36px rgba(20,12,7,.3))}
.envelope-button{margin:0;padding:0;border:0;background:none;color:inherit;text-transform:none;letter-spacing:normal;cursor:pointer;-webkit-tap-highlight-color:transparent}
.envelope-button:focus-visible{outline:2px solid #d7b16f;outline-offset:14px;border-radius:18px}

.envelope{
  position:relative;display:block;
  width:min(86vw,430px);aspect-ratio:1.48/1;
  margin:0 auto;perspective:1400px;
  transform:translateZ(0);transition:transform .35s ease
}
.envelope-button:hover .envelope{transform:translateY(-5px) scale(1.01)}

.envelope-back{
  position:absolute;inset:0;border-radius:10px;
  background:linear-gradient(145deg,#fffdf8,#eadfce);
  border:1px solid rgba(170,132,76,.28);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.7),inset 0 -28px 65px rgba(140,98,45,.08)
}
.envelope-back::after{
  content:"";position:absolute;inset:12px;border-radius:6px;
  border:1px solid rgba(184,145,91,.16);pointer-events:none
}
.envelope-letter{
  position:absolute;z-index:2;left:7%;right:7%;top:7%;height:76%;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;
  background:linear-gradient(180deg,#fffefa,#f4eadc);
  border:1px solid rgba(173,134,77,.32);border-radius:6px;
  box-shadow:0 8px 22px rgba(64,41,20,.13);
  transition:transform 1s cubic-bezier(.22,.8,.22,1) .22s
}
.letter-border{position:absolute;inset:10px;border:1px solid rgba(184,145,91,.3);border-radius:4px}
.envelope-monogram{font-family:"Cormorant Garamond",serif;font-size:58px;line-height:1;color:#b58a4d;letter-spacing:.08em}
.envelope-monogram i{font-family:"Great Vibes",cursive;font-style:normal;font-weight:400;color:#c49a5c}
.letter-date{font-family:"Montserrat",sans-serif;font-size:11px;letter-spacing:.32em;color:#98744c;text-transform:uppercase}

.envelope-flap{
  position:absolute;z-index:7;inset:0;
  clip-path:polygon(0 0,100% 0,50% 61%);
  background:linear-gradient(155deg,#fffdf8,#e9dcc8);
  transform-origin:top center;backface-visibility:hidden;
  transition:transform .95s cubic-bezier(.23,.76,.25,1);
  border-radius:10px 10px 0 0;
  filter:drop-shadow(0 7px 8px rgba(82,54,25,.08))
}
.envelope-flap::after{
  content:"";position:absolute;left:8%;right:8%;top:12%;height:1px;
  background:linear-gradient(90deg,transparent,rgba(181,139,79,.35),transparent)
}
.envelope-pocket{position:absolute;z-index:5;inset:0;pointer-events:none}
.envelope-pocket-left{clip-path:polygon(0 0,54% 53%,0 100%);background:linear-gradient(140deg,#f6ecdf,#e4d2bb)}
.envelope-pocket-right{clip-path:polygon(100% 0,46% 53%,100% 100%);background:linear-gradient(220deg,#f7eee2,#e5d4bd)}
.envelope-pocket-bottom{clip-path:polygon(0 100%,50% 48%,100% 100%);background:linear-gradient(180deg,#f9f1e7,#eadbc7);border-radius:0 0 10px 10px}

.envelope-branch{position:absolute;z-index:8;top:49%;font-size:42px;color:rgba(184,145,91,.48);text-shadow:0 1px 0 #fff;transition:opacity .35s ease}
.envelope-branch-left{left:20%;transform:rotate(-27deg)}
.envelope-branch-right{right:20%;transform:scaleX(-1) rotate(-27deg)}
.envelope-seal{
  position:absolute;z-index:10;left:50%;top:53%;width:78px;height:78px;
  transform:translate(-50%,-50%);border-radius:50%;
  display:grid;place-items:center;
  background:radial-gradient(circle at 35% 30%,#e1c48b,#b58743 62%,#8e642d);
  border:2px solid rgba(255,239,199,.75);
  box-shadow:0 8px 18px rgba(70,43,17,.3),inset 0 0 0 4px rgba(111,74,28,.18),inset 0 2px 3px rgba(255,255,255,.35);
  color:#fff1cd;transition:opacity .35s ease,transform .35s ease
}
.seal-ring{position:absolute;inset:8px;border:1px solid rgba(255,241,205,.5);border-radius:50%}
.seal-initials{font-family:"Cormorant Garamond",serif;font-size:24px;letter-spacing:.04em;text-shadow:0 1px 2px rgba(64,36,10,.55)}

.envelope-text{display:block;margin-top:30px;font-family:"Cormorant Garamond",serif;font-size:27px;line-height:1.15;color:#fff8e9;text-shadow:0 3px 14px rgba(0,0,0,.7)}
.envelope-arrow{display:block;margin-top:8px;color:#e7bf7b;font-size:31px;line-height:1;animation:envelopeArrow 1.5s ease-in-out infinite}
@keyframes envelopeArrow{0%,100%{transform:translateY(0);opacity:.65}50%{transform:translateY(7px);opacity:1}}

.envelope-button.opening .envelope-flap{transform:rotateX(180deg)}
.envelope-button.opening .envelope-letter{transform:translateY(-46%)}
.envelope-button.opening .envelope-seal{opacity:0;transform:translate(-50%,-50%) scale(.7)}
.envelope-button.opening .envelope-branch{opacity:0}
.envelope-button.opening .envelope-text,.envelope-button.opening .envelope-arrow{opacity:0;transition:opacity .25s ease}
.envelope-button.opening .envelope{transform:scale(1.03)}

@media(max-width:600px){
  .envelope-screen{padding:18px}
  .envelope{width:min(91vw,370px)}
  .envelope-monogram{font-size:47px}
  .letter-date{font-size:9px}
  .envelope-seal{width:64px;height:64px}
  .seal-initials{font-size:20px}
  .envelope-branch{font-size:34px}
  .envelope-text{font-size:23px;margin-top:24px}
}
@media(prefers-reduced-motion:reduce){
  .envelope-flap,.envelope-letter,.envelope-screen,.envelope{transition-duration:.01ms!important}
  .envelope-arrow{animation:none}
}
.location {
  position: relative;
  min-height: 900px;
  padding: 110px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    url("location.jpg") center center / cover no-repeat;
  overflow: hidden;
}

.location-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.38),
      rgba(0, 0, 0, 0.62)
    );
}

.location-card{
    position: relative;
    z-index: 2;

    width: calc(100% - 36px);
    max-width: 560px;

    padding: 42px 34px;

    border-radius: 32px;

    /* Главное изменение */
    background: rgba(15,15,15,.45);

    /* Стекло */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    /* Золотая рамка */
    border:1px solid rgba(214,176,104,.45);

    /* Мягкая тень */
    box-shadow:
        0 15px 50px rgba(0,0,0,.35),
        inset 0 1px 0 rgba(255,255,255,.08);

    color:#f5efe7;
}

.location-label {
  display: block;
  margin-bottom: 30px;

  font-size: 13px;
  letter-spacing: 5px;
  color: #c9a66b;
}

.location-card h2 {
  margin: 0;

  font-family: "Cormorant Garamond", serif;
  font-size: clamp(46px, 11vw, 72px);
  line-height: 0.95;
  font-weight: 500;

  color: #f4ead8;
}

.location-divider{
    height:1px;
    margin:30px 0;
    background: rgba(15,15,15,.45);
}

.location-item span {
  display: block;
  margin-bottom: 14px;

  font-size: 12px;
  letter-spacing: 4px;
  color: #a98750;
}

.location-item p {
  margin: 0;

  font-family: "Cormorant Garamond", serif;
  font-size: 26px;
  line-height: 1.25;

  color: #f3ead9;
}

.location-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 36px;
  padding: 17px 30px;

  border-radius: 999px;
  border: 1px solid rgba(255, 230, 205, 0.55);

  background: #74212c;
  color: #fff5e8;

  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;

  transition: 0.25s ease;
}

.location-btn:hover {
  transform: translateY(-2px);
  background: #8b2936;
}

@media (max-width: 600px) {
  .location {
    min-height: 820px;
    padding: 80px 18px;
    background-position: center top;
  }

  .location-card {
    padding: 34px 26px;
    border-radius: 28px;
  }

  .location-card h2 {
    font-size: 52px;
  }

  .location-item p {
    font-size: 23px;
  }

  .location-btn {
    width: 100%;
  }
}
