/* styles.css */
:root{
  --navy:#0b2b44;
  --navy2:#103a5c;
  --gold:#f0b429;
  --bg:#f4f7fb;
  --card:#ffffff;
  --text:#0f172a!important;
  --muted:#52606d;
  --line:rgba(255,255,255,.14);
  --shadow: 0 18px 50px rgba(2, 10, 25, .18);
  --softShadow: 0 14px 34px rgba(3, 15, 35, .12);
  --radius2: 22px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
html,body{margin:0;padding:0}

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text)!important;
  background: var(--bg);
  line-height: 1.6;
}

img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.container{width:min(1200px, calc(100% - 40px)); margin:0 auto}
.muted{color:var(--muted)}
.divider{height:1px;background: rgba(10,30,55,.08); margin:14px 0}

.kicker{
  font-size: 12px;
  letter-spacing: .12em;
  color: rgba(11,43,68,.85);
  font-weight: 900;
  text-transform: uppercase;
}

/* HEADER (navy bar + 2 gold lines) */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
}
.site-header::before,
.site-header::after{
  content:"";
  display:block;
  height: 3px;
  background: var(--gold);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 0;
  gap:14px;
}

/* BRAND */
.sm-brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 0;
}
.sm-brand__badge{
  width:40px;
  height:40px;
  border-radius:999px;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  box-shadow: 0 14px 34px rgba(2,10,25,.18);
  border: 1px solid rgba(255,255,255,.18);
  flex:0 0 auto;
}
.sm-brand__badge img{
  width: 78%;
  height: 78%;
  object-fit: contain;
}
.sm-brand__text{
  display:flex;
  flex-direction:column;
  line-height:1.05;
  min-width: 0;
}
.sm-brand__title{
  font-weight: 900;
  letter-spacing: .6px;
  color:#fff;
  white-space: nowrap;
}
.sm-brand__sub{
  font-size: 11px;
  color: rgba(255,255,255,.82);
  white-space: nowrap;
}

/* NAV */
.sm-nav{
  display:flex;
  align-items:center;
  gap: 14px;
  margin-left: 10px;
  margin-right: 10px;
}
.sm-nav a{
  font-size:13px;
  color: rgba(255,255,255,.92);
  padding:6px 8px;
  border-radius:12px;
  transition: .18s ease;
}
.sm-nav a:hover{ background: rgba(255,255,255,.08); }

/* ACTIONS (ONE LINE) */
.sm-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

/* Back to menu (compact) */
.btn-menu{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(240,180,41,.85);
  color:#132032;
  font-weight: 800;
  font-size: 12px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 8px 20px rgba(2,10,25,.14);
}

/* Language pill */
.sm-lang{
  display:flex;
  align-items:center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
}
.sm-lang__btn{
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.88);
  font-weight: 900;
  font-size: 11px;
  cursor:pointer;
  padding: 0 2px;
}
.sm-lang__btn.is-active{
  color: #132032;
  background: rgba(240,180,41,.92);
  border-radius: 999px;
  padding: 4px 8px;
}
.sm-lang__sep{
  color: rgba(255,255,255,.60);
  font-weight: 900;
}

/* Main CTA */
.sm-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--gold);
  color:#132032;
  font-weight: 900;
  font-size: 13px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 26px rgba(2,10,25,.16);
  white-space: nowrap;
}
.sm-cta:hover{ filter: brightness(0.98); }

/* Burger */
.nav-toggle{
  display:none;
  width:44px; height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  cursor:pointer;
}
.nav-toggle span{
  display:block;
  width:18px; height:2px;
  margin:4px auto;
  background: rgba(255,255,255,.88);
  border-radius:2px;
}

/* BUTTONS (page) */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: .18s ease;
}
.btn-gold{
  background: var(--gold);
  color:#132032;
  border-color: rgba(0,0,0,.08);
}
.btn-ghost{
  background: transparent;
  color: rgba(11,43,68,.95);
  border-color: rgba(11,43,68,.22);
}
.btn-ghost:hover{ background: rgba(255,255,255,.72); }
.cta-row{display:flex; gap:12px; flex-wrap:wrap; margin-top:18px}

/* HERO (LIGHT like Dementia) */
.hero{
  position:relative;
  padding: 56px 0 36px;
  overflow:hidden;
}
.hero.hero--light{
  color: var(--text)!important;
  background:
    radial-gradient(900px 420px at 12% 8%, rgba(240,180,41,.16), transparent 55%),
    radial-gradient(900px 420px at 88% 18%, rgba(11,43,68,.12), transparent 58%),
    linear-gradient(180deg, #fbf6ea 0%, #ffffff 60%, #f7fafc 100%);
  border-bottom: 1px solid rgba(15,23,42,.08);
}
.hero-bg{
  position:absolute;
  inset: -60px -40px auto -40px;
  height: 300px;
  background: radial-gradient(closest-side, rgba(240,180,41,.18), transparent 70%);
  pointer-events:none;
}
.hero-inner{
  position:relative;
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:28px;
  align-items:start;
}
.eyebrow{
  display:inline-block;
  font-size:12px;
  letter-spacing:.12em;
  opacity:.9;
  font-weight:800;
  color: rgba(11,43,68,.85);
  text-transform: uppercase;
}
.hero-title{
  margin: 10px 0 10px;
  font-size: 48px!important;
  line-height: 1.08;
  color: var(--text)!important;
}
.hero-lead{
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 800;
  color: rgba(11,43,68,.90);
}
.hero-copy p{color: rgba(15,23,42,.80); margin: 10px 0}
.hero-tags{display:flex; gap:10px; flex-wrap:wrap; margin-top:16px}
.tag{
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(15,23,42,.10);
  color: rgba(11,43,68,.92);
}

/* HERO media card */
.media-card{
  background: #ffffff;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: var(--radius2);
  overflow:hidden;
  box-shadow: 0 18px 50px rgba(2,10,25,.12);
}
.media-card img{width:100%; aspect-ratio: 4/3; object-fit: cover}
.media-caption{
  padding:10px 12px;
  font-size:12px;
  color: rgba(15,23,42,.70);
  border-top: 1px solid rgba(15,23,42,.08);
}

/* SECTIONS */
.section{ padding: 44px 0 54px; }
.section-alt{
  padding: 56px 0 64px;
  background:
    radial-gradient(900px 320px at 10% -80px, rgba(240,180,41,.14), transparent 60%),
    radial-gradient(900px 320px at 90% 0%, rgba(11,43,68,.10), transparent 60%),
    linear-gradient(180deg, #f7fafc, #ffffff);
  border-top: 1px solid rgba(240,180,41,.20);
  border-bottom: 1px solid rgba(240,180,41,.20);
}
.section-head{ padding: 2px 2px 8px; margin-bottom: 14px; }
.section h2{ margin: 0 0 6px; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; }

/* GRID + CARDS */
.grid{display:grid; gap:16px}
.grid.two{grid-template-columns:1fr 1fr}
.grid.three{
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 24px;
  padding-bottom: 12px;
  scrollbar-width: none;
}
.grid.three::-webkit-scrollbar{display:none}
.grid.three > .card-media{
  flex: 0 0 calc(50% - 12px);
  scroll-snap-align: start;
  min-width: 0;
}

/* CAROUSEL WRAPPER & BUTTONS */
.carousel-wrap{
  position: relative;
}
.carousel-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 0!important;
  border: 1px solid rgba(10,30,55,.15);
  background: #fff;
  box-shadow: 0 2px 8px rgba(10,30,55,.12);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a2e4a;
  transition: opacity .2s, box-shadow .2s;
}
.carousel-btn:disabled{
  opacity: .25;
  cursor: default;
}
.carousel-btn--prev{ left: -20px; }
.carousel-btn--next{ right: -20px; }
.mt-18{margin-top:18px}

.card{
  background: var(--card);
  border-radius: var(--radius2);
  box-shadow: var(--softShadow);
  padding: 18px;
  border: 1px solid rgba(10,30,55,.06);
}
.card h3{margin: 0 0 10px; font-size: 18px}
.card p{margin: 10px 0}
.card-head h3{margin: 0 0 10px}

.list{margin: 10px 0 0; padding-left: 18px}
.list li{margin: 6px 0}
.list.compact li{margin: 6px 0}

.card-media{padding:0; overflow:hidden}
.card-media > img{
  width:100%;
  height: auto;
  object-fit: contain;
  border-bottom: 1px solid rgba(10,30,55,.06);
}
.card-body{padding: 16px 18px 18px}

/* images inside normal cards */
.card-image{
  margin-top: 14px;
  border-radius: 16px;
  overflow: hidden;
  background: #f3f6fb;
  height: 180px;
  border: 1px solid rgba(10,30,55,.06);
}
.card-image img{width:100%; height:100%; object-fit: cover}

/* APPROACH IMAGE */
.approach-image{
  margin-top: 56px;
  padding: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
  border-radius: 28px;
  border: 1px solid rgba(10,30,55,.06);
  box-shadow: 0 18px 50px rgba(15,23,42,.08);
}
.approach-image img{
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(15, 30, 60, 0.08), 0 4px 12px rgba(15, 30, 60, 0.05);
}

/* SUPPORTIVE */
.supportive-layout{
  display:flex;
  gap:24px;
  align-items:flex-start;
}
.supportive-main{
  flex:1.35;
  background:#fff;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 20px 40px rgba(15,30,60,.08), 0 4px 14px rgba(15,30,60,.05);
  border: 1px solid rgba(10,30,55,.06);
}
.supportive-image{
  height:260px;
  background:#f3f6fb;
  overflow:hidden;
}
.supportive-image img{width:100%; height:100%; object-fit:cover}
.supportive-content{ padding:22px; }

.supportive-side{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:18px;
  min-width: 0;
}
.supportive-card{
  background:#fff;
  border-radius:20px;
  padding:18px;
  box-shadow:0 16px 36px rgba(15,30,60,.08);
  border: 1px solid rgba(10,30,55,.06);
  overflow:hidden;
}
.supportive-thumb{
  margin-top:12px;
  height:150px;
  border-radius:14px;
  overflow:hidden;
  background:#f3f6fb;
  border: 1px solid rgba(10,30,55,.06);
}
.supportive-thumb img{width:100%; height:100%; object-fit:cover}

/* CONTACT */
.contact{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:16px;
  align-items:start;
}
.contact-form{
  background: rgba(255,255,255,.86);
  border-radius: var(--radius2);
  padding: 18px;
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 18px 50px rgba(15,23,42,.10);
}
.contact-form label{display:block; margin-bottom:12px}
.contact-form span{display:block; font-size:12px; color: var(--muted); margin-bottom:6px}
.contact-form input,
.contact-form textarea{
  width:100%;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.12);
  background: #fff;
  color: var(--text)!important;
  padding: 12px 12px;
  outline:none;
}
.contact-form input:focus,
.contact-form textarea:focus{
  border-color: rgba(240,180,41,.55);
  box-shadow: 0 0 0 4px rgba(240,180,41,.18);
}
.form-note{margin:10px 0 0; font-size:12px; color: var(--muted)}

.stack{display:grid; gap:16px}
.contact-meta{margin-top:14px; display:grid; gap:10px}
.meta-item{
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.86);
  box-shadow: 0 16px 46px rgba(15,23,42,.08);
}
.meta-label{display:block; font-size:12px; color: var(--muted)}
.meta-value{font-weight:800; color: rgba(11,43,68,.95)}

.map-card{padding:0; overflow:hidden}
.map-embed iframe{width:100%; height:320px; border:0; display:block}

.pill-link{
  display:inline-flex;
  margin: 14px 18px 18px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  background: rgba(240,180,41,.14);
  border: 1px solid rgba(240,180,41,.30);
  color: rgba(11,43,68,.95);
}
.pill-link:hover{background: rgba(240,180,41,.18)}



/* RESPONSIVE */
@media (max-width: 980px){
  .hero-inner{grid-template-columns:1fr}
  .grid.three > .card-media{flex: 0 0 calc(85% - 12px)}
  .grid.two{grid-template-columns:1fr}
  .contact{grid-template-columns:1fr}
  .card-media > img{height:210px}
  .supportive-layout{flex-direction:column}
  .supportive-image{height:220px}
  .grid.three.mt-18{display: grid!important;}
}

@media (max-width: 860px){
  .nav-toggle{display:inline-block}

  .sm-nav{
    position: fixed;
    top: 74px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(11,43,68,.96);
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: var(--shadow);
  }
  .sm-nav.open{display:flex}

  /* optional: hide subtitle to save space */
  .sm-brand__sub{display:none}

  /* optional: hide back-to-menu if needed on mobile */
  /* .btn-menu{display:none} */
}

/* APPROACH IMAGE — make it smaller + centered */
.approach-image{
  margin-top: 56px;
  padding: 18px;              /* было 28px */
  border-radius: 28px;
}

.approach-image img{
  width: 100%;
  max-width: 820px;           /* <<< ограничиваем размер */
  margin: 0 auto;             /* <<< центрируем */
  display: block;
  height: auto;
  border-radius: 20px;
}

/* Cancer hero image – show full image */
.hero-media .media-card {
  height: auto;          /* важно */
  padding: 0;
}

.hero-media .media-card img {
  width: 100%;
  height: auto;          /* ключевая строка */
  object-fit: contain;  /* вся картинка помещается */
  display: block;
}


/* Approach figure title (separate from image) */
.approach-image{
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 14px 34px rgba(3, 15, 35, .10);
  border: 1px solid rgba(15, 23, 42, .06);
}

.approach-image .figure-title{
  text-align: center;
  font-weight: 800;
  color: #0b2b44;
  font-size: clamp(18px, 2.1vw, 26px);
  line-height: 1.25;
  margin: 2px 0 14px;
}

.approach-image .figure-title::after{
  content:"";
  display:block;
  width: 90px;
  height: 3px;
  background: #f0b429;
  margin: 12px auto 0;
  border-radius: 999px;
}

.approach-image img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

.approach-image .figure-title::after {
  display: none !important;
}




/* Supportive – narrative layout (no cards) */
.supportive-flow{
  display:flex;
  flex-direction:column;
  gap:24px;
}

.supportive-row{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr; /* чуть меньше зона картинки */
  gap:26px;
  align-items:start;
}

.supportive-row--reverse{
  grid-template-columns: 0.8fr 1.2fr;
}

.supportive-row--reverse .supportive-text{ order: 2; }
.supportive-row--reverse .supportive-media{ order: 1; }

.supportive-text h3{
  margin:0 0 10px;
}

/* КАРТИНКИ МЕНЬШЕ И АККУРАТНЕЕ */
.supportive-media{
  margin:0;
  border-radius:18px;
  overflow:hidden;
  background:#fff;
  box-shadow: 0 14px 34px rgba(0,0,0,.08);
  max-width: 520px;      /* ограничиваем ширину */
  justify-self: end;     /* справа в строке */
}

.supportive-row--reverse .supportive-media{
  justify-self: start;   /* слева для reverse */
}

.supportive-media img{
  width:100%;
  height: 320px;         /* фиксируем высоту, чтобы не было огромных фото */
  object-fit: cover;
  display:block;
}

/* line separators */
.supportive-sep{
  height:1px;
  background: rgba(11,42,69,.10); /* navy line */
  margin: 4px 0;
}

/* responsive */
@media (max-width: 980px){
  .supportive-row,
  .supportive-row--reverse{
    grid-template-columns: 1fr;
  }

  .supportive-row--reverse .supportive-text,
  .supportive-row--reverse .supportive-media{
    order: initial;
  }

  .supportive-media{
    max-width: 100%;
    justify-self: stretch;
  }

  .supportive-media img{
    height: 240px;
  }
}