/* Сайт ОАИИР — перенос с Wix. Размеры и отступы повторяют прежний сайт (ширина 980 px). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: #000; font: 16px/1.4 Arial, Helvetica, sans-serif; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 20px; }
.rt p, .rt h1, .rt h2, .rt h3, .rt h4, .rt h5, .rt h6 { margin: 0; font-weight: 400; }
.rt ul, .rt ol { margin: 0; }
.rt a { text-decoration: inherit; }
.rt a:hover { opacity: .8; }

/* шапка */
.site-header { padding-top: 4px; }
.site-header .wrap { display: flex; flex-direction: column; align-items: center; max-width: 980px; }
.logo img { width: 133px; height: 133px; }
.site-title { margin-top: 0; width: 100%; max-width: 920px; }
.site-title a { text-decoration: none; }
.title-line { width: 100%; max-width: 940px; margin: 27px 0 0; border: 0; border-top: 1px solid rgba(0, 0, 0, .85); }
.nav { display: flex; justify-content: center; gap: 0; width: 100%; max-width: 780px; margin: 22px 0 33px; border-bottom: 1px solid #d5d5d5; }
.nav a { position: relative; padding: 6px 15px 8px; font: italic 400 15px/1.3 montserrat, sans-serif; color: #9e9e9e; text-decoration: none; white-space: nowrap; }
.nav a:hover { color: #000; }
.nav a[aria-current="page"] { color: #000; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); border: 8px solid transparent; border-top-color: #c9c9c9; border-bottom: 0; }
.menu-btn { display: none; }
.drawer { position: fixed; inset: 0; z-index: 50; background: #fff; padding: 70px 24px 24px; }
.drawer[hidden] { display: none; }
.drawer nav { display: grid; gap: 4px; }
.drawer nav a { padding: 14px 4px; font: italic 400 20px/1.3 montserrat, sans-serif; color: #000; text-decoration: none; border-bottom: 1px solid #eee; }
.drawer__close { position: absolute; top: 14px; right: 16px; width: 48px; height: 48px; border: 0; background: none; font-size: 40px; line-height: 1; cursor: pointer; }

/* общие блоки */
.block { padding-top: 14px; padding-bottom: 40px; }
.block--tight { padding-bottom: 10px; }
.w-911 { max-width: 911px; margin: 0 auto; }
.w-715 { max-width: 715px; margin: 20px auto 0; }
.w-640 { max-width: 640px; }
.w-938 { max-width: 938px; margin: 50px auto 0; }
.site-footer { padding: 30px 20px 40px; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 49px; padding: 0 10px; white-space: nowrap; text-decoration: none; text-align: center; transition: opacity .15s, background .15s; }
.btn .ic { width: 8px; height: 12px; flex: none; }
.btn .ic--smile { width: 22px; height: 22px; }
.btn--line { width: 229px; background: #fff; border: 1px solid #705959; color: #705959; font: 400 15px/1.2 montserrat, sans-serif; letter-spacing: 1.5px; }
.btn--line:hover { background: #705959; color: #fff; }
.btn--wide { width: 419px; min-height: 40px; }
.btn--photo { width: 234px; background: #ae633f; border-radius: 10px; color: #fff; font: 400 16px/1.2 'helvetica-w01-light', Arial, sans-serif; }
.btn--photo:hover { opacity: .9; }
.btn--pill { width: 262px; background: #fff; border: 2px solid #c74300; border-radius: 50px; color: #c74300; font: 400 16px/1.2 'futura-lt-w01-light', sans-serif; letter-spacing: .8px; }
.btn--pill:hover { background: #c74300; color: #fff; }
.btn--solid { width: 351px; min-height: 40px; background: #705959; color: #fff; font: 400 15px/1.2 montserrat, sans-serif; letter-spacing: 1.5px; }
.btn--solid:hover { opacity: .9; }
.btn--join { position: absolute; right: 14px; bottom: 9px; min-height: 32px; width: 142px; padding: 0 12px; border-radius: 20px; background: #566fb8; color: #fff; font: 400 14px/1.2 'clarendon-w01-medium-692107', Georgia, serif; box-shadow: 0 2px 0 rgba(43, 104, 156, .6); }
.btn--join:hover { background: #4a61a6; }

/* КОНГРЕСС 2026 */
.hero { background: #444 center / cover no-repeat; padding: 5px 0 0; }
.hero__box { max-width: 980px; margin: 0 auto; min-height: 725px; padding: 49px 20px 40px; background: rgba(255, 255, 255, .56); display: flex; flex-direction: column; align-items: center; }
.hero__box > .rt { width: 100%; }
.btn-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px 70px; margin-top: 25px; }
.btn-row:first-of-type { margin-top: 30px; }
.btn-row--wide { gap: 24px 76px; }
.btn-row .btn--line { min-height: 49px; }
.hero__box .btn-row:last-child .btn { min-height: 40px; }
.hero__box .btn-row:last-child { gap: 24px 93px; margin-top: 50px; }
.orgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 40px; max-width: 1140px; margin: 10px auto 0; }
.org { display: flex; flex-direction: column; align-items: center; text-align: center; }
.org__photo { height: 214px; display: flex; align-items: flex-end; }
.org__photo img { max-height: 214px; width: auto; }
.org .rt { width: 100%; margin-top: 8px; }
.ornament { display: flex; justify-content: center; margin: -5px 0 0; }
.ornament + .block { margin-top: -66px; position: relative; }
.ornament--short { margin-top: -32px; }
.ornament--short + .block { margin-top: -25px; }
.ornament img { width: 471px; }
.ornament--short img { width: 471px; }
.info-letter { margin: 40px 0 0; padding-left: 60px; }

/* Главная */
.strip--light { background: #fbfbfb; padding: 41px 0 38px; margin-top: 1px; }
.strip--light .wrap { max-width: 1020px; }
.split { display: flex; gap: 38px; align-items: flex-start; justify-content: space-between; margin-top: 12px; }
.split > .rt, .split > div { flex: 1; min-width: 0; }
.split__img { flex: none; }
.split--photo { max-width: 887px; }
.split--photo .split__img { width: 205px; }
.split--wide .split__img { width: 378px; margin-top: 30px; }
.signature { margin: 50px 0 0 342px; }
.join-banner { position: relative; max-width: 944px; margin: 40px auto 0; min-height: 180px; padding: 19px 56px 52px; background: center / cover no-repeat; outline: 1px solid #000; outline-offset: -1px; box-shadow: inset 0 0 0 10px #fff, inset 0 0 0 11px #000; }
.join-banner__text { background: rgba(255, 255, 255, .78); padding: 6px 10px; }
.contacts { display: grid; grid-template-columns: 385px 383px 1fr; margin-top: 60px; min-height: 249px; }
.contacts__dark { background: #000; color: #fff; padding: 22px 20px 22px 55px; }
.contacts__dark--right { padding: 56px 20px 20px 145px; }
.contacts__dark .rt, .contacts__dark .rt * { color: #fff; }
.contacts__light { background: #fbfbfb; padding: 30px 20px; display: flex; flex-direction: column; align-items: center; }
.socials { display: flex; gap: 10px; margin-top: 8px; }
.socials img { width: 39px; height: 39px; }
.useful { display: flex; gap: 26px; align-items: flex-start; padding-top: 70px; }
.useful__logos { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; margin-top: 5px; }
.useful__logos img { height: auto; }

/* Вступить */
.join-form { max-width: 678px; margin: 24px auto 0; display: grid; gap: 16px; padding: 28px; border: 1px solid #e3e3e3; border-radius: 6px; font: 400 15px/1.4 'nunito sans', Arial, sans-serif; color: #333; }
.join-form h2 { margin: 0 0 4px; font: 700 22px/1.3 'nunito sans', Arial, sans-serif; color: #000; }
.join-form label, .join-form legend { display: block; font-weight: 700; color: #333; }
.join-form label > input, .join-form label > textarea { display: block; margin-top: 6px; }
.join-form label span, .join-form legend span { color: #c00; margin-left: 3px; }
.join-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.join-form legend { margin-bottom: 6px; display: block; }
.join-form input, .join-form textarea { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #c9c9c9; border-radius: 4px; font: inherit; font-weight: 400; font-size: 16px; color: #000; background: #fff; }
.join-form textarea { min-height: 100px; resize: vertical; }
.join-form input:focus, .join-form textarea:focus { outline: 2px solid #566fb8; outline-offset: 0; border-color: #566fb8; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; align-items: end; }
.f-nolabel { align-self: end; }
.f-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.f-check input { width: 20px; min-height: 20px; height: 20px; margin-top: 2px; flex: none; }
.f-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.join-form button { justify-self: start; min-height: 46px; padding: 0 34px; border: 0; border-radius: 4px; background: #566fb8; color: #fff; font: 700 16px/1 'nunito sans', Arial, sans-serif; cursor: pointer; }
.join-form button:hover { background: #4a61a6; }
.form-msg { max-width: 678px; margin: 24px auto 0; padding: 18px 20px; border-radius: 6px; font: 400 17px/1.5 'nunito sans', Arial, sans-serif; }
.form-msg--ok { background: #eaf7ee; color: #1d5e2f; }
.form-msg--err { background: #fdeceb; color: #8a1f17; }

/* Вакцинопрофилактика */
.talks { display: grid; gap: 59px; margin-top: 10px; }
.talk { display: grid; grid-template-columns: 480px 1fr; gap: 22px; align-items: start; }
.talk__video { width: 480px; aspect-ratio: 16 / 9; background: #000; }
.talk__text { padding-top: 64px; display: grid; gap: 60px; }

/* Иммунодефициты */
.stack { display: grid; gap: 22px; margin-top: 26px; }
.stack .rt:nth-child(even) { margin-bottom: 26px; }

/* Молодые учёные */
.posters { display: grid; gap: 34px; margin-top: 50px; }
.poster { display: grid; grid-template-columns: 164px 1fr; gap: 0; align-items: center; }
.poster__kind { padding-left: 0; }

/* Совет экспертов */
.experts-head { display: flex; align-items: center; gap: 20px; }
.experts-head img:first-child { width: 153px; }
.experts-head img:nth-child(2) { width: 140px; margin-right: 20px; }
.pdfs { display: flex; justify-content: center; gap: 140px; margin-top: 10px; }
.pdfs a { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; font: 400 18px/1.3 'playfair display', serif; color: #000; }
.pdfs img { width: 80px; }

/* телефон */
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .site-header .wrap { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 12px 14px; padding-top: 56px; position: relative; }
  .menu-btn { display: flex; flex-direction: column; justify-content: center; gap: 6px; position: absolute; top: 4px; right: 16px; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; padding: 8px; }
  .menu-btn span { display: block; height: 4px; background: #000; }
  .title-line { order: -1; grid-column: 1 / -1; margin: 0 0 6px; }
  .logo img { width: 76px; height: 76px; }
  .nav { display: none; }
  .site-header { padding-bottom: 20px; }
  .rt [style*="font-size:45px"] { font-size: 30px !important; line-height: 1.25 !important; }
  .rt [style*="font-size:40px"] { font-size: 27px !important; line-height: 1.25 !important; }
  .rt [style*="font-size:38px"] { font-size: 21px !important; line-height: 1.3 !important; }
  .rt [style*="font-size:34px"] { font-size: 24px !important; line-height: 1.3 !important; }
  .rt [style*="font-size:28px"], .rt [style*="font-size:29px"], .rt [style*="font-size:30px"] { font-size: 22px !important; line-height: 1.3 !important; }
  .site-title { min-width: 0; }
  .site-title p { text-align: left !important; font-size: 17px !important; line-height: 1.3 !important; overflow-wrap: anywhere; }
  body { overflow-x: hidden; }
  .hero__box { min-height: 0; margin: 0 16px; padding: 30px 14px 34px; }
  .btn-row, .btn-row--wide, .hero__box .btn-row:last-child { flex-direction: column; align-items: center; gap: 16px; margin-top: 16px; }
  .btn--line, .btn--pill, .btn--photo, .btn--wide, .btn--solid { width: min(100%, 300px); white-space: normal; }
  .btn-row { width: 100%; }
  .hero__box .rt { overflow-wrap: anywhere; }
  .orgs { grid-template-columns: 1fr; gap: 40px; }
  .ornament img { width: 80%; }
  .info-letter { padding-left: 0; display: flex; justify-content: center; }
  .split { flex-direction: column; align-items: center; }
  .split--wide .split__img { margin-top: 0; }
  .signature { margin: 30px 0 0; }
  .join-banner { padding: 24px 22px 64px; }
  .contacts { grid-template-columns: 1fr; }
  .contacts__dark, .contacts__dark--right { padding: 28px 24px; }
  .useful { flex-direction: column; padding-top: 40px; }
  .useful__logos { justify-content: center; }
  .f-row { grid-template-columns: 1fr; }
  .join-form { padding: 20px 16px; }
  .talk { grid-template-columns: 1fr; gap: 14px; }
  .talk__video { width: 100%; }
  .talk__text { padding-top: 0; gap: 14px; }
  .poster { grid-template-columns: 1fr; gap: 4px; }
  .experts-head { flex-wrap: wrap; justify-content: center; }
  .pdfs { gap: 40px; flex-wrap: wrap; }
}
