*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Arial,"Helvetica Neue",sans-serif;background:#fbf3df;color:#392713}a{color:inherit}.wrap{max-width:1180px;margin:0 auto;padding:0 20px}.top{position:fixed;top:0;left:0;right:0;z-index:30;background:rgba(30,12,2,0.22);backdrop-filter:blur(16px) saturate(1.6);-webkit-backdrop-filter:blur(16px) saturate(1.6);border-bottom:1px solid rgba(255,200,120,.12);color:#fff}.top-inner{display:flex;align-items:center;justify-content:space-between;padding:13px 0}.logo{display:flex;gap:12px;align-items:center;font-weight:800;text-decoration:none}.logo-img{width:54px;height:54px;border-radius:18px;object-fit:cover;box-shadow:0 6px 18px rgba(0,0,0,.25)}.logo-title{font-size:20px}.muted{color:#80633b}.top .muted{color:rgba(255,255,255,.72)}.nav{display:flex;gap:18px;font-size:14px;align-items:center;flex-wrap:wrap}.nav a{text-decoration:none;font-weight:700}.btn{display:inline-block;background:#d95f2e;color:#fff;text-decoration:none;padding:14px 22px;border-radius:12px;border:0;cursor:pointer;font-weight:800;box-shadow:0 8px 24px rgba(154,70,22,.22)}.btn.light{background:rgba(255,248,230,.94);color:#4b2d08;border:1px solid rgba(100,58,8,.22)}.btn.green{background:#405321}.btn.small{padding:9px 13px;border-radius:12px;font-size:13px}.btn.white{background:#fff;color:#31547b}.hero,.festival-hero{position:relative;overflow:hidden;color:#fff;background:#6f8baa;isolation:isolate;padding-top:82px}.hero-bg-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:left center;z-index:-3;animation:treeBreath 8s ease-in-out infinite;transform-origin:left center}.festival-hero .hero-bg-img{object-position:left center}.hero:before,.festival-hero:before{content:"";position:absolute;inset:-2%;background-image:var(--hero-bg,url('tree-hero-wide.png'));background-size:cover;background-position:left center;animation:treeBreath 7s ease-in-out infinite;z-index:-3}.hero:after,.festival-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(25,38,16,.58),rgba(31,42,20,.20) 48%,rgba(28,38,18,.05));z-index:-2}.hero{min-height:720px;display:flex;align-items:center}.hero .wrap,.festival-hero .wrap{position:relative;z-index:3}.hero-kicker{border-left:5px solid #f0d6a4;padding-left:22px;font-size:30px;font-weight:800;line-height:1.35;text-shadow:0 3px 18px rgba(0,0,0,.35)}.hero h1{font-size:80px;line-height:.95;margin:55px 0 18px;text-transform:uppercase;letter-spacing:2px;text-shadow:0 4px 22px rgba(0,0,0,.35)}.hero p{font-size:26px;line-height:1.45;max-width:760px;text-shadow:0 3px 16px rgba(0,0,0,.25)}.hero-actions{display:flex;gap:16px;flex-wrap:wrap;margin-top:36px}.glass{background:rgba(255,247,219,.78);color:#392713;border:1px solid rgba(106,72,24,.22);backdrop-filter:blur(10px);border-radius:26px;padding:22px;box-shadow:0 14px 36px rgba(79,54,13,.18)}.hero-info{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;max-width:800px;margin:28px 0}.badge{display:inline-block;padding:8px 13px;background:rgba(255,235,180,.82);border:1px solid rgba(99,63,14,.18);border-radius:99px;font-size:13px;font-weight:700;color:#43290c}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:22px}.card{background:rgba(255,250,238,.96);border:1px solid rgba(96,62,17,.13);border-radius:20px;padding:24px;box-shadow:0 10px 34px rgba(80,49,15,.10)}.card-img{height:170px;margin:-24px -24px 18px;border-radius:20px 20px 0 0;background:#ead7a4 center/cover no-repeat}.section{padding:58px 0}.section h2{font-size:36px;margin:0 0 10px}.section-label{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;background:#405321;color:#fff;font-weight:800;margin-bottom:14px}.festival-hero{min-height:650px;padding:100px 0}.festival-hero h1{font-size:72px;line-height:1;margin:52px 0 14px;text-transform:uppercase;text-shadow:0 4px 22px rgba(0,0,0,.35)}.festival-hero p{max-width:820px;font-size:26px;line-height:1.5;text-shadow:0 3px 16px rgba(0,0,0,.25)}.tabs{position:sticky;top:82px;z-index:25;background:#f7e8c5;border-bottom:1px solid #dfc182}.tabs .wrap{display:flex;gap:10px;overflow:auto;padding-top:10px;padding-bottom:10px}.tabs a{white-space:nowrap;text-decoration:none;background:#fff8e8;border:1px solid #e5c989;padding:10px 14px;border-radius:999px;font-size:14px}.person{display:flex;gap:16px;align-items:center}.avatar{width:92px;height:92px;border-radius:50%;object-fit:cover;background:#f1ddab;border:3px solid #fff4d6}.avatar.placeholder{display:flex;align-items:center;justify-content:center;font-size:34px;color:#6a4818}.photo{height:230px;width:100%;object-fit:cover;border-radius:18px;background:#f1ddab}.video{border:1px solid #ead5a4;border-radius:18px;padding:18px;background:#fffefa}.footer{background:#28557d;color:#fff;padding:44px 0 100px;margin-top:30px}.footer a{color:#fff}.admin{background:#fff7e3}.form input,.form textarea,.form select{width:100%;padding:12px;border:1px solid #d9bd82;border-radius:12px;margin:6px 0 14px;background:#fff}.form textarea{min-height:100px}.adminbar{background:#405321;color:#fff;padding:12px 0}.adminbar a{margin-right:18px;color:#fff}.table{width:100%;border-collapse:collapse;background:#fff;border-radius:16px;overflow:hidden}.table td,.table th{border-bottom:1px solid #f0dfb2;padding:12px;text-align:left}.notice{padding:14px;border-radius:14px;background:#e6f0d0;margin:14px 0}.leaf-list{font-size:20px;line-height:1.9}.leaf-list div:before{content:"🍁 ";}.two{display:grid;grid-template-columns:1.15fr .85fr;gap:24px;align-items:start}.empty{padding:24px;border:1px dashed #d5b56f;border-radius:22px;color:#80633b;background:#fff7e3}.gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}.video-link{word-break:break-all;color:#405321;font-weight:700}.program-float{display:none!important}.registration-card{border-top:5px solid #c43c2d}.reg-note{font-size:18px;line-height:1.55}.download-lock{background:#fff3d0;border:1px solid #e2c078;border-radius:16px;padding:16px;margin-top:14px;color:#6d4612}.consent{display:flex;gap:10px;align-items:flex-start;margin:12px 0}.consent input{width:auto;margin-top:4px}.mapbox{min-height:220px;border-radius:18px;background:linear-gradient(135deg,#f6e8c6,#fff8ea);display:flex;align-items:center;justify-content:center;color:#80633b;border:1px solid #e4c88b}.leaves-layer{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:1}.falling-leaf{position:absolute;top:-14%;left:var(--start);width:var(--size);height:var(--size);opacity:var(--opacity);filter:drop-shadow(0 8px 8px rgba(78,45,8,.30));animation:fallLeaf var(--duration) linear var(--delay) infinite;will-change:transform}.falling-leaf svg{width:100%;height:100%}@keyframes fallLeaf{0%{transform:translate3d(0,-12vh,0) rotateX(0deg) rotateZ(0deg)}50%{transform:translate3d(calc(var(--drift) / 2),52vh,0) rotateX(160deg) rotateZ(calc(var(--spin) / 2))}100%{transform:translate3d(var(--drift),112vh,0) rotateX(330deg) rotateZ(var(--spin))}}@keyframes treeBreath{0%,100%{transform:scale(1) rotate(0deg);filter:saturate(1.02)}50%{transform:scale(1.018) rotate(.15deg);filter:saturate(1.08)}}@media (prefers-reduced-motion: reduce){.falling-leaf{animation:none;display:none}.hero:before,.festival-hero:before,.hero-bg-img{animation:none}}@media(max-width:900px){.hero{min-height:590px}.hero h1{font-size:46px}.festival-hero h1{font-size:42px}.hero-kicker{font-size:22px}.nav{display:none}.two{grid-template-columns:1fr}.hero p,.festival-hero p{font-size:20px}.tabs{top:80px}.section h2{font-size:30px}.festival-hero{min-height:560px}.footer{padding-bottom:40px!important}.logo-img{width:36px!important;height:36px!important}.logo-title{font-size:14px!important}.top .muted{display:none!important}.top-inner{padding:6px 0!important}}
@media(min-width:901px) and (max-width:1024px){.logo-img{width:40px!important;height:40px!important}.logo-title{font-size:15px!important}.top .muted{font-size:11px!important}.nav{gap:10px!important;font-size:13px!important}.top-inner{padding:10px 0!important}}
@media(min-width:600px){body{padding-bottom:80px}}

.success-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}.hero-actions .records-btn{display:none}

/* vNext: нормальный широкий фон и удобная программа */
.hero,.festival-hero{background:#253818;min-height:640px}
.hero-bg-img,.festival-hero .hero-bg-img{object-fit:cover;object-position:center center;filter:saturate(1.05) contrast(1.02);}
.hero:before,.festival-hero:before{display:none}
.hero:after,.festival-hero:after{background:linear-gradient(90deg,rgba(20,32,14,.68),rgba(30,35,16,.42) 46%,rgba(35,27,9,.08));}
.hero h1,.festival-hero h1{font-weight:900;letter-spacing:.03em}.top{background:rgba(30,12,2,0.25);backdrop-filter:blur(16px) saturate(1.6);-webkit-backdrop-filter:blur(16px) saturate(1.6)}
.program-strip{margin-top:-72px;position:relative;z-index:8}.program-download-card{display:flex;align-items:center;justify-content:space-between;gap:20px;background:rgba(255,248,230,.94);border:1px solid rgba(106,72,24,.22);box-shadow:0 14px 40px rgba(68,45,8,.18);border-radius:18px;padding:20px 26px;max-width:860px}.program-icon{width:52px;height:52px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#405321;color:#fff;font-size:22px;flex:none}.program-day{display:grid;grid-template-columns:repeat(6,minmax(210px,1fr));gap:10px;overflow:auto;padding-bottom:10px}.program-card{background:rgba(255,250,238,.97);border:1px solid #e7cf98;border-radius:18px;padding:18px;min-height:260px}.program-card h3{font-size:17px;margin:0 0 10px;color:#573415}.program-time{font-weight:900;color:#7b421e;margin-bottom:10px}.program-pill{float:right;background:#405321;color:#fff;border-radius:999px;padding:5px 10px;font-size:12px}.program-card ul{padding-left:0;margin:14px 0 0;list-style:none}.program-card li{font-size:14px;line-height:1.45;margin:0 0 12px;padding-left:22px;position:relative}.program-card li:before{content:'♟';position:absolute;left:0;color:#405321;font-size:13px}.program-section{background:linear-gradient(180deg,#fff3d5,#fbf3df)}
@media(max-width:760px){.program-download-card{flex-direction:column;align-items:flex-start}.program-strip{margin-top:-40px}.hero,.festival-hero{min-height:560px}.hero-bg-img,.festival-hero .hero-bg-img{object-position:center center}.program-day{grid-template-columns:repeat(6,260px)}}

/* Исправление фона: картинка не растягивается, а аккуратно обрезается как обложка */
.hero-bg-img,.festival-hero .hero-bg-img{
  object-fit:cover !important;
  object-position:center center !important;
  width:100%;
  height:100%;
}
.hero,.festival-hero{background:#31451f;}

.program-strip{background:#fbf3df;margin-top:0;padding:22px 0;position:relative;z-index:5}.program-download-card{display:flex;align-items:center;gap:18px;background:rgba(255,250,238,.96);border:1px solid rgba(96,62,17,.13);border-radius:18px;padding:18px 22px;box-shadow:0 10px 34px rgba(80,49,15,.10);max-width:900px}.program-icon{width:44px;height:44px;border-radius:50%;background:#405321;color:#fff;display:flex;align-items:center;justify-content:center;font-size:20px}.bg-preview{height:180px;border-radius:18px;background-size:cover;background-position:center;border:1px solid #d9bd82;margin:8px 0 14px}.admin-help{font-size:13px;line-height:1.5;color:#80633b;background:#fff8e8;border:1px solid #ead5a4;border-radius:14px;padding:12px;margin:8px 0 16px}
@media(max-width:760px){.program-download-card{flex-direction:column;align-items:flex-start}}

/* Сезонные фоны и эффекты */
.season-admin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin:14px 0 22px}.season-box{display:block;border:2px solid #ead5a4;border-radius:18px;padding:12px;background:#fffefa}.season-box.active{border-color:#d95f2e;box-shadow:0 8px 28px rgba(217,95,46,.18)}.season-box input[type="radio"]{width:auto;margin-right:6px}.season-box input[type="file"]{font-size:12px}.season-box small{display:block;color:#80633b;margin:6px 0}.season-effect-winter .falling-leaf{filter:drop-shadow(0 4px 7px rgba(80,130,180,.22));animation-name:fallSnow}.season-effect-spring .falling-leaf{filter:drop-shadow(0 6px 7px rgba(150,60,90,.18));animation-name:fallPetal}.season-effect-summer .falling-leaf{filter:blur(.2px) drop-shadow(0 0 12px rgba(255,230,100,.55));animation-name:summerGlow}.summer-sun{position:absolute;left:10%;top:12%;width:260px;height:260px;border-radius:50%;background:radial-gradient(circle,rgba(255,246,165,.9),rgba(255,214,73,.35) 35%,rgba(255,214,73,0) 70%);z-index:1;pointer-events:none;animation:sunPulse 5.5s ease-in-out infinite;mix-blend-mode:screen}.season-winter:after{background:linear-gradient(90deg,rgba(28,52,72,.58),rgba(45,82,110,.22) 48%,rgba(255,255,255,.08))}.season-spring:after{background:linear-gradient(90deg,rgba(34,70,35,.52),rgba(65,92,45,.18) 48%,rgba(255,232,245,.08))}.season-summer:after{background:linear-gradient(90deg,rgba(27,61,20,.56),rgba(40,90,24,.16) 48%,rgba(255,230,130,.04))}.season-autumn:after{background:linear-gradient(90deg,rgba(45,35,14,.62),rgba(69,46,16,.25) 48%,rgba(255,174,54,.05))}@keyframes fallSnow{0%{transform:translate3d(0,-10vh,0) rotate(0deg)}100%{transform:translate3d(var(--drift),112vh,0) rotate(160deg)}}@keyframes fallPetal{0%{transform:translate3d(0,-12vh,0) rotateX(0deg) rotateZ(0deg)}50%{transform:translate3d(calc(var(--drift) / 1.8),50vh,0) rotateX(120deg) rotateZ(calc(var(--spin) / 2))}100%{transform:translate3d(var(--drift),112vh,0) rotateX(260deg) rotateZ(var(--spin))}}@keyframes summerGlow{0%{transform:translate3d(0,95vh,0) scale(.7);opacity:0}20%{opacity:var(--opacity)}100%{transform:translate3d(var(--drift),-20vh,0) scale(1.25);opacity:0}}@keyframes sunPulse{0%,100%{transform:scale(1);opacity:.65}50%{transform:scale(1.14);opacity:.95}}


/* FINAL CLEAN LAYOUT */
.program-strip{display:none!important;}

.logo-title{line-height:1.05}.top .muted{font-size:14px!important;color:rgba(255,255,255,.78)!important;font-weight:800;}
.hero{min-height:760px!important;}
.hero h1{font-size:88px;}
.hero-bg-img{object-position:center center!important;}
@media(max-width:760px){.hero{min-height:620px!important}.hero h1{font-size:52px}}

.toggle-form{margin:0}
.toggle-label{display:inline-flex;align-items:center;gap:8px;font-weight:800;cursor:pointer}
.toggle-label input{width:24px;height:24px;accent-color:#4fbf70}
.admin-link{font-weight:800;text-decoration:underline}

.program-day{display:block;overflow:visible}
.program-timeline{display:flex;flex-direction:column;gap:18px;max-width:1100px}
.program-row{display:grid;grid-template-columns:220px 1fr;gap:26px;background:#fffdf7;border:1px solid rgba(212,155,65,.45);border-radius:22px;padding:26px;box-shadow:0 10px 30px rgba(64,43,15,.06)}
.program-left{border-right:2px solid rgba(50,85,28,.18);padding-right:18px}
.program-time{font-size:24px;font-weight:900;color:#8a421e}
.program-title{font-size:22px;font-weight:900;margin-top:8px;color:#3f2b16}
.program-desc{font-size:18px;line-height:1.5;margin-top:0}
.program-speakers{display:flex;flex-direction:column;gap:12px}
.program-speaker{display:grid;grid-template-columns:24px 1fr;gap:10px;font-size:18px;line-height:1.45}
.program-dot{color:#456126;font-size:16px;margin-top:3px}
.program-speaker b{color:#2f3f1e}
.program-speaker span{color:#4b3924}
.program-admin-add,.program-line-form,.program-speaker-add,.program-speaker-admin{display:grid;grid-template-columns:1fr 1fr 1.3fr auto;gap:10px;align-items:start;margin:12px 0}
.program-admin-line{border:1px solid rgba(80,55,20,.14);border-radius:20px;background:#fffaf0;padding:18px;margin:18px 0}
.program-speaker-add{grid-template-columns:1.2fr 1fr 1fr auto}
.program-speaker-admin{grid-template-columns:1fr 1.5fr auto}
@media(max-width:900px){.program-row{grid-template-columns:1fr}.program-left{border-right:0;border-bottom:2px solid rgba(50,85,28,.18);padding-right:0;padding-bottom:14px}.program-admin-add,.program-line-form,.program-speaker-add,.program-speaker-admin{grid-template-columns:1fr}}

.talk-list{display:flex;flex-direction:column;gap:26px}
.talk-card{background:#eef9fb;border-radius:18px;padding:22px 24px;border:1px solid rgba(55,111,125,.12)}
.talk-speaker{display:grid;grid-template-columns:210px 1fr;gap:26px;align-items:center}
.talk-photo{width:210px;height:210px;object-fit:cover;border-radius:10px;background:#fff}
.talk-photo-placeholder{display:flex;align-items:center;justify-content:center;font-size:54px}
.talk-card h3{font-size:24px;color:#4779a5;margin:0 0 10px}
.talk-bio{font-size:17px;line-height:1.48;margin:0;color:#1d2c3c}
.talk-topic{font-size:25px;line-height:1.25;margin:24px 0 10px;color:#102233}
.talk-description{font-size:20px;line-height:1.55;color:#071b2b;margin:0}
.program-speaker-admin{grid-template-columns:1fr 1fr 2fr auto}
.program-speaker-add{grid-template-columns:1.1fr 1fr 1fr 2fr auto}
@media(max-width:900px){.talk-speaker{grid-template-columns:1fr}.talk-photo{width:100%;height:260px}.program-speaker-admin,.program-speaker-add{grid-template-columns:1fr}}

.role-choice{display:flex;gap:18px;flex-wrap:wrap;margin:10px 0 20px}
.role-choice label{background:#fff7e6;border:1px solid rgba(212,155,65,.45);padding:12px 16px;border-radius:14px;font-weight:800}
.speaker-only{display:none;border-top:1px solid rgba(80,55,20,.14);margin-top:22px;padding-top:18px}
.char-hint{font-size:14px;font-weight:800;margin:-8px 0 12px;color:#8a421e}
.char-hint.ok{color:#456126}.char-hint.bad{color:#b43c2f}
.notice.error{background:#ffe8e3;border-color:#d75b3a}
.legal-text{font-size:18px;line-height:1.65;white-space:normal}
.registrations-table td{vertical-align:top;font-size:14px}
.two-fields{grid-template-columns:1fr 1fr}
@media(max-width:800px){.two-fields{grid-template-columns:1fr}}

.text-only-row .program-main{display:flex;align-items:center}
.presentation-row{background:linear-gradient(90deg,#eef5ff 0%,#f7faff 100%)!important;border-color:rgba(100,150,220,.4)!important}
.presentation-label{font-size:18px;font-weight:700;color:#2a4a8a;padding:6px 0}
.program-text-list{display:flex;flex-direction:column;gap:12px;width:100%}
.program-text-item{font-size:20px;line-height:1.45;color:#2f3f1e;font-weight:800;background:#fffdf7;border-radius:14px;padding:12px 16px;border:1px solid rgba(212,155,65,.32)}
.program-text-description{font-size:18px;line-height:1.5;color:#4b3924;margin:0 0 8px 34px}

.confirm-choice label{background:#f7fff0}

.faq-list{display:flex;flex-direction:column;gap:12px}.faq-item{background:#fffdf7;border:1px solid rgba(212,155,65,.35);border-radius:16px;padding:16px 18px}.faq-item summary{cursor:pointer;font-size:20px;font-weight:900;color:#2f3f1e}.faq-item div{margin-top:12px;font-size:18px;line-height:1.55;color:#3f2b16}

.hero-date-custom{font-weight:900;margin:0 0 18px}
.hero-title-custom{line-height:.95;margin:28px 0 22px;text-transform:uppercase}
.hero-subtitle-custom{line-height:1.28;margin:0 0 28px}
.hero-style-grid{display:grid;grid-template-columns:120px 1fr 150px;gap:12px;margin:8px 0 20px}
.hero-style-grid label{font-size:14px;font-weight:800}
.hero-style-grid input{margin-top:6px}
@media(max-width:800px){.hero-style-grid{grid-template-columns:1fr}.hero-title-custom{font-size:58px!important}.hero-subtitle-custom{font-size:24px!important}}

.preview-admin-card{overflow:hidden}
.preview-toolbar{display:grid;grid-template-columns:1.3fr 1.2fr 1.2fr .8fr;gap:14px;align-items:end;margin:16px 0 18px}
.preview-toolbar label{display:block;font-weight:900;margin-bottom:8px;color:#3f2b16}
.preview-toolbar select{width:100%;padding:12px;border-radius:12px;border:1px solid rgba(212,155,65,.65);background:#fffdf7}
.preview-buttons{display:flex;gap:8px;flex-wrap:wrap}
.preview-buttons button{border:0;background:#34511f;color:#fff;font-weight:900;border-radius:12px;padding:12px 14px;cursor:pointer}
.preview-buttons button:hover{background:#e45d31}
.device-label{text-align:center;font-weight:900;color:#6d461e;margin:10px 0 14px}
.preview-stage{display:flex;justify-content:center;align-items:flex-start;overflow:auto;background:linear-gradient(135deg,#f8efd9,#fffaf0);border:1px solid rgba(212,155,65,.35);border-radius:24px;padding:28px;min-height:520px}
.device-frame{background:#111;border-radius:24px;box-shadow:0 18px 60px rgba(0,0,0,.24);overflow:hidden;transform-origin:top center;transition:.25s ease}
.desktop-frame{border:10px solid #202020;border-radius:18px}
.tablet-frame{border:18px solid #202020;border-radius:28px}
.mobile-frame{border:18px solid #202020;border-radius:36px}
.device-topbar{height:28px;background:#202020;display:flex;gap:7px;align-items:center;padding:0 12px}
.device-topbar span{width:10px;height:10px;border-radius:50%;background:#777}
#sitePreview{display:block;border:0;background:#fff}
@media(max-width:900px){.preview-toolbar{grid-template-columns:1fr}.preview-stage{justify-content:flex-start}}

.footer-bottom {
    text-align: center;
    padding: 18px 0;
    background: #111;
}

.footer-bottom a {
    color: #c7b08a;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: 0.3s;
}

.footer-bottom a:hover {
    opacity: 1;
    color: #ffffff;
}

.footer-made-center {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
}

.footer-made-center a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.8;
    transition: 0.3s;
}

.footer-made-center a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-made-center {
    text-align: center;
    margin-top: 25px;
}

.footer-made-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    opacity: 0.85;
    font-size: 14px;
    transition: 0.3s;
}

.footer-made-link:hover {
    opacity: 1;
}

.footer-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* ============================================================
   Весенний фон сайта
   ============================================================ */
[data-season="spring"] .hero,
[data-season="spring"] .festival-hero {
  background: #2d5a27;
}
[data-season="spring"] .hero:after,
[data-season="spring"] .festival-hero:after {
  background: linear-gradient(90deg,rgba(20,55,22,.62),rgba(40,80,35,.22) 48%,rgba(255,232,245,.05));
}

/* ============================================================
   Навигация пользователя в шапке
   ============================================================ */
.user-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.user-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.user-badge--participant { background: #e8f5e9; color: #2e7d32; }
.user-badge--organizer  { background: #fff3e0; color: #e65100; }
.user-badge--admin      { background: #fce4ec; color: #b71c1c; }

/* ============================================================
   Страница входа
   ============================================================ */
.login-tabs { display:flex; gap:4px; margin-bottom:0; }
.login-tab {
  flex:1; padding:12px; text-align:center; cursor:pointer;
  border:2px solid #ddd; border-bottom:none;
  border-radius:8px 8px 0 0; background:#f5f5f5;
  font-weight:600; text-decoration:none; color:#555; transition:.15s;
}
.login-tab.active { background:#fff; border-color:#5a8a3c; color:#2f4b1e; }
.login-card {
  background:#fff; border:2px solid #5a8a3c;
  border-radius:0 0 12px 12px; padding:28px 24px;
}
.login-card label { display:block; font-weight:600; margin-bottom:4px; margin-top:16px; }
.login-card label:first-of-type { margin-top:0; }
.login-hint { font-size:13px; color:#888; margin-top:4px; }
.login-register-link { text-align:center; margin-top:18px; color:#555; }

/* ============================================================
   Кабинет пользователя
   ============================================================ */
.access-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  gap:16px; margin-top:20px;
}
.cabinet-role {
  display:inline-block; padding:4px 14px;
  border-radius:20px; font-size:13px; font-weight:700;
}
.cabinet-role--participant { background:#e8f5e9; color:#2e7d32; }
.cabinet-role--organizer   { background:#fff3e0; color:#e65100; }
.cabinet-role--admin       { background:#fce4ec; color:#b71c1c; }

/* ============================================================
   Фон страницы по сезону (background-attachment:fixed)
   ============================================================ */

/* Базовые настройки — фон на всю страницу, фиксированный при прокрутке */
body {
  margin: 0;
  padding: 0;
  background-color: #e8dfc8; /* fallback если картинка не загрузилась */
  background-size: cover !important;
  background-attachment: fixed !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* Карточки — лёгкая полупрозрачность чтобы фон просвечивал */
.card {
  background: rgba(255, 250, 238, 0.92) !important;
  backdrop-filter: blur(2px);
}

/* Секции — лёгкий фон чтобы текст был читаем */
.section {
  background: rgba(251, 243, 223, 0.55);
}

/* Шапка без отступов — на всю ширину */
header, .top {
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100% !important;
  left: 0 !important;
  box-sizing: border-box !important;
}

/* Шапка остаётся непрозрачной */
.top {
  background: rgba(59, 82, 31, 0.96) !important;
}

/* Табы навигации */
.tabs {
  background: rgba(247, 232, 197, 0.92) !important;
  backdrop-filter: blur(4px);
}

/* Футер */
.footer {
  background: rgba(40, 85, 125, 0.96) !important;
}

/* Программа — секция */
.program-section {
  background: rgba(255, 243, 213, 0.7) !important;
}

/* Программа строки */
.program-row {
  background: rgba(255, 253, 247, 0.94) !important;
  backdrop-filter: blur(3px);
}

/* Блок регистрации */
.registration-card {
  background: rgba(255, 250, 238, 0.95) !important;
}

/* Форма */
.form input, .form textarea, .form select {
  background: rgba(255,255,255,0.95) !important;
}


@media(min-width:600px){.program-float{display:inline-flex!important;position:fixed;right:28px;bottom:40px;left:auto;transform:none;z-index:80;background:#d95f2e;color:#fff;text-decoration:none;padding:14px 24px;border-radius:16px;font-weight:900;box-shadow:0 8px 30px rgba(105,46,20,.35);align-items:center;gap:10px;max-width:280px;white-space:nowrap;font-size:15px}}
/* ============================================================
   FIX: кнопка скачать программу - правильное положение
   ============================================================ */
.program-float{
  display:inline-flex!important;
  position:fixed!important;
  right:24px!important;
  bottom:24px!important;
  left:auto!important;
  top:auto!important;
  transform:none!important;
  z-index:999!important;
  align-items:center!important;
  justify-content:center!important;
  gap:10px!important;
  max-width:290px!important;
  padding:13px 22px!important;
  border-radius:16px!important;
  background:#d95f2e!important;
  color:#fff!important;
  text-decoration:none!important;
  font-weight:900!important;
  box-shadow:0 8px 30px rgba(105,46,20,.35)!important;
  white-space:nowrap!important;
}
.footer{padding-bottom:105px!important;}
@media(max-width:760px){
  .program-float{right:12px!important;bottom:12px!important;max-width:220px!important;font-size:13px!important;padding:10px 14px!important;}
  .footer{padding-bottom:72px!important;}
}

/* ============================================================
   Админка: боковое меню навигации
   ============================================================ */
.admin-side-nav{
  position:fixed;
  left:0;
  top:0;
  bottom:0;
  width:238px;
  z-index:120;
  overflow:auto;
  background:#2f431b;
  color:#fff;
  padding:18px 14px 24px;
  box-shadow:8px 0 28px rgba(25,35,12,.22);
}
.admin-side-title{
  font-size:22px;
  font-weight:900;
  padding:8px 10px 18px;
  border-bottom:1px solid rgba(255,255,255,.18);
  margin-bottom:10px;
}
.admin-side-nav a{
  display:block;
  color:#fff;
  text-decoration:none;
  font-weight:800;
  font-size:14px;
  line-height:1.25;
  padding:11px 12px;
  border-radius:12px;
  margin:4px 0;
  opacity:.9;
}

.admin-side-nav a.admin-side-service{
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.16);
}
.admin-side-nav a.admin-side-service:hover{
  background:#fff7df;
  color:#2f431b;
}

.admin-side-nav a:hover,
.admin-side-nav a.active{
  background:#f1d58b;
  color:#2f431b;
  opacity:1;
}
.admin-main{
  margin-left:238px;
}
/* adminbar не сдвигаем - меню накладывается поверх */
.admin-menu-toggle{display:none;}
.admin [id]{scroll-margin-top:95px;}
@media(max-width:980px){
  .admin-side-nav{transform:translateX(-105%);transition:.25s ease;}
  body.admin-menu-open .admin-side-nav{transform:translateX(0);}
  .admin-main,.adminbar .wrap{margin-left:auto;}
  .admin-menu-toggle{
    display:block;
    position:fixed;
    left:12px;
    bottom:12px;
    z-index:130;
    border:0;
    border-radius:14px;
    background:#2f431b;
    color:#fff;
    font-weight:900;
    padding:12px 16px;
    box-shadow:0 8px 28px rgba(0,0,0,.25);
  }
}

/* Админка: отдельное меню редактирования фестиваля, баннер, программа, SEO */
.festival-edit-jump-menu{
  position:sticky;
  top:86px;
  z-index:20;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:12px 0 20px;
  padding:12px;
  background:rgba(255,248,230,.96);
  border:1px solid rgba(217,95,46,.24);
  border-radius:18px;
  box-shadow:0 8px 26px rgba(80,49,15,.08);
}
.festival-edit-jump-menu a{
  display:inline-flex;
  align-items:center;
  padding:10px 14px;
  border-radius:999px;
  background:#405321;
  color:#fff;
  text-decoration:none;
  font-weight:900;
  font-size:14px;
}
.festival-edit-jump-menu a:hover{background:#d95f2e}
.festival-admin-section{
  scroll-margin-top:130px;
  margin:22px 0;
  padding:20px;
  border:1px solid rgba(212,155,65,.42);
  border-radius:20px;
  background:rgba(255,253,247,.78);
}
.festival-admin-section h3{
  margin:0 0 12px;
  font-size:24px;
  color:#392713;
}
.festival-banner-upload-section{
  border:2px solid rgba(217,95,46,.35);
  background:rgba(255,247,230,.92);
}
.file-upload-label{font-size:18px;font-weight:900;color:#392713}
.banner-file-input{
  padding:18px!important;
  border:2px dashed rgba(217,95,46,.55)!important;
  background:#fff!important;
}
.festival-banner-preview{
  height:260px!important;
  background-size:cover!important;
  background-position:center!important;
  border:2px solid rgba(217,95,46,.28)!important;
}
@media(max-width:760px){
  .festival-edit-jump-menu{position:relative;top:auto}
  .festival-edit-jump-menu a{width:100%;justify-content:center}
}

/* Явное меню загрузки баннера внутри SEO фестиваля */
.festival-seo-banner-combined{border:2px solid rgba(217,95,46,.35)!important;background:rgba(255,250,238,.98)!important}
.banner-upload-panel{background:#fff8e8;border:2px dashed #d95f2e;border-radius:18px;padding:18px;margin:12px 0 24px;box-shadow:0 10px 28px rgba(80,49,15,.08)}
.banner-upload-panel h4{margin:0 0 8px;font-size:22px;color:#3f2b16}
.banner-upload-panel .banner-file-input{padding:18px!important;background:#fff!important;border:2px solid #d95f2e!important;border-radius:14px!important;font-weight:800}
.festival-edit-jump-menu{position:sticky;top:86px;z-index:50;background:#fff8e8;border:1px solid #e5c989;border-radius:16px;padding:10px;margin:12px 0 18px;display:flex;gap:10px;flex-wrap:wrap;box-shadow:0 8px 20px rgba(80,49,15,.08)}
.festival-edit-jump-menu a{text-decoration:none;background:#405321;color:#fff;border-radius:12px;padding:10px 14px;font-weight:900}

/* user-nav на мобильных — всегда видна */
@media(max-width:760px) {
  .top-inner { flex-wrap:wrap; gap:4px; }
  .user-nav { width:100%; display:flex !important; flex-wrap:wrap; gap:6px; padding:4px 0 6px; border-top:1px solid rgba(255,255,255,.15); }
  .user-nav .btn.small { font-size:12px; padding:6px 10px; }
  .user-badge { font-size:11px; padding:4px 8px; }
}

/* Контент админки сдвигается под боковое меню */
body.admin > .wrap,
body.admin > .wrap.section {
  margin-left: 238px !important;
  max-width: calc(100% - 238px) !important;
  box-sizing: border-box !important;
}




/* ============================================================
   FIX MOBILE HEADER 2026-05-05
   На телефоне верхние кнопки не прячутся: меню переносится строками
   ============================================================ */

@media (max-width: 900px) {
  .top {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
  }
  .top-inner {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 6px 12px !important;
    gap: 8px !important;
  }
  .top .logo {
    flex: 0 1 auto !important;
    gap: 8px !important;
    min-width: 0 !important;
  }
  .top .logo-img {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 10px !important;
  }
  .top .logo-title {
    font-size: 14px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 130px !important;
  }
  .top .muted {
    display: none !important;
  }
  .top .nav {
    display: none !important;
  }
  .user-nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
  }
  .user-nav a,
  .user-nav .btn,
  .user-nav button,
  .top .btn {
    padding: 7px 12px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
  }
}


/* FIX ADMIN TOPBAR 2026-05-06: верхнее меню админки начинается после левого меню */
@media (min-width: 981px) {
  body.admin .adminbar {
    margin-left: 280px !important;
    width: calc(100% - 280px) !important;
  }
  body.admin .adminbar .wrap {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}
@media (max-width: 980px) {
  body.admin .adminbar {
    margin-left: 0 !important;
    width: 100% !important;
  }
}


/* remove leaves in program section */
.program-item::before,
.program-session::before,
.schedule-item::before,
.timeline-item::before,
.program-card::before{
    content:none !important;
    display:none !important;
}

/* ============================================================
   PREMIUM AUTUMN VISUAL PATCH 0705-1
   Только визуальное улучшение публичной части сайта.
   Функциональность, админка, регистрация и сохранение данных не меняются.
   ============================================================ */
:root{
  --premium-bg:#f7efe2;
  --premium-bg-soft:#fff9ef;
  --premium-card:#fffaf2;
  --premium-card-2:#fbf0df;
  --premium-text:#332419;
  --premium-muted:#7b654d;
  --premium-line:rgba(116,78,40,.16);
  --premium-copper:#a94f2b;
  --premium-copper-dark:#7c3425;
  --premium-burgundy:#6f2e25;
  --premium-gold:#d6ad66;
  --premium-green:#3f5129;
  --premium-shadow:0 18px 50px rgba(74,46,20,.10);
  --premium-shadow-strong:0 28px 80px rgba(57,35,15,.18);
  --premium-radius:26px;
}

body:not(.admin){
  font-family:Inter,Arial,"Helvetica Neue",sans-serif !important;
  color:var(--premium-text) !important;
  background-color:var(--premium-bg) !important;
  line-height:1.55;
}

body:not(.admin)::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
  background:
    radial-gradient(circle at 12% 12%,rgba(214,173,102,.18),transparent 34%),
    radial-gradient(circle at 86% 18%,rgba(169,79,43,.12),transparent 32%),
    linear-gradient(180deg,rgba(255,250,240,.78),rgba(247,239,226,.94));
}

body:not(.admin) .wrap{max-width:1160px}

body:not(.admin) .top{
  background:rgba(80, 130, 170, 0.28) !important;
  backdrop-filter:blur(22px) saturate(1.6) !important;
  -webkit-backdrop-filter:blur(22px) saturate(1.6) !important;
  border-bottom:1px solid rgba(180, 220, 255, 0.20) !important;
  box-shadow:0 2px 24px rgba(30,70,120,.12) !important;
  transition: background 0.4s ease, box-shadow 0.4s ease !important;
}

body:not(.admin) .top-inner{padding:16px 0}

body:not(.admin) .logo-img{
  border-radius:50% !important;
  background:#fff8ec;
  border:1px solid rgba(255,240,210,.65);
  box-shadow:0 10px 28px rgba(0,0,0,.24) !important;
}

body:not(.admin) .logo-title{
  letter-spacing:.01em;
  font-weight:900;
}

body:not(.admin) .nav a{
  padding:8px 12px;
  border-radius:999px;
  color:rgba(255,250,242,.92);
  transition:background .18s ease,color .18s ease,transform .18s ease;
}

body:not(.admin) .nav a:hover{
  background:rgba(255,248,235,.14);
  color:#fff;
  transform:translateY(-1px);
}

body:not(.admin) .btn{
  background:linear-gradient(135deg,var(--premium-copper),var(--premium-burgundy)) !important;
  color:#fffaf2 !important;
  border:1px solid rgba(255,230,190,.18) !important;
  border-radius:999px !important;
  padding:14px 24px !important;
  font-weight:900 !important;
  letter-spacing:.01em;
  box-shadow:0 14px 34px rgba(124,52,37,.22) !important;
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;
}

body:not(.admin) .btn:hover{
  transform:translateY(-2px);
  box-shadow:0 20px 46px rgba(124,52,37,.28) !important;
  filter:saturate(1.05);
}

body:not(.admin) .btn.green,
body:not(.admin) .program-icon,
body:not(.admin) .section-label{
  background:linear-gradient(135deg,var(--premium-green),#63713b) !important;
  color:#fffaf2 !important;
}

body:not(.admin) .btn.light,
body:not(.admin) .btn.white{
  background:rgba(255,249,239,.84) !important;
  color:var(--premium-burgundy) !important;
  border:1px solid rgba(124,52,37,.22) !important;
  box-shadow:0 12px 32px rgba(74,46,20,.10) !important;
}

body:not(.admin) .hero,
body:not(.admin) .festival-hero{
  min-height:690px !important;
  background:#342415 !important;
}

body:not(.admin) .hero-bg-img,
body:not(.admin) .festival-hero .hero-bg-img{
  filter:saturate(.95) contrast(1.03) brightness(.9) !important;
  transform:none !important;
  animation:none !important;
}

body:not(.admin) .hero:after,
body:not(.admin) .festival-hero:after{
  background:
    radial-gradient(circle at 72% 45%,rgba(214,173,102,.18),transparent 27%),
    linear-gradient(90deg,rgba(36,24,14,.82),rgba(57,37,19,.58) 48%,rgba(67,42,17,.22) 100%) !important;
}

body:not(.admin) .hero .wrap,
body:not(.admin) .festival-hero .wrap{
  max-width:1120px;
  padding-top:28px;
  padding-bottom:28px;
}

body:not(.admin) .hero-date-custom{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:22px !important;
  padding:9px 15px;
  border-radius:999px;
  background:rgba(255,246,228,.14);
  border:1px solid rgba(255,238,203,.28);
  backdrop-filter:blur(10px);
  text-shadow:none !important;
  color:#f7dca4 !important;
  font-weight:900 !important;
}

body:not(.admin) .hero-date-custom::before{content:"🍂"}

body:not(.admin) .hero-kicker{
  display:inline-block;
  max-width:760px;
  border-left:0 !important;
  padding:0 !important;
  color:#fff3dc;
  font-size:22px !important;
  font-weight:800 !important;
  line-height:1.35 !important;
  text-shadow:0 3px 18px rgba(0,0,0,.28) !important;
}

body:not(.admin) .hero-title-custom,
body:not(.admin) .hero h1,
body:not(.admin) .festival-hero h1{
  max-width:950px;
  margin:28px 0 20px !important;
  font-family:Georgia,"Times New Roman",serif !important;
  font-weight:700 !important;
  letter-spacing:.055em !important;
  line-height:.94 !important;
  text-shadow:0 10px 36px rgba(0,0,0,.32) !important;
}

body:not(.admin) .hero-subtitle-custom,
body:not(.admin) .hero p,
body:not(.admin) .festival-hero p{
  max-width:780px;
  color:#fff6e8 !important;
  line-height:1.42 !important;
  text-shadow:0 4px 20px rgba(0,0,0,.25) !important;
}

body:not(.admin) .hero-actions{gap:14px;margin-top:34px}
body:not(.admin) .hero-actions .btn{min-width:180px;text-align:center}

body:not(.admin) .section{
  padding:76px 0 !important;
}

body:not(.admin) .section h1,
body:not(.admin) .section h2{
  font-family:Georgia,"Times New Roman",serif;
  font-weight:700;
  color:var(--premium-text);
  letter-spacing:.01em;
  line-height:1.12;
  margin-bottom:14px !important;
}

body:not(.admin) .section h2{font-size:42px !important}
body:not(.admin) h3{color:var(--premium-text);line-height:1.25}
body:not(.admin) .muted{color:var(--premium-muted) !important}

body:not(.admin) .card,
body:not(.admin) .video,
body:not(.admin) .faq-item,
body:not(.admin) .program-download-card{
  background:rgba(255,250,242,.94) !important;
  border:1px solid var(--premium-line) !important;
  border-radius:var(--premium-radius) !important;
  box-shadow:var(--premium-shadow) !important;
}

body:not(.admin) .card{
  padding:30px !important;
}

body:not(.admin) .card-img{
  margin:-30px -30px 22px !important;
  height:210px !important;
  border-radius:var(--premium-radius) var(--premium-radius) 0 0 !important;
  filter:saturate(.92) contrast(1.02);
}

body:not(.admin) .grid{gap:26px !important}
body:not(.admin) .two{gap:30px !important}

body:not(.admin) .badge{
  background:rgba(214,173,102,.22) !important;
  border:1px solid rgba(169,79,43,.18) !important;
  color:var(--premium-burgundy) !important;
  font-weight:900;
}

body:not(.admin) .program-section{
  background:linear-gradient(180deg,#fff7e9,#f6ecd9) !important;
  border-top:1px solid rgba(116,78,40,.10);
  border-bottom:1px solid rgba(116,78,40,.10);
}

body:not(.admin) .program-section .muted{
  font-size:18px;
  margin-top:0;
}

body:not(.admin) .program-timeline{gap:20px !important}

body:not(.admin) .program-row{
  background:rgba(255,252,246,.96) !important;
  border:1px solid rgba(116,78,40,.15) !important;
  border-radius:28px !important;
  padding:30px !important;
  box-shadow:0 18px 48px rgba(74,46,20,.09) !important;
}

body:not(.admin) .program-left{
  border-right:1px solid rgba(116,78,40,.18) !important;
}

body:not(.admin) .program-time{
  color:var(--premium-copper-dark) !important;
  font-size:25px !important;
}

body:not(.admin) .program-title{
  color:var(--premium-text) !important;
  font-family:Georgia,"Times New Roman",serif;
  font-weight:700 !important;
}

body:not(.admin) .program-speaker{
  background:rgba(251,240,223,.72);
  border:1px solid rgba(116,78,40,.10);
  border-radius:18px;
  padding:13px 15px;
}

body:not(.admin) .program-dot{color:var(--premium-copper) !important}

body:not(.admin) .talk-card{
  background:rgba(255,250,242,.96) !important;
  border:1px solid var(--premium-line) !important;
  border-radius:28px !important;
  padding:28px !important;
  box-shadow:var(--premium-shadow) !important;
}

body:not(.admin) .talk-photo{
  border-radius:22px !important;
  box-shadow:0 16px 38px rgba(48,31,16,.16);
  border:1px solid rgba(255,255,255,.75);
}

body:not(.admin) .talk-card h3{
  color:var(--premium-copper-dark) !important;
  font-family:Georgia,"Times New Roman",serif;
  font-size:28px !important;
}

body:not(.admin) .talk-topic{
  color:var(--premium-text) !important;
  font-family:Georgia,"Times New Roman",serif;
  font-size:28px !important;
}

body:not(.admin) .talk-description,
body:not(.admin) .talk-bio{color:#463524 !important}

body:not(.admin) .photo,
body:not(.admin) .avatar{
  border:1px solid rgba(116,78,40,.16) !important;
  box-shadow:0 12px 34px rgba(74,46,20,.11);
}

body:not(.admin) .form input,
body:not(.admin) .form textarea,
body:not(.admin) .form select{
  border:1px solid rgba(116,78,40,.20) !important;
  border-radius:16px !important;
  background:rgba(255,253,248,.96) !important;
  padding:14px 15px !important;
}

body:not(.admin) .footer{
  background:linear-gradient(180deg,#3b281d,#261b15) !important;
  color:#fff6e8 !important;
  margin-top:0 !important;
  padding:56px 0 96px !important;
  border-top:1px solid rgba(255,235,200,.16);
}

body:not(.admin) .footer a{color:#f7dca4 !important}
body:not(.admin) .footer p{color:rgba(255,246,232,.82)}

body:not(.admin) .empty{
  background:rgba(255,250,242,.82) !important;
  border:1px dashed rgba(124,52,37,.25) !important;
  border-radius:24px !important;
  color:var(--premium-muted) !important;
}

@media(max-width:900px){
  body:not(.admin) .section{padding:56px 0 !important}
  body:not(.admin) .program-row{grid-template-columns:1fr !important;padding:24px !important}
  body:not(.admin) .program-left{border-right:0 !important;border-bottom:1px solid rgba(116,78,40,.18) !important;padding-bottom:16px !important}
}

@media(max-width:760px){
  body:not(.admin) .wrap{padding:0 16px !important}
  body:not(.admin) .hero,
  body:not(.admin) .festival-hero{
    min-height:calc(100vh - 130px) !important;
    align-items:center !important;
  }
  body:not(.admin) .hero .wrap,
  body:not(.admin) .festival-hero .wrap{padding-top:36px !important;padding-bottom:42px !important}
  body:not(.admin) .hero:after,
  body:not(.admin) .festival-hero:after{
    background:linear-gradient(180deg,rgba(36,24,14,.84),rgba(57,37,19,.58),rgba(67,42,17,.20)) !important;
  }
  body:not(.admin) .hero-date-custom{font-size:16px !important;margin-bottom:16px !important}
  body:not(.admin) .hero-kicker{font-size:18px !important}
  body:not(.admin) .hero-title-custom,
  body:not(.admin) .hero h1,
  body:not(.admin) .festival-hero h1{
    font-size:50px !important;
    letter-spacing:.035em !important;
    line-height:.98 !important;
  }
  body:not(.admin) .hero-subtitle-custom,
  body:not(.admin) .hero p,
  body:not(.admin) .festival-hero p{
    font-size:20px !important;
  }
  body:not(.admin) .hero-actions{width:100%;display:grid !important;grid-template-columns:1fr;gap:12px !important}
  body:not(.admin) .hero-actions .btn{width:100%;min-width:0}
  body:not(.admin) .section h2{font-size:32px !important}
  body:not(.admin) .card{padding:22px !important;border-radius:22px !important}
  body:not(.admin) .card-img{margin:-22px -22px 18px !important;border-radius:22px 22px 0 0 !important}
  body:not(.admin) .grid{grid-template-columns:1fr !important;gap:18px !important}
  body:not(.admin) .two{grid-template-columns:1fr !important;gap:18px !important}
  body:not(.admin) .talk-speaker{grid-template-columns:1fr !important;gap:18px !important}
  body:not(.admin) .talk-photo{width:100% !important;height:280px !important}
  body:not(.admin) .footer{padding-bottom:92px !important}
}



/* Компактная шапка — всё в одну строку */
body:not(.admin) .top .logo-img { width:36px !important; height:36px !important; }
body:not(.admin) .top .logo-title { font-size:15px !important; }
body:not(.admin) .top .muted { font-size:11px !important; }
body:not(.admin) .top .nav { gap:10px !important; font-size:13px !important; }
body:not(.admin) .top .btn { padding:6px 14px !important; font-size:13px !important; border-radius:8px !important; }
body:not(.admin) .top .top-inner { flex-wrap:nowrap !important; align-items:center !important; gap:8px; }
body:not(.admin) .top .nav { flex-wrap:nowrap !important; }

/* ============================================================
   РЕСТАЙЛИНГ HERO — только поверх оригинального CSS
   Всё остальное (admin, формы, программа) — не тронуто
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Jost:wght@300;400;500&display=swap');

html { overflow-x: hidden; }
body { overflow-x: hidden; min-width: 0; }
img, video, iframe { max-width: 100%; }

.hero, .festival-hero {
  position: relative; overflow: hidden; color: #fff;
  background: #5a3010; isolation: isolate;
  min-height: 760px !important; display: flex; align-items: center;
}

.hero-bg-img, .festival-hero .hero-bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover !important; object-position: center center !important;
  z-index: -3; filter: saturate(1.1) brightness(0.85); animation: none !important;
}

.hero::before, .festival-hero::before { display: none !important; }

.hero::after, .festival-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(15,8,2,0.62) 0%, rgba(20,10,2,0.42) 50%, rgba(0,0,0,0.08) 100%);
  z-index: -1;
}

.hero .wrap, .festival-hero .wrap {
  position: relative; z-index: 3; padding-top: 100px; padding-bottom: 80px; text-align: left;
}

.hero-date-custom {
  display: inline-flex !important; align-items: center; gap: 8px;
  background: rgba(80,40,10,0.82) !important; backdrop-filter: blur(8px);
  border-radius: 99px !important; padding: 8px 20px 8px 14px !important;
  font-family: 'Jost', sans-serif !important; font-style: normal !important;
  font-weight: 500 !important; color: #fff !important;
  margin: 0 0 1.2rem 0 !important; font-size: 1.05rem !important;
  text-shadow: none !important; box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.hero-date-custom::before { content: '🍁'; font-size: 1rem; }

.hero-kicker {
  border-left: none !important; padding-left: 0 !important;
  font-size: 1rem !important; font-weight: 400 !important;
  text-transform: none !important; color: rgba(255,255,255,0.88) !important;
  text-shadow: 0 2px 14px rgba(0,0,0,0.8) !important; margin-bottom: 1rem !important;
}

.hero h1, .hero-title-custom {
  font-family: 'Cormorant Garamond', serif !important;
  font-style: normal !important; font-weight: 700 !important;
  color: #ffffff !important; line-height: 0.95 !important;
  margin: 0 0 0.5em !important;
  text-shadow: 0 2px 6px rgba(0,0,0,0.9), 0 6px 28px rgba(0,0,0,0.65) !important;
  font-size: clamp(3.2rem, 8vw, 6.5rem) !important;
  text-transform: uppercase !important; max-width: 820px;
}

.hero p, .hero-subtitle-custom {
  font-family: 'Jost', sans-serif !important; font-weight: 400 !important;
  color: rgba(255,255,255,0.95) !important;
  font-size: clamp(1.1rem, 2vw, 1.4rem) !important;
  line-height: 1.55 !important; max-width: 600px !important;
  margin: 0 0 1.5rem !important;
  text-shadow: 0 2px 14px rgba(0,0,0,0.85) !important;
}

.hero-meta { display: flex; justify-content: flex-start; margin: 0.5rem 0 1.8rem; }
.hero-meta a {
  display: inline-block; background: rgba(0,0,0,0.38);
  backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 99px; padding: 8px 20px; font-size: 0.95rem;
  font-weight: 400; color: rgba(255,255,255,0.88);
  text-decoration: none; text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.hero-meta a:hover { background: rgba(0,0,0,0.55); color: #fff; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 0.5rem; justify-content: flex-start; }
.leaves-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }

@media (max-width: 760px) {
  .hero, .festival-hero { min-height: 620px !important; }
  .hero h1, .hero-title-custom { font-size: clamp(2.2rem, 9vw, 3.5rem) !important; }
  .hero .wrap, .festival-hero .wrap { padding-top: 90px; padding-bottom: 50px; }
  .adminbar { padding: 10px 16px !important; }
  .adminbar a { display: inline-block; margin: 4px 8px 4px 0 !important; font-size: 0.82rem !important; }
  .table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .form input, .form textarea, .form select { font-size: 16px !important; }
}

/* ── Плавающая фото-карусель ──────────────────────────────────────────────── */
.photo-carousel{position:fixed;bottom:100px;right:24px;width:300px;background:#fff;border-radius:20px;box-shadow:0 12px 48px rgba(0,0,0,.22);z-index:200;overflow:hidden;animation:pcFadeIn .5s ease}
@keyframes pcFadeIn{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
.pc-close{position:absolute;top:8px;right:10px;background:rgba(0,0,0,.45);color:#fff;border:0;border-radius:50%;width:26px;height:26px;font-size:14px;cursor:pointer;z-index:2;line-height:26px;text-align:center;padding:0}
.pc-track-wrap{position:relative;display:flex;align-items:center}
.pc-track{width:100%;overflow:hidden;border-radius:16px 16px 0 0}
.pc-slide{display:none;position:relative}
.pc-slide.pc-active{display:block}
.pc-slide img{width:100%;height:200px;object-fit:cover;display:block}
.pc-caption{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(transparent,rgba(0,0,0,.6));color:#fff;font-size:13px;padding:18px 12px 8px;line-height:1.3}
.pc-arrow{position:absolute;top:50%;transform:translateY(-50%);background:rgba(255,255,255,.85);border:0;border-radius:50%;width:32px;height:32px;font-size:22px;cursor:pointer;z-index:2;line-height:30px;text-align:center;padding:0;box-shadow:0 2px 8px rgba(0,0,0,.2)}
.pc-prev{left:6px}.pc-next{right:6px}
.pc-dots{display:flex;justify-content:center;gap:6px;padding:8px 0 10px}
.pc-dot{width:8px;height:8px;border-radius:50%;background:#ddd;cursor:pointer;transition:background .2s}
.pc-dot.pc-dot-active{background:#d95f2e}
@media(max-width:760px){
  .photo-carousel{bottom:70px;right:8px;left:8px;width:auto;border-radius:16px;max-height:260px}
  .pc-slide img{height:180px}
  .pc-close{top:6px;right:6px}
}
