/* =========================================================
   АЛЬФА СТАНДАРТ — design tokens
   Palette: warm charcoal / cream / brand orange
   Display type: Unbounded (geometric, stamp-like)
   Body type: Manrope
   ========================================================= */

:root{
  --orange: #E36A20;
  --orange-deep: #B84E12;
  --orange-soft: #F3A15C;
  --charcoal: #221F1C;
  --charcoal-soft: #322D28;
  --cream: #FAF6F0;
  --stone: #EFE7DA;
  --stone-line: #DDD2BF;
  --ink: #211D19;
  --gray: #746A5F;
  --gray-soft: #A79A8A;
  --white: #FFFFFF;

  --display: "Unbounded", "Manrope", sans-serif;
  --body: "Manrope", "Segoe UI", sans-serif;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 22px;
  --shadow-sm: 0 2px 10px -4px rgba(34,31,28,.12);
  --shadow-md: 0 14px 32px -12px rgba(34,31,28,.22);
  --shadow-lg: 0 26px 54px -18px rgba(34,31,28,.32);
  --container: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
h1,h2,h3,h4{
  font-family: var(--display);
  color: var(--charcoal);
  margin: 0 0 .5em;
  line-height: 1.18;
  font-weight: 600;
}
p{ margin: 0 0 1em; }
a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display:block; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family: inherit; cursor: pointer; }

:focus-visible{
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family: var(--body);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .01em;
  color: var(--orange-deep);
  margin-bottom: 14px;
}
.eyebrow::before{
  content:"";
  width: 18px; height: 2px;
  background: var(--orange);
  display:inline-block;
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 14px 26px;
  border-radius: var(--radius-s);
  font-weight: 700;
  font-size: .95rem;
  border: 1.5px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn-primary{
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 10px 22px -8px rgba(227,106,32,.55);
}
.btn-primary:hover{ background: var(--orange-deep); transform: translateY(-1px); box-shadow: 0 14px 28px -8px rgba(184,78,18,.55); }
.btn-ghost{
  background: transparent;
  border-color: var(--orange);
  color: var(--orange-deep);
}
.btn-ghost:hover{
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -10px rgba(227,106,32,.55);
}
.btn-ghost-light{
  background: transparent;
  border-color: rgba(255,255,255,.4);
  color: var(--white);
}
.btn-ghost-light:hover{ background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-block{ width:100%; }
.btn[disabled]{ opacity:.55; cursor:not-allowed; }

/* ---------- top utility bar ---------- */
.topbar{
  background: var(--charcoal);
  color: var(--stone-line);
  font-size: .82rem;
}
.topbar .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height: 40px;
}
.topbar-links{ display:flex; gap:22px; }
.topbar a:hover{ color: var(--orange-soft); }

/* ---------- header ---------- */
header.site-header{
  position: sticky;
  top:0;
  z-index: 60;
  background: var(--cream);
  border-bottom: 1px solid var(--stone-line);
  box-shadow: 0 4px 18px -10px rgba(34,31,28,.18);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 12px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
}
.brand-mark{ width:38px; height:38px; flex-shrink:0; object-fit:contain; border-radius:50%; }
.brand-name{
  font-family: var(--display);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .01em;
  color: var(--charcoal);
  line-height:1.1;
  white-space: nowrap;
}
.brand-sub{
  display:block;
  font-family: var(--body);
  font-weight: 500;
  font-size: .62rem;
  color: var(--gray);
  letter-spacing: .03em;
  margin-top: 2px;
  white-space: nowrap;
}

nav.main-nav{ display:flex; align-items:center; gap: 18px; }
nav.main-nav a{
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}
nav.main-nav a::after{
  content:"";
  position:absolute; left:0; bottom:-2px;
  width:0; height:2px; background: var(--orange);
  transition: width .2s ease;
}
nav.main-nav a:hover::after,
nav.main-nav a[aria-current="page"]::after{ width:100%; }
nav.main-nav a[aria-current="page"]{ color: var(--orange-deep); }

.header-actions{ display:flex; align-items:center; gap: 12px; flex-shrink:0; }
.header-phone{ display:flex; flex-direction:column; text-align:right; white-space:nowrap; }
.header-phone a{ font-weight:700; font-size: .85rem; }
.header-phone span{ font-size: .68rem; color: var(--gray); }
.header-actions .btn-primary{ padding: 11px 18px; font-size: .85rem; white-space:nowrap; }
.header-icon-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--stone-line);
  color: var(--charcoal);
  flex-shrink:0;
  transition: background .2s ease, border-color .2s ease;
}
.header-icon-btn svg{ width:16px; height:16px; stroke: currentColor; }
.header-icon-btn:hover{ background: var(--orange); border-color: var(--orange); color: var(--white); }

.nav-toggle{
  display:none;
  width: 42px; height: 42px;
  border:1px solid var(--stone-line);
  background: var(--white);
  border-radius: var(--radius-s);
  align-items:center; justify-content:center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:""; display:block; width: 18px; height:2px; background: var(--charcoal);
  position:relative; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before{ position:absolute; top:-6px; }
.nav-toggle span::after{ position:absolute; top:6px; }

/* ---------- hero ---------- */
.hero{
  position: relative;
  background: var(--charcoal);
  color: var(--white);
  overflow:hidden;
  min-height: 560px;
  display:flex;
  align-items:center;
}
.hero-bg-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:0;
}
.hero-overlay{
  position:absolute;
  inset:0;
  z-index:1;
  background:
    linear-gradient(90deg, rgba(34,31,28,.94) 0%, rgba(34,31,28,.82) 38%, rgba(34,31,28,.45) 75%, rgba(34,31,28,.25) 100%),
    linear-gradient(0deg, rgba(34,31,28,.55) 0%, rgba(34,31,28,0) 30%);
}
.hero-grid{
  position:relative;
  z-index:3;
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  align-items:center;
  gap: 40px;
  padding: 76px 0 64px;
}
.hero-grid-solo{
  grid-template-columns: minmax(0,1fr);
  padding: 96px 0;
}
/* let hero content hug the left edge on wide screens instead of centering inside the standard container */
.hero .container{
  max-width: 1600px;
  margin-left: 0;
  margin-right: 0;
  padding-left: clamp(28px, 6vw, 100px);
  padding-right: clamp(28px, 6vw, 100px);
}

/* staggered text entrance */
@keyframes heroRise{
  from{ opacity:0; transform: translateY(22px); }
  to{ opacity:1; transform: translateY(0); }
}
.hero .eyebrow,
.hero h1,
.hero-lead,
.hero-actions,
.hero-stats,
.hero-visual{
  opacity:0;
  animation: heroRise .8s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero .eyebrow{ animation-delay: .05s; }
.hero h1{ animation-delay: .18s; }
.hero-lead{ animation-delay: .34s; }
.hero-actions{ animation-delay: .5s; }
.hero-stats{ animation-delay: .64s; }
.hero-visual{ animation-delay: .3s; }

.hero h1{
  color: var(--white);
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  max-width: 13ch;
}
.hero h1 .accent{ color: var(--orange-soft); }
.hero-lead{
  color: var(--stone-line);
  font-size: 1.05rem;
  max-width: 46ch;
  margin-bottom: 30px;
}
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; margin-bottom: 36px; }
.hero-stats{
  display:flex;
  gap: 34px;
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 26px;
}
.hero-stat b{
  display:block;
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--orange-soft);
}
.hero-stat span{ font-size: .8rem; color: var(--stone-line); }

.hero-visual{ position:relative; }
.hero-photo-frame{
  position:relative;
  border-radius: var(--radius-m);
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
}
.hero-photo-frame img,
.hero-photo-frame video{
  width:100%; height:100%; object-fit:cover; display:block; max-width:100%;
}
/* Ken Burns pan/zoom fallback — only used if a plain <img> is placed here instead of <video> */
.hero-photo-frame img{
  transform-origin: 60% 35%;
  animation: kenBurns 16s ease-in-out infinite alternate;
}
@keyframes kenBurns{
  0%{ transform: scale(1) translate(0,0); }
  100%{ transform: scale(1.09) translate(-1.5%, -1%); }
}
.hero-seal{
  width: 108px; height:108px;
  object-fit: contain;
  animation: sealPulse 3.4s ease-in-out infinite;
  transform-origin: center;
}
.hero-seal-float{
  position: absolute;
  right: 6%;
  top: 8%;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.5));
}
@keyframes sealPulse{
  0%, 100%{ transform: scale(1); }
  50%{ transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce){
  .hero::before,
  .hero-photo-frame img,
  .hero-seal,
  .hero .eyebrow, .hero h1, .hero-lead, .hero-actions, .hero-stats, .hero-visual{
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- scroll reveal (applied via JS to lists/cards across all pages) ---------- */
.reveal{
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in-view{
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
}

/* ---------- section basics ---------- */
section{ padding: 84px 0; }
.section-alt{ background: var(--stone); }
.section-dark{ background: var(--charcoal); color: var(--white); }
.section-dark h2{ color: var(--white); }
.section-dark .eyebrow{ color: var(--orange-soft); }

.section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 30px;
  margin-bottom: 46px;
}
.section-head h2{ font-size: clamp(1.6rem, 2.4vw, 2.1rem); max-width: 20ch; margin:0; }
.section-head p{ max-width: 42ch; color: var(--gray); margin:0; }
.section-dark .section-head p{ color: var(--stone-line); }

/* ---------- principle / value cards ---------- */
.principles{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--stone-line);
  border: 1px solid var(--stone-line);
}
.principle{
  box-shadow: var(--shadow-sm);
  background: var(--cream);
  padding: 36px 32px;
}
.principle-index{
  font-family: var(--display);
  font-size: .85rem;
  color: var(--orange);
  margin-bottom: 18px;
  display:block;
}
.principle h3{ font-size: 1.08rem; margin-bottom: 10px; }
.principle p{ color: var(--gray); font-size: .95rem; margin:0; }

/* ---------- services list ---------- */
.services-list{
  border-top: 1px solid var(--stone-line);
}
.service-row{
  display:grid;
  grid-template-columns: 56px 150px 1fr auto;
  align-items:center;
  gap: 28px;
  padding: 24px 20px;
  margin: 0 -20px;
  border-radius: var(--radius-m);
  border-bottom: 1px solid var(--stone-line);
  transition: background .2s ease;
}
.services-list .service-row:last-child{ border-bottom: none; }
.service-row:hover{ background: var(--white); box-shadow: var(--shadow-sm); }
.service-row .tr-code{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-family: var(--display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--orange-deep);
  white-space: nowrap;
  background: var(--stone);
  border: 1px solid var(--stone-line);
  border-radius: 20px;
  padding: 7px 14px;
  width: fit-content;
  transition: background .2s ease, border-color .2s ease;
}
.service-row:hover .tr-code{ background: var(--white); border-color: var(--orange-soft); }
.service-row h3{ font-size: 1.04rem; margin:0 0 5px; }
.service-row p{ margin:0; color: var(--gray); font-size: .89rem; }
.service-row .arrow{
  width: 36px; height: 36px;
  border: 1.5px solid var(--stone-line);
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.service-row:hover .arrow{ background: var(--orange); border-color: var(--orange); transform: translateX(3px); }
.service-row:hover .arrow svg{ stroke: var(--white); }
.service-row .arrow svg{ width:14px; height:14px; stroke: var(--charcoal); transition: stroke .2s ease; }

/* ---------- process steps ---------- */
.steps{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.step{ position:relative; padding-top: 30px; }
.step::before{
  content: attr(data-step);
  font-family: var(--display);
  font-size: 2.1rem;
  color: var(--stone-line);
  display:block;
  margin-bottom: 14px;
}
.step h3{ font-size: 1rem; margin-bottom: 8px; }
.step p{ color: var(--gray); font-size: .9rem; margin:0; }
.steps-connector{
  grid-column: 1 / -1;
  height: 1px;
  background: var(--stone-line);
  margin: -14px 0 0;
}

/* ---------- document requirements ---------- */
.doc-panel{
  box-shadow: var(--shadow-sm);
  background: var(--white);
  border: 1px solid var(--stone-line);
  border-radius: var(--radius-m);
  padding: 8px 0;
}
.doc-item{
  display:flex;
  gap: 18px;
  align-items:flex-start;
  padding: 18px 28px;
  border-bottom: 1px solid var(--stone-line);
}
.doc-item:last-child{ border-bottom: none; }
.doc-mark{
  width: 22px; height: 22px;
  border: 1.5px solid var(--orange);
  border-radius: 50%;
  flex-shrink:0;
  margin-top: 3px;
  position:relative;
}
.doc-mark::after{
  content:"";
  position:absolute; left:50%; top:50%;
  width:8px; height:8px;
  background: var(--orange);
  border-radius:50%;
  transform: translate(-50%,-50%);
}
.doc-item p{ margin:0; }

/* ---------- two column layout ---------- */
.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items:start;
}
.split-reverse{ direction: rtl; }
.split-reverse > *{ direction: ltr; }

.info-box{
  border-left: 3px solid var(--orange);
  background: var(--white);
  padding: 22px 26px;
  font-size: .93rem;
  color: var(--gray);
}
.reasons li{
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid var(--stone-line);
  position:relative;
  color: var(--gray);
  font-size: .93rem;
}
.reasons li::before{
  content:"—";
  position:absolute; left:0; color: var(--orange);
}
.reasons li:last-child{ border-bottom:none; }

/* ---------- callback band ---------- */
.callback-band{
  background: var(--orange);
  color: var(--white);
  position:relative;
  overflow:hidden;
}
.callback-band::before{
  content:"";
  position:absolute; inset:0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 2px, transparent 2px 26px);
}
.callback-inner{
  position:relative;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 50px;
  align-items:center;
}
.callback-inner h2{ color: var(--white); font-size: clamp(1.5rem, 2.4vw, 2rem); }
.callback-inner p{ color: rgba(255,255,255,.88); max-width: 40ch; }

.callback-form{
  background: var(--white);
  border-radius: var(--radius-m);
  padding: 30px;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.field{ margin-bottom: 16px; }
.field label{ display:block; font-size: .82rem; font-weight:700; margin-bottom: 6px; color: var(--charcoal); }
.field input, .field select{
  width:100%;
  padding: 12px 14px;
  border: 1.5px solid var(--stone-line);
  border-radius: var(--radius-s);
  font-family: inherit;
  font-size: .95rem;
  background: var(--cream);
  color: var(--ink);
}
.field input:focus, .field select:focus{ border-color: var(--orange); outline:none; }
.field-note{ font-size: .76rem; color: var(--gray); margin-top: 14px; }
.form-status{ font-size: .85rem; margin-top: 12px; min-height: 1.2em; }
.form-status.ok{ color: #2E7D32; }
.form-status.err{ color: #B3261E; }

/* ---------- video gallery (Экспертность) ---------- */
.video-gallery-wrap{ position:relative; }
.video-gallery{
  display:flex;
  flex-wrap:nowrap;
  gap: 20px;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 10px 6px 30px;
  margin: 0 -6px;
  scrollbar-width: thin;
  scrollbar-color: var(--orange) transparent;
}
.video-gallery::-webkit-scrollbar{ height: 6px; }
.video-gallery::-webkit-scrollbar-thumb{ background: var(--orange-soft); border-radius: 6px; }
.video-gallery::-webkit-scrollbar-track{ background: transparent; }
/* auto margins center the row when it fits, and collapse to 0 (normal scroll) when it overflows */
.video-gallery > .video-card:first-child{ margin-left:auto; }
.video-gallery > .video-card:last-child{ margin-right:auto; }
.video-card{
  box-shadow: var(--shadow-md);
  position:relative;
  display:block;
  flex: 0 0 250px;
  width: 250px;
  scroll-snap-align: start;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-m);
  overflow:hidden;
  border: none;
  padding:0;
  background: var(--charcoal);
  cursor:pointer;
}
.video-card video{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  pointer-events:none;
}
.video-card::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(0deg, rgba(34,31,28,.85) 0%, rgba(34,31,28,.15) 55%, rgba(34,31,28,.35) 100%);
  transition: background .2s ease;
}
.video-card:hover::after{ background: linear-gradient(0deg, rgba(34,31,28,.9) 0%, rgba(34,31,28,.3) 55%, rgba(34,31,28,.45) 100%); }
.video-card-play{
  position:absolute;
  top:50%; left:50%;
  transform: translate(-50%,-50%);
  width: 56px; height:56px;
  border-radius:50%;
  background: rgba(255,255,255,.16);
  border: 1.5px solid rgba(255,255,255,.6);
  backdrop-filter: blur(2px);
  display:flex; align-items:center; justify-content:center;
  z-index:1;
  transition: background .2s ease, transform .2s ease;
}
.video-card-play svg{ width:20px; height:20px; color: var(--white); margin-left:2px; }
.video-card:hover .video-card-play{ background: var(--orange); border-color: var(--orange); transform: translate(-50%,-50%) scale(1.08); }
.video-card-label{
  position:absolute;
  left:16px; right:16px; bottom:14px;
  z-index:1;
  color: var(--white);
  font-size: .85rem;
  font-weight: 700;
  text-align:left;
  line-height:1.3;
}

/* center the heading block that sits above the gallery */
.container:has(.video-gallery) .section-head{
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:12px;
}
.container:has(.video-gallery) .section-head h2,
.container:has(.video-gallery) .section-head p{ max-width: 52ch; }

/* video lightbox (compound selector so it beats the generic .modal rules defined later) */
.modal.video-modal{
  max-width: 760px;
  background: var(--charcoal);
  padding: 20px;
}
.modal.video-modal .modal-close{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.3);
  z-index: 2;
}
.modal.video-modal .modal-close svg{ stroke: #fff; }
.modal.video-modal .video-modal-title{
  color: #fff;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1rem;
  margin: 0 44px 14px 4px;
}
#video-lightbox-player{
  width:100%;
  max-height: 72vh;
  border-radius: var(--radius-s);
  background: #000;
  display:block;
}

/* slider arrows (injected by JS) */
.vg-arrow{
  position:absolute;
  top: calc(50% - 32px);
  width:46px; height:46px;
  border-radius:50%;
  background: var(--white);
  border: 1px solid var(--stone-line);
  box-shadow: var(--shadow-md);
  display:flex; align-items:center; justify-content:center;
  z-index:3;
  cursor:pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.vg-arrow svg{ width:18px; height:18px; stroke: var(--charcoal); fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; transition: stroke .2s ease; }
.vg-arrow:hover{ background: var(--orange); border-color: var(--orange); transform: scale(1.06); }
.vg-arrow:hover svg{ stroke:#fff; }
.vg-prev{ left: -14px; }
.vg-next{ right: -14px; }
.vg-arrow[hidden]{ display:none; }

/* lightbox adapts to portrait (vertical) videos */
.modal.video-modal{ width:auto; min-width: min(92vw, 340px); max-width: min(94vw, 760px); }
#video-lightbox-player{
  width:auto; max-width:100%;
  height:auto; max-height: 78vh;
  margin: 0 auto;
}
.video-modal-error{
  margin: 14px 4px 0;
  color: #F3C9A8;
  font-size: .88rem;
  line-height:1.45;
}
.video-modal-error a{ color:#fff; text-decoration: underline; }

@media (max-width: 980px){
  .video-card{ flex-basis: 230px; width: 230px; }
}
@media (max-width: 720px){
  .vg-arrow{ display:none; }
  .video-gallery{ gap: 14px; }
}
@media (max-width: 520px){
  .video-card{ flex-basis: 62vw; width: 62vw; max-width: 250px; }
  .video-card-label{ font-size:.78rem; left:12px; right:12px; bottom:12px; }
  .video-card-play{ width:46px; height:46px; }
}

/* ---------- info / articles ---------- */
.articles-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.article-card{
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--stone-line);
  background: var(--white);
  border-radius: var(--radius-m);
  overflow:hidden;
  display:flex; flex-direction:column;
}
.article-thumb{
  height: 150px;
  background: linear-gradient(135deg, var(--charcoal), var(--charcoal-soft));
  position:relative;
  display:flex; align-items:center; justify-content:center;
}
.article-thumb svg{ width:44px; height:44px; opacity:.7; }
.article-body{ padding: 22px 24px 26px; display:flex; flex-direction:column; gap:10px; flex:1; }
.article-body h3{ font-size: 1rem; margin:0; }
.article-body p{ font-size: .88rem; color: var(--gray); margin:0; flex:1; }
.article-link{ font-size: .85rem; font-weight:700; color: var(--orange-deep); }

/* ---------- contacts ---------- */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-detail{
  display:flex;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--stone-line);
}
.contact-detail .icon{
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--orange);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.contact-detail .icon svg{ width:18px; height:18px; stroke: var(--orange); }
.contact-detail h3{ font-size: .92rem; margin: 0 0 4px; }
.contact-detail p, .contact-detail a{ margin:0; color: var(--gray); font-size: .93rem; }
.contact-detail a:hover{ color: var(--orange-deep); }

.map-panel{
  box-shadow: var(--shadow-sm);
  height: 100%;
  min-height: 320px;
  border-radius: var(--radius-m);
  background: var(--stone);
  border: 1px solid var(--stone-line);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap: 10px;
  color: var(--gray);
  text-align:center;
  padding: 30px;
}
.map-panel svg{ width:34px; height:34px; stroke: var(--orange); }

/* ---------- page hero (inner pages) ---------- */
.page-hero{
  --hero-banner: url("../assets/hero.png");
  background:
    linear-gradient(90deg, rgba(24,21,18,.88) 0%, rgba(24,21,18,.62) 42%, rgba(24,21,18,.12) 100%),
    linear-gradient(0deg, rgba(24,21,18,.55) 0%, rgba(24,21,18,0) 45%),
    var(--hero-banner);
  background-size: cover;
  background-position: center 30%;
  color: var(--white);
  min-height: 420px;
  display:flex;
  align-items:flex-end;
  padding: 90px 0 64px;
  position:relative;
  overflow:hidden;
  border-radius: 0 0 var(--radius-l) var(--radius-l);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 981px){
  .page-hero{ background-attachment: scroll, scroll, fixed; }
}

/* per-page banners (files live in /assets) */
.page-hero--about{ --hero-banner: url("../assets/2.jpeg"); }
.page-hero--services{ --hero-banner: url("../assets/3.jpeg"); }
.page-hero--documents{ --hero-banner: url("../assets/4.jpeg"); }
.page-hero--info{ --hero-banner: url("../assets/5.jpeg"); }
.page-hero--contacts{ --hero-banner: url("../assets/2.jpeg"); }

/* orange accent line along the bottom edge */
.page-hero::after{
  content:"";
  position:absolute; left:0; bottom:0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange) 18%, transparent 18%);
}
.page-hero .container{ position:relative; width:100%; }
.breadcrumbs{
  display:inline-block;
  font-size: .8rem;
  color: var(--white);
  margin-bottom: 18px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(4px);
}
.breadcrumbs a:hover{ color: var(--orange-soft); }
.page-hero h1{
  color: var(--white);
  font-size: clamp(2rem, 3.6vw, 3rem);
  max-width: 20ch;
  margin:0;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.page-hero .lead{ color: #EFE7DA; max-width: 54ch; margin-top: 16px; font-size: 1.05rem; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
@media (max-width: 720px){
  .page-hero{ min-height: 320px; padding: 60px 0 40px; }
}

/* ---------- footer ---------- */
footer.site-footer{
  background:
    linear-gradient(rgba(34,31,28,.94), rgba(34,31,28,.97)),
    url("../assets/hero.png");
  background-size: cover;
  background-position: center 15%;
  color: var(--stone-line);
  padding: 60px 0 0;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand .brand-name{ color: var(--white); }
.footer-brand p{ color: var(--gray-soft); font-size: .9rem; margin-top: 14px; max-width: 34ch; }
.footer-col h4{
  color: var(--white);
  font-family: var(--body);
  font-size: .85rem;
  letter-spacing: .02em;
  margin-bottom: 16px;
}
.footer-col ul li{ margin-bottom: 10px; }
.footer-col a{ font-size: .9rem; color: var(--stone-line); }
.footer-col a:hover{ color: var(--orange-soft); }
.footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 22px 0;
  font-size: .8rem;
  color: var(--gray-soft);
  flex-wrap:wrap;
  gap: 10px;
}
.footer-socials{ display:flex; gap:14px; }
.footer-socials a{
  width:34px; height:34px;
  border:1px solid rgba(255,255,255,.2);
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
}
.footer-socials a:hover{ border-color: var(--orange); background: var(--orange); }
.footer-socials svg{ width:15px; height:15px; stroke: var(--stone-line); }
.footer-socials a:hover svg{ stroke: var(--white); }

/* ---------- floating contact menu (call trigger -> WhatsApp / Telegram / почта) ---------- */
.fab-stack{
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 70;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 14px;
}
.fab-trigger{
  position:relative;
  width: 58px; height: 58px;
  border-radius: 50%;
  border: none;
  background: var(--orange);
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 12px 26px -8px rgba(0,0,0,.45);
  transition: transform .2s ease, background .2s ease;
  flex-shrink:0;
}
.fab-trigger:hover{ transform: translateY(-3px); background: var(--orange-deep); }
.fab-trigger svg{ width:24px; height:24px; position:absolute; transition: opacity .2s ease, transform .25s ease; }
.fab-icon-close{ opacity:0; transform: rotate(-45deg) scale(.6); }
.fab-icon-call{ opacity:1; transform: rotate(0) scale(1); }
.fab-stack.open .fab-trigger{ background: var(--charcoal); }
.fab-stack.open .fab-icon-call{ opacity:0; transform: rotate(45deg) scale(.6); }
.fab-stack.open .fab-icon-close{ opacity:1; transform: rotate(0) scale(1); }

.fab-menu{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 12px;
  opacity:0;
  transform: translateY(12px);
  pointer-events:none;
  transition: opacity .2s ease, transform .2s ease;
}
.fab-stack.open .fab-menu{ opacity:1; transform: translateY(0); pointer-events:auto; }

.fab-item{
  width: 48px; height: 48px;
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  box-shadow: var(--shadow-md);
  transition: transform .15s ease, box-shadow .15s ease;
}
.fab-item:hover{ transform: translateY(-2px) scale(1.05); }
.fab-item svg{ width:19px; height:19px; }
.fab-wa{ background: var(--orange); }
.fab-tg{ background: var(--charcoal); }
.fab-ig{ background: linear-gradient(135deg, #F3A15C 0%, var(--orange) 50%, var(--orange-deep) 100%); }
.fab-mail{ background: var(--charcoal); border: none; color: #fff; }
.fab-mail svg{ stroke: #fff; }

/* staggered pop-in for the three items when opened */
.fab-mail{ transition-delay: 0ms; }
.fab-ig{ transition-delay: 40ms; }
.fab-tg{ transition-delay: 80ms; }
.fab-wa{ transition-delay: 120ms; }

@media (max-width: 480px){
  .fab-stack{ right: 16px; bottom: 16px; gap: 10px; }
  .fab-trigger{ width: 52px; height: 52px; }
  .fab-item{ width: 44px; height: 44px; }
}

/* ---------- modal ---------- */
.modal-overlay{
  position: fixed; inset:0;
  background: rgba(20,17,14,.6);
  display:flex; align-items:center; justify-content:center;
  padding: 20px;
  z-index: 100;
  opacity:0; pointer-events:none;
  transition: opacity .2s ease;
}
.modal-overlay.open{ opacity:1; pointer-events:auto; }
.modal{
  box-shadow: var(--shadow-lg);
  background: var(--cream);
  border-radius: var(--radius-m);
  max-width: 440px;
  width:100%;
  padding: 34px;
  position:relative;
  transform: translateY(10px);
  transition: transform .2s ease;
}
.modal-overlay.open .modal{ transform: translateY(0); }
.modal-close{
  position:absolute; top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius:50%;
  border: 1px solid var(--stone-line);
  background: var(--white);
  display:flex; align-items:center; justify-content:center;
}
.modal h3{ font-size: 1.2rem; margin-bottom: 6px; }
.modal .modal-lead{ color: var(--gray); font-size: .9rem; margin-bottom: 22px; }

/* ---------- animation: hero load-in ---------- */
.hero .eyebrow,
.hero h1,
.hero-lead,
.hero-actions,
.hero-stats{
  opacity: 0;
  transform: translateY(22px);
}
.hero-visual{
  opacity: 0;
  transform: translateY(16px) scale(.97);
}
.hero.is-ready .eyebrow{ animation: heroUp .7s cubic-bezier(.2,.7,.3,1) .05s forwards; }
.hero.is-ready h1{ animation: heroUp .8s cubic-bezier(.2,.7,.3,1) .15s forwards; }
.hero.is-ready .hero-lead{ animation: heroUp .8s cubic-bezier(.2,.7,.3,1) .28s forwards; }
.hero.is-ready .hero-actions{ animation: heroUp .8s cubic-bezier(.2,.7,.3,1) .4s forwards; }
.hero.is-ready .hero-stats{ animation: heroUp .8s cubic-bezier(.2,.7,.3,1) .52s forwards; }
.hero.is-ready .hero-visual{ animation: heroIn 1s cubic-bezier(.2,.7,.3,1) .3s forwards; }

@keyframes heroUp{
  to{ opacity: 1; transform: translateY(0); }
}
@keyframes heroIn{
  to{ opacity: 1; transform: translateY(0) scale(1); }
}

/* subtle continuous shimmer across the hero pattern — stand-in for motion until a video is supplied */
.hero::before{
  background-size: 200% 200%;
  animation: heroShimmer 14s linear infinite;
}
@keyframes heroShimmer{
  0%{ background-position: 0% 0%; }
  100%{ background-position: 100% 100%; }
}

/* ---------- animation: scroll reveal ---------- */
.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.in-view{
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce){
  .hero .eyebrow, .hero h1, .hero-lead, .hero-actions, .hero-stats, .hero-visual{
    animation: none !important; opacity: 1 !important; transform: none !important;
  }
  .hero::before{ animation: none !important; }
  .reveal{ opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; padding: 52px 0 44px; }
  .hero-visual{ order:-1; max-width: 360px; }
  .split{ grid-template-columns: 1fr; gap: 34px; }
  .callback-inner{ grid-template-columns: 1fr; }
  .principles{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr 1fr; }
  .articles-grid{ grid-template-columns: 1fr 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px){
  .hero{ min-height: 480px; }
  .hero-seal-float{ display:none; }
  .hero-grid-solo{ padding: 64px 0; }
  .topbar{ display:none; }
  nav.main-nav{
    position: fixed; top:0; right:0; bottom:0;
    width: min(86vw, 340px);
    background: var(--cream);
    flex-direction: column;
    align-items:stretch;
    justify-content:flex-start;
    padding: 84px 26px 28px;
    gap: 4px;
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .3s cubic-bezier(.2,.7,.2,1), visibility 0s linear .3s;
    overflow-y:auto;
    box-shadow: -20px 0 50px -20px rgba(0,0,0,.4);
    border-radius: var(--radius-l) 0 0 var(--radius-l);
  }
  nav.main-nav.open{
    transform: translateX(0);
    visibility: visible;
    transition: transform .3s cubic-bezier(.2,.7,.2,1), visibility 0s;
  }
  nav.main-nav > a{
    font-size: 1.1rem;
    padding: 14px 4px;
    border-bottom: 1px solid var(--stone-line);
  }
  nav.main-nav > a::after{ display:none; }
  nav.main-nav > a[aria-current="page"]{ color: var(--orange-deep); }
  .nav-mobile-extra{
    display:flex; flex-direction:column; gap:10px;
    margin-top: 22px;
  }
  .nav-mobile-extra .nm-line{ font-size:.92rem; color: var(--gray); }
  .nav-mobile-extra .nm-line a{ color: var(--charcoal); font-weight:700; }
  .nav-mobile-extra .btn{ width:100%; }
  body.nav-open{ overflow:hidden; }
  body.nav-open::after{
    content:""; position:fixed; inset:0;
    background: rgba(20,17,14,.55);
    z-index: 55;
  }
  .nav-toggle{ position:relative; z-index: 95; }
  .nav-toggle[aria-expanded="true"] span{ background: transparent; }
  .nav-toggle[aria-expanded="true"] span::before{ top:0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span::after{ top:0; transform: rotate(-45deg); }
  .header-actions .btn-primary{ display:none; }
  .brand-sub{ display:none; }
  .container{ padding: 0 20px; }
  .hero .container{ padding-left: 20px; padding-right: 20px; }
  .hero-stats{ flex-wrap:wrap; gap: 18px 28px; }
  .hero-actions .btn{ flex:1 1 auto; }
  .hero h1{ font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .principle{ padding: 26px 22px; }
  .callback-form{ padding: 22px; }
  .modal{ padding: 26px 22px; }
  .fab-stack{ right: 14px; bottom: 14px; }
  html, body{ overflow-x: hidden; }
  .header-phone{ display:none; }
  .nav-toggle{ display:flex; }
  .service-row{ grid-template-columns: 1fr auto; margin: 0; padding: 22px 4px; }
  .service-row .tr-code{ grid-column: 1/-1; margin-bottom: 4px; }
  .steps{ grid-template-columns: 1fr; }
  .articles-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  section{ padding: 56px 0; }
  .section-head{ flex-direction:column; align-items:flex-start; gap:14px; }
}

.nav-mobile-extra{ display:none; }
@media (max-width:720px){ .nav-mobile-extra{ display:flex; } }

/* map block */
.map-panel iframe{ width:100%; height:100%; min-height:320px; border:0; border-radius: var(--radius-m); }
.map-panel p{ margin:0; }
.map-actions{ display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin-top:8px; }
.map-actions .btn{ padding: 11px 18px; font-size:.88rem; }

/* service thumbnails */
.service-thumb{
  width:56px; height:56px;
  border-radius: 16px;
  background: var(--stone);
  border: 1px solid var(--stone-line);
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.service-thumb svg{ width:26px; height:26px; stroke: var(--orange); }
.service-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.service-row:hover .service-thumb{ background: var(--orange); border-color: var(--orange); transform: scale(1.05); }
.service-row:hover .service-thumb svg{ stroke: var(--white); }
@media (max-width:720px){
  .service-row{
    grid-template-columns: 52px 1fr auto;
    grid-template-areas: "thumb code code" "thumb text arrow";
    column-gap: 14px; row-gap: 6px;
  }
  .service-row .service-thumb{ grid-area: thumb; width:52px; height:52px; align-self:start; }
  .service-row .tr-code{ grid-area: code; grid-column:auto; margin-bottom:0; }
  .service-row > span:nth-of-type(3){ grid-area: text; }
  .service-row .arrow{ grid-area: arrow; }
}

/* partners logo grid image */
.partners-frame{
  border-radius: var(--radius-m);
  overflow:hidden;
  border: 1px solid var(--stone-line);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.partners-frame img{ width:100%; height:auto; display:block; }

/* ---------- service cards with "Подробнее" -> modal ---------- */
.svc-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.svc-card{
  background: var(--white);
  border-radius: var(--radius-m);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--stone-line);
  display:flex;
  flex-direction:column;
  gap: 6px;
}
.svc-card h3{ font-size: 1.08rem; margin:0 0 4px; }
.svc-card p{ color: var(--gray); font-size: .92rem; margin:0 0 18px; flex:1; }
.svc-card .btn{ align-self:flex-start; padding: 10px 20px; font-size: .85rem; }
.svc-card--wide{ grid-column: span 2; max-width: calc(50% - 11px); }
@media (max-width: 720px){
  .svc-grid{ grid-template-columns: 1fr; }
  .svc-card--wide{ grid-column: auto; max-width: none; }
}

/* ---------- "О компании" intro with stats (homepage) ---------- */
.about-intro{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 60px;
  align-items:center;
}
.about-intro-title{
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  margin-bottom: 20px;
}
.about-intro-text p{
  color: var(--gray);
  max-width: 48ch;
}
.about-intro-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-weight:700;
  color: var(--orange-deep);
  border-bottom: 2px solid var(--orange);
  padding-bottom: 2px;
  margin-top: 8px;
  transition: color .2s ease, border-color .2s ease;
}
.about-intro-link:hover{ color: var(--orange); }

.about-intro-stats{
  border-left: 1px solid var(--stone-line);
  padding-left: 48px;
  display:flex;
  flex-direction:column;
  gap: 32px;
}
.about-stat b{
  display:block;
  font-family: var(--display);
  font-weight:700;
  font-size: clamp(2rem, 3.2vw, 2.5rem);
  color: var(--orange);
  line-height:1;
  margin-bottom: 8px;
}
.about-stat span{ color: var(--gray); font-size: .92rem; line-height:1.4; }

@media (max-width: 860px){
  .about-intro{ grid-template-columns: 1fr; gap: 34px; }
  .about-intro-stats{
    border-left: none;
    border-top: 1px solid var(--stone-line);
    padding-left: 0;
    padding-top: 30px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 28px;
  }
  .about-intro-stats .about-stat{ flex: 1 1 150px; }
}

/* service modal: one sentence per line */
.svc-line{ display:block; margin-bottom: 10px; }
.svc-line:last-child{ margin-bottom: 0; }

/* ---------- video inside inner-page banners: dark overlay for readable text ---------- */
.page-hero{ --hero-dim: .62; }   /* 0 = no dimming, 1 = fully black. Tune this one number. */
.page-hero > video,
.page-hero video.hero-bg-video{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  z-index:0;
}
/* the extra dark layer is only for banners that contain a <video>; photo banners keep their own lighter gradient */
.page-hero:has(video)::before{
  content:"";
  position:absolute; inset:0;
  z-index:2;
  pointer-events:none;
  background:
    linear-gradient(90deg, rgba(20,17,14,calc(var(--hero-dim) + .28)) 0%, rgba(20,17,14,var(--hero-dim)) 55%, rgba(20,17,14,calc(var(--hero-dim) - .18)) 100%),
    linear-gradient(0deg, rgba(20,17,14,.45) 0%, rgba(20,17,14,0) 55%);
}
.page-hero::after{ z-index:3; }
.page-hero .container{ z-index:3; }

/* ---------- big logo on the right side of the home hero ---------- */
.hero-logo{
  position:absolute;
  left: 64%;            /* horizontal position: 0% = left edge, 100% = right edge */
  top: 50%;             /* vertical position */
  transform: translate(-50%, -50%);
  width: clamp(170px, 19vw, 300px);   /* logo size */
  height:auto;
  z-index: 3;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.45));
  pointer-events:none;
}
@media (max-width: 980px){
  .hero-logo{ left: 78%; width: clamp(120px, 22vw, 190px); opacity:.9; }
}
@media (max-width: 720px){
  .hero-logo{ display:none; }
}

/* ---------- SVG brand logo (header / footer) ---------- */
.brand-logo{ display:block; height: 42px; width:auto; max-width: 100%; }
footer .brand-logo{ height: 46px; }
@media (max-width: 720px){
  .brand-logo{ height: 34px; }
}

/* ---------- legal / privacy page ---------- */
.legal{ max-width: 820px; }
.legal-date{ color: var(--gray); font-size: .88rem; margin-bottom: 8px; }
.legal h2{ font-size: 1.15rem; margin: 40px 0 12px; }
.legal p, .legal li{ color: var(--gray); font-size: .98rem; line-height: 1.7; }
.legal strong{ color: var(--charcoal); }
.legal ul{ list-style: disc; padding-left: 22px; margin: 0 0 1em; }
.legal li{ margin-bottom: 6px; }
.legal .info-box{ line-height: 1.7; margin: 8px 0 0; }
.legal-link, .field-note a{ color: var(--orange-deep); text-decoration: underline; text-underline-offset: 3px; }
.legal-link:hover, .field-note a:hover{ color: var(--orange); }

/* hero logo aligned to the heading + description block (top and bottom edges match the text) */
.hero-logo.is-aligned{
  --lh: min(var(--logo-h), 27vw);
  left: 71%;
  top: calc(var(--logo-top) + (var(--logo-h) - var(--lh)) / 2);
  height: var(--lh);
  width: auto;
  transform: translateX(-50%);
}
@media (max-width: 980px){
  .hero-logo.is-aligned{ --lh: min(var(--logo-h), 190px); left: 80%; }
}

/* nicer line breaks: avoid one-word last lines in paragraphs, balance headings (progressive enhancement) */
p, li, .lead{ text-wrap: pretty; }
h2, h3{ text-wrap: balance; }

/* ---------- mobile safety: one column cards, no text running out of the box ---------- */
body{ overflow-wrap: break-word; }
.articles-grid > *, .principles > *, .svc-grid > *, .contact-grid > *{ min-width: 0; }
.article-body h3, .article-body p{ overflow-wrap: anywhere; }
@media (max-width: 720px){
  /* beats the inline "2 columns" style on the home page */
  .articles-grid{ grid-template-columns: 1fr !important; max-width: none !important; }
}