/* =========================================================
   РИА Социальные коммуникации — Main Stylesheet
   Colors: #f1dcc9 beige | #6c2d2c wine | #42313a dark-brown
   Fonts: PT Serif (→MediatorSerif) | PT Sans (→Mediator)
   ========================================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'PT Sans', Arial, sans-serif;
    font-weight: 300;
    color: #000;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #000;
    text-decoration: none;
}
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

ul, ol { padding-left: 20px; margin: 0 0 10px; }

/* --- Container --- */
.rsc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
    background-color: #f1dcc9;
    padding: 15px 0 30px;
}

.site-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
}

.site-header__logo {
    flex-shrink: 0;
    width: 350px;
}
.site-header__logo img {
    width: 100%;
    height: auto;
}

.site-header__tagline {
    padding-left: 100px;
    font-family: 'PT Sans', Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    font-style: italic;
    color: #42313a;
    line-height: 1.55;
}

.site-header__tagline strong {
    font-weight: 700;
}

/* --- Divider --- */
.site-divider {
    background-color: #f1dcc9;
    padding: 0;
}
.site-divider__line {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}
.site-divider__line::after {
    content: '';
    display: block;
    height: 1px;
    background: #000;
    opacity: 0.2;
}

/* --- Site Title Block --- */
.site-title-block {
    background-color: #f1dcc9;
    padding: 0 0 30px;
    text-align: center;
}

.site-title-block__title {
    font-family: 'PT Serif', Georgia, serif;
    color: #6c2d2c;
    line-height: 1.23;
    padding: 8px 0 3px;
    margin: 0;
}

.site-title-block__title .line-light {
    font-size: 52px;
    font-weight: 300;
    display: block;
}
.site-title-block__title .line-normal {
    font-size: 52px;
    font-weight: 600;
    display: block;
}

/* =========================================================
   TAB NAVIGATION
   ========================================================= */
.tab-navigation {
    background: #fff;
}

.tab-navigation__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.tabs {
    display: table;
    width: 66.66%;
    margin: 0 auto;
    list-style: none;
    padding: 0;
    border-radius: 3px;
    overflow: hidden;
}

.tab {
    display: table-cell;
    vertical-align: middle;
    width: 25%;
    border: 1px solid #f1dcc9;
    border-right: none;
    background: #fff;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.tab:first-child {
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
}
.tab:last-child {
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    border-right: 1px solid #f1dcc9;
}

.tab button {
    width: 100%;
    height: 100%;
    padding: 14px 16px;
    box-sizing: border-box;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: 'PT Serif', Georgia, serif;
    font-size: 18px;
    font-weight: 400;
    color: #000;
    text-align: center;
    line-height: 1.35;
    transition: color 0.2s ease, font-weight 0.2s ease;
}

.tab.is-active {
    background-color: #f1dcc9;
    border-color: #f1dcc9;
}
.tab.is-active button {
    font-weight: 600;
    color: #000;
    cursor: default;
}

/* Mobile tab select */
.tab-select-wrapper {
    display: none;
    border: 1px solid #f1dcc9;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}
.tab-select-wrapper::after {
    content: '';
    width: 0; height: 0;
    border-style: solid;
    border-width: 5px 4px 0;
    border-color: #000 transparent transparent;
    position: absolute;
    top: 50%; right: 20px;
    transform: translateY(-50%);
    pointer-events: none;
}
.tab-select {
    -webkit-appearance: none;
    padding: 14px 20px;
    width: 100%;
    background: #f1dcc9;
    border: none;
    outline: none;
    font-family: 'PT Serif', Georgia, serif;
    font-size: 16px;
    color: #000;
}

/* =========================================================
   TAB PANELS
   ========================================================= */
.tab-panel {
    display: none;
}
.tab-panel.is-active {
    display: block;
}

/* =========================================================
   SECTION HEADER (Title + Description inside a tab panel)
   ========================================================= */
.section-header {
    text-align: center;
    padding: 135px 20px 90px;
    margin: 0 auto;
}

.section-header__title {
    font-family: 'PT Serif', Georgia, serif;
    font-size: 42px;
    font-weight: 600;
    color: #000;
    line-height: 1.23;
    margin: 0 0 90px;
}

.section-header__descr {
    font-family: 'PT Serif', Georgia, serif;
    font-size: 24px;
    font-weight: 300;
    color: #000;
    line-height: 1.5;
    max-width: 560px;
    margin: 0 auto 90px;
}

/* =========================================================
   FEED (news list)
   ========================================================= */
.feed-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 135px;
}

.feed-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 75%;
    margin-left: 8.333%;
}

.feed-post {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 30px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.feed-post:first-child { padding-top: 0; }
.feed-post:last-child { border-bottom: none; }

.feed-post__image-wrap {
    flex-shrink: 0;
    width: 260px;
}
.feed-post__image-wrap a {
    display: block;
    position: relative;
    padding-top: 75%;
    overflow: hidden;
    background: #f1dcc9;
}
.feed-post__image-wrap a img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.feed-post__image-wrap a:hover img { transform: scale(1.03); }

.feed-post__image-placeholder {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #f1dcc9;
}

.feed-post__content {
    flex: 1;
    min-width: 0;
}

.feed-post__date {
    font-family: 'PT Sans', Arial, sans-serif;
    font-size: 14px;
    color: #000;
    margin-bottom: 8px;
}

.feed-post__tags {
    margin-bottom: 8px;
}
.feed-post__tag {
    display: inline-block;
    font-family: 'PT Sans', Arial, sans-serif;
    font-size: 13px;
    color: #000;
    border: 1px solid #000;
    border-radius: 40px;
    padding: 3px 14px;
    margin-right: 6px;
    margin-bottom: 6px;
    transition: background 0.2s, color 0.2s;
}
.feed-post__tag:hover {
    background: #000;
    color: #fff;
    text-decoration: none;
}

.feed-post__title {
    font-family: 'PT Serif', Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    color: #000;
    line-height: 1.35;
    margin: 0 0 10px;
}
.feed-post__title a { color: inherit; }
.feed-post__title a:hover { text-decoration: underline; }

.feed-post__excerpt {
    font-family: 'PT Sans', Arial, sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #333;
    line-height: 1.55;
    margin: 0;
}

/* Load more button */
.load-more-wrapper {
    text-align: center;
    margin-top: 40px;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    padding: 0 60px;
    background-color: #f1dcc9;
    color: #000;
    border: none;
    border-radius: 3px;
    font-family: 'PT Serif', Georgia, serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
}
.btn-load-more:hover { background-color: #e8caaf; }
.btn-load-more:disabled { opacity: 0.5; cursor: default; }
.btn-load-more.is-loading::after {
    content: '...';
    margin-left: 6px;
}

/* =========================================================
   ABOUT SECTION (Об агентстве tab)
   ========================================================= */
.about-section {
    padding: 135px 20px 0;
    text-align: center;
}

.about-section__inner {
    max-width: 560px;
    margin: 0 auto 75px;
}

.about-section__title {
    font-family: 'PT Serif', Georgia, serif;
    font-size: 42px;
    font-weight: 600;
    color: #000;
    line-height: 1.23;
    margin: 0 0 40px;
}

.about-section__text {
    font-family: 'PT Serif', Georgia, serif;
    font-size: 24px;
    font-weight: 300;
    color: #000;
    line-height: 1.5;
}
.about-section__text p { margin: 0 0 10px; }

/* About slider */
.about-slider {
    max-width: 1200px;
    margin: 0 auto;
    padding: 90px 40px 90px;
}

.about-slider__images {
    position: relative;
    width: 75%;
    margin: 0 auto;
}

.about-slider__track {
    position: relative;
    overflow: hidden;
}
.about-slider__slide {
    display: none;
}
.about-slider__slide.is-active {
    display: block;
}
.about-slider__slide img {
    width: 100%;
    height: auto;
}

.about-slider__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px; height: 40px;
    background: rgba(232,232,232,1);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.about-slider__btn--prev { left: -60px; }
.about-slider__btn--next { right: -60px; }

.about-slider__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}
.about-slider__dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #c7c7c7;
    border: none;
    cursor: pointer;
    padding: 0;
}
.about-slider__dot.is-active { background: #222; }

/* Address section */
.address-section {
    padding: 0 20px 150px;
    text-align: center;
}
.address-section__inner {
    max-width: 560px;
    margin: 0 auto 75px;
}
.address-section__title {
    font-family: 'PT Serif', Georgia, serif;
    font-size: 42px;
    font-weight: 600;
    color: #000;
    margin: 0 0 40px;
}
.address-section__text {
    font-family: 'PT Serif', Georgia, serif;
    font-size: 24px;
    font-weight: 300;
    color: #000;
    line-height: 1.5;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
    background-color: #f1dcc9;
}

.site-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 40px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.site-footer__copy {
    font-family: 'PT Sans', Arial, sans-serif;
    font-size: 16px;
    color: #42313a;
    font-weight: 400;
    line-height: 1.55;
    flex-shrink: 0;
    margin-right: auto;
    padding-right: 50px;
}

.site-footer__menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0 15px;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: flex-end;
}

.site-footer__menu-link {
    font-family: 'PT Sans', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #42313a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.site-footer__menu-link:hover { text-decoration: underline; }

/* =========================================================
   SCROLL TO TOP
   ========================================================= */
.scroll-top {
    position: fixed;
    left: 30px;
    bottom: 30px;
    z-index: 100000;
    display: none;
}
.scroll-top.is-visible { display: block; }

.scroll-top__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* =========================================================
   SINGLE POST
   ========================================================= */
.single-post {
    max-width: 860px;
    margin: 60px auto;
    padding: 0 40px 80px;
}

.single-post__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'PT Sans', Arial, sans-serif;
    font-size: 14px;
    color: #42313a;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.single-post__back:hover { text-decoration: underline; }

.single-post__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.single-post__date {
    font-family: 'PT Sans', Arial, sans-serif;
    font-size: 14px;
    color: #000;
}

.single-post__tags { display: flex; gap: 8px; flex-wrap: wrap; }

.single-post__tag {
    display: inline-block;
    font-size: 13px;
    color: #000;
    border: 1px solid #000;
    border-radius: 40px;
    padding: 3px 14px;
    transition: background 0.2s, color 0.2s;
}
.single-post__tag:hover { background: #000; color: #fff; text-decoration: none; }

.single-post__title {
    font-family: 'PT Serif', Georgia, serif;
    font-size: 36px;
    font-weight: 600;
    color: #000;
    line-height: 1.25;
    margin: 0 0 30px;
}

.single-post__cover {
    margin-bottom: 36px;
}
.single-post__cover img {
    width: 100%;
    height: auto;
}

.single-post__content {
    font-family: 'PT Sans', Arial, sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: #000;
    line-height: 1.65;
}
.single-post__content p { margin: 0 0 20px; }
.single-post__content h2, .single-post__content h3 {
    font-family: 'PT Serif', Georgia, serif;
    font-weight: 600;
}
.single-post__content img { margin: 20px 0; }
.single-post__content a { color: #6c2d2c; text-decoration: underline; }

/* =========================================================
   ARCHIVE / CATEGORY PAGE
   ========================================================= */
.archive-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px 80px;
}

.archive-page__title {
    font-family: 'PT Serif', Georgia, serif;
    font-size: 42px;
    font-weight: 600;
    color: #000;
    text-align: center;
    margin: 0 0 60px;
}

/* =========================================================
   PAGE (static)
   ========================================================= */
.page-content {
    max-width: 860px;
    margin: 60px auto;
    padding: 0 40px 80px;
}

.page-content__title {
    font-family: 'PT Serif', Georgia, serif;
    font-size: 42px;
    font-weight: 600;
    color: #000;
    margin: 0 0 40px;
}

.page-content__body {
    font-family: 'PT Sans', Arial, sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.65;
    color: #000;
}
.page-content__body p { margin: 0 0 20px; }

/* =========================================================
   404
   ========================================================= */
.error-404 {
    text-align: center;
    padding: 120px 40px;
}
.error-404__code {
    font-family: 'PT Serif', Georgia, serif;
    font-size: 120px;
    font-weight: 600;
    color: #f1dcc9;
    line-height: 1;
    margin: 0 0 20px;
}
.error-404__title {
    font-family: 'PT Serif', Georgia, serif;
    font-size: 36px;
    color: #42313a;
    margin: 0 0 16px;
}
.error-404__text {
    font-size: 18px;
    color: #666;
    margin: 0 0 30px;
}
.error-404__link {
    display: inline-flex;
    height: 50px;
    padding: 0 40px;
    background: #f1dcc9;
    color: #000;
    border-radius: 3px;
    align-items: center;
    font-family: 'PT Serif', Georgia, serif;
    font-weight: 600;
    transition: background 0.2s;
}
.error-404__link:hover { background: #e8caaf; text-decoration: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media screen and (max-width: 1200px) {
    .site-title-block__title .line-light,
    .site-title-block__title .line-normal { font-size: 44px; }
    .section-header__title { font-size: 38px; }
    .about-section__title { font-size: 38px; }
    .feed-list { width: 80%; margin-left: 6%; }
}

@media screen and (max-width: 960px) {
    .site-header__inner { padding: 0 20px; flex-wrap: wrap; }
    .site-header__logo { width: 240px; }
    .site-header__tagline { padding-left: 40px; font-size: 16px; }

    .tabs { width: 100%; display: none; }
    .tab-select-wrapper { display: block; }

    .feed-list { width: 100%; margin-left: 0; }
    .feed-wrapper { padding: 0 20px 90px; }

    .about-slider__btn--prev { left: -20px; }
    .about-slider__btn--next { right: -20px; }

    .site-footer__inner { flex-wrap: wrap; padding: 40px 20px; }
    .site-footer__copy { margin-bottom: 20px; padding-right: 0; }

    .single-post { padding: 0 20px 60px; }
    .archive-page { padding: 40px 20px 60px; }
}

@media screen and (max-width: 640px) {
    .site-header__logo { width: 180px; margin: 0 auto; }
    .site-header__inner { justify-content: center; gap: 16px; }
    .site-header__tagline { padding-left: 0; text-align: center; width: 100%; }

    .site-title-block__title .line-light,
    .site-title-block__title .line-normal { font-size: 30px; }

    .section-header { padding: 90px 20px 45px; }
    .section-header__title { font-size: 30px; margin-bottom: 45px; }

    .feed-post { flex-direction: column; gap: 16px; }
    .feed-post__image-wrap { width: 100%; }

    .single-post__title { font-size: 26px; }
    .site-footer__menu { justify-content: flex-start; }

    .about-slider__images { width: 100%; }
    .about-slider { padding: 60px 20px; }
    .about-slider__btn--prev { left: 0; }
    .about-slider__btn--next { right: 0; }
}

@media screen and (max-width: 480px) {
    .section-header { padding: 90px 20px; }
    .btn-load-more { padding: 0 30px; }
}
