/*
Theme Name: Megapolis
Theme URI: https://conference.perekrestok.info/
Author: Conference team
Description: Адаптивная тема ежегодной конференции с настройками актуального года.
Version: 1.9.7
Requires PHP: 7.4
Text Domain: megapolis
*/
:root{--ink:#17352f;--muted:#596e68;--cream:#f7f5ee;--mint:#d9e8dc;--accent:#d3f16b;--line:#d9e1d9}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font:17px/1.65 system-ui,-apple-system,'Segoe UI',sans-serif}a{color:inherit}a:focus-visible,button:focus-visible{outline:3px solid #476a22;outline-offset:3px}.wrap{max-width:1180px;margin:auto;padding:0 24px}.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10}.header-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:78px}.brand{font-weight:850;font-size:19px;line-height:1.15;text-decoration:none;max-width:220px}.menu{display:flex;align-items:center;flex-wrap:wrap;gap:18px;list-style:none;margin:0;padding:0}.menu a{text-decoration:none;font-size:14px;font-weight:650}.menu a:hover{text-decoration:underline}.menu-toggle{display:none;background:transparent;border:1px solid var(--ink);border-radius:9px;padding:8px 12px}.hero{background:var(--ink);color:#fff;overflow:hidden}.hero-inner{padding:95px 24px 100px;position:relative}.eyebrow{text-transform:uppercase;letter-spacing:.16em;font-weight:700;font-size:13px;color:var(--accent)}h1{font-size:clamp(48px,7.7vw,100px);letter-spacing:-.065em;line-height:.99;max-width:980px;margin:24px 0}h2{font-size:clamp(30px,4vw,52px);letter-spacing:-.045em;line-height:1.12;margin:0 0 25px}h3{line-height:1.25}.hero-sub{font-size:clamp(19px,2.3vw,27px);max-width:750px}.hero-meta{display:flex;gap:20px;flex-wrap:wrap;margin:35px 0;font-size:17px}.hero-meta span{border:1px solid #638178;border-radius:100px;padding:10px 18px}.btn{display:inline-flex;align-items:center;justify-content:center;background:var(--accent);color:var(--ink);padding:15px 23px;border-radius:12px;font-weight:800;text-decoration:none;border:0}.btn:hover{filter:brightness(.95)}.btn-outline{background:transparent;border:1px solid currentColor;color:inherit}.actions{display:flex;gap:12px;flex-wrap:wrap}.countdown{display:flex;gap:10px;flex-wrap:wrap;margin-top:45px}.countdown>div{min-width:100px;padding:12px 18px;border-radius:14px;background:#31544a}.countdown strong{font-size:32px;display:block;line-height:1.2}.countdown small{font-size:12px}.section{padding:85px 0}.section-alt{background:#e9eee6}.section-head{display:flex;align-items:end;justify-content:space-between;gap:24px;flex-wrap:wrap;margin-bottom:28px}.section-head p{max-width:580px}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.card{padding:30px;background:#fff;border:1px solid var(--line);border-radius:18px}.card h3{font-size:23px;margin-top:0}.card p{color:var(--muted)}.card a{font-weight:750}.content{max-width:850px}.content img{max-width:100%;height:auto}.content table{display:block;overflow-x:auto}.notice{padding:20px 24px;background:#fff;border-left:5px solid #86a763;border-radius:8px}.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px}.contact-grid a{overflow-wrap:anywhere}.site-footer{background:var(--ink);color:#fff;padding:45px 0}.site-footer a{color:#fff}.page-heading{padding:65px 0 30px}.page-heading h1{font-size:clamp(42px,6vw,70px)}.page-content{padding:20px 0 90px}.wp-block-image img{height:auto}.partners img{max-width:180px;max-height:90px;object-fit:contain}.partners{display:flex;gap:30px;align-items:center;flex-wrap:wrap}.screen-reader-text{position:absolute;clip:rect(1px,1px,1px,1px);height:1px;width:1px;overflow:hidden}@media(max-width:850px){.menu-toggle{display:block}.nav{display:none;position:absolute;top:78px;left:0;right:0;background:#fff;padding:20px 24px;box-shadow:0 12px 20px #0002}.nav.open{display:block}.menu{display:block}.menu li{margin:12px 0}.menu .sub-menu{position:static;padding-left:20px}.cards{grid-template-columns:1fr 1fr}.hero-inner{padding:65px 24px}}@media(max-width:600px){.cards,.contact-grid{grid-template-columns:1fr}.section{padding:55px 0}.countdown>div{min-width:72px;padding:10px 12px}.countdown strong{font-size:26px}.hero-meta{gap:10px}.hero-meta span{font-size:14px}.wrap{padding:0 18px}}

/* v1.2: editorial multi-page layout with original uploaded photography */
:root{--ink:#28483d;--muted:#61726c;--cream:#faf8f2;--accent:#a8d200;--line:#e4e7de}
body{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;background:var(--cream)}
.site-header{background:#fffdf8}.header-inner{min-height:90px}.brand{display:flex;align-items:center;gap:10px;max-width:270px;font-size:17px}.brand img{object-fit:contain;flex:none}.brand b{display:block;font-weight:850}.brand small{display:block;font-weight:500;font-size:11px;color:#697b70;margin-top:4px}.header-social{display:flex;gap:7px}.header-social a{border:1px solid #bdd2b9;border-radius:100%;height:36px;width:36px;display:grid;place-items:center;text-decoration:none;color:#4b6a53;font-weight:800;font-size:11px}
.hero{background:#e7eee4;color:var(--ink)}.hero-layout{display:grid;grid-template-columns:1fr 1.04fr;gap:55px;align-items:center;min-height:565px;padding-top:55px;padding-bottom:55px}.hero-copy{position:relative}.hero .eyebrow{color:#567d45;font-size:12px;letter-spacing:.1em;line-height:1.7}.hero h1{font-size:clamp(49px,5.6vw,79px);letter-spacing:-.065em;line-height:1.06;margin:21px 0 30px}.hero-dates{font-size:22px;font-weight:750;margin-bottom:8px}.hero-dates span{font-weight:450}.hero-intro{max-width:510px;font-size:18px;line-height:1.6}.hero-visual{position:relative}.hero-visual>img{width:100%;height:400px;object-fit:cover;object-position:50% 44%;display:block;border-radius:20px}.photo-label{position:absolute;bottom:20px;left:20px;background:#fffdf4e8;padding:8px 15px;border-radius:8px;color:#315547;font-size:13px;font-weight:650}.coming-soon{color:#586b5d;font-size:14px;background:#fff9;padding:12px 16px;border-radius:100px}.countdown-strip{background:#2e5144;color:white}.countdown-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-top:22px;padding-bottom:22px}.countdown-inner p{margin:3px 0;font-size:18px;font-weight:700}.overline{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#7b985d;font-weight:750}.countdown-inner .overline{color:#d2eba0}.countdown{margin:0}.countdown>div{background:#42695b;min-width:87px;text-align:center;padding:9px 15px}.countdown strong{font-size:28px}.countdown small{font-size:11px}.intro-layout{display:grid;grid-template-columns:1fr 1fr;gap:90px}.intro-layout .reading{font-size:18px;color:#455a50}.intro-layout .reading p:first-child{margin-top:0}.section-alt{background:#f0f2eb}.section-head{align-items:center}.section-head h2{margin-bottom:0}.section-head>p{max-width:360px;color:#67776b}.cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.card{display:flex;flex-direction:column;align-items:flex-start;min-height:250px;padding:25px;border-radius:14px;border:1px solid #e2e8dc}.card-no{color:#8ca968;font-size:13px}.card h3{margin:18px 0 8px;font-size:22px}.card p{line-height:1.55;margin-top:0;font-size:15px}.card-state{font-size:13px;margin-top:auto;color:#71846b}.text-link{color:#477a41;font-weight:750;text-decoration:none}.text-link:hover{text-decoration:underline}.split-feature{display:grid;grid-template-columns:1.08fr 1fr;align-items:center;gap:65px}.feature-media img{display:block;width:100%;max-height:400px;object-fit:cover;border-radius:20px}.feature-copy p{max-width:420px}.chronicles-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.year-card{border:1px solid #d8e0d2;background:#fffdf9;border-radius:12px;padding:18px 22px;text-decoration:none;display:flex;align-items:center;gap:6px;flex-direction:column}.year-card span{font-size:11px;color:#788576}.year-card strong{font-size:32px;line-height:1.2}.year-card span:last-child{align-self:flex-end}.archive-links{margin-top:25px}.contact-section{background:#fdfcf8}.contact-grid{padding-top:8px}.contact-mail{font-size:22px;font-weight:750}.site-footer{background:#294c3e;padding:36px 0 18px}.footer-grid{display:flex;justify-content:space-between;gap:40px;align-items:center}.footer-brand{display:flex;align-items:center;gap:14px}.footer-brand strong{font-size:19px}.footer-brand p{margin:3px 0;color:#cddbd0;font-size:14px}.footer-grid>div:last-child p{margin:5px 0}.footer-bottom{font-size:12px;opacity:.7;border-top:1px solid #ffffff36;margin-top:25px;padding-top:15px}.page-heading{background:#e8eee5;padding:54px 24px 40px}.page-heading h1{margin:12px 0}.page-content{min-height:420px}.content{font-size:18px}
@media(max-width:1050px){.header-social{display:none}.hero-layout{gap:25px}.hero h1{font-size:clamp(42px,5vw,70px)}}
@media(max-width:850px){.hero-layout{grid-template-columns:1fr;gap:24px;padding-top:45px;padding-bottom:38px}.hero-visual img{height:340px}.intro-layout,.split-feature{grid-template-columns:1fr;gap:25px}.countdown-inner{flex-wrap:wrap}.chronicles-grid{grid-template-columns:repeat(4,1fr)}.header-social{display:flex}.nav{top:90px}}
@media(max-width:600px){.brand img{width:45px;height:45px}.brand{font-size:14px;gap:7px}.brand small{font-size:9px}.header-inner{min-height:75px;gap:8px}.nav{top:75px}.header-social a{height:30px;width:30px;font-size:10px}.hero-layout{padding-top:33px}.hero h1{font-size:clamp(42px,11vw,55px);margin:16px 0}.hero-dates{font-size:18px}.hero-dates span{display:block;font-size:16px}.hero-visual img{height:270px}.photo-label{font-size:11px;bottom:10px;left:10px}.countdown-inner{align-items:flex-start}.countdown{display:grid;grid-template-columns:repeat(4,1fr);width:100%;gap:6px}.countdown>div{min-width:0;padding:9px 4px}.countdown strong{font-size:23px}.countdown small{font-size:10px}.chronicles-grid{grid-template-columns:repeat(2,1fr)}.footer-grid{flex-direction:column;align-items:flex-start}.cards{grid-template-columns:1fr}.section{padding:54px 0}.section-head h2{font-size:37px}}

/* Social identity: two display modes. Default is the warmer treatment. */
.social-links{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.social-link{display:inline-flex;align-items:center;justify-content:center;gap:9px;text-decoration:none;min-width:40px;min-height:40px;border-radius:13px;padding:8px 11px;transition:transform .15s ease,background-color .15s ease,box-shadow .15s ease}
.social-link svg{display:block;width:21px;height:21px;flex:none}
.social-link:hover{transform:translateY(-2px)}
.social-link:focus-visible{outline:3px solid #a8d200;outline-offset:3px}
.social-links--header .social-link__name{display:none}
.social-links--header .social-link{width:42px;height:42px;padding:0}
.social-links--footer .social-link{color:#f7fff1;background:#ffffff18;border:1px solid #ffffff35}
.social-links--footer .social-link:hover{background:#ffffff32}
.social-links--contacts{margin-top:23px}.social-links--contacts .social-link{font-weight:700;font-size:15px}
/* Cozy mode: pale colored enamel-like buttons, no aggressive brand blue. */
.social-links--header .social-link--telegram,.social-links--contacts .social-link--telegram{color:#1d7d9d;background:#e5f6f8;border:1px solid #c4e5ec}
.social-links--header .social-link--vk,.social-links--contacts .social-link--vk{color:#286eb0;background:#e9f1ff;border:1px solid #d0e1f4}
.social-links--header .social-link:hover{box-shadow:0 4px 11px #294c3e25}
/* Strict mode: one-line outlined icons, all in the site's green. */
.social-mode-minimal .social-links--header .social-link,
.social-mode-minimal .social-links--contacts .social-link{color:#42634d;background:transparent;border:1px solid #aebfb0;border-radius:50%}
.social-mode-minimal .social-links--contacts .social-link{border-radius:100px;padding:8px 14px}
.social-mode-minimal .social-links--footer .social-link{border-radius:50%;background:transparent}
@media(max-width:1050px){.social-links--header{display:flex}}
@media(max-width:600px){.social-links--header{gap:4px}.social-links--header .social-link{width:31px;height:31px;min-width:31px;min-height:31px;border-radius:9px}.social-links--header svg{width:17px;height:17px}.social-links--contacts .social-link{padding:8px 10px;font-size:13px}}

/* Self-contained navigation symbols: never converted into remote emoji images */
.mega-arrow{display:inline-block;vertical-align:-.17em;flex:none}.year-card-arrow{display:block;align-self:flex-end;line-height:1}.year-card:hover .mega-arrow{transform:translate(2px,-2px)}.mega-arrow{transition:transform .18s ease}

/* Megapolis 1.6: fixed navigation, partner marks and readable countdown */
.mega-fixed-menu{gap:clamp(10px,1.4vw,23px)}
.mega-fixed-menu a{font-size:15px;font-weight:700;white-space:nowrap}
.countdown-inner .overline{font-size:17px;letter-spacing:.05em;font-weight:800}
.countdown-inner p{font-size:20px}
.page-lead{font-size:21px;max-width:680px;color:#566f61}
.participants-jump{margin:20px 0 0}
.partners-logo-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px;margin-top:25px}
.partners-logo-grid a{background:white;border:1px solid #e1e8de;border-radius:12px;display:flex;align-items:center;justify-content:center;padding:12px;min-height:125px}
.partners-logo-grid img{max-width:100%;width:auto;max-height:96px;object-fit:contain}
.partners-custom{margin-top:25px}
.participant-practical{display:grid;grid-template-columns:1fr 1fr;gap:70px}
@media(max-width:850px){.partners-logo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.mega-fixed-menu a{font-size:17px}}
@media(max-width:600px){.partners-logo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.participant-practical{grid-template-columns:1fr;gap:20px}.countdown-inner .overline{font-size:16px}}

/* v1.7: secondary pages and a cleaner first screen */
.hero-copy .hero-intro:empty{display:none}
.hero h1{margin-bottom:23px}
.contact-teaser{background:#e8eee5}
.contact-teaser-inner{display:flex;justify-content:space-between;align-items:center;gap:30px}
.contact-teaser h2{margin-bottom:12px}
.history-rows{display:flex;flex-direction:column;gap:12px;max-width:1000px;margin:auto}
.history-row{display:grid;grid-template-columns:120px 1fr 35px;align-items:center;gap:20px;padding:24px 28px;background:#fffdf9;border:1px solid var(--line);border-radius:14px;text-decoration:none;transition:background .15s}
.history-row:hover{background:#f1f6e9}.history-year{font-size:36px;font-weight:800;line-height:1.1}.history-description{font-size:17px;color:var(--muted)}.history-icon{justify-self:end}
.history-original,.contact-page-extra{padding-top:60px;margin-top:60px;border-top:1px solid var(--line)}
.contact-page-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.contact-detail{background:#fffdf9;border:1px solid var(--line);border-radius:18px;padding:36px}
.contact-detail h2{font-size:clamp(27px,3vw,39px)}.contact-detail a{overflow-wrap:anywhere}.contact-address{font-size:20px}
.participant-layout{display:grid;grid-template-columns:285px 1fr;gap:68px;align-items:start}
.participant-aside{position:sticky;top:120px}.participant-aside h2{font-size:39px}.participant-aside p{color:var(--muted)}
.participant-list{display:flex;flex-direction:column;gap:0;border-top:1px solid var(--line)}
.participant-row{display:grid;grid-template-columns:36px minmax(0,1fr) 185px;gap:19px;padding:27px 0;border-bottom:1px solid var(--line);align-items:start}
.participant-index{color:#709653;font-weight:800;font-size:14px;padding-top:5px}.participant-row h3{font-size:23px;margin:0 0 8px}.participant-row p{color:var(--muted);margin:0}.participant-action{text-align:right;padding-top:5px;font-size:14px}
@media(max-width:900px){.participant-layout{grid-template-columns:1fr;gap:12px}.participant-aside{position:static}.contact-page-grid{grid-template-columns:1fr}}
@media(max-width:650px){.contact-teaser-inner{align-items:flex-start;flex-direction:column}.history-row{grid-template-columns:85px 1fr 20px;gap:9px;padding:18px 14px}.history-year{font-size:28px}.history-description{font-size:14px}.contact-detail{padding:24px}.participant-row{grid-template-columns:30px 1fr;gap:11px}.participant-action{grid-column:2;text-align:left;padding:0}.participant-aside h2{font-size:33px}}

/* Megapolis 1.9: restrained heading scale and responsive venue map */
h1{font-size:clamp(40px,5.8vw,76px)}
h2{font-size:clamp(27px,3.1vw,41px)}
.hero h1{font-size:clamp(43px,4.8vw,66px)}
.page-heading h1{font-size:clamp(39px,5.2vw,66px)}
.contact-detail h2{font-size:clamp(25px,2.5vw,34px)}
.participant-aside h2{font-size:clamp(27px,3vw,36px)}
.contact-teaser-inner{margin-bottom:26px}
.mega-map{width:100%;height:360px;border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#e6ece5}
.mega-map iframe{width:100%;height:100%;border:0;display:block}
.contact-page-grid+.mega-map{margin-top:24px;height:410px}
@media(max-width:600px){.hero h1{font-size:clamp(39px,9.6vw,50px)}.section-head h2{font-size:clamp(27px,7vw,34px)}.mega-map{height:300px}.contact-page-grid+.mega-map{height:330px}}

/* v1.9.3: retain the original split hero; swap photography only. */
.hero-visual>img{object-fit:cover;object-position:54% 47%}
.about-photo{margin:22px 0 0}.about-photo img{width:100%;height:auto;aspect-ratio:1.8;display:block;object-fit:cover;object-position:center 45%;border-radius:16px}.about-photo figcaption{font-size:13px;color:var(--muted);margin-top:8px}
@media(max-width:850px){.about-photo{margin-top:16px}}

/* v1.9.4: align the introductory copy with the top of the photograph */
#about .intro-layout{align-items:start;gap:clamp(24px,5vw,70px)}
#about .about-photo{margin:0;min-width:0}
#about .reading{margin:0;min-width:0}
#about .reading p:first-child{margin-top:0}

/* About the conference: equal-height content columns on desktop. */
#about .intro-layout {
 display:grid;
 grid-template-columns:minmax(0,0.95fr) minmax(0,1.05fr);
 gap:clamp(24px,3.5vw,54px);
 align-items:start;
}
#about .intro-layout > * {min-width:0;max-width:100%;}
#about .about-photo {display:block;margin:0;width:100%;min-width:0;max-width:100%;}
#about .about-photo img {
 display:block;width:100%;max-width:100%;height:auto;
 aspect-ratio:1.6;max-height:325px;object-fit:cover;
 object-position:center 43%;border-radius:16px;
}
#about .reading {min-width:0;max-width:100%;overflow-wrap:break-word;}
#about .reading p:first-child {margin-top:0;}
@media(max-width:850px) {
 #about .intro-layout {display:grid;grid-template-columns:minmax(0,1fr);gap:22px;}
 #about .about-photo, #about .reading {width:100%;max-width:100%;min-width:0;}
 #about .about-photo img {width:100%;height:auto;max-height:none;aspect-ratio:16/10;}
}
@media(max-width:480px) {
 #about .about-photo img {aspect-ratio:3/2;}
 #about .about-photo figcaption {font-size:12px;line-height:1.4;}
}
