/* ================================================================
   1. ГЛОБАЛЬНЫЕ СБРОСЫ И БАЗОВЫЕ СТИЛИ
   ================================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c2c2c;
    background-color: #fafaf5;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ================================================================
   2. ШАПКА САЙТА (HEADER)
   ================================================================ */
header {
    background: #38452e;  /* основной цвет сайта */
    color: #f0f0e6;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.logo img {
    max-height: 90px;
    width: auto;
    display: block;
    margin: 0 auto;
}

/* Навигационное меню */
nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

nav ul li a {
    color: #f0f0e6;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.2rem;
    transition: color 0.3s;
    padding: 0.5rem 0;
}

nav ul li a:hover {
    color: #d4c9a6;
    border-bottom: 2px solid #d4c9a6;
}

/* ================================================================
   3. ГЕРОЙ-БЛОК (HERO) С АНИМИРОВАННЫМ ФОНОМ
   ================================================================ */
.hero {
    position: relative;
    overflow: hidden;
    background: #2a3a22;
    color: #f0f0e6;
    text-align: center;
    padding: 3rem 0;
}

/* Сетка-подложка (линии) */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(transparent, transparent 40px, rgba(199,184,122,0.08) 40px, rgba(199,184,122,0.08) 42px),
        repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(199,184,122,0.05) 40px, rgba(199,184,122,0.05) 42px);
    pointer-events: none;
    z-index: 0;
}

/* Падающие строки кода ("дождь") */
.code-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: rgba(199,184,122,0.4);
    white-space: nowrap;
    overflow: hidden;
}

.code-line {
    position: absolute;
    white-space: nowrap;
    opacity: 0;
    animation: fall 8s linear infinite;
    font-size: 17px;
}

@keyframes fall {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Индивидуальные задержки для каждой строки */
.code-line:nth-child(1) { animation-delay: 0s; animation-duration: 10s; }
.code-line:nth-child(2) { animation-delay: 2s; animation-duration: 12s; }
.code-line:nth-child(3) { animation-delay: 5s; animation-duration: 9s; }
.code-line:nth-child(4) { animation-delay: 1s; animation-duration: 14s; }
.code-line:nth-child(5) { animation-delay: 7s; animation-duration: 11s; }
.code-line:nth-child(6) { animation-delay: 3s; animation-duration: 13s; }
.code-line:nth-child(7) { animation-delay: 8s; animation-duration: 10s; }
.code-line:nth-child(8) { animation-delay: 4s; animation-duration: 15s; }
.code-line:nth-child(9) { animation-delay: 6s; animation-duration: 9s; }
.code-line:nth-child(10) { animation-delay: 9s; animation-duration: 12s; }

/* Контент поверх анимации */
.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fafaf5;
}

.slogan {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* ================================================================
   4. КНОПКИ (ОБЩИЙ СТИЛЬ)
   ================================================================ */
.btn {
    display: inline-block;
    background: #c7b87a;
    color: #2a3622;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 40px;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: #b5a55f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ================================================================
   5. ОБЩИЕ СТИЛИ ДЛЯ СЕКЦИЙ И ЗАГОЛОВКОВ
   ================================================================ */
section {
    padding: 3rem 0;
}

h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #38452e;
    position: relative;
}

h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #c7b87a;
    margin: 0.5rem auto 0;
}

/* ================================================================
   6. БЛОКИ УСЛУГ И ТАРИФОВ (ГОРИЗОНТАЛЬНАЯ ПРОКРУТКА)
   ================================================================ */
/* Обёртка для горизонтальной прокрутки (услуги) */
.services-scroll {
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 1rem;
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.services-scroll .services-grid {
    display: flex;
    gap: 1.5rem;
    min-width: min-content;
}

.services-scroll .service-card {
    flex: 0 0 280px;
    width: 280px;
    display: flex;
    flex-direction: column;
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.services-scroll .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.1);
}

/* Кнопка прибита к низу карточки */
.services-scroll .service-card .btn {
    margin-top: auto;
    align-self: center;
    width: 80%;
    text-align: center;
}

/* Обёртка для горизонтальной прокрутки (тарифы) */
.rates-scroll {
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 1rem;
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.rates-scroll .rates-grid {
    display: flex;
    gap: 1.5rem;
    min-width: min-content;
}

.rates-scroll .rate-card {
    flex: 0 0 320px;
    width: 320px;
    display: flex;
    flex-direction: column;
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.rates-scroll .rate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.1);
}

/* Кнопка прибита к низу карточки */
.rates-scroll .rate-card .btn {
    margin-top: auto;
    align-self: center;
    width: 80%;
    text-align: center;
}

/* Цена внутри карточек */
.price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #c7b87a;
    margin: 1rem 0;
}

/* Список в карточке тарифа */
.rate-card ul {
    list-style: none;
    margin: 1rem 0;
    text-align: left;
    padding-left: 1rem;
}

.rate-card ul li {
    margin-bottom: 0.5rem;
    position: relative;
}

.rate-card ul li:before {
    content: "✓";
    color: #c7b87a;
    position: absolute;
    left: -1rem;
}

/* Стили для полосы прокрутки (общие) */
.services-scroll::-webkit-scrollbar,
.rates-scroll::-webkit-scrollbar {
    height: 16px;
}
.services-scroll::-webkit-scrollbar-track,
.rates-scroll::-webkit-scrollbar-track {
    background: #e8e8dd;
    border-radius: 10px;
}
.services-scroll::-webkit-scrollbar-thumb,
.rates-scroll::-webkit-scrollbar-thumb {
    background: #c7b87a;
    border-radius: 10px;
	border: 2px solid #e8e8dd; /* добавляем отступ внутри */
}
.services-scroll::-webkit-scrollbar-thumb:hover,
.rates-scroll::-webkit-scrollbar-thumb:hover {
    background: #b5a55f;
}

/* ================================================================
   7. БЛОК СЕРТИФИКАТОВ (С АНИМАЦИЕЙ ПРИ НАВЕДЕНИИ)
   ================================================================ */
.certificates {
    background: #f5f5ee;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    justify-items: center;
}

.certificates-grid img {
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.certificates-grid img:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 0 15px rgba(199,184,122,0.8);
    border-color: #c7b87a;
    filter: brightness(1.05) contrast(1.1);
}

/* ================================================================
   8. ФОРМА ОБРАТНОЙ СВЯЗИ
   ================================================================ */
.contact-form {
    background: #e8e8dd;
}

.contact-form p {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form form {
    max-width: 550px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input {
    padding: 0.9rem;
    border: 1px solid #ccc;
    border-radius: 40px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
}

.contact-form input:focus {
    outline: none;
    border-color: #c7b87a;
    box-shadow: 0 0 0 2px rgba(199,184,122,0.2);
}

/* Текст согласия под формой */
.consent-text {
    font-size: 0.75rem;
    text-align: center;
    color: #5a5a4e;
    margin-top: 0.5rem;
}

.consent-text a {
    color: #38452e;
    text-decoration: underline;
}

.consent-text a:hover {
    color: #c7b87a;
}

/* ================================================================
   9. ПОДВАЛ (FOOTER)
   ================================================================ */
footer {
    background: #38452e;
    color: #dddccf;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 0.5rem;
}

/* ================================================================
   10. МОДАЛЬНОЕ ОКНО ПОЛИТИКИ КОНФИДЕНЦИАЛЬНОСТИ
   ================================================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    overflow: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    font-family: 'Segoe UI', sans-serif;
    color: #2c2c2c;
    line-height: 1.5;
}

.modal-content h2, .modal-content h3 {
    color: #38452e;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: #38452e;
}

/* ================================================================
   11. АДАПТИВНОСТЬ (ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ)
   ================================================================ */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .slogan {
        font-size: 1rem;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ================================================================
   12. КАСТОМНЫЙ КУРСОР (ДВА КРУГА)
   ================================================================ */
.cursor-outer {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid #c7b87a;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    top: -20px;
    left: -20px;
    transition: transform 0.1s ease-out, width 0.2s, height 0.2s;
    opacity: 0.7;
    box-shadow: 0 0 8px rgba(199,184,122,0.3);
}

.cursor-inner {
    position: fixed;
    width: 8px;
    height: 8px;
    background-color: #c7b87a;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    top: -4px;
    left: -4px;
    opacity: 0.9;
    transition: transform 0.05s linear;
}

/* При наведении на кнопки — круги увеличиваются */
.btn:hover ~ .cursor-outer,
button:hover ~ .cursor-outer,
a:hover ~ .cursor-outer {
    width: 55px;
    height: 55px;
    top: -27.5px;
    left: -27.5px;
    border-color: #b5a55f;
    opacity: 1;
}

.btn:hover ~ .cursor-inner,
button:hover ~ .cursor-inner,
a:hover ~ .cursor-inner {
    width: 12px;
    height: 12px;
    top: -6px;
    left: -6px;
    background-color: #b5a55f;
}

/* Чтобы эффект наведения работал корректно — добавляем правило для элементов под курсором */
.btn, button, a {
    cursor: pointer;
}

/* ================================================================
   13. ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ СТРАНИЦЫ "О НАС"
   ================================================================ */

/* Блок "Кто мы" */
.about-text {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: center;
}

.about-text p {
    margin-bottom: 1.5rem;
}

/* Карточки продуктов/услуг (страницы "Продукты 1С" и "1С:ИТС") */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.8rem;
    margin-top: 1rem;
}

.product-card {
    background: white;
    padding: 1.6rem;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-6px);
}

.product-card h3 {
    color: #38452e;
    margin-bottom: 0.6rem;
    font-size: 1.05rem;
}

/* Блок "Статус 1С:Франчайзинг" */
.franchise-status {
    background: #f5f5ee;
    padding: 2.5rem 0;
}

.franchise-status-inner {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.franchise-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.franchise-logo img {
    max-width: 220px;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.franchise-text {
    flex: 1 1 auto;
}

.franchise-text h3 {
    color: #38452e;
    margin-bottom: 0.6rem;
    font-size: 1.3rem;
}

.franchise-text p {
    margin: 0;
}

@media (max-width: 768px) {
    .franchise-status-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* Блок "Миссия" */
.mission {
    background-color: #f5f5ee;
    text-align: center;
    padding: 2.5rem 0;
}

.mission-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    font-style: italic;
    color: #38452e;
}

/* Преимущества (сетка 4 карточки) */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.advantage-card {
    background: white;
    padding: 1.8rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.advantage-card:hover {
    transform: translateY(-8px);
}

.advantage-icon {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.advantage-card h3 {
    margin-bottom: 0.8rem;
    color: #38452e;
}

/* Команда */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.team-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid #c7b87a;
}

.team-card h3 {
    margin-bottom: 0.3rem;
    color: #38452e;
}

.team-card p {
    color: #6c6c5e;
    font-size: 0.9rem;
}

.team-note {
    text-align: center;
    font-size: 0.8rem;
    color: #8a8a7a;
    margin-top: 2rem;
    font-style: italic;
}

/* ================================================================
   14. СТИЛИ ДЛЯ СТРАНИЦЫ НОВОСТЕЙ
   ================================================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.1);
}

.news-date {
    font-size: 0.8rem;
    color: #c7b87a;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.news-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #38452e;
}

.news-card p {
    color: #5a5a4e;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.news-link {
    color: #c7b87a;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.news-link:hover {
    color: #b5a55f;
    text-decoration: underline;
}

/* ================================================================
   17. СТИЛИ ДЛЯ СТРАНИЦЫ "РЕАЛЬНАЯ АВТОМАТИЗАЦИЯ" (ОБНОВЛЁННЫЕ)
   ================================================================ */

/* Вступление */
.auto-intro {
    background: #f5f5ee;
    padding: 2rem 0;
}

.intro-text {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.2rem;
    text-align: center;
    line-height: 1.6;
}

/* Три ожидаемых результата */
.results-three {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.result-item {
    background: #38452e;
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 40px;
    font-weight: bold;
    font-size: 1.1rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.fast-result {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #c7b87a;
    margin-top: 1rem;
}

/* Основной блок: текст слева, картинка справа */
.auto-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}

.auto-text {
    flex: 2;
    min-width: 250px;
}

.auto-text p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.auto-text ul {
    margin: 1rem 0 1rem 2rem;
}

.auto-text li {
    margin-bottom: 0.5rem;
}

.auto-image {
    flex: 1;
    min-width: 250px;
    text-align: center;
    position: sticky;
    top: 100px;
}

/* Анимация для быка */
.bull-animation {
    display: inline-block;
    animation: bullPulse 2s ease-in-out infinite;
}

.bull-animation img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

@keyframes bullPulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(199,184,122,0.3));
    }
    50% {
        transform: scale(1.02);
        filter: drop-shadow(0 0 15px rgba(199,184,122,0.7));
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(199,184,122,0.3));
    }
}
.map-placeholder {
    text-align: center;
    margin: 0 auto;
}

.bull-caption {
    margin-top: 1.5rem;
    font-style: italic;
    color: #5a5a4e;
    font-size: 0.9rem;
    border-left: 3px solid #c7b87a;
    padding-left: 1rem;
    text-align: left;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .auto-flex {
        flex-direction: column;
    }
    
    .auto-image {
        position: static;
        margin-top: 2rem;
    }
    
    .results-three {
        flex-direction: column;
        align-items: center;
    }
    
    .result-item {
        width: 80%;
    }
}
/* ================================================================
   18. АНИМАЦИЯ ДЛЯ БЛОКА "КОМАНДА" (ПОЯВЛЕНИЕ ПРИ СКРОЛЛЕ)
   ================================================================ */
.team-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s;
}

.team-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Эффект при наведении на карточку сотрудника */
.team-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.team-card:hover img {
    transform: scale(1.05);
    border-color: #b5a55f;
    box-shadow: 0 0 15px rgba(199,184,122,0.6);
}

.team-card img {
    transition: transform 0.4s ease, border-color 0.3s, box-shadow 0.3s;
}

.team-card h3,
.team-card p {
    transition: color 0.3s;
}

.team-card:hover h3 {
    color: #c7b87a;
}
.team-card:nth-child(1) { transition-delay: 0.1s; }
.team-card:nth-child(2) { transition-delay: 0.2s; }
.team-card:nth-child(3) { transition-delay: 0.3s; }
.team-card:nth-child(4) { transition-delay: 0.4s; }

/* ================================================================
   21. СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА НОВОСТИ
   ================================================================ */

.news-modal-content {
    max-width: 800px;
    width: 90%;
    position: relative;
    padding-top: 50px;  /* Добавляем отступ сверху, чтобы заголовок не наезжал на крестик */
}

.news-modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #c7b87a;
    padding-top: 10px;  /* Дополнительный отступ внутри заголовка */
}

.news-modal-header h2 {
    color: #38452e;
    margin-bottom: 0.5rem;
}

.news-modal-date {
    font-size: 0.85rem;
    color: #c7b87a;
    font-weight: bold;
}

.news-modal-image {
    text-align: center;
    margin-bottom: 1.5rem;
}

.news-modal-image img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.news-modal-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #2c2c2c;
}

.news-modal-text p {
    margin-bottom: 1rem;
}

/* ================================================================
   КРЕСТИК ДЛЯ МОДАЛЬНОГО ОКНА НОВОСТИ
   ================================================================ */
.news-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
    display: block;
    z-index: 10;
}

.news-modal-close:hover {
    color: #c7b87a;
}

/* Убедимся, что модальное окно позиционировано относительно */
.news-modal-content {
    position: relative;
}
/* ================================================================
   РЕШЕНИЯ ПО АВТОМАТИЗАЦИИ УЧЕТА (РАУ)
   ================================================================ */
.rau {
    background: #fafaf5;
    padding: 3rem 0;
}

.rau-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    justify-items: center;
    text-align: center;
}

.rau-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 200px;
}

.rau-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.1);
}

.rau-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.rau-card img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.rau-card h3 {
    color: #38452e;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.no-image {
    width: 100%;
    height: 80px;
    background: #e8e8dd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 0.8rem;
}
.partner-description {
    max-width: 900px;
    margin: 1rem auto 2rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #2c2c2c;
    font-weight: 500;  /* сделаем жирнее, как у услуг */
    text-align: left;  /* выравнивание влево */
    padding-left: 0;
}

.service-group {
    max-width: 900px;
    margin: 0 auto 2rem;
    text-align: left;
}

.partner-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}
/* ================================================================
   НАШИ КЛИЕНТЫ (БЕСКОНЕЧНАЯ ГОРИЗОНТАЛЬНАЯ КАРУСЕЛЬ)
   ================================================================ */
.clients {
    background: #fafaf5;
    padding: 3rem 0;
    overflow: hidden;
    position: relative;
}

.clients h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.partners-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    cursor: grab;
    user-select: none; /* чтобы не выделялся текст при перетаскивании */
}

.partners-marquee:active {
    cursor: grabbing;
}

.partners-track {
    display: flex;
    gap: 2rem;
    animation: scrollLeft 30s linear infinite;
    width: fit-content;
}

.partners-track:hover {
    animation-play-state: paused;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.partner-item {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    width: 180px;
    text-align: center;
    flex-shrink: 0;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.1);
}

.partner-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.partner-item img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.partner-item h3 {
    color: #38452e;
    font-size: 1rem;
    font-weight: bold;
    margin-top: 0.5rem;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .partner-item {
        width: 140px;
        padding: 1rem;
    }
    .partner-item img {
        max-height: 60px;
    }
    .partner-item h3 {
        font-size: 0.8rem;
    }
    .partners-track {
        gap: 1rem;
        animation-duration: 40s; /* медленнее на мобильных */
    }
}
/* ================================================================
   ПЛАВАЮЩИЕ КНОПКИ ПОДДЕРЖКИ 1С (РАЗВЁРНУТЫЕ, БЕЗ АНИМАЦИИ)
   ================================================================ */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border-radius: 50px;
    padding: 8px 20px 8px 8px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

.floating-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.btn-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: contain;
}

.btn-text {
    display: flex;
    flex-direction: column;
}

.btn-title {
    font-size: 14px;
    font-weight: bold;
    line-height: 1.2;
    color: #38452e;
}

.btn-subtitle {
    font-size: 10px;
    line-height: 1.2;
    color: #5a5a4e;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .floating-buttons {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }
    
    .floating-btn {
        padding: 6px 15px 6px 6px;
        gap: 8px;
    }
    
    .btn-icon {
        width: 36px;
        height: 36px;
    }
    
    .btn-title {
        font-size: 12px;
    }
    
    .btn-subtitle {
        font-size: 9px;
    }
}

/* Ссылка на аккредитацию в подвале */
.accreditation-link {
    margin-top: 15px;
}
.accreditation-link a {
    color: #c7b87a;
    text-decoration: none;
    font-size: 0.85rem;
}
.accreditation-link a:hover {
    text-decoration: underline;
}