
:root{
  --bg:#eee8df;
  --paper:#f4eee5;
  --paper2:#eadfce;
  --red:#971b16;
  --redDark:#7f1612;
  --gold:#b7955d;
  --gold2:#c7ae84;
  --ink:#302b25;
  --muted:#61584f;
  --line:#cdbb9d;
  --footer:#44453e;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:#ddd3c3;
  color:var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size:15px;
  line-height:1.38;
}
a{color:inherit}
img{max-width:100%;height:auto;display:block}
.site{
  width:min(1122px,100%);
  margin:0 auto;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.55), transparent 420px),
    linear-gradient(180deg,#f3eee6,#ece4d8);
  box-shadow:0 0 0 1px rgba(100,80,50,.18);
  overflow:hidden;
}
.header{
  height:132px;
  display:grid;
  grid-template-columns:132px minmax(0,1fr) 150px;
  align-items:center;
  gap:14px;
  padding:8px 30px 8px 22px;
  border-bottom:1px solid var(--line);
  background:#f4eee5;
}
.brand-logo{
  width:118px;
  height:118px;
  max-width:100%;
  object-fit:contain;
  object-position:left center;
}
.nav{display:flex;justify-content:center;gap:34px;align-items:center;min-width:0}
.nav a{
  font-size:15px;
  text-decoration:none;
  color:#332d27;
  white-space:nowrap;
}
.nav a:hover{color:var(--red)}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:0 20px;
  border-radius:4px;
  border:1px solid var(--gold);
  background:rgba(255,255,255,.18);
  color:var(--redDark);
  font-size:12px;
  line-height:1;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.015em;
  text-decoration:none;
  white-space:nowrap;
}
.btn-red{
  background:linear-gradient(#a6251e,#811410);
  border-color:#68110e;
  color:white;
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.15);
}
.header .btn{width:145px;padding:0 10px;font-size:11px;min-height:38px}

.hero{
  position:relative;
  height:374px;
  border-bottom:1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(245,240,232,.98) 0 50%, rgba(236,225,209,.92) 100%);
  overflow:hidden;
}
.hero::before,.hero::after{
  content:"";
  position:absolute;
  top:0;
  width:72px;
  height:374px;
  background-size:72px 374px;
  background-repeat:no-repeat;
  z-index:1;
  pointer-events:none;
}
.hero::before{left:0;background-image:url("img/hero_column_left.png")}
.hero::after{right:0;background-image:url("img/hero_column_right.png")}
.hero-figure{
  position:absolute;
  right:86px;
  top:0;
  width:498px;
  height:374px;
  object-fit:contain;
  z-index:2;
}
.hero-text{
  position:relative;
  z-index:3;
  width:430px;
  padding-top:88px;
  margin-left:88px;
}
.eyebrow{
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.02em;
  color:#575049;
  margin-bottom:13px;
}
.hero h1{
  margin:0 0 16px;
  font-size:34px;
  line-height:1.22;
  text-transform:uppercase;
  letter-spacing:.01em;
  color:var(--redDark);
}
.hero h1 .dark{color:#2b2824}
.hero p{
  width:375px;
  margin:0 0 22px;
  color:#5d554c;
  font-size:15.2px;
}
.hero-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.hero-actions .btn{width:155px;min-height:34px;font-size:11px;padding:0 14px}

.section{padding:26px 38px;border-bottom:1px solid var(--line)}
h2{
  margin:0 0 16px;
  color:var(--redDark);
  font-size:24px;
  text-transform:uppercase;
  line-height:1.15;
  letter-spacing:.01em;
}
.two-col{
  display:grid;
  grid-template-columns:285px minmax(0,1fr);
  gap:56px;
  align-items:start;
}
.about-short p{
  margin:0 0 14px;
  color:#5b5249;
}
.more{color:var(--red);font-weight:700;text-decoration:none}
.more::after{content:" →"}
.orn{
  display:flex;
  align-items:center;
  gap:18px;
  white-space:nowrap;
}
.orn::before,.orn::after{
  content:"";
  height:1px;
  background:var(--gold2);
  flex:1;
}
.values-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}
.value-card{
  min-height:166px;
  border:1px solid #d4c5ad;
  border-radius:6px;
  background:rgba(248,244,237,.62);
  padding:17px 12px 12px;
  text-align:center;
}
.value-icon{
  font-size:38px;
  color:var(--gold);
  line-height:1;
  height:45px;
}
.value-card h3{
  margin:10px 0 8px;
  color:var(--red);
  font-size:15px;
  text-transform:uppercase;
}
.value-card p{
  margin:0;
  font-size:12.5px;
  line-height:1.34;
  color:#665b50;
}

.mission .mission-box{
  border-left:3px solid var(--red);
  padding:6px 0 6px 20px;
  max-width:980px;
}
.mission p{
  margin:0;
  color:#4d463f;
  font-size:15px;
}

.cards-row{
  display:grid;
  grid-template-columns:1fr 1.08fr;
  gap:18px;
}
.panel{
  border:1px solid #d0c1aa;
  border-radius:8px;
  background:rgba(246,240,232,.76);
  padding:16px 14px;
}
.panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}
.panel-head h2{margin:0;font-size:22px}
.people-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}
.person,.event-card{
  border:1px solid #d4c3aa;
  border-radius:5px;
  background:#f8f3eb;
  overflow:hidden;
}
.person img{width:100%;height:190px;object-fit:cover;object-position:center top}
.event-card img{width:100%;height:190px;object-fit:cover;object-position:center top}
.person-body,.event-body{padding:9px 9px 10px}
.person h3,.event-card h3{
  margin:0 0 6px;
  color:var(--redDark);
  text-transform:uppercase;
  font-size:11.5px;
  line-height:1.2;
}
.person p,.event-card p{
  margin:0 0 8px;
  color:#5d534a;
  font-size:11.6px;
  line-height:1.28;
}
.person a,.event-card a{font-size:11.5px;color:var(--red);text-decoration:none}
.event-date{
  float:left;
  width:43px;
  height:56px;
  margin:-1px 9px 4px -1px;
  border-right:1px solid #d3c1a6;
  border-bottom:1px solid #d3c1a6;
  text-align:center;
  color:var(--redDark);
  background:#f7f0e6;
  padding-top:6px;
}
.event-date strong{display:block;font-size:24px;line-height:1}
.event-date span{display:block;font-size:11px;text-transform:uppercase}
.event-body small{display:block;color:#6b6157;font-size:11px;margin-top:4px}

.projects-band{
  display:grid;
  grid-template-columns:165px 1fr 300px;
  gap:22px;
  align-items:center;
  border:1px solid #d0c1aa;
  border-radius:8px;
  background:rgba(246,240,232,.85);
  padding:14px 22px;
}
.projects-band img.seal{width:150px}
.projects-band img.building{width:283px;margin-left:auto}
.projects-band h2{margin-bottom:10px}
.projects-band p{margin:0 0 10px;color:#574f47;font-size:14px}

.cta{
  margin:0 38px 0;
  padding:22px 28px;
  display:grid;
  grid-template-columns:1fr 290px;
  align-items:center;
  gap:22px;
  border:1px solid #d0c1aa;
  border-radius:7px;
  background:rgba(245,238,226,.86);
  position:relative;
}
.cta::before,.cta::after{
  content:"";
  position:absolute;
  top:16px;bottom:16px;
  width:55px;
  background:linear-gradient(180deg, transparent, rgba(184,144,83,.15), transparent);
  opacity:.65;
}
.cta::before{left:0}.cta::after{right:0}
.cta h2{text-align:center;margin:0 0 8px;font-size:28px}
.cta p{text-align:center;margin:0;color:#6b6055;font-size:13.5px}
.cta-actions{text-align:center;position:relative;z-index:2}
.cta .btn{width:210px;height:42px}
.cta .more{display:inline-block;margin-top:12px}

.footer{
  margin-top:20px;
  background:#464740;
  color:#efe7d7;
  min-height:132px;
  display:grid;
  grid-template-columns:270px 1px 210px 1px 300px 140px;
  align-items:center;
  gap:24px;
  padding:14px 28px;
}
/* Footer logo (left) stays the original banner — plain width, height auto via the
   global img{height:auto} rule, so it scales proportionally with no distortion. */
.footer-logo{width:222px}
.footer-copy{font-size:11px;margin-top:4px;color:#d4cab5}
.vline{width:1px;height:74px;background:#a88f61}
.footer-links{display:grid;grid-template-columns:1fr 1fr;gap:8px 34px}
.footer a{text-decoration:none;color:#f0eadc;font-size:14px}
.contacts{font-size:13px;line-height:1.6}
.socials{margin-top:6px;display:flex;gap:9px}
.socials span{width:25px;height:25px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#c9a76c;color:#3f3d38;font-weight:700;font-size:12px}
.footer-monogram{display:block;width:124px;max-width:100%;height:auto;max-height:108px;object-fit:contain;margin-left:auto;margin-right:4px}
.footer-project-seal-link{display:flex;align-items:flex-end;justify-content:flex-end;margin-left:auto;text-decoration:none}
/* project_seal_header.png (same seal as the header): its medallion is a ~920px
   circle inside a 1065x1171 canvas, centered at 6.5%/0.7% (left/top) with an
   86.5%/78.5% (w/h) box; the backing disc uses the site's paper background (not
   the dark footer background) so the seal reads the same way it does in the header. */
.footer-project-seal{position:relative;display:block;width:118px;aspect-ratio:1065/1171;max-width:100%}
.footer-project-seal::before{content:"";position:absolute;left:6.5%;top:0.7%;width:86.5%;height:78.5%;border-radius:50%;background:var(--paper)}
.footer-project-seal-img{position:relative;z-index:1;display:block;width:100%;height:100%;object-fit:contain}

.page-hero{padding:42px 38px;border-bottom:1px solid var(--line)}
.page-hero h1{margin:0;color:var(--redDark);font-size:38px;text-transform:uppercase}
.content{padding:34px 38px;max-width:950px}
.content p{font-size:17px;color:#4d453d}
.content ul{font-size:17px;color:#4d453d}
.form{display:grid;gap:14px;max-width:620px}
input,textarea{width:100%;padding:13px 14px;border:1px solid #d0c1aa;border-radius:4px;background:#fbf7ef;font:inherit}
textarea{min-height:120px}

@media(max-width:1000px){
  .header{height:auto;grid-template-columns:1fr;justify-items:center;padding:12px 18px}
  .brand-logo{width:118px;height:118px}
  .nav{flex-wrap:wrap;gap:14px 24px}
  .hero{height:auto;min-height:520px;padding-bottom:0}
  .hero::before,.hero::after{display:none}
  .hero-text{margin-left:38px;padding-top:50px;width:auto;max-width:500px}
  .hero-figure{position:relative;right:auto;top:auto;margin:20px auto 0;width:min(500px,92%)}
  .two-col,.cards-row,.projects-band,.cta,.footer{grid-template-columns:1fr}
  .values-grid{grid-template-columns:repeat(2,1fr)}
  .footer{gap:18px}
  .vline{display:none}
  .footer-monogram{margin-left:0}
}
@media(max-width:640px){
  body{font-size:14px}
  .section{padding:22px 18px}
  .hero-text{margin-left:22px;margin-right:22px}
  .hero h1{font-size:27px}
  .hero p{width:auto}
  .hero-actions{flex-direction:column;align-items:flex-start}
  .people-grid,.values-grid{grid-template-columns:1fr}
  .projects-band img.building{display:none}
  .cta{margin:0 18px;padding:18px}
  .footer{padding:18px}
}

/* additional content pages */
.nav-more{position:relative}.nav-more>button{font:inherit;font-size:15px;border:0;background:transparent;color:#332d27;cursor:pointer;padding:4px 0}.nav-more-menu{display:none;position:absolute;top:28px;right:-16px;min-width:190px;background:#f8f2e9;border:1px solid var(--line);box-shadow:0 9px 22px rgba(53,43,31,.18);z-index:40}.nav-more:hover .nav-more-menu,.nav-more:focus-within .nav-more-menu{display:block}.nav-more-menu a{display:block;padding:8px 15px;font-size:14px!important}.section-grid,.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.info-card,.gallery-item{border:1px solid #d4c3aa;border-radius:7px;background:#f8f3eb;padding:20px}.info-card h3{margin:0 0 10px;color:var(--redDark);font-size:17px;text-transform:uppercase}.info-card p{margin:0;color:#5d534a;font-size:14px}.news-list{display:grid;gap:16px}.news-item{display:grid;grid-template-columns:116px 1fr;gap:18px;padding:17px 0;border-bottom:1px solid #d6c6af}.news-date{color:var(--redDark);font-size:18px;font-weight:700}.news-item h3{margin:0 0 8px;color:var(--redDark);font-size:20px}.news-item p{margin:0;color:#554d45}.gallery-item{padding:0;overflow:hidden}.gallery-item img{width:100%;aspect-ratio:1.12;object-fit:cover}.gallery-item div{padding:12px 14px;color:#5b5046;font-size:14px}.partner-logos{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:22px}.partner-placeholder{min-height:88px;border:1px solid #d2c1a7;border-radius:6px;background:rgba(255,255,255,.35);display:flex;align-items:center;justify-content:center;color:#8a7a65;font-weight:700;text-align:center;padding:10px}@media(max-width:1000px){.section-grid,.gallery-grid{grid-template-columns:repeat(2,1fr)}.partner-logos{grid-template-columns:repeat(2,1fr)}}@media(max-width:640px){.section-grid,.gallery-grid,.partner-logos{grid-template-columns:1fr}.news-item{grid-template-columns:1fr;gap:6px}}

/* Online conference module */
.online-banner{margin:0 38px 26px;padding:22px 26px;border:1px solid #cdbb9d;border-radius:8px;background:linear-gradient(135deg,rgba(151,27,22,.96),rgba(92,19,16,.96));color:#fff7ea;display:grid;grid-template-columns:1fr auto;gap:24px;align-items:center}.online-banner h2{color:#fff7ea;margin:0 0 8px;font-size:24px}.online-banner p{margin:0;max-width:650px;color:#f6e8d5;font-size:15px}.online-banner .btn{min-width:205px;background:#f8f2e8;color:#811410;border-color:#f8f2e8}.online-events{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:20px}.online-event{border:1px solid #d4c3aa;border-radius:7px;background:#faf5ed;padding:18px}.online-event .tag{display:inline-block;color:#fff;background:var(--red);border-radius:3px;padding:4px 8px;font-size:11px;text-transform:uppercase;font-weight:700;margin-bottom:11px}.online-event h3{margin:0 0 9px;color:var(--redDark);font-size:18px;line-height:1.2}.online-event p{margin:0 0 14px;color:#5d554c;font-size:14px}.online-event .meta{font-size:13px;color:#75695c;margin-bottom:15px}.conference-shell{padding:28px 38px 38px}.conference-top{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;margin-bottom:18px}.conference-top h1{margin:0;color:var(--redDark);font-size:30px;line-height:1.15;text-transform:uppercase}.conference-top p{margin:8px 0 0;color:#61574e;max-width:700px}.conference-wrap{border:1px solid #cfbea5;background:#1f211f;border-radius:8px;overflow:hidden;min-height:680px}#jitsi-container{width:100%;height:680px}.conference-help{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:20px}.conference-help .panel{padding:18px}.conference-help h2{font-size:19px;margin-bottom:10px}.conference-help p,.conference-help li{font-size:14px;color:#5f554b}@media(max-width:800px){.online-banner{margin:0 18px 22px;grid-template-columns:1fr}.online-events{grid-template-columns:1fr}.conference-shell{padding:22px 18px}.conference-top{display:block}.conference-wrap,#jitsi-container{min-height:540px;height:540px}.conference-help{grid-template-columns:1fr}}

/* Точная коррекция типографики красных CTA-кнопок */
.btn.btn-red{
  font-size:10px !important;
  letter-spacing:.01em !important;
  min-height:34px;
  padding:0 16px;
  line-height:1;
}
.header .btn.btn-red{
  font-size:10px !important;
  min-height:34px;
  padding:0 11px;
}
.hero-actions .btn.btn-red,
.online-event .btn.btn-red,
.cta .btn.btn-red{
  font-size:10px !important;
  min-height:34px;
  padding:0 14px;
}


/* Hero rebuilt into 3 columns: left column / text / right composition */
.hero.hero-three-col{
  position:relative;
  display:grid;
  grid-template-columns:84px 380px minmax(420px, 1fr);
  align-items:center;
  gap:22px;
  height:374px;
  padding:0 18px;
  border-bottom:1px solid var(--line);
  background:#eee8e1;
  overflow:hidden;
}
.hero.hero-three-col::before,.hero.hero-three-col::after{display:none}
/* hero_col_left_full.png is a tight crop (no transparent margin) of a single column;
   sized so its shaft/base match the vertical placement of the columns baked into
   hero_right_composition.png (which sit ~8% in from the top and flush at the bottom
   when that image fills the same 374px block height). */
.hero-three-col .hero-left-column{
  width:auto;
  height:341px;
  max-width:none;
  object-fit:contain;
  object-position:left bottom;
  justify-self:start;
  align-self:end;
  margin-bottom:3px;
}
.hero-three-col .hero-text{
  position:relative;
  z-index:3;
  width:380px;
  margin-left:0;
  padding-top:0;
  background:transparent;
}
.hero-three-col .eyebrow{
  margin-bottom:10px;
  font-size:12px;
  line-height:1.15;
}
.hero-three-col h1{
  margin:0 0 12px;
  font-size:27px;
  line-height:1.13;
  letter-spacing:.003em;
}
.hero-three-col p{
  width:345px;
  margin:0 0 16px;
  font-size:13.6px;
  line-height:1.4;
}
.hero-three-col .hero-actions{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
}
.hero-three-col .hero-actions .btn{
  width:156px;
  min-height:34px;
  padding:0 12px;
  font-size:10px;
}
/* width:auto (not 100%) keeps this height-constrained at its natural 1259x914 ratio;
   width:100% previously let the grid track squeeze it narrower, which shrank the
   whole picture and added phantom top/bottom letterboxing.
   hero_right_composition.png also has a soft anti-aliased fade around the columns
   (unlike hero_col_left_full.png's crisp edge), so the right column reads as
   starting ~16px inside the canvas edge even though its pixels touch x=0/x=max;
   the negative margin below pulls it in further (past the 18px padding) so the
   visible column reads 10px from the block's edge, as requested. */
.hero-three-col .hero-right-composition{
  width:auto;
  max-width:640px;
  height:374px;
  object-fit:contain;
  object-position:center center;
  justify-self:end;
  align-self:end;
  margin-right:-24px;
}
@media(max-width:1000px){
  .hero.hero-three-col{
    grid-template-columns:1fr;
    height:auto;
    gap:16px;
    padding:18px 18px 24px;
  }
  .hero-three-col .hero-left-column{display:none}
  .hero-three-col .hero-text{width:auto; max-width:460px}
  .hero-three-col .hero-three-col p, .hero-three-col p{width:auto; max-width:380px}
  .hero-three-col .hero-right-composition{max-width:100%; height:auto; justify-self:center}
}
@media(max-width:640px){
  .hero-three-col h1{font-size:24px}
  .hero-three-col .hero-actions .btn{width:150px}
}


@media(max-width:900px){
  .footer{grid-template-columns:1fr; min-height:0; gap:14px; text-align:center;}
  .vline{display:none}
  .footer-monogram{margin:6px auto 0; max-height:92px}
  .footer-logo{margin:0 auto}
  .contacts{margin:0 auto}
}

/* Dynamic CMS content */
.people-grid:has(.event-card:only-child){grid-template-columns:minmax(0,1fr)}
.event-card small{color:#8b1e1e;font-weight:bold}


/* Content images: fixed editorial size, never expand to original upload dimensions. */
.page-hero + .section .event-card img{height:210px;object-fit:cover;object-position:top}
.event-card .btn{font-size:11px;min-height:32px;padding:0 12px}
@media(max-width:640px){.person img,.event-card img,.page-hero + .section .event-card img{height:190px}}


/* Art gallery: cards preserve the original proportions of paintings and never stretch artwork. */
.art-gallery-section{padding-top:34px;padding-bottom:42px}
.art-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.art-card{border:1px solid #d4c3aa;border-radius:8px;background:#f8f3eb;overflow:hidden;box-shadow:0 3px 12px rgba(69,52,34,.07);transition:transform .18s ease,box-shadow .18s ease}
.art-card:hover{transform:translateY(-3px);box-shadow:0 9px 18px rgba(69,52,34,.14)}
.art-card-media{display:flex;align-items:center;justify-content:center;height:260px;padding:14px;background:linear-gradient(135deg,#e9dfd1,#f7f2e9);border-bottom:1px solid #dac9af;text-decoration:none}
.art-card-media img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;background:#f7f3eb}
.art-card-placeholder{color:#8b7a64;font-size:14px;text-align:center}
.art-card-body{padding:16px 17px 18px}
.art-card-body h3{margin:0 0 6px;color:var(--redDark);font-size:18px;line-height:1.2}
.art-card-author{font-size:15px;color:#75552c;font-weight:700;margin-bottom:9px}
.art-card-body p{margin:0 0 11px;color:#5c5147;font-size:14px;line-height:1.42}
.art-card-meta{padding-top:9px;border-top:1px solid #ddcfba;color:#816d52;font-size:12px;line-height:1.35}
@media(max-width:1000px){.art-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.art-gallery-grid{grid-template-columns:1fr}.art-card-media{height:280px}}


/* Compact art gallery and member directory */
.gallery-intro{max-width:720px;margin:0 0 20px;color:#5c5147}
.gallery-intro p{margin:0;font-size:16px}
.compact-art-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.art-card-compact{border-radius:6px;box-shadow:none}
.art-card-compact .art-card-media{height:156px;padding:9px;background:#eee6da}
.art-card-compact .art-card-body{padding:11px 12px 13px}
.art-card-compact .art-card-body h3{font-size:15px;margin:0 0 4px;line-height:1.22}
.art-card-compact .art-card-author{font-size:12px;margin:0 0 9px;line-height:1.25;color:#75552c}
.card-more{font-size:12px;color:var(--redDark);font-weight:700;text-decoration:none}
.card-more:hover{text-decoration:underline}
.member-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.member-card{border:1px solid #d4c3aa;border-radius:7px;background:#f8f3eb;overflow:hidden;display:flex;flex-direction:column}
.member-card-photo{display:flex;align-items:center;justify-content:center;height:218px;background:#e8ded0;text-decoration:none;color:#8b7a64}
.member-card-photo img{width:100%;height:100%;object-fit:cover;object-position:center top}
.member-card-body{padding:14px 15px 16px}
.member-card-body h3{margin:0 0 8px;color:var(--redDark);font-size:18px;line-height:1.2}
.member-card-body p{margin:0 0 12px;color:#5c5147;font-size:14px;line-height:1.42;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.detail-page{padding-top:28px;padding-bottom:44px}
.back-link{margin:0 0 16px}.back-link a{color:var(--redDark);font-weight:700;text-decoration:none}
.detail-card{display:grid;grid-template-columns:minmax(280px,46%) 1fr;gap:30px;align-items:start;max-width:930px}
.detail-media{border:1px solid #d4c3aa;background:#eee6da;padding:14px;display:flex;justify-content:center;align-items:center;min-height:300px}
.detail-media img{max-width:100%;max-height:560px;width:auto;height:auto;object-fit:contain;display:block}
.detail-body{padding:3px 0}.detail-subtitle{font-size:18px;font-weight:700;color:#75552c;margin-bottom:14px}.detail-meta{font-size:13px;color:#806b51;border-top:1px solid #dfd0ba;border-bottom:1px solid #dfd0ba;padding:8px 0;margin:0 0 16px}.detail-text{color:#574d43;line-height:1.58;font-size:16px}
@media(max-width:1000px){.compact-art-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.detail-card{grid-template-columns:1fr}.detail-media{max-width:620px}}
@media(max-width:700px){.compact-art-grid,.member-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.art-card-compact .art-card-media{height:145px}.member-card-photo{height:205px}}
@media(max-width:480px){.compact-art-grid,.member-grid{grid-template-columns:1fr}.art-card-compact .art-card-media{height:210px}}


/* Fixed compact cards: cards no longer expand across the whole screen when there are few items. */
.art-gallery-grid.compact-art-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(175px, 205px));
  justify-content:start;
  align-items:start;
  gap:16px;
}
.art-card-compact{
  width:100%;
  min-width:0;
}
.art-card-compact .art-card-media{
  height:126px;
  padding:8px;
}
.art-card-compact .art-card-media img{
  max-width:100%;
  max-height:100%;
  width:100%;
  height:100%;
  object-fit:contain;
}
.art-card-compact .art-card-body{
  min-height:98px;
  padding:10px 11px 12px;
}
.art-card-compact .art-card-body h3{
  font-size:14px;
}
.member-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(185px, 220px));
  justify-content:start;
  align-items:stretch;
  gap:16px;
}
.member-card{
  width:100%;
  min-width:0;
  height:100%;
}
.member-card-photo{
  height:150px;
  flex-shrink:0;
}
.member-card-body{
  min-height:135px;
  padding:12px;
  display:flex;
  flex-direction:column;
  flex:1;
}
.member-card-body h3{
  font-size:16px;
  margin-bottom:6px;
}
.member-card-body p{
  font-size:13px;
  -webkit-line-clamp:2;
  margin-bottom:10px;
}
.member-video-btn{
  width:100%;
  min-height:32px;
  padding:0 10px;
  font-size:11px;
  margin-top:auto;
}
.member-video-btn-off{
  opacity:.5;
  cursor:default;
  pointer-events:none;
}
@media(max-width:700px){
  .art-gallery-grid.compact-art-grid,.member-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .art-card-compact .art-card-media{height:135px}
  .member-card-photo{height:165px}
}
@media(max-width:480px){
  .art-gallery-grid.compact-art-grid,.member-grid{grid-template-columns:1fr}
  .art-card-compact .art-card-media{height:180px}
  .member-card-photo{height:200px}
}


/* CMS cards: teaser only; full description lives on the detail page. */
.content-cards .event-card,.people-grid .event-card,.people-grid .person{display:flex;flex-direction:column;min-width:0}
.content-cards .event-body,.people-grid .event-body,.people-grid .person-body{display:flex;flex:1;flex-direction:column}
.content-cards .event-body p,.people-grid .event-body p,.people-grid .person-body p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.card-more{display:inline-block;margin-top:auto;padding-top:8px}
.content-cards .event-card img{height:170px;object-fit:cover;object-position:top}
.content-cards .event-card{min-height:350px}
@media(max-width:640px){.content-cards .event-card img{height:185px}.content-cards .event-card{min-height:0}}


/* Главная страница: компактные карточки лекций */
.people-grid:has(.lecture-home-card:only-child){
  grid-template-columns: minmax(0, 250px) !important;
  justify-content: start;
}
.people-grid .lecture-home-card{
  width: 100%;
  max-width: 250px;
  min-height: 0;
  overflow: hidden;
}
.people-grid .lecture-home-card > img{
  width: 100%;
  height: 190px;
  object-fit: contain;
  object-position: center top;
  background: #202733;
  padding: 0;
}
.people-grid .lecture-home-card .event-body{
  min-height: 225px;
  padding: 12px;
}
.people-grid .lecture-home-card h3{
  font-size: 16px;
  line-height: 1.2;
  margin: 5px 0 8px;
}
.people-grid .lecture-home-card p{
  font-size: 13px;
  line-height: 1.35;
  -webkit-line-clamp: 3;
}
.people-grid .lecture-home-card .card-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
}
.people-grid .lecture-home-card .btn.btn-red{
  display: inline-flex;
  width: auto;
  min-width: 130px;
  min-height: 36px;
  padding: 0 12px;
  color: #ffffff !important;
  background: #971b16 !important;
  border-color: #7f1612 !important;
  font-size: 10px !important;
  white-space: nowrap;
  text-indent: 0;
}
.people-grid .lecture-home-card .card-more{
  padding-top: 0;
  margin-top: 0;
}
@media (max-width: 640px){
  .people-grid:has(.lecture-home-card:only-child){
    grid-template-columns: 1fr !important;
  }
  .people-grid .lecture-home-card{
    max-width: 100%;
  }
  .people-grid .lecture-home-card > img{
    height: 250px;
  }
}


/* Rich text from admin editor */
.rich-text p{margin:0 0 9px}.rich-text h2,.rich-text h3,.rich-text h4{margin:10px 0 6px;color:inherit}.rich-text ul,.rich-text ol{margin:8px 0 10px 22px}.rich-text a{color:#8b1e1e;text-decoration:underline}.rich-text blockquote{margin:10px 0;padding:8px 12px;border-left:3px solid #cca15a;background:rgba(235,214,166,.18)}.value-card .rich-text,.mission-box .rich-text,.about-short .rich-text,.cta .rich-text{font:inherit;color:inherit}.detail-text.rich-text,.detail-subtitle.rich-text{line-height:1.55}


/* Главная: текст должен отображаться так, как введён в админке.
   Отключаем принудительный перевод в заглавные буквы для редактируемых блоков. */
.hero .eyebrow,
.hero h1,
.section h2,
.value-card h3,
.panel h2,
.person h3,
.event-card h3,
.info-card h3,
.news-item h3,
.member-card-body h3,
.art-card-body h3,
.cards-row .panel .people-grid .lecture-home-card .event-body h3,
.cards-row .panel .people-grid .lecture-home-card h3,
.people-grid .lecture-home-card h3{
  text-transform: none !important;
}

/* Сохраняем аккуратный размер заголовков в блоке "Талант — это" */
.value-card h3{
  font-size: 15px;
  line-height: 1.22;
  letter-spacing: 0;
}

/* Заголовок лекции на главной — как в админке, без капса */
.cards-row .panel .people-grid .lecture-home-card .event-body h3,
.cards-row .panel .people-grid .lecture-home-card h3,
.people-grid .lecture-home-card h3{
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
  overflow: hidden !important;
  margin: 0 0 6px !important;
  min-height: 41px !important;
  max-height: 41px !important;
  font-size: 11.5px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}


/* Главная: вместо блока "Новости" — два редактируемых смысловых блока */
.home-feature-section{padding-top:26px}
.home-feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.home-feature-card{display:grid;grid-template-columns:190px 1fr;gap:18px;align-items:stretch;border:1px solid #d5c4aa;border-radius:8px;background:#f8f3eb;overflow:hidden;min-height:230px}
.home-feature-card>img{width:100%;height:100%;min-height:230px;object-fit:contain;object-position:center;background:#efe5d6;padding:18px;box-sizing:border-box;border-right:1px solid #ddcdb6}
.home-feature-body{display:flex;flex-direction:column;gap:10px;padding:20px 20px 18px;min-width:0}
.home-feature-body h2{margin:0;color:var(--redDark);font-size:24px;line-height:1.15;text-transform:none!important;letter-spacing:0}
.home-feature-body .rich-text{color:#564c43;font-size:15px;line-height:1.42}
.home-feature-body .rich-text p{margin:0 0 8px}
.home-feature-body .btn{margin-top:auto;align-self:flex-start;min-width:150px;min-height:34px;font-size:11px;white-space:nowrap}
@media(max-width:1000px){.home-feature-grid{grid-template-columns:1fr}.home-feature-card{grid-template-columns:170px 1fr}.home-feature-card>img{min-height:210px}}
@media(max-width:640px){.home-feature-card{grid-template-columns:1fr}.home-feature-card>img{height:190px;min-height:0;border-right:0;border-bottom:1px solid #ddcdb6}.home-feature-body h2{font-size:21px}}


/* Главная: блоки "Опыт" и "Увлечения" — рядом, компактно, как "Лица клуба" + "Лекторий" */
.home-feature-section{
  padding: 28px 38px !important;
  border-top: 1px solid var(--line);
}

.home-feature-grid{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 20px !important;
  align-items: stretch !important;
}

.home-feature-card{
  display: grid !important;
  grid-template-columns: 160px minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: center !important;
  min-height: 168px !important;
  padding: 18px !important;
  border: 1px solid #d5c4aa !important;
  border-radius: 8px !important;
  background: #f8f3eb !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.home-feature-card > img{
  width: 150px !important;
  height: 150px !important;
  min-height: 0 !important;
  max-width: 150px !important;
  object-fit: contain !important;
  object-position: center !important;
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-sizing: border-box !important;
}

.home-feature-body{
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding: 0 !important;
  min-width: 0 !important;
}

.home-feature-body h2{
  margin: 0 !important;
  color: var(--redDark) !important;
  font-size: 22px !important;
  line-height: 1.12 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.home-feature-body .rich-text{
  color: #564c43 !important;
  font-size: 14px !important;
  line-height: 1.38 !important;
  max-height: 58px !important;
  overflow: hidden !important;
}

.home-feature-body .rich-text p{
  margin: 0 !important;
}

.home-feature-body .btn{
  margin-top: 4px !important;
  align-self: flex-start !important;
  width: auto !important;
  min-width: 132px !important;
  min-height: 32px !important;
  padding: 0 12px !important;
  font-size: 10px !important;
  white-space: nowrap !important;
}

/* Чтобы два блока стояли рядом дольше, а на телефон уходили в одну колонку */
@media(max-width: 760px){
  .home-feature-section{
    padding: 24px 18px !important;
  }
  .home-feature-grid{
    grid-template-columns: 1fr !important;
  }
  .home-feature-card{
    grid-template-columns: 120px minmax(0, 1fr) !important;
    padding: 14px !important;
  }
  .home-feature-card > img{
    width: 110px !important;
    height: 110px !important;
    max-width: 110px !important;
    padding: 0 !important;
  }
  .home-feature-body h2{
    font-size: 19px !important;
  }
}


/* Блок "Талант — это...": замена старых эмодзи-значков на фирменные иконки.
   Размер ограничен, чтобы иконки не превышали прежние значки здания / мозга / ключа / весов. */
.values-grid .value-card .value-icon{
  width: 45px !important;
  height: 45px !important;
  margin: 0 auto 8px !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
}

.values-grid .value-card:nth-child(1) .value-icon{
  background-image: url("img/talent_value_icon_1.png") !important;
}
.values-grid .value-card:nth-child(2) .value-icon{
  background-image: url("img/talent_value_icon_2.png") !important;
}
.values-grid .value-card:nth-child(3) .value-icon{
  background-image: url("img/talent_value_icon_3.png") !important;
}
.values-grid .value-card:nth-child(4) .value-icon{
  background-image: url("img/talent_value_icon_4.png") !important;
}

.value-card h3{
  margin-top: 8px !important;
}

/* WYSIWYG content: keep editor formatting visible on the public site. */
.rich-text span[style],
.rich-text p[style],
.rich-text div[style],
.rich-text h2[style],
.rich-text h3[style],
.rich-text h4[style]{
  text-transform:none;
}

.mission-kicker{margin:0 0 10px;font-size:15px;line-height:1.45;font-weight:700;letter-spacing:.02em;color:#831100}.mission-box h2{margin-top:0}

/* Информационный блок лектория между ценностями и карточками */
.lecture-program{padding-top:8px;padding-bottom:18px}
.lecture-program-box{position:relative;overflow:hidden;padding:28px 42px;border:1px solid #d9c5a5;border-radius:10px;background:#f5ede1;text-align:left}
.lecture-program-box::before,.lecture-program-box::after{content:"";position:absolute;top:0;bottom:0;width:8px;background:#8b1e1e}
.lecture-program-box::before{left:0}.lecture-program-box::after{right:0}
.lecture-program-box h2{margin:0 0 14px;text-align:center;font-size:28px;color:#7f1612}
.lecture-program-box .rich-text{max-width:920px;margin:0 auto;color:#40372f;font-size:16px;line-height:1.55}
.lecture-program-box .rich-text p{margin:0 0 10px}
.lecture-program-box .rich-text ul{margin:8px 0 12px 24px;padding:0}
.lecture-program-box .rich-text li{margin:5px 0}
@media(max-width:760px){.lecture-program{padding:8px 18px 16px}.lecture-program-box{padding:22px 24px}.lecture-program-box h2{font-size:23px}.lecture-program-box .rich-text{font-size:15px}}

/* v13: фирменная печать в правом нижнем углу футера */
@media(max-width:1000px){.footer-project-seal-link{margin-left:0;justify-content:center}.footer-project-seal{width:104px}}
@media(max-width:640px){.footer-project-seal{width:92px}}

/* Профили участников: ФИО служит ссылкой, работы отображаются миниатюрами под фотографией. */
.member-name-link{color:inherit;text-decoration:none}
.member-name-link:hover{text-decoration:underline}
.detail-media-column{min-width:0}
.member-work-thumbs{display:grid;grid-template-columns:repeat(auto-fill,56px);gap:8px;margin-top:10px;justify-content:start}
.member-work-thumb{width:56px;height:56px;display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid #d4c3aa;border-radius:4px;background:#eee6da;text-decoration:none;transition:transform .15s ease,box-shadow .15s ease}
.member-work-thumb:hover{transform:translateY(-2px);box-shadow:0 4px 10px rgba(69,52,34,.16)}
.member-work-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.member-work-thumb span{font-size:18px;font-weight:700;color:var(--redDark)}
@media(max-width:480px){.member-work-thumbs{grid-template-columns:repeat(auto-fill,52px)}.member-work-thumb{width:52px;height:52px}}

/* v16: миниатюры работ под фотографией участника — увеличенный размер */
.member-work-thumbs{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:10px !important;
  margin-top:10px !important;
  max-width:100% !important;
  align-items:flex-start !important;
}
.member-work-thumb{
  flex:0 0 84px !important;
  width:84px !important;
  height:84px !important;
  min-width:84px !important;
  min-height:84px !important;
  max-width:84px !important;
  max-height:84px !important;
  padding:0 !important;
  border:1px solid #d4c3aa !important;
  border-radius:6px !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
  background:#eee6da !important;
  text-decoration:none !important;
  box-shadow:0 2px 8px rgba(69,52,34,.12) !important;
  transform:translateY(0) scale(1) !important;
  transition:transform .18s ease,box-shadow .18s ease !important;
  will-change:transform !important;
}
.member-work-thumb:hover{
  transform:translateY(-3px) scale(1.04) !important;
  box-shadow:0 7px 16px rgba(69,52,34,.22) !important;
}
.member-work-thumb img{
  width:100% !important;
  height:100% !important;
  min-width:0 !important;
  min-height:0 !important;
  max-width:none !important;
  max-height:none !important;
  object-fit:cover !important;
  display:block !important;
  pointer-events:none !important;
}
.member-work-thumb span{
  font-size:18px !important;
}
@media(max-width:480px){
  .member-work-thumb{
    flex-basis:72px !important;
    width:72px !important;
    height:72px !important;
    min-width:72px !important;
    min-height:72px !important;
    max-width:72px !important;
    max-height:72px !important;
  }
}

/* v19 — Gallery cards in the ArtTap Market visual language. */
.art-gallery-grid.arttap-gallery-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:30px 22px;
  align-items:start;
}
.arttap-gallery-card{
  width:auto !important;
  max-width:none !important;
  min-width:0;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  overflow:visible !important;
  transition:transform .22s ease;
}
.arttap-gallery-card:hover{
  transform:translateY(-4px);
}
.arttap-gallery-card .art-card-media{
  display:flex !important;
  width:100%;
  height:auto !important;
  aspect-ratio:4/5;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border:1px solid rgba(79,62,43,.13);
  border-radius:2px;
  background:#f1eee8;
  box-shadow:0 5px 18px rgba(46,35,23,.07);
  transition:box-shadow .22s ease,transform .22s ease;
}
.arttap-gallery-card:hover .art-card-media{
  box-shadow:0 12px 28px rgba(46,35,23,.13);
}
.arttap-gallery-card .art-card-media img{
  display:block;
  width:100% !important;
  height:100% !important;
  padding:0 !important;
  object-fit:cover !important;
  object-position:center;
  transition:transform .35s ease;
}
.arttap-gallery-card:hover .art-card-media img{
  transform:scale(1.025);
}
.arttap-gallery-card .art-card-placeholder{
  padding:20px;
  color:#8b8174;
  font-size:13px;
  text-align:center;
}
.arttap-gallery-card .art-card-body{
  padding:13px 1px 0 !important;
}
.arttap-gallery-card .art-card-author{
  margin:0 0 5px !important;
  color:#786f64 !important;
  font-size:13px !important;
  font-weight:400;
  line-height:1.3 !important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.arttap-gallery-card .art-card-body h3{
  margin:0 !important;
  font-size:17px !important;
  font-weight:600;
  line-height:1.28 !important;
}
.art-card-title-link{
  color:#2c2721;
  text-decoration:none;
  transition:color .18s ease;
}
.art-card-title-link:hover{
  color:var(--redDark);
  text-decoration:none;
}
@media(max-width:1000px){
  .art-gallery-grid.arttap-gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:26px 18px}
}
@media(max-width:700px){
  .art-gallery-grid.arttap-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 14px}
  .arttap-gallery-card .art-card-body h3{font-size:15px !important}
  .arttap-gallery-card .art-card-author{font-size:12px !important}
}
@media(max-width:430px){
  .art-gallery-grid.arttap-gallery-grid{grid-template-columns:1fr;gap:30px}
  .arttap-gallery-card .art-card-media{aspect-ratio:4/5}
}

/* ==== Согласие на cookie (баннер) ==== */
.cookie-consent{position:fixed;left:0;right:0;bottom:0;z-index:1000;display:flex;align-items:center;gap:14px;background:#3c3b36;color:#efe7d7;box-shadow:0 -4px 14px rgba(0,0,0,.28);padding:13px 22px;font-size:14px;line-height:1.45}
.cookie-consent p{margin:0;flex:1 1 auto;color:#efe7d7}
.cookie-consent a{color:#e8c58a;text-decoration:underline}
.cookie-consent .btn{flex:0 0 auto;margin-left:16px}
@media(max-width:640px){.cookie-consent{display:block;text-align:center}.cookie-consent .btn{margin:10px 0 0;width:100%}}

/* ==== Чекбокс согласия в форме записи ==== */
.consent-row{display:flex;gap:10px;align-items:flex-start;font-size:14px;color:#4d453d;line-height:1.45;max-width:620px}
.consent-row input[type="checkbox"]{width:16px;height:16px;flex:0 0 auto;margin-top:3px;accent-color:#971b16}
.consent-row a{color:var(--redDark);text-decoration:underline}

/* ==== Сообщения формы ==== */
.form-success{color:#1d6b33;font-weight:700;padding:12px 14px;border:1px solid #b9d9c0;background:#eef7f0;border-radius:4px}
.form-error{color:#8c1a14;font-weight:700;padding:12px 14px;border:1px solid #e0b3ae;background:#fbeeec;border-radius:4px}

/* ==== Страница документов ==== */
.legal-docs h2{font-size:22px;margin:36px 0 14px;border-bottom:1px solid var(--line);padding-bottom:8px}
.legal-docs h2:first-of-type{margin-top:6px}
.legal-docs h3{font-size:16px;color:var(--redDark);margin:20px 0 8px;text-transform:none;letter-spacing:0}
.legal-docs p{font-size:15px;line-height:1.6}
.legal-docs ul{margin:8px 0 16px;padding-left:22px;font-size:15px;line-height:1.6;color:#4d453d}
.legal-docs li{margin:4px 0}
.legal-docs .legal-date{color:#806b51;font-size:13px;margin:-6px 0 8px}
.legal-nav{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 0}
.legal-nav a{color:var(--redDark);text-decoration:underline;font-weight:700;font-size:15px}

/* ==== Кнопка «Стать участником» после описания лекции ==== */
.lecture-join-actions{margin-top:18px}

/* ==== Кнопка «Стать участником» под ссылкой «Подробнее» в карточках лектория ==== */
.lecture-join-btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:38px;margin-top:10px;background:#971b16 !important;color:#ffffff !important;border-color:#7f1612 !important;font-size:11px !important;letter-spacing:.01em !important;white-space:nowrap}

/* ==== Колонны hero: вплотную к краям и до «потолка» (десктоп) ==== */
@media(min-width:901px){
  .hero-three-col .hero-left-column{
    height:374px !important;
    margin:0 0 0 -18px !important;
    align-self:stretch !important;
    object-fit:fill !important;
    object-position:left top !important;
  }
  .hero-three-col .hero-right-composition{
    height:374px !important;
    margin:0 -18px 0 0 !important;
    align-self:stretch !important;
    object-fit:contain !important;
    object-position:right top !important;
  }
}

/* ==== Видеотека ==== */
.video-lib-intro p{font-size:16px;line-height:1.6}
.video-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px;margin-top:8px}
.video-card{background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:16px;display:flex;flex-direction:column;gap:12px}
.video-frame{position:relative;aspect-ratio:16/9;background:#1a1d29;border-radius:8px;overflow:hidden}
.video-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.video-open{position:absolute;top:10px;right:10px;z-index:2;background:rgba(20,20,30,.65);color:#fff;border:1px solid rgba(255,255,255,.35);border-radius:6px;width:36px;height:36px;cursor:pointer;font-size:15px;line-height:1}
.video-open:hover{background:#971b16}
.video-card h3{margin:0;color:var(--redDark);font-size:17px;line-height:1.3}
.video-card p{margin:0;color:#4d453d;font-size:14.5px;line-height:1.5}
.video-overlay{position:fixed;inset:0;z-index:1200;background:rgba(10,12,20,.92);display:none;align-items:center;justify-content:center;padding:24px}
.video-overlay.open{display:flex}
.video-overlay-box{position:relative;width:min(960px,94vw);aspect-ratio:16/9}
.video-overlay-box iframe{position:absolute;inset:0;width:100%;height:100%;border:0;background:#000}
.video-overlay-close{position:absolute;top:14px;right:18px;z-index:1300;background:rgba(20,20,30,.7);color:#fff;border:1px solid rgba(255,255,255,.4);border-radius:8px;width:42px;height:42px;font-size:18px;cursor:pointer}
.video-overlay-close:hover{background:#971b16}
@media(max-width:900px){.video-grid{grid-template-columns:1fr}}

.person-id-14 img{object-position:center 38%}

/* --- видео материала и отзывы к лекциям --- */
.detail-video-wrap{margin:0 0 24px}
.video-file{width:100%;max-height:70vh;background:#000;border-radius:8px;display:block}
.video-embed{position:relative;aspect-ratio:16/9;background:#000;border-radius:8px;overflow:hidden}
.video-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.reviews{margin-top:34px;padding-top:22px;border-top:1px solid var(--line,#e6dccb)}
.reviews h2{color:var(--redDark,#7f1612);font-size:22px;margin:0 0 16px}
.reviews-avg{font-size:14px;color:#756b5d;font-weight:400;margin-left:8px}
.review{background:#faf6ee;border:1px solid #e6dccb;border-radius:8px;padding:14px 16px;margin:0 0 12px}
.review-head{display:flex;flex-wrap:wrap;gap:10px;align-items:baseline;margin-bottom:6px}
.review-head time{color:#8a8073;font-size:13px;margin-left:auto}
.review-stars{color:#c8952f;letter-spacing:1px}
.review-body{color:#3d372f;line-height:1.55}
/* --- архив записей лекций в видеотеке --- */
.video-arch-title{color:var(--redDark,#7f1612);font-size:24px;margin:6px 0 16px}
.video-frame video{position:absolute;inset:0;width:100%;height:100%;background:#000;object-fit:contain}
.video-card .video-date{color:#756b5d;font-size:13px}
/* --- video under the photo in the detail card --- */
.lecture-media-video{margin-top:14px;border:2px solid #971b16;background:#fff;border-radius:8px;padding:10px;box-shadow:0 3px 12px rgba(0,0,0,.07)}
.lecture-video-caption{display:flex;align-items:center;gap:7px;font:700 12px/1 Georgia,serif;letter-spacing:1.4px;text-transform:uppercase;color:#971b16;margin:0 0 8px}
.lecture-video-caption:before{content:"\25B6";font-size:10px}
.lecture-media-video .video-file{border-radius:5px;width:100%;max-height:none;display:block}
/* --- upcoming lecture marker on the home page --- */
.event-soon{display:inline-block;background:#971b16;color:#fff;font:700 10.5px/1 Georgia,serif;letter-spacing:1.2px;text-transform:uppercase;padding:5px 10px;border-radius:12px;margin:0 0 8px}