/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1366px;
    margin: 0 auto;
    padding: 0 2px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-image {
    height: 49.58px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
    align-self: center;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: #da291c;
    margin: 0;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-list a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-list a:hover {
    color: #da291c;
}



.header-actions .btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, #da291c, #b8241a);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #b8241a, #991b1b);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(218, 41, 28, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #da291c;
    border: 2px solid #da291c;
}

.btn-secondary:hover {
    background: #da291c;
    color: white;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 120px 0 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin: 20px 0 15px 0;
    color: #1e293b;
    text-align: center;
}

.hero-title .hero-lead {
    font-size: 1.15em; /* Немного крупнее только первых слов */
}

.highlight-red {
    color: #da291c;
    font-size: 28px;
}

.hero-subtitle {
    font-size: 18px;
    color: #707372;
    margin-bottom: 25px;
    line-height: 1.4;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

/* Company Header */
.company-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 20px 0;
    background: #da291c;
    padding: 15px 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.company-name {
    font-size: 35px;
    font-weight: 700;
    color: white;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
}

.badge {
    background: #da291c;
    color: white;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

/* Hero Subtitle with Checkmark */
.hero-subtitle {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
}

.checkmark {
    color: #da291c;
    font-weight: bold;
    font-size: 16px;
}

/* Process Diagram */
.process-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.process-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.process-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: #f1f5f9;
    color: #707372;
}

.process-icon.no-middleman {
    background: #da291c;
    color: white;
    font-weight: bold;
}

.process-label {
    font-size: 10px;
    color: #707372;
    font-weight: 500;
}

.process-arrow {
    font-size: 16px;
    color: #707372;
    font-weight: bold;
}

/* Company Description */
.company-description {
    text-align: center;
    max-width: 600px;
    margin: 20px auto;
}

.company-description p {
    font-size: 18px;
    color: #707372;
    line-height: 1.6;
    margin: 0;
}



/* Advantages Grid */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
    margin: 20px 0 20px 0;
}

.advantage-card {
    background: white;
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

/* Убираем hover-эффект */

.advantage-card .advantage-icon {
    margin-bottom: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.advantage-card .advantage-icon img {
    width: 40px;
    height: 40px;
    display: block;
}

.advantage-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.advantage-card p {
    font-size: 16px;
    color: #707372;
    margin: 0;
    line-height: 1.5;
}

.hero-visual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    position: relative;
    align-items: stretch;
    justify-items: stretch;
    padding: 20px;
}

.feature-card {
    background: transparent;
    padding: 0;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.feature-card .feature-icon {
    width: 100%;
    height: 220px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 0;
    background: transparent;
    position: relative;
}

.feature-card .feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.3s ease;
    display: block;
}

.feature-card:hover .feature-icon img {
    transform: scale(1.08);
}





/* Features Section */
.features {
    padding: 80px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 600px;
}

.feature-item {
    text-align: center;
    padding: 40px 20px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 100%;
    height: 150px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    overflow: hidden;
    background: #f8fafc;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.feature-item h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1e293b;
}

.feature-item p {
    color: #707372;
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 80px 0;
    background: #f8fafc;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1e293b;
}

.about-text p {
    font-size: 18px;
    color: #707372;
    margin-bottom: 15px;
    line-height: 1.5;
}

.about-text ul {
    margin: 10px 0 15px 0;
    padding-left: 20px;
    list-style: none;              /* Убираем стандартные черные кружки */
}

.about-text ul li {
    font-size: 18px;
    color: #707372;
    margin-bottom: 8px;
    line-height: 1.5;
    position: relative;
}

.about-text ul li:before {
    content: "";                        /* Рисуем маркер без иконок */
    position: absolute;
    left: -20px;                         /* Адаптируем отступ под новую ориентацию */
    top: 50%;                            /* Идеальное вертикальное центрирование */
    transform: translateY(-50%);
    height: 0.9em;                       /* Чуть компактнее относительно строки */
    aspect-ratio: 0.866;                 /* Равносторонний треугольник (cos 30° ≈ 0.866) */
    background: #da291c;                 /* Заливка красным */
    clip-path: polygon(100% 50%, 0 0, 0 100%);    /* Вершина справа — указывает на текст */
    border-radius: 0;                    /* Четкие углы */
}

.about-text strong {
    color: #1e293b;
    font-weight: 600;
}

.about-text p:last-of-type {
    margin-bottom: 30px;
    font-weight: 600;
    color: #1e293b;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #da291c;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #707372;
    font-weight: 500;
    line-height: 1.2;
}

.about-visual {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.clients-container {
    border: 2px solid #da291c;
    border-radius: 12px;
    padding: 30px;
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-top: 0;
}

.clients-container h3 {
    font-size: 24px;
    font-weight: 600;
    color: #da291c;
    margin-bottom: 25px;
    text-align: center;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 20px;
    align-items: center;
}

.client-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #da291c;
    transition: all 0.3s ease;
    height: 80px;
    box-shadow: none;
}

.client-logo:hover {
    box-shadow: none;
}

.client-logo img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(0%);
    transition: filter 0.3s ease;
}

.client-logo:hover img {
    filter: grayscale(0%);
}

@media (max-width: 1024px) {
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Services Section */
.services {
    padding: 80px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1e293b;
}

.section-header p {
    font-size: 18px;
    color: #707372;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #da291c;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #da291c, #b8241a);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 24px;
    color: white;
}

.service-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1e293b;
}

.service-card p {
    color: #707372;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-link {
    color: #da291c;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.service-link:hover {
    color: #b8241a;
    gap: 12px;
}

/* Quality Section */
.quality {
    padding: 80px 0;
    background: #f8fafc;
}

.quality-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.quality-item {
    text-align: center;
    padding: 25px 15px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.quality-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.quality-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #da291c, #b8241a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.quality-icon i {
    font-size: 24px;
    color: white;
}

.quality-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1e293b;
}

.quality-item p {
    color: #707372;
    line-height: 1.5;
    font-size: 14px;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1e293b;
}

.contact-info p {
    font-size: 18px;
    color: #707372;
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-info-text {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.contact-intro-line {
    margin-left: 35px;
    color: #707372;
    line-height: 1.6;
}

.contact-intro-line--note {
    margin-top: 8px;
}

.contact-item.contact-step {
    align-items: flex-start;
    gap: 15px;
    color: #707372;
}

.contact-item.contact-step i {
    flex: 0 0 20px;
    text-align: center;
    margin-top: 4px;
}

.contact-item.contact-step span {
    flex: 1;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #707372;
}

.phone-numbers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px 0px;
    width: 100%;
}

.phone-numbers div:nth-child(2),
.phone-numbers div:nth-child(4) {
    text-align: left;
    padding-left: 0;
}

.phone-numbers div {
    font-size: 14px;
}

.contact-item i {
    color: #da291c;
    font-size: 18px;
    width: 20px;
}

.contact-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.contact-form {
    background: #f8fafc;
    padding: 40px;
    border-radius: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #da291c;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #707372;
    color: white;
    padding: 0 0 20px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #da291c 50%, transparent 100%);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    margin-bottom: 20px;
}



/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.phones {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
    font-size: 1rem;
    color: #ffffff;
    width: 100%;
    margin-bottom: 0;
    line-height: 1.2;
    font-family: 'Inter', sans-serif;
}

.phones span {
    white-space: nowrap;
}



.address {
    font-size: 1rem;
    color: #ffffff;
    max-width: 100%;
    line-height: 1.2;
    text-align: center;
    margin-top: 8px;
    font-family: 'Inter', sans-serif;
}
.address .address-link {
    display: block;
    margin-top: 6px;
    color: inherit;
    text-decoration: underline;
}
.address .address-link:hover {
    color: #f0f0f0;
}

/* Footer Categories Banner */
.footer-categories-banner {
    background: #da291c;
    padding: 7.5px 0;
    margin-bottom: 15px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    position: relative;
}

.footer-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: center;
}

.footer-category-item a {
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.footer-category-item a:hover {
    color: #f0f0f0;
    transform: translateY(-1px);
}

.footer-category-item h3 {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
    text-align: center;
    transition: all 0.3s ease;
}



.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* responsive styles removed */
}

@media (max-width: 480px) {
    /* responsive styles removed */
}

/* Fixed-width viewport mobile tweak:
   on phones we disable full-screen centering to avoid large empty zones in hero */
@media screen and (max-device-width: 767px) {
    .hero {
        min-height: auto;
        align-items: flex-start;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-item,
.service-card,
.quality-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* News Section */
.news {
    padding: 80px 0;
    background: white;
}

.news-carousel {
    position: relative;
    max-width: 1366px;
    margin: 40px auto 0;
    padding: 0 60px;
}

.news-carousel-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.news-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
    will-change: transform;
}

.news-carousel-track .news-card {
    flex: 0 0 calc(33.333% - 26.67px);
    margin-right: 40px;
    box-sizing: border-box;
}

.news-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: #da291c;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.news-nav-prev {
    left: -60px;
}

.news-nav-next {
    right: -60px;
}

.news-nav-btn:hover {
    background: #b8241a;
    transform: scale(1.1);
}

.news-nav-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.news-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    height: 500px;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #da291c;
}

.news-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #da291c, #b8241a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 25px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.news-date {
    color: #da291c;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.news-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1e293b;
    line-height: 1.4;
    word-wrap: break-word; /* Предотвращаем обрезание текста */
    overflow-wrap: break-word;
}

.news-excerpt {
    color: #707372;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    overflow: hidden;
    position: relative;
}

.news-excerpt.expanded {
    overflow: visible;
}

.news-read-more {
    background: #da291c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
    align-self: flex-start;
}

.news-read-more:hover {
    background: #b8241a;
    transform: translateY(-2px);
}

.news-link {
    color: #da291c;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.news-link:hover {
    color: #b8241a;
    gap: 12px;
}

/* Success Modal Styles */
.success-modal {
    display: flex;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.success-modal-content {
    background-color: white;
    padding: 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.success-modal-content h3 {
    margin-bottom: 20px;
    color: #1e293b;
    font-size: 24px;
    font-weight: 600;
}

.success-modal-content p {
    margin-bottom: 30px;
    color: #707372;
    font-size: 16px;
    line-height: 1.6;
}

.success-modal-btn {
    background: linear-gradient(135deg, #da291c, #b8241a);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.success-modal-btn:hover {
    background: linear-gradient(135deg, #b8241a, #991b1b);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
}

/* Success modal icon */
.success-icon {
    margin-bottom: 20px;
}

.success-icon i {
    font-size: 48px;
    color: #10b981;
    animation: fadeInScale 0.5s ease-out;
}

/* Error modal styles */
.error-modal {
    display: flex;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.error-modal-content {
    background-color: white;
    padding: 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.error-modal-content h3 {
    margin-bottom: 20px;
    color: #1e293b;
    font-size: 24px;
    font-weight: 600;
}

.error-modal-content p {
    margin-bottom: 30px;
    color: #707372;
    font-size: 16px;
    line-height: 1.6;
}

.error-modal-btn {
    background: linear-gradient(135deg, #da291c, #b8241a);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.error-modal-btn:hover {
    background: linear-gradient(135deg, #b8241a, #991b1b);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
}

/* Error modal icon */
.error-icon {
    margin-bottom: 20px;
}

.error-icon i {
    font-size: 48px;
    color: #ef4444;
    animation: fadeInScale 0.5s ease-out;
}

/* Animation for modal icons */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Fullscreen Image Modal Styles */
.image-modal {
    display: flex;
    position: fixed;
    z-index: 4000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 32px;
    font-weight: bold;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Make feature cards clickable */
.feature-card {
    cursor: pointer;
}

/* Модальное окно для полной новости */
.news-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.news-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.news-modal-header {
    background: linear-gradient(135deg, #da291c, #b8241a);
    color: white;
    padding: 30px;
    position: relative;
}

.news-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.news-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.news-modal-date {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.news-modal-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.news-modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.news-modal-text {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 30px;
}

.news-modal-text::-webkit-scrollbar {
    width: 8px;
}

.news-modal-text::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.news-modal-text::-webkit-scrollbar-thumb {
    background: #da291c;
    border-radius: 4px;
}

.news-modal-text::-webkit-scrollbar-thumb:hover {
    background: #b8241a;
} 

.certificates-section {
    padding: 60px 0;
    background: #fff;
}

.certificates-container {
    border: 2px solid #da291c;
    border-radius: 12px;
    padding: 30px;
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.certificates-container h3 {
    font-size: 24px;
    font-weight: 600;
    color: #da291c;
    margin-bottom: 25px;
    text-align: center;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    align-items: center;
}

.certificate-logo {
    width: 100%;
    min-width: 0;
    height: 180px;
    max-width: 100%;
    max-height: 180px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    box-sizing: border-box;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.certificate-logo:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(220, 38, 38, 0.15);
    border-color: #da291c;
    background: #ffffff;
}

.certificate-logo img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: all 0.3s ease;
    filter: grayscale(20%);
}

.certificate-logo:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Кнопки действий на карточках сертификатов */
.certificate-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.3s ease;
}

.certificate-logo:hover .certificate-actions {
    opacity: 1;
    transform: translateY(0);
}

.certificate-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: #707372;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.1);
}

.certificate-btn:hover {
    background: #da291c;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
    border-color: #da291c;
}

.certificate-btn svg {
    width: 18px;
    height: 18px;
    transition: all 0.3s ease;
}

.certificate-btn:hover svg {
    transform: scale(1.1);
}

.certificate-logo img[alt="OBAC"] {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.certificate-logo img[alt="RINA"] {
    max-width: 135%;
    max-height: 135%;
    object-fit: contain;
}

@media (max-width: 1024px) {
    .certificate-logo {
        min-height: 100px;
        padding: 16px;
    }
    .certificate-logo img {
        width: 90px;
        height: 60px;
    }
}

@media (max-width: 768px) {
    .certificate-logo {
        min-height: 60px;
        padding: 8px;
    }
    .certificate-logo img {
        width: 60px;
        height: 40px;
    }
} 

/* Кнопка 'Скачать все сертификаты' в сертификатах */
.download-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 22px;
    border-radius: 8px;
    background: linear-gradient(135deg, #da291c, #b8241a);
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(220,38,38,0.10);
    transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
    text-decoration: none;
    justify-content: center;
    margin: 0 auto;
}
.download-all-btn:hover {
    background: linear-gradient(135deg, #b8241a, #da291c);
    color: #fff;
    box-shadow: 0 6px 20px rgba(220,38,38,0.18);
    transform: translateY(-2px) scale(1.04);
}

.certificate-logo .download-all-btn svg {
    width: 20px;
    height: 20px;
}
.certificate-logo {
    display: flex;
    align-items: center;
    justify-content: center;
} 

/* Кнопка 'Скачать все сертификаты' всегда видима и крупнее */
.always-visible {
    opacity: 1 !important;
    position: static !important;
    background: linear-gradient(135deg, #da291c, #b8241a);
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 16px rgba(220,38,38,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
}
.always-visible:hover {
    background: linear-gradient(135deg, #b8241a, #da291c);
    color: #fff;
    box-shadow: 0 8px 24px rgba(220,38,38,0.18);
    transform: translateY(-2px) scale(1.06);
}
.download-all-label {
    text-align: center;
    color: #da291c;
    font-size: 16px;
    font-weight: 600;
    margin-top: 8px;
    letter-spacing: 0.01em;
    user-select: none;
}

/* Современная карточка 'Скачать все сертификаты' */
.certificate-logo.download-all-card {
    background: none;
    border: none;
    box-shadow: none;
    min-height: unset;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.certificate-logo.download-all-card:focus,
.certificate-logo.download-all-card:hover {
    box-shadow: none;
    transform: none;
    border-color: none;
}
.download-all-link, .download-all-label, .download-all-icon {
    display: none !important;
}
.certificate-logo.download-all-card .btn.btn-secondary {
    margin-top: 18px;
} 

.certificate-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.certificate-modal-content {
    background: #fff;
    border-radius: 18px;
    max-width: 900px;
    width: 95vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}
.certificate-modal-header {
    display: flex;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, #da291c, #b8241a);
    color: #fff;
    padding: 28px 32px 18px 32px;
    position: relative;
}
.certificate-modal-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 6px;
}
.certificate-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    flex: 1;
}
.certificate-modal-close {
    position: absolute;
    top: 18px;
    right: 24px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    font-size: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.certificate-modal-close:hover {
    background: rgba(255,255,255,0.35);
}
.certificate-modal-body {
    padding: 32px;
    overflow-y: auto;
    flex: 1;
}
.certificate-modal-files {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.certificate-file-row {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #f8fafc;
    border-radius: 10px;
    padding: 16px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.certificate-file-name {
    flex: 1;
    font-size: 1.08rem;
    color: #1e293b;
    font-weight: 500;
    word-break: break-word;
    white-space: normal;
    overflow-wrap: anywhere;
}
.certificate-file-actions {
    display: flex;
    gap: 10px;
}
.certificate-file-btn {
    background: #da291c;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 8px 18px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 7px;
}
.certificate-file-btn.view {
    background: #707372;
}
.certificate-file-btn.download {
    background: #da291c;
}
.certificate-file-btn:hover {
    background: #b8241a;
    transform: translateY(-2px) scale(1.04);
}
@media (max-width: 600px) {
    .certificate-modal-content {
        max-width: 99vw;
        padding: 0;
    }
    .certificate-modal-header, .certificate-modal-body {
        padding: 14px;
    }
    .certificate-modal-logo {
        width: 40px;
        height: 40px;
    }
    .certificate-modal-title {
        font-size: 1.1rem;
    }
    .certificate-file-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px 8px;
    }
}

/* reCAPTCHA стили */
.form-group .g-recaptcha {
    margin: 15px 0;
    display: flex;
    justify-content: flex-start;
}

.form-group .g-recaptcha > div {
    margin: 0 auto;
}

@media (max-width: 768px) {
    .form-group .g-recaptcha {
        transform: scale(0.85);
        transform-origin: 0 0;
        margin: 10px 0;
    }
} 