/* ШРИФТЫ */
@font-face {
  font-family: 'pf_din_text_cond_pro';
  src: url('/pub/fonts/PFDinTextCondPro-Regular-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'pf_din_text_cond_pro';
  src: url('/pub/fonts/PFDinTextCondPro-Medium-webfont.woff') format('woff');
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: 'pf_din_text_cond_pro';
  src: url('/pub/fonts/PFDinTextCondPro-Bold-webfont.woff') format('woff');
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: 'gotham_pro';
  src: url("/pub/fonts/gothampro-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'gotham_pro';
  src: url("/pub/fonts/gothampro-bold-webfont.woff") format("woff");
  font-weight: bold;
  font-style: normal;
}

/* БАЗОВЫЕ СТИЛИ */
* {
  box-sizing: border-box;
  outline: none;
}

html, body {
  font-family: 'pf_din_text_cond_pro', sans-serif;
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 24px;
  color: #484848;
  overflow-x: hidden;
}

a {
  color: #155596;
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}

.clearfix:after {
  content: ".";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}

/* ==========================================================================
   ГЛАВНЫЙ СЛАЙДЕР
   ========================================================================== */
.main-slider-wrapper {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.main-slider {
    width: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-slider.slick-initialized {
    opacity: 1;
}

.slide {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    outline: none;
}

.slide-bg {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-text {
    position: absolute;
    right: 12%;
    top: 0;
    width: 400px;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.slide-text .ttl {
    font-size: 24px;
    font-weight: bold;
    line-height: 1.2;
    word-wrap: break-word;
}

.slide a {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   БЛОК ДОСТИЖЕНИЙ
   ========================================================================== */
.home-block-stats {
    height: 350px;
    margin: 0px 0px;
    background: url(https://amr.ru/images/block-stats-bg.jpg) center center no-repeat;
    background-size: cover;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    align-items: center;
}

.home-block-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(21, 85, 150, 0.6);
    z-index: 2;
}

.stats-slider .slide {
    text-align: center;
    padding: 0 15px;
    height: auto;
}

.stats-slider .num h2 {
    font-size: 48px;
    font-weight: bold;
    margin: 0 0 15px 0;
    color: #ffffff;
    line-height: 1;
}

.stats-slider .text {
    font-size: 16px;
    line-height: 1.4;
    color: #ffffff;
    opacity: 0.9;
}

/* ==========================================================================
   БЛОК КОМИТЕТОВ
   ========================================================================== */
.home-block-com {
    padding: 80px 0;
    background: #f6f6f6;
}

.com-header {
    display: flex;
    margin-bottom: 40px;
    gap: 40px;
}

.com-ttl {
    flex: 1;
}

.com-ttl h2 {
    font-size: 36px;
    line-height: 1.2;
    color: #000;
    margin: 0;
    font-family: 'Times New Roman', Times;
}

.com-descr {
    flex: 1;
    padding-top: 10px;
}

.com-descr p {
    font-size: 16px;
    line-height: 1.5;
    color: #484848;
    margin: 0;
    font-family: 'Times New Roman', Times;
}

.tabbed-content {
    width: 100%;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    margin-bottom: 30px;
}

.tab {
    flex: 0 0 calc(12%);
    text-align: center;
    box-sizing: border-box;
    padding: 10px 5px;
    font-size: 14px;
    font-weight: 600;
    background: #f0f0f0;
    border: 1px solid #e3d6c7;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 5px;
}

.tab:hover {
    background: #e8e8e8;
}

.tab.act {
    background: #155596;
    color: white;
    border-color: #155596;
}

.tabs-content {
    width: 100%;
}

.tab-content {
    display: none;
    width: 100%;
}

.tab-content.act {
    display: block;
}

.tab-content-inner {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.com-tab-descr {
    flex: 1;
}

.com-tab-descr h3 {
    font-size: 24px;
    line-height: 1.3;
    color: #000;
    margin: 0 0 20px 0;
}

.com-tab-descr h3 a {
    color: #155596;
    text-decoration: none;
}

.com-tab-descr h3 a:hover {
    text-decoration: underline;
}

.com-tab-descr p {
    font-size: 16px;
    line-height: 1.5;
    color: #484848;
    margin: 0 0 20px 0;
}

.hr {
    height: 1px;
    background: #e3d6c7;
    margin: 20px 0;
}

.com-tab-pic {
    flex: 0 0 300px;
}

.com-tab-pic img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

/* ==========================================================================
   БЛОК КАЛЕНДАРЯ
   ========================================================================== */
.home-block-calendar {
    height: 490px;
    margin: 0px 0px;
    background: url(https://amr.ru/images/block-calendar-bg.jpg) center center no-repeat;
    background-size: cover;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    align-items: center;
}

.home-block-calendar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(21, 85, 150, 0.6);
    z-index: 2;
}

.calendar-slider-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.calendar-slider {
    width: 100%;
}

.calendar-slider .slide {
    margin: 0 10px;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    height: 220px;
    width: 320px;
    display: flex !important;
    flex-direction: column;
}

.calendar-slider .slide:hover {
    box-shadow: 0 5px 15px rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.calendar-slider .slide a {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
    color: inherit;
    text-decoration: none;
}

.calendar-slider .date {
    font-size: 18px;
    font-weight: bold;
    color: #e3d6c7;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e3d6c7;
}

.calendar-slider .text {
    font-size: 16px;
    line-height: 1.4;
    color: #fff;
    flex-grow: 1;
}

.calendar-slider .text p {
    margin: 0;
    color: #fff;
}

/* ==========================================================================
   БЛОК НОВОСТЕЙ
   ========================================================================== */
.home-block-press {
    margin: 0 -186px;
    padding: 50px 186px;
    background: #f6f6f6 url(https://amr.ru/images/block-press-bg.jpg) 0 0 no-repeat;
    position: relative;
}

.home-press {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
}

.home-press-l {
    flex: 2;
}

.home-press-r {
    flex: 1;
}

.home-press h3 {
    font-size: 24px;
    color: #000;
    margin: 0 0 20px 0;
    font-family: 'Times New Roman', Times;
}

.row {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.home-press-l .row {
    flex-direction: row;
    gap: 20px;
}

.news-item-med {
    display: block;
    color: inherit;
    text-decoration: none;
    border: 1px solid #e3d6c7;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s;
    flex: 1;
}

.news-item-med:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.news-item-small {
    display: flex;
    color: inherit;
    text-decoration: none;
    border: 1px solid #e3d6c7;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s;
    gap: 15px;
    padding: 15px;
}

.news-item-small:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.news-item-med .pic {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-item-med .pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-item-small .pic {
    flex: 0 0 80px;
    height: 60px;
    overflow: hidden;
    border-radius: 3px;
}

.news-item-small .pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-item-med .descr {
    padding: 20px;
}

.news-item-small .descr {
    flex: 1;
}

.ttl {
    margin-bottom: 10px;
}

.ttl-text {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    line-height: 1.3;
}

.news-item-small .ttl-text {
    font-size: 14px;
}

.news-item-med .text {
    font-size: 14px;
    line-height: 1.4;
    color: #666;
    margin-bottom: 15px;
}

.news-item-med .date,
.news-item-small .date {
    font-size: 12px;
    color: #999;
    border-top: 1px solid #e3d6c7;
    padding-top: 10px;
}

.news-item-small .date {
    border-top: none;
    padding-top: 5px;
}

.home-press-footer {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    border-top: 1px solid #e3d6c7;
    padding-top: 20px;
}

/* ==========================================================================
   БЛОК ПРОЕКТОВ
   ========================================================================== */
.home-block-projects {
    margin: 0px 0px;
    padding: 50px 0px;
    background: #f6f6f6;
    position: relative;
}

.projects-accordion {
    display: flex;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.projects-accordion-item {
    position: relative;
    display: block;
    color: white;
    text-decoration: none;
    transition: all 0.5s ease;
    overflow: hidden;
    cursor: pointer;
}

.projects-accordion-item:first-child {
    flex: 2;
}

.projects-accordion-item:not(:first-child) {
    flex: 1;
}

.projects-accordion-item.act {
    flex: 2 !important;
}

.projects-accordion-item:not(.act) {
    flex: 1 !important;
}

.projects-accordion-item .pic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.projects-accordion-item .pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.projects-accordion-item:hover .pic img {
    transform: scale(1.05);
}

.projects-accordion-item .logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: all 0.5s ease;
}

.projects-accordion-item.act .logo {
    left: 25%;
    transform: translate(-50%, -50%);
}

.projects-accordion-item .cont {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
}

.projects-accordion-item.act .cont {
    width: 200px;
}

.projects-accordion-item:not(.act) .cont {
    width: 120px;
}

.projects-accordion-item .cont img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.3));
}

.projects-accordion-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 1;
    transition: background 0.3s ease;
}

.projects-accordion-item:hover::before {
    background: rgba(0,0,0,0.2);
}

.projects-accordion-item.act::before {
    background: rgba(0,0,0,0.1);
}

/* ==========================================================================
   ОБЩИЕ СТИЛИ
   ========================================================================== */
.block-content {
    width: 100%;
    max-width: 988px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 3;
}

.block-content h2 {
    font-size: 36px;
    color: #000;
    margin: 0 0 40px 0;
    text-align: center;
    font-family: 'Times New Roman', Times;
}

.home-block-calendar .block-content h2,
.home-block-stats .block-content h2 {
    color: #fff;
}

.more-link {
    color: #155596;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Times New Roman', Times;
}

.more-link:hover {
    text-decoration: underline;
}

.home-block-calendar .more-link {
    display: block;
    text-align: center;
    color: #fff;
    margin-top: 20px;
}

.loading {
    text-align: center;
    padding: 50px;
    font-size: 18px;
}

/* ==========================================================================
   СТИЛИ СЛАЙДЕРОВ
   ========================================================================== */
.slick-prev, .slick-next {
    position: absolute;
    width: 62px;
    height: 62px;
    background-image: url(https://amr.ru/images/main-slider-arrows.png);
    background-repeat: no-repeat;
    background-color: transparent;
    border: none;
    outline: none;
    top: 50%;
    margin-top: -31px;
    opacity: .5;
    transition: all .2s ease;
    text-indent: -10000px;
    cursor: pointer;
    z-index: 4;
}

.slick-prev:hover, .slick-next:hover {
    opacity: 1;
}

.slick-prev {
    left: -60px;
}

.slick-next {
    right: -60px;
    background-position: -62px 0;
}

.slick-prev:before,
.slick-next:before {
    content: '';
}

.slick-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex !important;
    gap: 10px;
    z-index: 10;
}

.slick-dots li {
    width: 12px;
    height: 12px;
}

.slick-dots li button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 0;
    transition: background 0.3s;
    padding: 0;
}

.slick-dots li.slick-active button {
    background: white;
}

/* ==========================================================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ========================================================================== */
@media (max-width: 1200px) {
    .block-content {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .home-block-press {
        margin: 0;
        padding: 50px 15px;
    }
}

@media (max-width: 768px) {
    /* ОБЩИЕ МОБИЛЬНЫЕ СТИЛИ */
    .block-content {
        padding: 0 10px;
    }
    
    .block-content h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    /* ГЛАВНЫЙ СЛАЙДЕР */
    .slide {
        height: 250px;
    }
    
    .slide-text {
        position: absolute;
        left: 5%;
        right: 5%;
        top: 50%;
        transform: translateY(-50%);
        width: auto;
        height: auto;
        padding: 15px;
        border-radius: 5px;
    }
    
    .slide-text .ttl {
        font-size: 18px;
    }
    
    .slick-prev {
        left: 10px;
        width: 40px;
        height: 40px;
        margin-top: -20px;
        background-size: 80px 40px;
    }
    
    .slick-next {
        right: 10px;
        width: 40px;
        height: 40px;
        margin-top: -20px;
        background-size: 80px 40px;
        background-position: -40px 0;
    }
    
    /* БЛОК ДОСТИЖЕНИЙ */
    .home-block-stats {
        height: auto;
        padding: 40px 0;
    }
    
    .stats-slider .num h2 {
        font-size: 36px;
    }
    
    .stats-slider .text {
        font-size: 14px;
    }
    
    /* БЛОК КОМИТЕТОВ */
    .home-block-com {
        padding: 40px 0;
    }
    
    .com-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .com-ttl h2 {
        font-size: 28px;
    }
    
    .tabs {
        flex-direction: raw;
        gap: 5px;
    }
    
    .tab {
        flex: none;
        text-align: center;
        padding: 15px;
        font-size: 16px;
    }
    
    .tab-content-inner {
        flex-direction: column;
        gap: 20px;
    }
    
    .com-tab-pic {
        flex: none;
        order: -1;
    }
    
    .com-tab-descr h3 {
        font-size: 20px;
    }
    
    /* БЛОК КАЛЕНДАРЯ */
    .home-block-calendar {
        height: auto;
        padding: 40px 0;
    }
    
    .calendar-slider .slide {
        width: 280px;
        height: 200px;
        margin: 0 5px;
    }
    
    .calendar-slider .slide a {
        padding: 15px;
    }
    
    .calendar-slider .text {
        font-size: 14px;
    }
    
    /* БЛОК НОВОСТЕЙ */
    .home-block-press {
        padding: 40px 10px;
        background-position: top right;
        background-size: 50% auto;
    }
    
    .home-press {
        flex-direction: column;
        gap: 30px;
    }
    
    .home-press-l .row {
        flex-direction: column;
    }
    
    .home-press h3 {
        font-size: 20px;
    }
    
    .home-press-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    /* БЛОК ПРОЕКТОВ */
    .home-block-projects {
        padding: 40px 0;
    }
    
    .projects-accordion {
        flex-direction: column;
        height: auto;
    }
    
    .projects-accordion-item {
        height: 150px;
        flex: none !important;
    }
    
    .projects-accordion-item.act .logo,
    .projects-accordion-item .logo {
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
    
    .projects-accordion-item .cont {
        height: 60px;
    }
    
    .projects-accordion-item.act .cont,
    .projects-accordion-item:not(.act) .cont {
        width: 150px;
    }
}

@media (max-width: 480px) {
    /* ЭКСТРА МОБИЛЬНЫЕ СТИЛИ */
    .block-content {
        padding: 0 5px;
    }
    
    .block-content h2 {
        font-size: 24px;
    }
    
    .slide {
        height: 200px;
    }
    
    .slide-text {
        padding: 10px;
    }
    
    .slide-text .ttl {
        font-size: 16px;
    }
    
    .calendar-slider .slide {
        width: 250px;
        height: 180px;
    }
    
    .calendar-slider .slide a {
        padding: 10px;
    }
    
    .tab {
        padding: 12px;
        font-size: 14px;
    }
    
    .com-tab-descr h3 {
        font-size: 18px;
    }
    
    .com-tab-descr p {
        font-size: 14px;
    }
    
    .projects-accordion-item {
        height: 120px;
    }
    
    .projects-accordion-item .cont {
        height: 50px;
    }
    
    .projects-accordion-item.act .cont,
    .projects-accordion-item:not(.act) .cont {
        width: 120px;
    }
}

/* ==========================================================================
   ЛАНДШАФТНАЯ ОРИЕНТАЦИЯ НА МОБИЛЬНЫХ
   ========================================================================== */
@media (max-width: 768px) and (orientation: landscape) {
    .slide {
        height: 300px;
    }
    
    .home-block-stats,
    .home-block-calendar {
        height: auto;
        min-height: 300px;
    }
    
    .projects-accordion-item {
        height: 180px;
    }
}

/* ==========================================================================
   ПОРТРЕТНАЯ ОРИЕНТАЦИЯ НА МОБИЛЬНЫХ
   ========================================================================== */
@media (max-width: 768px) and (orientation: portrait) {
    .slide {
        height: 220px;
    }
    
    .slide-text {
        left: 10px;
        right: 10px;
        bottom: 10px;
        top: auto;
        transform: none;
        background: rgba(0, 0, 0, 0.7);
    }
    
    .home-block-stats {
        padding: 30px 0;
    }
    
    .home-block-calendar {
        padding: 30px 0;
    }
    
    .home-block-com {
        padding: 30px 0;
    }
    
    .home-block-projects {
        padding: 30px 0;
    }
    
    .home-block-press {
        padding: 30px 5px;
    }
}

/* Добавить в конец файла main.css */

/* ==========================================================================
   ИСПРАВЛЕНИЯ ДЛЯ МОБИЛЬНОЙ ВЕРСИИ
   ========================================================================== */

@media (max-width: 768px) and (orientation: landscape) {
    /* АЛЬБОМНАЯ ОРИЕНТАЦИЯ НА МОБИЛЬНЫХ */
    
    /* Главный слайдер - убираем текст, уменьшаем высоту */
    .slide {
        height: 200px !important;
    }
    
    .slide-text {
        display: none !important; /* Полностью скрываем текст в альбомной ориентации */
    }
    
    /* Комитеты - горизонтальное меню */
    .tabs {
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .tab {
        flex: 0 0 calc(25% - 5px) !important; /* 4 колонки */
        font-size: 12px;
        padding: 8px 4px;
    }
    
    /* Уменьшаем отступы блоков */
    .home-block-stats,
    .home-block-calendar {
        padding: 20px 0 !important;
    }
    
    .home-block-com,
    .home-block-projects {
        padding: 30px 0 !important;
    }
    
    .home-block-press {
        padding: 30px 5px !important;
    }
    
    /* Календарь - меньше слайдов */
    .calendar-slider .slide {
        width: 200px !important;
        height: 150px !important;
    }
    
    /* Проекты - меньшая высота */
    .projects-accordion-item {
        height: 100px !important;
    }
    
    .projects-accordion-item .cont {
        height: 40px !important;
    }
}

@media (max-width: 480px) and (orientation: landscape) {
    /* ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ В АЛЬБОМНОЙ ОРИЕНТАЦИИ */
    
    .slide {
        height: 150px !important;
    }
    
    .tab {
        flex: 0 0 calc(50% - 5px) !important; /* 2 колонки на очень маленьких экранах */
    }
    
    .calendar-slider .slide {
        width: 180px !important;
        height: 120px !important;
    }
    
    .projects-accordion-item {
        height: 80px !important;
    }
}

/* Исправления для высоты iframe */
@media (max-width: 768px) {
    .iframe-content iframe {
        min-height: 200px !important;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .iframe-content iframe {
        min-height: 150px !important;
    }
}

.content-block {
    margin: 0;
    padding: 0;
    width: 100%;
}

.loading {
    text-align: center;
    padding: 50px;
    color: #666;
    font-style: italic;
    background: #f5f5f5;
    border-radius: 8px;
    margin: 20px;
}

.error-block {
    text-align: center;
    padding: 50px;
    color: #d32f2f;
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 4px;
    margin: 20px;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .home-block-about {
        padding: 30px 20px !important;
    }
    
    .home-block-about video {
        width: 100% !important;
        height: auto !important;
    }
    
    .home-block-about table {
        width: 100% !important;
    }
    
    .home-block-about td {
        display: block !important;
        width: 100% !important;
    }
}