/* Импортируем локальный файл со шрифтами */
@import url("/assets/fonts/golos-text/golos-text.css");
@import url("/assets/fonts/TriodPostnaja-Regular/triod-postnaja.css");

html {
  height: 100%;
}

body {
  height: 100%;
  width: 100%;
  background: #f6f4ee;
  font-family: "Golos Text", serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.3;
  color: #0c0e13;
  padding: 0;
  margin: 0;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

/* Image Lazy Loading - резервируем место под изображения */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Резервируем высоту для основных контейнеров */
.osterman-timeline__image {
  min-height: 400px;
}

.osterman-portraits__image {
  aspect-ratio: 3/4;
  width: 100%;
  height: auto;
}

.osterman-career__book-main {
  aspect-ratio: 2/3;
  width: 100%;
  height: auto;
}

.osterman-messages__image {
  aspect-ratio: 4/3;
  width: 100%;
  height: auto;
}

.osterman-diplomacy__portrait img {
  aspect-ratio: 3/4;
  width: 100%;
  height: auto;
}

/* Специфичные контейнеры */
.osterman-tactics__document img {
  aspect-ratio: 356/560;
}

.osterman-finland__manifest img {
  aspect-ratio: 4/5;
}

.osterman-finland__portrait img {
  aspect-ratio: 381/504;
}

.osterman-retirement__portrait-frame img {
  aspect-ratio: 412/545;
}

.osterman-crimea__map img {
  aspect-ratio: 16/9;
}

.osterman-retirement__mansion img {
  aspect-ratio: 16/9;
}

.osterman-retirement__coat-image img {
  aspect-ratio: 800/1333;
}

.osterman-austria__portrait img,
.osterman-poland3__portrait img {
  aspect-ratio: 3/4;
}

.osterman-threat__portrait-block img {
  aspect-ratio: 435/560;
}

.osterman-portugal__portrait img {
  aspect-ratio: 1/1;
}

.osterman-diplomacy__ship-image img {
  aspect-ratio: 16/9;
}

.osterman-diplomacy__image {
  aspect-ratio: 356/560;
}

.osterman-success__portrait {
  aspect-ratio: 435/560;
}

.osterman-quote__decoration img {
  aspect-ratio: 52/48;
}

a,
a:visited {
  text-decoration: none;
}

h1,
h2 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.25;
  padding: 0;
  margin: 0;
}

h2 {
  font-size: 2.5rem;
}

.trans {
  -webkit-transition: all 0.5s cubic-bezier(0.62, 0.05, 0.01, 0.98);
  -moz-transition: all 0.5s cubic-bezier(0.62, 0.05, 0.01, 0.98);
  transition: all 0.5s cubic-bezier(0.62, 0.05, 0.01, 0.98);
}

::placeholder {
  color: #7c7c7c;
}

:-ms-input-placeholder {
  color: #7c7c7c;
}

::-ms-input-placeholder {
  color: #7c7c7c;
}

.scroll::-webkit-scrollbar {
  width: 10px;
}

.scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0);
}

.scroll::-webkit-scrollbar-thumb {
  background: #d9d9d9;
  border-right: 4px solid #fff;
}

.scroll::-webkit-scrollbar-thumb:hover {
  background: #c2c2c2;
}

.scroll--dark::-webkit-scrollbar-track {
  background: #fff;
}

.scroll--dark::-webkit-scrollbar-thumb {
  background: #fff;
  border-color: #0c0e13;
}

.scroll--dark::-webkit-scrollbar-thumb:hover {
  background: #0c0e13;
}

.container {
  position: relative;
  width: 1200px;
  padding: 0 15px;
  margin: auto;
}

@media screen and (min-width: 992px) and (max-width: 1200px) {
  .container {
    width: auto;
  }
}
@media (max-width: 991px) {
  .container {
    width: auto;
    padding: 0 24px;
  }
}
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 16px 0;
  -webkit-transition: all 0.5s cubic-bezier(0.62, 0.05, 0.01, 0.98);
  -moz-transition: all 0.5s cubic-bezier(0.62, 0.05, 0.01, 0.98);
  transition: all 0.5s cubic-bezier(0.62, 0.05, 0.01, 0.98);
  z-index: 20;
}
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-top__content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-grow: 1;
}
.header-top__hide {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  flex-grow: 1;
}
.header-top__menu {
  display: none;
  margin: 0 48px 0 auto;
}
.header-top__links {
  display: flex;
  gap: 32px;
}
.header-top__links a {
  color: #fff;
}
.header-top__links a:hover {
  color: #d0b27a;
}
.header-top__button {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  height: 56px;
  background: #2d406c;
  color: #fff;
  border-radius: 10px;
}
.header-top__button:hover {
  background: #3e558c;
}
.header-top__button:active {
  background: #4e69a8;
}
.header-top__button::before {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background-image: url(../svg/telegram.svg);
  background-repeat: no-repeat;
  background-position: left center;
  content: "";
}
.header-top__button--telegram {
  white-space: nowrap;
  padding: 0 24px;
}
.header-top__button--menu {
  justify-content: center;
  padding: 16px;
  cursor: pointer;
}
.header-top__button--menu::before {
  background-image: url(../svg/header-top__button--menu.svg);
  background-position: 0 0;
}
.header-top__button--expanded::before {
  background-position: 0 -24px;
}
.header-logo {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-shrink: 0;
  padding-right: 40px;
}
.header-logo__label {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.05;
  color: #fff;
}
.header-search {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-grow: 1;
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 0 12px 0 24px;
}
.header-search input {
  height: 56px;
}
.header-search__button {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background-color: #d0b27a;
  background-image: url(../svg/header-search__button.svg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 20px;
  border-radius: 12px;
  cursor: pointer;
}
.header-search__button:hover {
  background-color: #c09c58;
}
.header-search__button:active {
  background-color: #c2994e;
}
.header-clear {
  display: none;
  cursor: pointer;
}
.header-clear__label {
  line-height: 1;
  color: #7c7c7c;
}
.header-clear__label:hover {
  color: #d0b27a;
}
.header-modal {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.25);
  z-index: 10;
}
.header-modal__content {
  height: 455px;
  overflow: auto;
  margin: 20px 8px;
}
.header-modal__list {
  display: flex;
  flex-direction: column;
}
.header-modal__article {
  color: #0c0e13;
  border-bottom: 1px solid #e5e7ec;
  padding: 20px 0;
  margin: 0 16px;
}
.header-modal__article:first-child {
  padding-top: 0;
}
.header-modal__article:last-child {
  border: none;
  padding-bottom: 0;
}
.header-modal__article:hover {
  color: #d0b27a;
}
.header-modal__empty {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #7c7c7c;
  padding: 48px 0;
}
.header-modal .loader {
  flex-shrink: 0;
  height: 120px;
}
.header--inner .header-data {
  display: none;
}

.inner {
  padding-top: 105px;
}
.inner .header {
  background: #283b69 !important;
}
.inner .dip {
  display: none;
}

.dip {
  background: radial-gradient(
    circle,
    rgb(40, 59, 105) 0%,
    rgb(31, 47, 86) 100%
  );
  padding: 190px 0 80px;
}
.dip::before {
  position: absolute;
  inset: 0;
  background: url(../svg/dip.svg) no-repeat center center;
  z-index: 0;
  content: "";
}
.dip__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.dip__title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  color: #fff;
  margin: 0;
}
.dip__creators {
  width: 53%;
  line-height: 1.35;
  text-align: center;
  color: #fff;
}
.dip__about {
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
  color: #8599c8;
}
.dip__about::after {
  width: 24px;
  height: 24px;
  background-image: url(../svg/header-data__about.svg);
  background-repeat: no-repeat;
  background-position: 0 0;
  transform: translateX(0);
  content: "";
}
.dip__about:hover {
  color: #d0b27a;
}
.dip__about:hover::after {
  background-position: 0 -24px;
}
.dip .header-search {
  display: none;
}

.loader {
  width: 100%;
  height: 50px;
  background: url(../svg/loader.svg) no-repeat center center;
}

input[type="text"],
input[type="tel"],
textarea {
  width: 100%;
  background: none;
  font-family: "Golos Text", serif;
  font-size: 1.125rem;
  line-height: 1;
  color: #000;
  border: none;
  outline: none;
  resize: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.main {
  min-height: 200px;
  background: #fff;
}

.dict {
  display: flex;
  gap: 64px;
  position: relative;
  padding: 60px 0 70px;
}
.dict__data {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.dict-letter {
  display: flex;
  gap: 70px;
}
.dict-letter__label {
  flex-shrink: 0;
  width: 60px;
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
}
.dict-letter__list {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.dict-letter__article {
  color: #0c0e13;
  border-bottom: 1px solid #e5e7ec;
  padding: 16px 0;
}
.dict-letter__article:first-child {
  padding-top: 5px;
}
.dict-letter__article:last-child {
  border: none;
}
.dict-letter__article:hover {
  color: #8e723c;
}
.dict-letter--one {
  align-items: center;
}
.dict-navi {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  position: sticky;
  top: 140px;
  width: 36px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.05);
  padding: 8px 0;
}
.dict-navi__letter {
  font-size: 0.75rem;
  line-height: 1;
  text-align: center;
  color: #797a7a;
  padding: 4px 0;
  cursor: pointer;
}
.dict-navi__letter--active,
.dict-navi__letter--active:hover,
.dict-navi__letter:hover {
  color: #2c4990;
}
.dict__empty {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  color: #7c7c7c;
  padding: 115px 0;
}

.article {
  padding-bottom: 48px;
}
.article h1 {
  padding: 48px 0;
}
.article__columns {
  display: flex;
  gap: 64px;
}
.article__text {
  flex-shrink: 0;
  width: 55%;
}
.article__text p {
  padding: 0 0 32px;
  margin: 0;
}
.article__text p:last-child {
  padding: 0;
}
.article-contents {
  flex-grow: 1;
  font-size: 1rem;
  color: #797a7a;
}
.article-contents ol {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  margin: 0 0 0 18px;
}
.article-contents ol li {
  padding: 0;
  margin: 0;
}
.article-contents ol li a {
  color: #797a7a;
  text-decoration: underline;
  text-decoration-style: solid;
  text-decoration-thickness: 1px;
  text-decoration-color: currentColor;
}
.article-contents ol li a:hover {
  color: #d0b27a;
}
.article-contents__updated {
  padding-top: 32px;
}

ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style-type: none;
  padding: 0 0 32px;
  margin: 0;
}
ul li {
  position: relative;
  padding: 0 0 0 25px;
  margin: 0;
}
ul li::before {
  position: absolute;
  top: 12px;
  left: 9px;
  width: 3px;
  height: 3px;
  background: currentColor;
  border-radius: 50%;
  content: "";
}

.back {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e5e7ec;
}
.back__button {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  height: 88px;
  color: #7c7c7c;
}
.back__button::before {
  width: 24px;
  height: 24px;
  background: url(../svg/back__button.svg) no-repeat left center;
  background-position: 0 0;
  content: "";
}
.back__button:hover {
  color: #d0b27a;
}
.back__button:hover::before {
  background-position: -24px 0;
}
.back--footer {
  border: none;
  border-top: 1px solid #e5e7ec;
}

.page {
  padding: 64px 0 150px;
}
.page h1 {
  padding-bottom: 32px;
}
.page h2 {
  padding: 48px 0 24px;
}
.page__text {
  width: 65%;
  line-height: 1.5;
}

.footer {
  background: #283b69;
  font-size: 1rem;
  padding: 32px 0 45px;
}
.footer__columns {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}
.footer__logo {
  flex-shrink: 0;
}
.footer__nav {
  display: flex;
  gap: 32px;
}
.footer__nav a {
  line-height: 1;
  color: #fff;
}
.footer__nav a:hover {
  color: #d0b27a;
}
.footer__copy {
  text-align: right;
  color: #8599c8;
}

.mobmenu {
  display: none;
}

@media (max-width: 991px) {
  body {
    font-size: 1rem;
  }
  .header-top {
    position: relative;
  }
  .header-top__content {
    flex-grow: 0;
  }
  .header-top__hide {
    display: none;
    position: absolute;
    top: 3px;
    left: 0;
    width: 100%;
  }
  .header-top__button--telegram {
    display: none;
  }
  .header-top__button--menu {
    width: 48px;
    height: 48px;
  }
  .header-top__button--menu:hover {
    background: #2d406c;
  }
  .header-logo {
    padding: 0;
  }
  .header-search {
    width: 100%;
    padding: 8px 8px 8px 16px;
  }
  .header-search input {
    height: 40px;
    font-size: 1rem;
  }
  .header-search__button {
    width: 40px;
    height: 40px;
    background-size: 20px;
  }
  .header-clear {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: url(../svg/header-clear.svg) no-repeat center center;
  }
  .header-clear__label {
    display: none;
  }
  .header-modal__content {
    margin: 20px 0;
  }
  .header-modal__article {
    padding: 12px 0;
  }
  .inner {
    padding-top: 0;
  }
  .inner .header {
    background: rgba(40, 59, 105, 0);
  }
  .inner .dip {
    display: block;
    padding-bottom: 23px;
  }
  .dip {
    padding: 100px 0 32px;
  }
  .dip__content {
    align-items: flex-start;
    gap: 24px;
    padding-top: 16px;
  }
  .dip__title {
    width: 90%;
    font-size: 2rem;
    line-height: 1.3;
    text-align: left;
  }
  .dip__creators {
    width: 100%;
    line-height: 1.35;
    text-align: left;
    color: #8599c8;
  }
  .dip .header-search {
    display: flex;
  }
  .dict {
    flex-direction: column;
    gap: 16px;
    padding: 0 0 32px;
  }
  .dict__data {
    order: 2;
  }
  .dict-letter {
    flex-direction: column;
    gap: 8px;
  }
  .dict-letter__label {
    font-size: 3rem;
  }
  .dict-letter--one {
    align-items: flex-start;
  }
  .dict-navi {
    flex-direction: row;
    gap: 4px;
    order: 1;
    top: 110px;
    width: calc(100% + 48px);
    border-radius: 0;
    padding: 16px 24px 16px;
    margin-left: -24px;
    overflow-x: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .dict-navi::-webkit-scrollbar {
    display: none;
  }
  .dict-navi__letter {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    font-size: 1rem;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 0;
  }
  .dict-navi__letter:hover {
    color: #797a7a;
    border-color: #f0f0f0;
  }
  .dict-navi__letter--active,
  .dict-navi__letter--active:hover {
    color: #2c4990;
    border-color: #2c4990;
  }
  .dict__empty {
    font-size: 1.5rem;
    text-align: center;
  }
  .article__back {
    padding: 17px 0;
  }
  .article h1 {
    font-size: 1.75rem;
    line-height: 1.25;
    padding: 32px 0 20px;
  }
  .article__columns {
    flex-direction: column;
    gap: 32px;
  }
  .article__text {
    width: 100%;
  }
  .article__text p {
    padding-bottom: 20px;
  }
  .back {
    width: calc(100% + 48px);
    margin-left: -24px;
    padding-left: 24px;
  }
  .back__button {
    height: 56px;
  }
  ul {
    padding-bottom: 20px;
  }
  .page {
    padding: 48px 0;
  }
  .page h1 {
    font-size: 1.75rem;
    padding-bottom: 20px;
  }
  .page h2 {
    font-size: 1.5rem;
    padding: 32px 0 16px;
  }
  .page__text {
    width: auto;
    font-size: 1.125rem;
  }
  .footer {
    padding: 32px 0 24px;
  }
  .footer__columns {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer__nav {
    flex-direction: column;
    font-size: 1.25rem;
  }
  .footer__copy {
    text-align: left;
  }
  .mobmenu {
    display: block;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: #283b69;
    z-index: 15;
  }
  .mobmenu__content {
    display: flex;
    flex-direction: column;
    height: inherit;
    padding: 130px 24px 32px;
  }
  .mobmenu__nav {
    display: flex;
    flex-direction: column;
    font-size: 1.5rem;
  }
  .mobmenu__nav a {
    display: flex;
    align-items: center;
    height: 80px;
    line-height: 1;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .mobmenu__nav a:last-child {
    border: none;
  }
  .mobmenu__telegram {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: 56px;
    background: #d0b27a;
    line-height: 1;
    color: #fff;
    border-radius: 12px;
    margin-top: auto;
  }
  .mobmenu__telegram::before {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: url(../svg/telegram.svg) no-repeat left center;
    content: "";
  }
}
/* ==============================================
   СТРАНИЦА ОСТЕРМАН - ДОБАВИТЬ В КОНЕЦ style.css
   ============================================== */

/* Frame 1: Hero Section */
.osterman-hero {
  width: 100%;
  height: 1089px;
  position: relative;
  background: #213059;
}

.osterman-hero__content {
  width: 848px;
  left: 50%;
  top: 80px;
  position: absolute;
  transform: translateX(-50%);
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 56px;
  display: inline-flex;
}

.osterman-hero__image-wrapper {
  width: 316px;
  height: 416px;
  position: relative;
}

.osterman-hero__image {
  width: 300px;
  height: 400px;
  left: 8px;
  top: 8px;
  position: absolute;
  border-radius: 50%;
  object-fit: cover;
}

.osterman-hero__border {
  width: 316px;
  height: 416px;
  left: 0px;
  top: 0px;
  position: absolute;
  border-radius: 50%;
  outline: 1px #d0b27a solid;
}

.osterman-hero__text {
  align-self: stretch;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 16px;
  display: flex;
}

.osterman-hero__dates {
  align-self: stretch;
  text-align: center;
  color: #d0b27a;
  font-size: 16px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  /* text-transform: uppercase; */
  line-height: 25.6px;
  word-wrap: break-word;
}

.osterman-hero__title {
  align-self: stretch;
  text-align: center;
  color: white;
  font-size: 88px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 96.8px;
  word-wrap: break-word;
  margin: 0;
  padding: 0;
}

.osterman-hero__description {
  width: 632px;
  text-align: center;
  color: #e5e7ec;
  font-size: 18px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 28.8px;
  word-wrap: break-word;
  margin: 0;
}

/* Frame 2: Childhood Section */
.osterman-childhood {
  align-self: stretch;
  padding: 160px 80px 120px;
  background: #f6f4ee;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 120px;
  display: flex;
}

.osterman-childhood__header {
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 48px;
  display: flex;
}

.osterman-childhood__title {
  width: 1064px;
  text-align: center;
  color: #213059;
  font-size: 80px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 96px;
  word-wrap: break-word;
  margin: 0;
  padding: 0;
}

.osterman-childhood__intro {
  width: 632px;
  text-align: center;
  color: #68738b;
  font-size: 18px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 28.8px;
  word-wrap: break-word;
  margin: 0;
}

.osterman-childhood__cards {
  align-self: stretch;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  display: inline-flex;
}

.osterman-childhood__card {
  width: 632px;
  align-self: stretch;
  padding: 80px;
  background: white;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 56px;
  display: inline-flex;
}

.osterman-childhood__card-header {
  align-self: stretch;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 24px;
  display: flex;
}

.osterman-childhood__card-label {
  align-self: stretch;
  text-align: center;
  color: #d0b27a;
  font-size: 16px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 25.6px;
  word-wrap: break-word;
}

.osterman-childhood__card-title {
  align-self: stretch;
  text-align: center;
  color: #b08d4b;
  font-size: 48px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 52.8px;
  word-wrap: break-word;
  margin: 0;
  padding: 0;
}

.osterman-childhood__card-content {
  align-self: stretch;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 40px;
  display: flex;
}

.osterman-childhood__card-text {
  align-self: stretch;
  color: #68738b;
  font-size: 18px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 28.8px;
  word-wrap: break-word;
  margin: 0;
}

/* Frame 3: Timeline Section */
.osterman-timeline {
  width: 100%;
  background: #f6f4ee;
  display: flex;
  justify-content: center;
  padding: 80px;
}

.osterman-timeline__container {
  width: 1280px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 120px;
  display: flex;
}

.osterman-timeline__main {
  align-self: stretch;
  height: 460px;
  justify-content: space-between;
  align-items: flex-start;
  display: inline-flex;
}

.osterman-timeline__text {
  width: 632px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 24px;
  display: inline-flex;
}

.osterman-timeline__year {
  align-self: stretch;
  color: #213059;
  font-size: 120px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 144px;
  word-wrap: break-word;
  margin: 0;
  padding: 0;
}

.osterman-timeline__description {
  width: 632px;
  color: #2d406c;
  font-size: 26px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 39px;
  word-wrap: break-word;
  margin: 0;
}

.osterman-timeline__image {
  width: 416px;
  align-self: stretch;
  justify-content: center;
  align-items: center;
  gap: 8px;
  display: flex;
}

.osterman-timeline__image img {
  width: 308px;
  height: auto;
  mix-blend-mode: multiply;
}

.osterman-timeline__progress {
  align-self: stretch;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 16px;
  display: inline-flex;
}

.osterman-timeline__progress-item {
  width: 416px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 8px;
  display: inline-flex;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.osterman-timeline__progress-item:hover {
  opacity: 0.8;
}

.osterman-timeline__progress-label {
  align-self: stretch;
  color: #d0b27a;
  font-size: 16px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 25.6px;
  word-wrap: break-word;
}

.osterman-timeline__progress-bar {
  align-self: stretch;
  height: 8px;
  background: rgba(208, 178, 122, 0.3);
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 7px;
  display: flex;
}

.osterman-timeline__progress-fill {
  width: 0;
  height: 8px;
  background: #d0b27a;
  transition: width 0.3s ease;
}

.osterman-timeline__progress-fill.active {
  width: 100%;
}

.osterman-timeline__description-note {
  width: 524px;
  color: #68738b;
  font-size: 18px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 28.8px;
  word-wrap: break-word;
  margin-top: 16px;
}

/* Career Section */
.osterman-career {
  width: 100%;
  background: #f6f4ee;
  padding: 120px 80px 160px 80px;
  display: flex;
  justify-content: center;
}

.osterman-career__container {
  width: 1280px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 120px;
  display: flex;
}

.osterman-career__header {
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 48px;
  display: flex;
}

.osterman-career__title {
  width: 1064px;
  text-align: center;
  color: #213059;
  font-size: 80px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 96px;
  word-wrap: break-word;
  margin: 0;
  padding: 0;
}

.osterman-career__subtitle {
  width: 632px;
  text-align: center;
  color: #68738b;
  font-size: 18px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 28.8px;
  word-wrap: break-word;
  margin: 0;
}

.osterman-career__content {
  width: 1280px;
  justify-content: space-between;
  align-items: center;
  display: inline-flex;
  overflow: visible;
}

.osterman-career__book {
  width: 524px;
  justify-content: center;
  overflow: visible;
}

.osterman-career__book-wrapper {
  width: 309.23px;
  height: 480px;
  position: relative;
  contain: layout style;
  transform: translateZ(0);
  backface-visibility: hidden;
  overflow: visible;
}

.osterman-career__book-shadow {
  width: 288.46px;
  height: 460.82px;
  left: 20.77px;
  top: 18.46px;
  position: absolute;
  opacity: 0.9;
  z-index: 1;
}

.osterman-career__book-main {
  width: 288.46px;
  height: 460.82px;
  left: 0px;
  top: 0px;
  position: absolute;
  box-shadow: 3px 7px 16px rgba(136.53, 126.03, 94.52, 0.15);
  z-index: 2;
}

.osterman-career__book-hidden {
  display: none;
}

.osterman-career__text-block {
  align-self: stretch;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  display: inline-flex;
}

.osterman-career__text-main {
  width: 632px;
  color: #2d406c;
  font-size: 26px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 39px;
  word-wrap: break-word;
  margin: 0;
}

.osterman-career__text-note {
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 32px;
  display: flex;
}

.osterman-career__text-note-content {
  width: 632px;
  color: #68738b;
  font-size: 16px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 25.6px;
  word-wrap: break-word;
  margin: 0;
}

/* Quote Block */
.osterman-quote {
  width: 1280px;
  padding: 89px 80px 64px 80px;
  position: relative;
  background: white;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 40px;
  display: flex;
}

.osterman-quote__text {
  align-self: stretch;
  color: #68738b;
  font-size: 18px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 28.8px;
  word-wrap: break-word;
  margin: 0;
}

.osterman-quote__source {
  color: #68738b;
  font-size: 14px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 22.4px;
  word-wrap: break-word;
  margin: 0;
}

.osterman-quote__decoration {
  width: 52px;
  height: 48px;
  left: 614px;
  top: -24.28px;
  position: absolute;
}

.osterman-quote__decoration img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Portraits Section */
.osterman-portraits {
  justify-content: flex-start;
  align-items: center;
  gap: 126px;
  display: inline-flex;
}

.osterman-portraits__text {
  width: 524px;
  color: #2d406c;
  font-size: 26px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 39px;
  word-wrap: break-word;
  margin: 0;
}

.osterman-portraits__images {
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
  display: flex;
}

.osterman-portraits__item {
  width: 308px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  display: inline-flex;
}

.osterman-portraits__image {
  width: 308px;
  height: 408px;
  object-fit: cover;
}

.osterman-portraits__caption {
  align-self: stretch;
  text-align: center;
  color: #68738b;
  font-size: 14px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 22.4px;
  word-wrap: break-word;
  margin: 0;
}

/* АДАПТИВ ДЛЯ СРЕДНИХ ЭКРАНОВ (планшеты, маленькие ноутбуки) */
@media (max-width: 1439px) {
  .osterman-timeline__container,
  .osterman-career__container,
  .osterman-diving__container,
  .osterman-tactics__container,
  .osterman-diplomacy__container,
  .osterman-neutrality__container,
  .osterman-ottoman__container,
  .osterman-crimea__container,
  .osterman-finland__container,
  .osterman-threat__container,
  .osterman-portugal__container,
  .osterman-austria__container,
  .osterman-poland2__container,
  .osterman-poland3__container,
  .osterman-retirement__container {
    max-width: 1280px;
    width: 100%;
  }

  .osterman-hero,
  .osterman-childhood,
  .osterman-timeline,
  .osterman-career,
  .osterman-quote,
  .osterman-portraits,
  .osterman-messages,
  .osterman-success,
  .osterman-diving,
  .osterman-tactics,
  .osterman-diplomacy,
  .osterman-neutrality,
  .osterman-ottoman,
  .osterman-crimea,
  .osterman-finland,
  .osterman-threat,
  .osterman-portugal,
  .osterman-austria,
  .osterman-poland2,
  .osterman-poland3,
  .osterman-retirement {
    padding-left: 40px;
    padding-right: 40px;
  }

  .osterman-childhood__container,
  .osterman-quote,
  .osterman-portraits {
    max-width: 100%;
  }
}

/* АДАПТИВ ДЛЯ МОБИЛЬНЫХ */
@media (max-width: 991px) {
  .osterman-hero {
    height: auto;
    padding: 160px 24px 60px;
  }
  .osterman-hero__content {
    width: 100%;
    position: static;
    transform: none;
    padding: 0 15px;
  }

  .osterman-hero__image-wrapper {
    width: 240px;
    height: 320px;
  }

  .osterman-hero__image {
    width: 224px;
    height: 304px;
    left: 8px;
    top: 8px;
    aspect-ratio: 224/304;
    object-fit: cover;
  }

  .osterman-hero__border {
    width: 240px;
    height: 320px;
  }

  .osterman-hero__title {
    font-size: 48px;
    line-height: 56px;
  }

  .osterman-hero__description {
    width: 100%;
    font-size: 16px;
    line-height: 25.6px;
  }

  .osterman-childhood {
    padding: 80px 24px 60px;
    gap: 60px;
  }

  .osterman-childhood__title {
    width: 100%;
    font-size: 48px;
    line-height: 56px;
  }

  .osterman-childhood__intro {
    width: 100%;
  }

  .osterman-childhood__cards {
    flex-direction: column;
  }

  .osterman-childhood__card {
    width: 100%;
    padding: 40px 24px;
  }

  .osterman-childhood__card-title {
    font-size: 32px;
    line-height: 38px;
  }

  .osterman-timeline,
  .osterman-career {
    padding: 60px 24px;
  }

  .osterman-timeline__container,
  .osterman-career__container {
    width: 100%;
  }

  .osterman-timeline__main {
    flex-direction: column;
    height: auto;
    gap: 40px;
  }

  .osterman-timeline__text,
  .osterman-timeline__description {
    width: 100%;
  }

  .osterman-timeline__year {
    font-size: 64px;
    line-height: 72px;
  }

  .osterman-timeline__description,
  .osterman-timeline__description-note,
  .osterman-career__text-main,
  .osterman-portraits__text {
    font-size: 20px;
    line-height: 30px;
  }

  .osterman-timeline__description-note {
    width: 100%;
  }

  .osterman-timeline__image {
    width: 100%;
    min-height: 300px;
  }

  .osterman-timeline__image img {
    width: 100%;
    height: auto;
    aspect-ratio: 308/400;
    object-fit: contain;
  }

  .osterman-timeline__progress {
    flex-direction: column;
  }

  .osterman-timeline__progress-item {
    width: 100%;
  }

  .osterman-career__title {
    width: 100%;
    font-size: 48px;
    line-height: 56px;
  }

  .osterman-career__subtitle {
    width: 100%;
  }

  .osterman-career__content {
    width: 100%;
    flex-direction: column;
    gap: 40px;
  }

  .osterman-career__book {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .osterman-career__book-main,
  .osterman-career__book-shadow,
  .osterman-career__book-hidden {
    aspect-ratio: 2/3;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .osterman-career__text-block {
    width: 100%;
  }

  .osterman-career__text-main,
  .osterman-career__text-note-content {
    width: 100%;
  }

  .osterman-quote {
    padding: 40px 24px;
    width: 100%;
  }

  .osterman-portraits {
    flex-direction: column;
    gap: 40px;
  }

  .osterman-portraits__text {
    width: 100%;
  }

  .osterman-portraits__images {
    flex-direction: column;
    width: 100%;
  }

  .osterman-portraits__item {
    width: 100%;
  }

  .osterman-portraits__image {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
  }
  .osterman-timeline__progress {
    flex-direction: row !important; /* НЕ column! */
    gap: 8px;
    overflow-x: auto; /* На случай если не влезут */
  }

  .osterman-timeline__progress-item {
    width: auto !important;
    flex: 1 1 0;
    min-width: 80px; /* Минимум чтобы не схлопнулись */
  }

  .osterman-timeline__progress-label {
    font-size: 12px;
    line-height: 16px;
  }

  .osterman-timeline__progress-fill.active {
    width: 100% !important;
  }

  .osterman-timeline__description,
  .osterman-timeline__description-note {
    width: 100%;
  }
}
/* Diving Campaign Section */
.osterman-diving-wrapper {
  width: 100%;
  background: #213059;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  display: flex;
  overflow: hidden;
  max-width: 100vw;
}

.osterman-diving__decoration-top {
  width: 100%;
  justify-content: flex-start;
  align-items: flex-start;
  display: flex;
  overflow: hidden;
}

.osterman-diving__decoration-item {
  flex: 1;
  min-width: 200px;
  height: 33px;
  background: #213059;
}

.osterman-diving {
  width: 100%;
  background: #213059;
  overflow: hidden;
  padding: 160px 80px;
  display: flex;
  justify-content: center;
}

.osterman-diving__container {
  width: 1280px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 120px;
  display: flex;
}

.osterman-diving__header {
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 48px;
  display: flex;
}

.osterman-diving__title {
  width: 1064px;
  text-align: center;
  color: white;
  font-size: 80px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 96px;
  word-wrap: break-word;
  margin: 0;
  padding: 0;
}

.osterman-diving__content {
  align-self: stretch;
  justify-content: space-between;
  align-items: center;
  display: inline-flex;
}

.osterman-diving__text-block {
  width: 632px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  display: inline-flex;
}

.osterman-diving__text-main {
  align-self: stretch;
  color: #e5e7ec;
  font-size: 26px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 39px;
  word-wrap: break-word;
  margin: 0;
}

.osterman-diving__text-note {
  width: 632px;
  color: #8599c8;
  font-size: 16px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 25.6px;
  word-wrap: break-word;
  margin: 0;
}

.osterman-quote--dark {
  width: 1280px;
  background: #2d406c;
}

.osterman-quote--dark .osterman-quote__text {
  color: #b0bfe1;
}

.osterman-quote--dark .osterman-quote__source {
  color: #8599c8;
}

.osterman-document {
  align-self: stretch;
  justify-content: space-between;
  align-items: center;
  display: inline-flex;
}

.osterman-document__image-wrapper {
  padding: 24px;
  outline: 1px #d0b27a solid;
  outline-offset: -1px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  display: flex;
  width: 468px;
  max-width: 100%;
}

.osterman-document__image {
  width: 420px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 840/1121;
  object-fit: contain;
  display: block;
}

.osterman-document__text-block {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  display: inline-flex;
}

.osterman-document__text-main {
  width: 632px;
  color: #e5e7ec;
  font-size: 26px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 39px;
  word-wrap: break-word;
  margin: 0;
}

.osterman-document__text-note {
  width: 632px;
  color: #8599c8;
  font-size: 16px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 25.6px;
  word-wrap: break-word;
  margin: 0;
}

/* Волнистый переход между секциями */
.osterman-transition {
  width: 100%;
  height: 33px;
  line-height: 0;
  font-size: 0;
  display: block;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.osterman-transition svg {
  width: 100%;
  height: 100%;
  height: 34px;
  display: block;
  margin: 0;
  padding: 0;
}

@media (max-width: 991px) {
  .osterman-transition {
    display: none;
  }
}

/* Секция "Как доставлялись сообщения" */
.osterman-messages {
  width: 100%;
  padding: 160px 80px 120px;
  background: #f6f4ee !important;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 120px;
  display: flex;
}

.osterman-messages__header {
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 48px;
  display: flex;
}

.osterman-messages__title {
  max-width: 1064px;
  width: 100%;
  text-align: center;
  color: #213059;
  font-size: 80px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 96px;
  word-wrap: break-word;
  margin: 0;
  padding: 0;
}

.osterman-messages__subtitle {
  width: 632px;
  text-align: center;
  color: #68738b;
  font-size: 18px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 28.8px;
  word-wrap: break-word;
  margin: 0;
}

.osterman-messages__image-block {
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
  display: flex;
}

.osterman-messages__image {
  width: 1064px;
  height: 934px;
  box-shadow: 3px 7px 16px rgba(136.53, 126.03, 94.52, 0.15);
  object-fit: cover;
}

.osterman-messages__caption {
  width: 632px;
  text-align: center;
  color: #68738b;
  font-size: 14px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 22.4px;
  word-wrap: break-word;
  margin: 0;
}

/* Секция "Первые успехи" */
.osterman-success {
  width: 100%;
  padding: 120px 80px 160px;
  background: #f6f4ee !important;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 120px;
  display: flex;
}

.osterman-success__header {
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 40px;
  display: flex;
}

.osterman-success__title {
  width: 1064px;
  text-align: center;
  color: #213059;
  font-size: 80px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 96px;
  word-wrap: break-word;
  margin: 0;
  padding: 0;
}

.osterman-success__subtitle {
  width: 1064px;
  text-align: center;
  color: #d0b27a;
  font-size: 48px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 52.8px;
  word-wrap: break-word;
  margin: 0;
  padding: 0;
}

.osterman-success__content {
  width: 1280px;
  justify-content: space-between;
  align-items: center;
  display: inline-flex;
}

.osterman-success__text-block {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  display: inline-flex;
}

.osterman-success__text-main {
  width: 632px;
  color: #213059;
  font-size: 26px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 39px;
  word-wrap: break-word;
  margin: 0;
}

.osterman-success__text-note {
  width: 632px;
  color: #68738b;
  font-size: 16px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 25.6px;
  word-wrap: break-word;
  margin: 0;
}

.osterman-success__image {
  width: 356px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.osterman-success__portrait-block {
  width: 524px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  display: inline-flex;
}

.osterman-success__portrait {
  width: 435px;
  height: 560px;
  object-fit: cover;
}

.osterman-success__portrait-caption {
  align-self: stretch;
  text-align: center;
  color: #68738b;
  font-size: 14px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 22.4px;
  word-wrap: break-word;
  margin: 0;
}

.osterman-success__center-text {
  width: 848px;
  text-align: center;
  color: #213059;
  font-size: 26px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 39px;
  word-wrap: break-word;
  margin: 0;
}

/* Карточки фракций */
.osterman-factions {
  align-self: stretch;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 80px;
  display: flex;
}

.osterman-factions__cards {
  align-self: stretch;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  display: inline-flex;
}

.osterman-factions__card {
  width: 632px;
  align-self: stretch;
  padding: 80px;
  background: white;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 56px;
  display: inline-flex;
}

.osterman-factions__card-title {
  align-self: stretch;
  text-align: center;
  color: #b08d4b;
  font-size: 48px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 52.8px;
  word-wrap: break-word;
  margin: 0;
  padding: 0;
}

.osterman-factions__card-text {
  align-self: stretch;
  color: #68738b;
  font-size: 18px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 28.8px;
  word-wrap: break-word;
  margin: 0;
}

/* Блок "Зачем России колпаки" */
.osterman-why {
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 80px;
  display: flex;
}

.osterman-divider {
  width: 200px;
  height: 1px;
  background: #d0b27a;
}

.osterman-why__content {
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 48px;
  display: flex;
}

.osterman-why__title {
  width: 1064px;
  text-align: center;
  color: #213059;
  font-size: 48px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 52.8px;
  word-wrap: break-word;
  margin: 0;
  padding: 0;
}

.osterman-why__text {
  width: 848px;
  text-align: center;
  color: #68738b;
  font-size: 18px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 28.8px;
  word-wrap: break-word;
  margin: 0;
}

/* Адаптив */
@media (max-width: 991px) {
  .osterman-messages,
  .osterman-success {
    padding: 60px 24px;
  }

  .osterman-messages__title,
  .osterman-success__title {
    width: 100%;
    font-size: 48px;
    line-height: 56px;
  }

  .osterman-messages__subtitle,
  .osterman-success__subtitle,
  .osterman-messages__caption,
  .osterman-success__text-note {
    width: 100%;
  }

  .osterman-messages__image {
    width: 100%;
    height: auto;
    aspect-ratio: 1064/934;
    object-fit: cover;
  }

  .osterman-success__content {
    width: 100%;
    flex-direction: column;
    gap: 40px;
  }

  .osterman-success__text-block,
  .osterman-success__portrait-block {
    width: 100%;
  }

  .osterman-success__text-main,
  .osterman-success__text-note,
  .osterman-success__center-text,
  .osterman-why__text {
    width: 100%;
  }

  .osterman-success__image {
    width: 100%;
    max-width: 356px;
    height: auto;
    margin: 0 auto;
    aspect-ratio: 356/560;
    object-fit: contain;
  }

  .osterman-success__portrait {
    width: 100%;
    height: auto;
    aspect-ratio: 435/560;
    object-fit: cover;
  }

  .osterman-factions__cards {
    flex-direction: column;
  }

  .osterman-factions__card {
    width: 100%;
    padding: 40px 24px;
  }

  .osterman-why__title {
    width: 100%;
    font-size: 32px;
    line-height: 38px;
  }
}

/* ==============================================
   СЕКЦИЯ "ТАКТИКА ЛИЧНЫХ БЕСЕД"
   ============================================== */

.osterman-tactics {
  width: 100%;
  background: #213059;
  padding: 160px 80px;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.osterman-tactics__container {
  width: 1280px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 120px;
  display: flex;
}

.osterman-tactics__header {
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 48px;
  display: flex;
}

.osterman-tactics__title {
  max-width: 1064px;
  width: 100%;
  text-align: center;
  color: white;
  font-size: 80px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 96px;
  word-wrap: break-word;
  margin: 0;
  padding: 0;
}

.osterman-tactics__content {
  align-self: stretch;
  justify-content: space-between;
  align-items: flex-start;
  display: flex;
  gap: 126px;
}

.osterman-tactics__text-large {
  max-width: 540px;
  width: 100%;
  color: #e5e7ec;
  font-size: 26px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 39px;
  word-wrap: break-word;
  margin: 0;
}

.osterman-tactics__text-block {
  max-width: 632px;
  width: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  display: flex;
}

.osterman-tactics__text-main {
  width: 100%;
  color: #e5e7ec;
  font-size: 26px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 39px;
  word-wrap: break-word;
  margin: 0;
}

.osterman-tactics__text-note {
  width: 100%;
  color: #8599c8;
  font-size: 16px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 25.6px;
  word-wrap: break-word;
  margin: 0;
}

.osterman-tactics__text-note--large {
  font-size: 18px;
  line-height: 28.8px;
}

.osterman-tactics__row {
  align-self: stretch;
  justify-content: space-between;
  align-items: center;
  display: flex;
  gap: 126px;
}

.osterman-tactics__document {
  padding: 24px;
  outline: 1px #d0b27a solid;
  outline-offset: -1px;
  justify-content: center;
  align-items: center;
  display: flex;
}

.osterman-tactics__document img {
  width: 356px;
  height: auto;
  aspect-ratio: 356/560;
  object-fit: cover;
}

/* ==============================================
     СЕКЦИЯ "ГЛАВА РУССКОЙ ДИПЛОМАТИИ"
     ============================================== */

.osterman-diplomacy {
  width: 100%;
  background: #f6f4ee;
  padding: 160px 80px;
  display: flex;
  justify-content: center;
}

.osterman-diplomacy__container {
  width: 1280px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 120px;
  display: flex;
}

.osterman-diplomacy__header {
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 40px;
  display: flex;
}

.osterman-diplomacy__title {
  max-width: 1064px;
  width: 100%;
  text-align: center;
  color: #213059;
  font-size: 80px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 96px;
  word-wrap: break-word;
  margin: 0;
  padding: 0;
}

.osterman-diplomacy__subtitle {
  max-width: 1064px;
  width: 100%;
  text-align: center;
  color: #d0b27a;
  font-size: 48px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 52.8px;
  word-wrap: break-word;
  margin: 0;
  padding: 0;
}

.osterman-diplomacy__content {
  width: 100%;
  justify-content: space-between;
  align-items: center;
  display: flex;
  gap: 126px;
}

.osterman-diplomacy__text-block {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  display: flex;
}

.osterman-diplomacy__text-main {
  max-width: 632px;
  width: 100%;
  color: #213059;
  font-size: 26px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 39px;
  word-wrap: break-word;
  margin: 0;
}

.osterman-diplomacy__text-note {
  max-width: 632px;
  width: 100%;
  color: #68738b;
  font-size: 16px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 25.6px;
  word-wrap: break-word;
  margin: 0;
}

.osterman-diplomacy__image {
  width: 356px;
  height: 560px;
  object-fit: cover;
}

.osterman-diplomacy__franklin {
  align-self: stretch;
  justify-content: space-between;
  align-items: center;
  display: flex;
  gap: 126px;
}

.osterman-diplomacy__portrait {
  max-width: 524px;
  width: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  display: flex;
}

.osterman-diplomacy__portrait img {
  width: 100%;
  max-width: 524px;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  border: 4px #d0b27a solid;
}

.osterman-diplomacy__caption {
  width: 100%;
  text-align: center;
  color: #68738b;
  font-size: 14px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 22.4px;
  word-wrap: break-word;
  margin: 0;
}

.osterman-diplomacy__year-block {
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 40px;
  display: flex;
}

.osterman-diplomacy__year {
  color: #213059;
  font-size: 120px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 144px;
  word-wrap: break-word;
  margin: 0;
  padding: 0;
}

.osterman-diplomacy__bio {
  max-width: 632px;
  width: 100%;
  color: #68738b;
  font-size: 16px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 25.6px;
  word-wrap: break-word;
  margin: 0;
}

.osterman-diplomacy__ship {
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 80px;
  display: flex;
}

.osterman-diplomacy__center-text {
  max-width: 848px;
  width: 100%;
  text-align: center;
  color: #213059;
  font-size: 26px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 39px;
  word-wrap: break-word;
  margin: 0;
}

.osterman-diplomacy__ship-image {
  align-self: stretch;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 16px;
  display: flex;
}

.osterman-diplomacy__ship-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* ==============================================
     СЕКЦИЯ "РОССИЯ — ЗАЩИТНИЦА МОРЕЙ"
     ============================================== */

.osterman-neutrality {
  width: 100%;
  background: #213059;
  padding: 160px 80px;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.osterman-neutrality__container {
  width: 1280px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 120px;
  display: flex;
}

.osterman-neutrality__header {
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 48px;
  display: flex;
}

.osterman-neutrality__title {
  max-width: 1064px;
  width: 100%;
  text-align: center;
  color: white;
  font-size: 80px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 96px;
  word-wrap: break-word;
  margin: 0;
  padding: 0;
}

.osterman-neutrality__subtitle {
  max-width: 632px;
  width: 100%;
  text-align: center;
  color: #8599c8;
  font-size: 18px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 28.8px;
  word-wrap: break-word;
  margin: 0;
}

.osterman-neutrality__step {
  width: 100%;
  justify-content: space-between;
  align-items: center;
  display: flex;
  gap: 28px;
}

.osterman-neutrality__number {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 72px;
  outline: 1px #d0b27a solid;
  outline-offset: -1px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.osterman-neutrality__number span {
  text-align: center;
  color: #d0b27a;
  font-size: 64px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 70.4px;
}

.osterman-neutrality__step-content {
  flex-grow: 1;
  justify-content: space-between;
  align-items: center;
  display: flex;
  gap: 126px;
}

.osterman-neutrality__text-block {
  max-width: 632px;
  width: 100%;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 40px;
  display: flex;
}

.osterman-neutrality__text-main {
  width: 100%;
  color: #e5e7ec;
  font-size: 26px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 39px;
  word-wrap: break-word;
  margin: 0;
}

.osterman-neutrality__text-note {
  width: 100%;
  color: #8599c8;
  font-size: 16px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 25.6px;
  word-wrap: break-word;
  margin: 0;
}

/* ==============================================
     АДАПТИВ ДЛЯ МОБИЛЬНЫХ
     ============================================== */

@media (max-width: 991px) {
  .osterman-tactics,
  .osterman-diplomacy,
  .osterman-neutrality {
    padding: 60px 24px;
  }

  .osterman-tactics__container,
  .osterman-diplomacy__container,
  .osterman-neutrality__container {
    width: 100%;
  }

  .osterman-tactics__title,
  .osterman-diplomacy__title,
  .osterman-neutrality__title {
    font-size: 48px;
    line-height: 56px;
  }

  .osterman-diplomacy__subtitle {
    font-size: 32px;
    line-height: 38px;
  }

  .osterman-diplomacy__year {
    font-size: 64px;
    line-height: 72px;
  }

  .osterman-tactics__content,
  .osterman-tactics__row,
  .osterman-diplomacy__content,
  .osterman-diplomacy__franklin,
  .osterman-neutrality__step {
    flex-direction: column;
    gap: 40px;
  }

  .osterman-neutrality__step-content {
    flex-direction: column;
    gap: 40px;
  }

  .osterman-tactics__text-large,
  .osterman-tactics__text-main,
  .osterman-diplomacy__text-main,
  .osterman-diplomacy__center-text,
  .osterman-neutrality__text-main {
    font-size: 20px;
    line-height: 30px;
  }

  .osterman-tactics__document {
    width: 100%;
    padding: 16px;
  }

  .osterman-tactics__document img,
  .osterman-diplomacy__image {
    width: 100%;
    height: auto;
    aspect-ratio: 356/560;
    object-fit: contain;
  }

  .osterman-diplomacy__portrait img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
  }

  .osterman-diplomacy__ship-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
  }
}
.osterman-neutrality__number {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 72px;
  outline: 1px #d0b27a solid;
  outline-offset: -1px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.osterman-neutrality__number span {
  text-align: center;
  color: #d0b27a;
  font-size: 64px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 70.4px;
}

/* Линия ВВЕРХ от кружка (для 2 и 3) */
.osterman-neutrality__number::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 200px;
  background: linear-gradient(0deg, #d0b27a 0%, rgba(208, 178, 122, 0) 100%);
  display: none; /* По умолчанию скрыта */
}

/* Показать линию вверх для 2-го и 3-го шагов */
.osterman-neutrality__step:not(:first-child)
  .osterman-neutrality__number::before {
  display: block;
}
/* Линия ВНИЗ от кружка */
.osterman-neutrality__number::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 200px;
  background: linear-gradient(180deg, #d0b27a 0%, rgba(208, 178, 122, 0) 100%);
}

/* Скрыть линии на мобильных */
@media (max-width: 991px) {
  .osterman-neutrality__number::before,
  .osterman-neutrality__number::after {
    display: none;
  }
}

/* ==============================================
   СЕКЦИЯ "ЗАЩИТА ОТ ОСМАНСКОЙ ИМПЕРИИ"
   ============================================== */

.osterman-ottoman {
  width: 100%;
  background: #f6f4ee;
  padding: 160px 80px 120px;
  display: flex;
  justify-content: center;
}

.osterman-ottoman__container {
  width: 1280px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 120px;
  display: flex;
}

.osterman-ottoman__title {
  max-width: 1064px;
  width: 100%;
  text-align: center;
  color: #213059;
  font-size: 80px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 96px;
  word-wrap: break-word;
  margin: 0;
  padding: 0;
}

.osterman-ottoman__content {
  width: 100%;
  justify-content: space-between;
  align-items: center;
  display: flex;
  gap: 126px;
}

.osterman-ottoman__text-block {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  display: flex;
}

.osterman-ottoman__text-main {
  max-width: 632px;
  width: 100%;
  color: #2d406c;
  font-size: 26px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 39px;
  word-wrap: break-word;
  margin: 0;
}

.osterman-ottoman__text-note {
  max-width: 632px;
  width: 100%;
  color: #68738b;
  font-size: 16px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 25.6px;
  word-wrap: break-word;
  margin: 0;
}

.osterman-ottoman__row {
  align-self: stretch;
  justify-content: space-between;
  align-items: flex-start;
  display: flex;
  gap: 126px;
}

.osterman-ottoman__text-large {
  max-width: 524px;
  width: 100%;
  color: #2d406c;
  font-size: 26px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 39px;
  word-wrap: break-word;
  margin: 0;
}

.osterman-ottoman__text-small {
  max-width: 632px;
  width: 100%;
  color: #68738b;
  font-size: 18px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 28.8px;
  word-wrap: break-word;
  margin: 0;
}

/* ==============================================
   СЕКЦИЯ "ПРИСОЕДИНЕНИЕ КРЫМА"
   ============================================== */

.osterman-crimea {
  width: 100%;
  background: #f6f4ee;
  padding: 120px 80px 160px;
  display: flex;
  justify-content: center;
}

.osterman-crimea__container {
  width: 1280px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 120px;
  display: flex;
}

.osterman-crimea__header {
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 48px;
  display: flex;
}

.osterman-crimea__title {
  max-width: 1064px;
  width: 100%;
  text-align: center;
  color: #213059;
  font-size: 80px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 96px;
  word-wrap: break-word;
  margin: 0;
  padding: 0;
}

.osterman-crimea__subtitle {
  max-width: 632px;
  width: 100%;
  text-align: center;
  color: #68738b;
  font-size: 18px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 28.8px;
  word-wrap: break-word;
  margin: 0;
}

.osterman-crimea__map {
  align-self: stretch;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
  display: flex;
}

.osterman-crimea__map img {
  max-width: 848px;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.osterman-crimea__caption {
  max-width: 848px;
  width: 100%;
  text-align: center;
  color: #68738b;
  font-size: 14px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 22.4px;
  word-wrap: break-word;
  margin: 0;
}

.osterman-crimea__content {
  width: 100%;
  justify-content: space-between;
  align-items: center;
  display: flex;
  gap: 126px;
}

/* ==============================================
   СЕКЦИЯ "НЕЗАВИСИМАЯ ФИНЛЯНДИЯ"
   ============================================== */

.osterman-finland {
  width: 100%;
  background: #213059;
  padding: 160px 80px 120px;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.osterman-finland__container {
  width: 1280px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 120px;
  display: flex;
}

.osterman-finland__header {
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 80px;
  display: flex;
}

.osterman-finland__manifest {
  max-width: 632px;
  width: 100%;
  padding: 8px;
  border: 4px #d0b27a solid;
}

.osterman-finland__manifest img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.osterman-finland__title-block {
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 40px;
  display: flex;
}

.osterman-finland__title {
  max-width: 1064px;
  width: 100%;
  text-align: center;
  color: white;
  font-size: 80px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 96px;
  word-wrap: break-word;
  margin: 0;
  padding: 0;
}

.osterman-finland__subtitle {
  max-width: 632px;
  width: 100%;
  text-align: center;
  color: #8599c8;
  font-size: 18px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 28.8px;
  word-wrap: break-word;
  margin: 0;
}

.osterman-finland__row {
  align-self: stretch;
  justify-content: flex-start;
  align-items: center;
  display: flex;
  gap: 126px;
}

.osterman-finland__portrait {
  flex: 1 1 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  display: flex;
}

.osterman-finland__portrait img {
  width: 381px;
  height: auto;
  aspect-ratio: 381/504;
  border-radius: 9999px;
  object-fit: cover;
}

.osterman-finland__caption {
  width: 100%;
  text-align: center;
  color: #8599c8;
  font-size: 14px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 22.4px;
  word-wrap: break-word;
  margin: 0;
}

.osterman-finland__text-block {
  max-width: 632px;
  width: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  display: flex;
}

.osterman-finland__text-main {
  width: 100%;
  color: #e5e7ec;
  font-size: 26px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 39px;
  word-wrap: break-word;
  margin: 0;
}

.osterman-finland__text-note {
  width: 100%;
  color: #8599c8;
  font-size: 18px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 28.8px;
  word-wrap: break-word;
  margin: 0;
}

.osterman-finland__text-small {
  width: 100%;
  color: #8599c8;
  font-size: 16px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 25.6px;
  word-wrap: break-word;
  margin: 0;
}
@media (max-width: 991px) {
  .osterman-finland {
    padding: 60px 24px;
  }

  .osterman-finland__container {
    width: 100% !important;
  }

  .osterman-finland__title {
    width: 100%;
    font-size: 48px;
    line-height: 56px;
  }

  .osterman-finland__manifest {
    width: 100%;
    max-width: 100%;
  }

  /* КРИТИЧНО - это главное */
  .osterman-finland__row {
    width: 100% !important;
    flex-direction: column !important;
    gap: 40px;
  }

  .osterman-finland__portrait {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .osterman-finland__portrait img {
    width: 100%;
    height: auto;
    aspect-ratio: 381/504;
    object-fit: cover;
  }

  /* КРИТИЧНО - текстовый блок */
  .osterman-finland__text-block {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
  }

  .osterman-finland__text-main,
  .osterman-finland__text-note,
  .osterman-finland__text-small {
    width: 100% !important;
    max-width: 100% !important;
  }
  @media (max-width: 991px) {
    /* ПОРТУГАЛИЯ - АГРЕССИВНЫЙ ФИКС */
    .osterman-portugal__content {
      flex-direction: column !important;
      width: 100% !important;
    }

    .osterman-portugal__portrait {
      width: 100% !important;
      max-width: 100% !important;
      flex: none !important;
    }

    .osterman-portugal__text-block {
      width: 100% !important;
      max-width: 100% !important;
      min-width: 0 !important;
      flex: none !important;
    }

    /* ВСЕ div'ы с текстом внутри, НО НЕ ДОКУМЕНТЫ */
    .osterman-portugal__content
      div:not(.osterman-career__book):not(.osterman-career__book-wrapper):not(
        .osterman-career__zoom-icon
      ),
    .osterman-portugal__text-block div {
      width: 100% !important;
      max-width: 100% !important;
      align-self: stretch !important;
    }

    /* Возвращаем нормальную ширину для документов */
    .osterman-portugal__content .osterman-career__book {
      width: auto !important;
      align-self: auto !important;
    }

    .osterman-portugal__content .osterman-career__book-wrapper {
      width: 309.23px !important;
      align-self: auto !important;
    }

    .osterman-portugal__text-main,
    .osterman-portugal__text-note {
      width: 100% !important;
      max-width: 100% !important;
    }
  }
  .osterman-portugal__content[style*="row-reverse"] {
    flex-direction: column !important;
  }
}

/* ==============================================
   СЕКЦИЯ "ПРЕДОТВРАЩЕНИЕ ОСМАНСКОЙ УГРОЗЫ"
   ============================================== */

.osterman-threat {
  width: 100%;
  background: #213059;
  padding: 120px 80px;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.osterman-threat__container {
  width: 1280px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 120px;
  display: flex;
}

.osterman-threat__header {
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 48px;
  display: flex;
}

.osterman-threat__title {
  max-width: 1064px;
  width: 100%;
  text-align: center;
  color: white;
  font-size: 80px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 96px;
  word-wrap: break-word;
  margin: 0;
  padding: 0;
}

.osterman-threat__content {
  width: 100%;
  justify-content: space-between;
  align-items: center;
  display: flex;
  gap: 126px;
}

.osterman-threat__portrait-block {
  max-width: 524px;
  width: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  display: flex;
}

.osterman-threat__portrait-block img {
  width: 435px;
  height: auto;
  aspect-ratio: 435/560;
  object-fit: cover;
}

/* ==============================================
   СЕКЦИЯ "ВЛИЯНИЕ В ПОРТУГАЛИИ"
   ============================================== */

.osterman-portugal {
  width: 100%;
  background: #213059;
  padding: 120px 80px 160px;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.osterman-portugal__container {
  width: 1280px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 120px;
  display: flex;
}

.osterman-portugal__header {
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 48px;
  display: flex;
}

.osterman-portugal__title {
  max-width: 1064px;
  width: 100%;
  text-align: center;
  color: white;
  font-size: 80px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 96px;
  word-wrap: break-word;
  margin: 0;
  padding: 0;
}

.osterman-portugal__content {
  width: 100%;
  justify-content: space-between;
  align-items: center;
  display: flex;
  gap: 126px;
}

/* Фикс для книг внутри portugal content */
.osterman-portugal__content .osterman-career__book {
  flex-shrink: 0;
}

.osterman-portugal__content .osterman-career__book-wrapper {
  transform-origin: center center;
}

.osterman-portugal__content .osterman-career__zoom-icon {
  transform: translate(-50%, -50%) !important;
  width: 72px !important;
  height: 72px !important;
  border-radius: 50% !important;
}

.osterman-portugal__portrait {
  max-width: 524px;
  width: 100%;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
  display: flex;
}

.osterman-portugal__portrait img {
  width: 416px;
  height: auto;
  aspect-ratio: 1/1;
  padding: 8px;
  border: 4px #d0b27a solid;
  object-fit: cover;
}

/* ==============================================
   АДАПТИВ
   ============================================== */

@media (max-width: 991px) {
  .osterman-ottoman,
  .osterman-crimea,
  .osterman-finland,
  .osterman-threat,
  .osterman-portugal {
    padding: 60px 24px;
  }

  .osterman-ottoman__container,
  .osterman-crimea__container,
  .osterman-finland__container,
  .osterman-threat__container,
  .osterman-portugal__container {
    width: 100%;
  }

  .osterman-ottoman__title,
  .osterman-crimea__title,
  .osterman-finland__title,
  .osterman-threat__title,
  .osterman-portugal__title {
    font-size: 48px;
    line-height: 56px;
  }

  .osterman-ottoman__content,
  .osterman-ottoman__row,
  .osterman-crimea__content,
  .osterman-finland__row,
  .osterman-threat__content,
  .osterman-portugal__content {
    flex-direction: column;
    gap: 40px;
  }

  /* КРИТИЧНО! Перезаписываем inline-стиль для Portugal */
  .osterman-portugal__content[style] {
    flex-direction: column !important;
  }

  /* Все секции с документами - центрируем через родителя */
  .osterman-portugal__content,
  .osterman-ottoman__content,
  .osterman-ottoman__row,
  .osterman-crimea__content,
  .osterman-finland__row,
  .osterman-threat__content {
    align-items: center !important;
  }

  .osterman-finland__portrait {
    min-height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .osterman-finland__portrait img {
    width: 100%;
    height: auto;
    max-width: 381px;
    aspect-ratio: 381/504;
    object-fit: cover;
    border-radius: 9999px;
  }

  .osterman-portugal__portrait {
    min-height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .osterman-portugal__portrait img {
    width: 100%;
    max-width: 416px;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
  }

  .osterman-threat__portrait-block {
    min-height: 350px;
  }

  .osterman-threat__portrait-block img {
    width: 100%;
    height: auto;
    aspect-ratio: 435/560;
    object-fit: cover;
  }

  .osterman-finland__row {
    flex-direction: column !important;
    width: 100% !important;
  }

  .osterman-finland__portrait {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    order: 1; /* Фото первым */
  }

  .osterman-finland__text-block {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    order: 2; /* Текст вторым */
  }

  .osterman-finland__text-main {
    width: 100% !important;
    max-width: 100% !important;
  }
  .osterman-threat__content {
    flex-direction: column !important;
    width: 100% !important;
    align-items: center !important;
  }

  .osterman-threat__portrait-block {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    order: 1; /* Фото первым */
  }

  .osterman-threat__portrait-block img {
    width: 100%;
    height: auto;
    aspect-ratio: 435/560;
    object-fit: cover;
  }

  .osterman-threat__text-block {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
    order: 2; /* Текст вторым */
  }

  .osterman-threat__text-main,
  .osterman-threat__text-note {
    width: 100% !important;
    max-width: 100% !important;
  }
}
/* ==============================================
   СЕКЦИЯ "СБЛИЖЕНИЕ РОССИИ И АВСТРИИ"
   ============================================== */

.osterman-austria {
  width: 100%;
  background: #f6f4ee;
  padding: 160px 80px;
  display: flex;
  justify-content: center;
}

.osterman-austria__container {
  width: 1280px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 120px;
  display: flex;
}

.osterman-austria__title {
  max-width: 1064px;
  width: 100%;
  text-align: center;
  color: #213059;
  font-size: 80px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 96px;
  word-wrap: break-word;
  margin: 0;
  padding: 0;
}

.osterman-austria__content {
  width: 100%;
  justify-content: space-between;
  align-items: center;
  display: flex;
  gap: 126px;
}

.osterman-austria__text-block {
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 24px;
  display: flex;
}

.osterman-austria__year {
  color: #213059;
  font-size: 136px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 163.2px;
  word-wrap: break-word;
  margin: 0;
  padding: 0;
}

.osterman-austria__text-main {
  max-width: 632px;
  width: 100%;
  color: #213059;
  font-size: 26px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 39px;
  word-wrap: break-word;
  margin: 0;
}

.osterman-austria__text-note {
  max-width: 632px;
  width: 100%;
  color: #68738b;
  font-size: 16px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 25.6px;
  word-wrap: break-word;
  margin: 0;
}

.osterman-austria__center-text {
  max-width: 848px;
  width: 100%;
  text-align: center;
  color: #213059;
  font-size: 26px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 39px;
  word-wrap: break-word;
  margin: 0;
}

.osterman-austria__portrait {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  display: flex;
}

.osterman-austria__portrait img {
  width: 381px;
  height: auto;
  aspect-ratio: 3/4;
  border-radius: 9999px;
  object-fit: cover;
}

/* ==============================================
     СЕКЦИЯ "ВТОРОЙ РАЗДЕЛ ПОЛЬШИ"
     ============================================== */

.osterman-poland2 {
  width: 100%;
  background: #f6f4ee;
  padding: 120px 80px;
  display: flex;
  justify-content: center;
}

.osterman-poland2__container {
  width: 1280px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  display: flex;
}

.osterman-poland2__content {
  width: 100%;
  justify-content: space-between;
  align-items: center;
  display: flex;
  gap: 126px;
}

.osterman-poland2__text-block {
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 40px;
  display: flex;
}

.osterman-poland2__title {
  color: #213059;
  font-size: 56px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 61.6px;
  word-wrap: break-word;
  margin: 0;
  padding: 0;
}

.osterman-poland2__text-main {
  max-width: 632px;
  width: 100%;
  color: #213059;
  font-size: 18px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 28.8px;
  word-wrap: break-word;
  margin: 0;
}

.osterman-poland2__text-note {
  max-width: 632px;
  width: 100%;
  color: #68738b;
  font-size: 16px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 25.6px;
  word-wrap: break-word;
  margin: 0;
}

/* ==============================================
     СЕКЦИЯ "ТРЕТИЙ РАЗДЕЛ ПОЛЬШИ"
     ============================================== */

.osterman-poland3 {
  width: 100%;
  background: #f6f4ee;
  padding: 120px 80px;
  display: flex;
  justify-content: center;
}

.osterman-poland3__container {
  width: 1280px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 120px;
  display: flex;
}

.osterman-poland3__content {
  width: 100%;
  justify-content: space-between;
  align-items: center;
  display: flex;
  gap: 126px;
}

.osterman-poland3__text-block {
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 40px;
  display: flex;
}

.osterman-poland3__title {
  color: #213059;
  font-size: 56px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 61.6px;
  word-wrap: break-word;
  margin: 0;
  padding: 0;
}

.osterman-poland3__text-main {
  max-width: 632px;
  width: 100%;
  color: #213059;
  font-size: 26px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 39px;
  word-wrap: break-word;
  margin: 0;
}

.osterman-poland3__text-note {
  max-width: 632px;
  width: 100%;
  color: #68738b;
  font-size: 16px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 25.6px;
  word-wrap: break-word;
  margin: 0;
}

.osterman-poland3__portrait {
  max-width: 524px;
  width: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  display: flex;
}

.osterman-poland3__portrait img {
  width: 435px;
  height: auto;
  aspect-ratio: 3/4;
  border: 4px #d0b27a solid;
  object-fit: cover;
}

/* ==============================================
     СЕКЦИЯ "ОТСТАВКА"
     ============================================== */

.osterman-retirement {
  width: 100%;
  background: #213059;
  padding: 160px 80px;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.osterman-retirement__container {
  width: 1280px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 120px;
  display: flex;
}

.osterman-retirement__header {
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 40px;
  display: flex;
}

.osterman-retirement__title {
  max-width: 1064px;
  width: 100%;
  text-align: center;
  color: white;
  font-size: 80px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 96px;
  word-wrap: break-word;
  margin: 0;
  padding: 0;
}

.osterman-retirement__subtitle {
  max-width: 1064px;
  width: 100%;
  text-align: center;
  color: white;
  font-size: 56px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 61.6px;
  word-wrap: break-word;
  margin: 0;
  padding: 0;
}

.osterman-retirement__content,
.osterman-retirement__philosopher,
.osterman-retirement__moscow,
.osterman-retirement__emperor,
.osterman-retirement__coat {
  width: 100%;
  justify-content: space-between;
  align-items: center;
  display: flex;
  gap: 126px;
}

.osterman-retirement__text-block {
  max-width: 632px;
  width: 100%;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 40px;
  display: flex;
}

.osterman-retirement__year {
  color: #d0b27a;
  font-size: 136px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 163.2px;
  word-wrap: break-word;
  margin: 0;
  padding: 0;
}

.osterman-retirement__text-main {
  width: 100%;
  color: #e5e7ec;
  font-size: 26px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 39px;
  word-wrap: break-word;
  margin: 0;
}

.osterman-retirement__text-small {
  width: 100%;
  color: #8599c8;
  font-size: 18px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 28.8px;
  word-wrap: break-word;
  margin: 0;
}

.osterman-retirement__text-note {
  width: 100%;
  color: #8599c8;
  font-size: 16px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 25.6px;
  word-wrap: break-word;
  margin: 0;
}

.osterman-retirement__portrait {
  max-width: 524px;
  width: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  display: flex;
}

.osterman-retirement__portrait-frame {
  position: relative;
}

.osterman-retirement__portrait-frame img {
  width: 412px;
  height: auto;
  aspect-ratio: 412/545;
  border-radius: 9999px;
  object-fit: cover;
}

.osterman-retirement__portrait-frame::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 17px;
  width: 429px;
  height: 560px;
  border-radius: 9999px;
  outline: 1px #d0b27a solid;
  z-index: -1;
}

.osterman-retirement__mansion {
  max-width: 524px;
  width: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  display: flex;
}

.osterman-retirement__mansion img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.osterman-retirement__coat-image {
  padding: 24px;
  outline: 1px #d0b27a solid;
  outline-offset: -1px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  width: 448px;
  max-width: 100%;
}

.osterman-retirement__coat-image img {
  width: 400px;
  height: auto;
  aspect-ratio: 800/1333;
  object-fit: cover;
  display: block;
}

.osterman-retirement__legacy {
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 80px;
  display: flex;
}

.osterman-retirement__center-text {
  max-width: 848px;
  width: 100%;
  text-align: center;
  color: #e5e7ec;
  font-size: 26px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 39px;
  word-wrap: break-word;
  margin: 0;
}

.osterman-divider {
  width: 200px;
  height: 1px;
  background: #d0b27a;
}

/* ==============================================
     АДАПТИВ
     ============================================== */

@media (max-width: 991px) {
  .osterman-austria,
  .osterman-poland2,
  .osterman-poland3,
  .osterman-retirement {
    padding: 60px 24px;
  }

  .osterman-austria__container,
  .osterman-poland2__container,
  .osterman-poland3__container,
  .osterman-retirement__container {
    width: 100%;
  }

  .osterman-austria__title,
  .osterman-retirement__title {
    font-size: 48px;
    line-height: 56px;
  }

  .osterman-retirement__subtitle,
  .osterman-poland2__title,
  .osterman-poland3__title {
    font-size: 32px;
    line-height: 38px;
  }

  .osterman-austria__year,
  .osterman-retirement__year {
    font-size: 64px;
    line-height: 72px;
  }

  .osterman-austria__content,
  .osterman-poland2__content,
  .osterman-poland3__content,
  .osterman-retirement__content,
  .osterman-retirement__philosopher,
  .osterman-retirement__moscow,
  .osterman-retirement__emperor,
  .osterman-retirement__coat {
    flex-direction: column;
    gap: 40px;
  }

  .osterman-austria__portrait {
    min-height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .osterman-austria__portrait img {
    width: 100%;
    max-width: 381px;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 9999px;
  }

  .osterman-poland3__portrait img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
  }

  .osterman-retirement__mansion img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
  }

  .osterman-retirement__portrait {
    min-height: 400px;
  }

  .osterman-retirement__portrait-frame {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .osterman-retirement__portrait-frame img {
    width: 100%;
    max-width: 412px;
    height: auto;
    aspect-ratio: 412/545;
    object-fit: cover;
    border-radius: 9999px;
  }

  .osterman-retirement__coat-image {
    width: 100%;
    padding: 16px;
  }

  .osterman-retirement__coat-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 800/1333;
  }
}

/* Адаптив для водолазной кампании */
@media (max-width: 991px) {
  .osterman-diving-wrapper {
    overflow: hidden;
  }

  .osterman-diving__decoration-top {
    display: none;
  }

  .osterman-diving {
    padding: 60px 24px;
  }

  .osterman-diving__container {
    width: 100%;
    gap: 60px;
  }

  .osterman-diving__title {
    width: 100%;
    font-size: 48px;
    line-height: 56px;
  }

  .osterman-diving__content {
    flex-direction: column;
    gap: 40px;
  }

  .osterman-diving__text-block {
    width: 100%;
  }

  .osterman-diving__text-main {
    font-size: 20px;
    line-height: 30px;
  }

  .osterman-diving__text-note {
    width: 100%;
  }

  .osterman-quote--dark {
    width: 100%;
    padding: 40px 24px;
  }

  .osterman-document {
    flex-direction: column;
    gap: 40px;
  }

  .osterman-document__image-wrapper {
    width: 100%;
    padding: 16px;
    display: flex;
  }

  .osterman-document__image {
    width: 100%;
    height: auto;
    aspect-ratio: 840/1121;
  }

  .osterman-document__text-block {
    width: 100%;
  }

  .osterman-document__text-main,
  .osterman-document__text-note {
    width: 100%;
  }
}
@media (max-width: 991px) {
  /* Убрать вертикальные линии */
  .osterman-neutrality__number::before,
  .osterman-neutrality__number::after {
    display: none !important;
  }

  /* Добавить горизонтальную линию справа от кружка */
  .osterman-neutrality__number::after {
    display: block !important;
    top: 50%;
    left: 100%;
    bottom: auto;
    transform: translateY(-50%);
    width: 250px; /* Длина линии */
    height: 2px;
    background: linear-gradient(90deg, #d0b27a 0%, rgba(208, 178, 122, 0) 100%);
  }

  .osterman-neutrality__step {
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
  }

  .osterman-neutrality__step-content {
    padding-top: 20px;
    padding-left: 20px; /* Отступ от линии */
  }
}
@media (max-width: 991px) {
  .osterman-quote {
    padding: 40px 24px;
    width: 100%;
  }

  .osterman-quote__decoration {
    left: 50%;
    transform: translateX(-50%);
    top: -24px;
  }
}
@media (max-width: 991px) {
  /* КРИТИЧНО для THREAT - добавь этот блок */
  .osterman-threat__content {
    flex-direction: column !important;
    width: 100% !important;
  }

  .osterman-threat__portrait-block {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
  }

  .osterman-threat__portrait-block img {
    width: 100%;
    height: auto;
    aspect-ratio: 435/560;
    object-fit: cover;
  }

  .osterman-threat__text-block {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
  }

  .osterman-threat__text-block div,
  .osterman-threat__text-main,
  .osterman-threat__text-note {
    width: 100% !important;
    max-width: 100% !important;
  }
}
/* Интерактив для документов карьеры */
.osterman-career__book-wrapper {
  cursor: pointer;
}

/* Эффект раздвижения при наведении */
.osterman-career__book:hover .osterman-career__book-main {
  transform: rotate(-7deg);
  transition: all 0.4s ease;
}

.osterman-career__book:hover .osterman-career__book-shadow {
  transform: rotate(7deg);
  transition: all 0.4s ease;
}

.osterman-career__book-shadow,
.osterman-career__book-main {
  transition: transform 0.4s ease;
  will-change: transform;
}

/* Лупа */
.osterman-career__zoom-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) !important;
  width: 72px;
  height: 72px;
  padding: 16px;
  background: rgba(208, 178, 122, 0.6);
  border-radius: 50%; /* БЫЛО 40px, СТАЛО 50% для идеального круга */
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.osterman-career__zoom-icon svg {
  display: block;
  width: 40px;
  height: 40px;
}

.osterman-career__zoom-icon svg circle,
.osterman-career__zoom-icon svg line {
  vector-effect: non-scaling-stroke;
}

.osterman-career__book:hover .osterman-career__zoom-icon {
  opacity: 1;
}

/* Модалка */
.osterman-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 14, 19, 0.6);
  backdrop-filter: blur(24px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.osterman-modal.active {
  display: flex;
}

.osterman-modal__content {
  position: relative;
  width: 1440px;
  height: 1113px;
}

.osterman-modal__images {
  position: absolute;
  left: 0px;
  top: 160px;
  width: 1366px;
  height: 712px;
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: flex-start;
  overflow-x: hidden;
  scroll-behavior: smooth;
  z-index: 1;
}

.osterman-modal__images img {
  width: 391px;
  height: 624px;
  opacity: 0.6;
  transition: opacity 0.4s ease, width 0.4s ease, height 0.4s ease;
  flex-shrink: 0;
  cursor: pointer;
  background: rgba(208, 178, 122, 0.1);
}

.osterman-modal__images img[data-src] {
  opacity: 0.3;
}

.osterman-modal__images img.active {
  width: 446px;
  height: 712px;
  opacity: 1;
}

/* Кнопка закрытия - СПРАВА ВВЕРХУ */
.osterman-modal__close {
  position: absolute;
  right: 55px;
  top: 100px;
  width: 64px;
  height: 64px;
  padding: 16px;
  background: rgba(12, 14, 19, 0.4);
  border: none;
  border-radius: 40px;
  cursor: pointer;
  font-size: 32px;
  color: white;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.osterman-modal__close:hover {
  background: rgba(12, 14, 19, 0.6);
}

/* Кнопка ВЛЕВО */
.osterman-modal__prev {
  position: absolute;
  left: -32px;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 64px;
  padding: 16px;
  background: rgba(208, 178, 122, 0.8);
  border: none;
  border-radius: 40px;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Кнопка ВПРАВО */
.osterman-modal__next {
  position: absolute;
  left: 1324px;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 64px;
  padding: 16px;
  background: rgba(208, 178, 122, 0.8);
  border: none;
  border-radius: 40px;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.osterman-modal__prev svg,
.osterman-modal__next svg {
  display: block;
}

/* Подпись - ВНИЗУ ПО ЦЕНТРУ */
.osterman-modal__caption {
  position: absolute;
  left: 296px;
  top: 989px;
  width: 848px;
  text-align: center;
  color: white;
  font-size: 14px;
  font-family: "Golos Text", serif;
  font-weight: 400;
  line-height: 22.4px;
}

/* Скрываем иконку лупы внутри модалки */
.osterman-modal .osterman-career__zoom-icon {
  display: none !important;
}

.osterman-modal__images .osterman-career__zoom-icon {
  display: none !important;
}

/* Адаптив для модалки - СРЕДНИЕ ЭКРАНЫ */
@media (max-width: 1439px) and (min-width: 992px) {
  .osterman-modal__content {
    width: calc(100vw - 80px);
    max-width: 1280px;
    height: auto;
  }

  .osterman-modal__images {
    width: 100%;
    left: 0;
  }

  .osterman-modal__images img {
    width: 30%;
    max-width: 350px;
  }

  .osterman-modal__images img.active {
    width: 35%;
    max-width: 420px;
  }
  .osterman-career__book {
    display: flex;
    justify-content: center;
  }
}

/* Адаптив для модалки - МОБИЛЬНЫЕ */
@media (max-width: 991px) {
  .osterman-modal__content {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
  }

  .osterman-modal__images {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 100%;
    height: 60vh;
    flex-direction: row;
    gap: 20px;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    scroll-snap-type: x mandatory;
  }

  .osterman-modal__images img {
    width: 70%;
    max-width: 300px;
    height: auto;
    opacity: 0.6;
    flex-shrink: 0;
    scroll-snap-align: center;
    background: rgba(208, 178, 122, 0.1);
    aspect-ratio: 391/624;
    object-fit: contain;
  }

  .osterman-modal__images img[data-src] {
    opacity: 0.3;
  }

  .osterman-modal__images img.active {
    width: 85%;
    max-width: 400px;
    height: auto;
    opacity: 1;
    aspect-ratio: 446/712;
    object-fit: contain;
  }

  .osterman-modal__close {
    right: 30px;
    top: 14%;
    width: 48px;
    height: 48px;
    padding: 12px;
  }

  .osterman-modal__prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    padding: 12px;
    z-index: 100;
  }

  .osterman-modal__next {
    left: auto;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    padding: 12px;
    z-index: 100;
  }

  .osterman-modal__caption {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 350px;
    margin-top: 20px;
    padding: 0 20px;
    font-size: 12px;
    line-height: 18px;
  }
}
/* ==============================================
   АДАПТИВ ДЛЯ СРЕДНИХ ЭКРАНОВ 992-1439px
   ============================================== */

@media (min-width: 992px) and (max-width: 1439px) {
  /* === ЛЕНДИНГ === */

  /* Уменьшаем отступы секций */
  .osterman-hero {
    padding: 160px 40px 60px;
  }

  .osterman-childhood,
  .osterman-timeline,
  .osterman-career,
  .osterman-messages,
  .osterman-success,
  .osterman-diving,
  .osterman-tactics,
  .osterman-diplomacy,
  .osterman-neutrality,
  .osterman-ottoman,
  .osterman-crimea,
  .osterman-finland,
  .osterman-threat,
  .osterman-portugal,
  .osterman-austria,
  .osterman-poland2,
  .osterman-poland3,
  .osterman-retirement {
    padding-left: 40px;
    padding-right: 40px;
  }

  /* Контейнеры адаптивные */
  .osterman-timeline__container,
  .osterman-career__container,
  .osterman-diving__container,
  .osterman-tactics__container,
  .osterman-diplomacy__container,
  .osterman-neutrality__container,
  .osterman-ottoman__container,
  .osterman-crimea__container,
  .osterman-finland__container,
  .osterman-threat__container,
  .osterman-portugal__container,
  .osterman-austria__container,
  .osterman-poland2__container,
  .osterman-poland3__container,
  .osterman-retirement__container {
    max-width: 100%;
    width: 100%;
  }

  /* Уменьшаем gap'ы между элементами */
  .osterman-timeline__main,
  .osterman-career__content,
  .osterman-diving__content,
  .osterman-tactics__content,
  .osterman-tactics__row,
  .osterman-diplomacy__content,
  .osterman-diplomacy__franklin,
  .osterman-neutrality__step-content,
  .osterman-ottoman__content,
  .osterman-ottoman__row,
  .osterman-crimea__content,
  .osterman-finland__row,
  .osterman-threat__content,
  .osterman-portugal__content,
  .osterman-austria__content,
  .osterman-poland2__content,
  .osterman-poland3__content,
  .osterman-retirement__content,
  .osterman-retirement__philosopher,
  .osterman-retirement__moscow,
  .osterman-retirement__emperor,
  .osterman-retirement__coat {
    gap: 60px;
  }

  .osterman-portraits {
    gap: 60px;
  }

  .osterman-document {
    gap: 60px;
  }

  /* === МОДАЛКА === */

  .osterman-modal__content {
    width: calc(100vw - 80px);
    max-width: 1360px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .osterman-modal__images {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    max-width: 100%;
    height: 600px;
    margin-top: 160px;
    margin-bottom: 100px;
  }

  .osterman-modal__images img {
    width: 320px;
    height: 512px;
  }

  .osterman-modal__images img.active {
    width: 365px;
    height: 584px;
  }

  /* Кнопка закрытия */
  .osterman-modal__close {
    right: 40px;
    top: 80px;
  }

  /* Кнопки навигации - ОТНОСИТЕЛЬНО КОНТЕЙНЕРА */
  .osterman-modal__prev {
    left: -32px;
    top: 350px;
    transform: none;
  }

  .osterman-modal__next {
    left: auto;
    right: -32px;
    top: 350px;
    transform: none;
  }

  /* Подпись */
  .osterman-modal__caption {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    max-width: 700px;
    padding: 0 40px;
  }
}
/* ========================================
   АДАПТИВ ДЛЯ ВСЕХ БЛОКОВ < 1300px
   ======================================== */

@media (max-width: 1300px) and (min-width: 992px) {
  /* === HERO (первый экран) === */
  .osterman-hero {
    padding-left: 40px;
    padding-right: 40px;
  }

  .osterman-hero__content {
    width: 100%;
    max-width: 800px;
  }

  .osterman-hero__description {
    width: 100%;
    max-width: 600px;
  }

  /* === CHILDHOOD (детство) === */
  .osterman-childhood {
    padding-left: 40px;
    padding-right: 40px;
  }

  .osterman-childhood__container {
    width: 100%;
    max-width: 100%;
  }

  .osterman-childhood__text {
    width: 100%;
    max-width: 600px;
  }

  /* === TIMELINE (хронология) === */
  .osterman-timeline {
    padding-left: 40px;
    padding-right: 40px;
  }

  .osterman-timeline__container {
    width: 100%;
    max-width: 100%;
  }

  .osterman-timeline__title {
    width: 100%;
    max-width: 1000px;
  }

  .osterman-timeline__description,
  .osterman-timeline__description-note {
    width: 100%;
    max-width: 600px;
  }

  /* === CAREER (карьера) === */
  .osterman-career {
    padding-left: 40px;
    padding-right: 40px;
  }

  .osterman-career__header {
    width: 100%;
  }

  .osterman-career__title {
    width: 100%;
    max-width: 1000px;
  }

  .osterman-career__subtitle {
    width: 100%;
    max-width: 600px;
  }

  .osterman-career__content {
    width: 100%;
    max-width: 100%;
    gap: 60px;
  }

  .osterman-career__text-block {
    width: 100%;
    flex: 1;
  }

  .osterman-career__text-main,
  .osterman-career__text-note-content {
    width: 100%;
    max-width: 100%;
  }

  /* === QUOTE (цитаты) - ИСПРАВЛЕНО === */
  .osterman-quote {
    width: 100%;
    max-width: 100%;
    padding: 89px 40px 64px 40px;
    overflow: visible !important; /* Чтобы кавычки не обрезались */
    position: relative;
  }

  .osterman-quote__decoration {
    left: 50%;
    transform: translateX(-50%);
    top: -24px;
    z-index: 10;
  }

  .osterman-quote--dark {
    width: 100%;
    max-width: 100%;
    overflow: visible !important;
  }

  /* === PORTRAITS (портреты) === */
  .osterman-portraits {
    gap: 60px;
    width: 100%;
    max-width: 100%;
  }

  .osterman-portraits__text {
    width: 100%;
    max-width: 450px;
  }

  .osterman-portraits__images {
    gap: 12px;
    flex-wrap: nowrap;
  }

  .osterman-portraits__item {
    width: 280px;
    flex-shrink: 0;
  }

  .osterman-portraits__image {
    width: 280px;
    height: auto;
  }

  /* === MESSAGES (сообщения) === */
  .osterman-messages {
    padding-left: 40px;
    padding-right: 40px;
  }

  .osterman-messages__title {
    width: 100%;
    max-width: 1000px;
  }

  .osterman-messages__subtitle {
    width: 100%;
    max-width: 600px;
  }

  .osterman-messages__image {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .osterman-messages__caption {
    width: 100%;
    max-width: 600px;
  }

  /* === SUCCESS (успехи) === */
  .osterman-success {
    padding-left: 40px;
    padding-right: 40px;
  }

  .osterman-success__title {
    width: 100%;
    max-width: 1000px;
  }

  .osterman-success__subtitle {
    width: 100%;
    max-width: 1000px;
  }

  .osterman-success__content {
    width: 100%;
    max-width: 100%;
    gap: 60px;
  }

  .osterman-success__text-block {
    width: 100%;
    flex: 1;
  }

  .osterman-success__text-main,
  .osterman-success__text-note {
    width: 100%;
    max-width: 100%;
  }

  /* Удалено - конфликтовало с глобальным фиксом */

  .osterman-success__portrait-block {
    width: 100%;
    max-width: 450px;
  }

  .osterman-success__portrait {
    width: 100%;
    max-width: 400px;
    height: auto;
  }

  .osterman-success__center-text {
    width: 100%;
    max-width: 800px;
  }

  /* === DIVING (погружение) === */
  .osterman-diving {
    padding-left: 40px;
    padding-right: 40px;
  }

  .osterman-diving__container {
    width: 100%;
    max-width: 100%;
  }

  .osterman-diving__title {
    width: 100%;
    max-width: 1000px;
  }

  .osterman-diving__content {
    gap: 60px;
  }

  .osterman-diving__text-block {
    width: 100%;
    max-width: 550px;
  }

  .osterman-diving__text-main,
  .osterman-diving__text-note {
    width: 100%;
    max-width: 100%;
  }

  /* === DOCUMENT (документы) - ИСПРАВЛЕНО === */
  .osterman-document {
    gap: 60px;
  }

  .osterman-document__image-wrapper {
    flex-shrink: 0;
    width: 100%;
    max-width: 420px;
  }

  .osterman-document__image {
    width: 100% !important;
    max-width: 380px !important;
    height: auto !important;
    aspect-ratio: 840/1121 !important;
    object-fit: contain !important;
  }

  .osterman-document__text-block {
    width: 100%;
    flex: 1;
  }

  .osterman-document__text-main,
  .osterman-document__text-note {
    width: 100%;
    max-width: 100%;
  }

  /* === FACTIONS (фракции) === */
  .osterman-factions__cards {
    gap: 12px;
    flex-wrap: wrap;
  }

  .osterman-factions__card {
    width: 100%;
    max-width: calc(50% - 6px);
    min-width: 400px;
  }

  /* === ОБЩИЕ ФИКСЫ === */

  /* Все контейнеры адаптивные */
  .container {
    width: 100%;
    padding: 0 40px;
  }

  /* Все изображения не вылезают */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Все текстовые блоки */
  .osterman-childhood__container,
  .osterman-timeline__container,
  .osterman-career__container,
  .osterman-messages__container,
  .osterman-success__container,
  .osterman-diving__container {
    width: 100%;
    max-width: 100%;
  }
}

/* Дополнительный фикс для очень узких экранов 1200-1300px */
@media (max-width: 1300px) and (min-width: 1200px) {
  .osterman-portraits__images {
    overflow-x: auto;
    scroll-behavior: smooth;
  }

  .osterman-factions__card {
    min-width: 350px;
  }
}

/* Критический фикс - ничего не выходит за границы экрана */
@media (max-width: 1300px) {
  /* Блокируем горизонтальную прокрутку */
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* Все секции с фиксированной шириной */
  section,
  .osterman-hero,
  .osterman-childhood,
  .osterman-timeline,
  .osterman-career,
  .osterman-messages,
  .osterman-success,
  .osterman-diving,
  .osterman-quote {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Кроме quote - для него overflow: visible чтобы кавычки не обрезались */
  .osterman-quote,
  .osterman-quote--dark {
    overflow: visible !important;
  }

  /* Все большие изображения (кроме success__image) */
  .osterman-timeline__image,
  .osterman-messages__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* ВАЖНО: Ограничиваем размер документов */
  .osterman-document__image {
    max-width: 380px !important;
    width: 100% !important;
    height: auto !important;
  }
}

/* ========================================
   ГЛОБАЛЬНЫЙ ФИКС ДЛЯ ИЗОБРАЖЕНИЙ
   (применяется на десктопах и планшетах)
   ======================================== */

/* Фикс для 12.webp - идеальные размеры 356x560 */
@media (min-width: 992px) {
  .osterman-success__image {
    width: 356px !important;
    max-width: 356px !important;
    min-width: 356px !important;
    height: auto !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
  }
}

/* Дополнительный фикс для экранов 1320-1350px */
@media (max-width: 1350px) and (min-width: 1320px) {
  /* Уменьшаем боковые отступы */
  .osterman-quote {
    padding-left: 30px;
    padding-right: 30px;
  }

  /* Все контейнеры с фиксированной шириной делаем адаптивными */
  .osterman-timeline__container,
  .osterman-career__container,
  .osterman-career__content,
  .osterman-diving__container,
  .osterman-tactics__container,
  .osterman-diplomacy__container,
  .osterman-messages__image,
  .osterman-success__content,
  .osterman-neutrality__container,
  .osterman-ottoman__container,
  .osterman-crimea__container,
  .osterman-finland__container,
  .osterman-threat__container,
  .osterman-portugal__container,
  .osterman-austria__container,
  .osterman-poland2__container,
  .osterman-poland3__container,
  .osterman-retirement__container {
    max-width: 100%;
  }

  /* Фото тоже не должны вылезать */
  .osterman-messages__image {
    width: 100%;
    height: auto;
  }
}
