* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    margin: 0;
    color: #1f2937;
    background: #f9fafb;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

.header {
    background: #0f172a;
    color: #fff;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Стили для логотипа в шапке */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.9;
}

.logo img {
    height: 45px; /* Регулируйте высоту по необходимости */
    width: auto;
    display: block;
}

.logo-text {
    font-size: 20px; /* Увеличиваем размер текста */
    font-weight: 600;
    color: #ffffff; /* Белый цвет текста */
    white-space: nowrap;
    letter-spacing: 0.5px; /* Немного увеличиваем расстояние между буквами */
}

/* Обновляем стили для .header-inner */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

/* На мобильных устройствах */
@media (max-width: 768px) {
    .header-inner {
        justify-content: center;
        text-align: center;
        padding: 15px 20px;
        gap: 15px;
    }
    
    .logo {
        flex-direction: column; /* На мобильных картинка и текст в колонку */
        gap: 8px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .nav {
        order: 3;
        width: 100%;
        margin-top: 15px;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .btn {
        order: 2;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 16px;
    }
}

.nav a {
    color: #cbd5f5;
    margin: 0 10px;
    text-decoration: none;
}

.nav a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.nav a.active {
    color: #16a34a;
    font-weight: bold;
}

.hero {
    background: #1e293b;
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.btn {
    background: #16a34a;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-large {
    font-size: 18px;
}

.services h2 {
    text-align: center;
    margin-bottom: 30px;
}

.service {
    background: #fff;
    border-radius: 6px;
    margin-bottom: 15px;
    overflow: hidden;
}

.service-header {
    padding: 15px;
    font-weight: bold;
    cursor: pointer;
    background: #e5e7eb;
}

.service-body {
    display: none;
    padding: 15px;
}

.service-body.open {
    display: block;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

th, td {
    border: 1px solid #d1d5db;
    padding: 8px;
}

.note {
    font-size: 14px;
    color: #555;
}

/* Обновляем стили для секции заявки */
.request {
    background: #ffffff;
    padding: 70px 0;
    border-top: 1px solid #e5e7eb;
}

.request h2 {
    text-align: left;
    margin-bottom: 30px;
    color: #0f172a;
    font-size: 28px;
}

.request form {
    max-width: 500px;
    margin: 0; /* Убираем auto, который центрировал форму */
    text-align: left; /* Выравниваем текст по левому краю */
}

.request input, .request textarea {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.request input:focus, .request textarea:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.request textarea {
    min-height: 120px;
    resize: vertical;
}

.request button.btn {
    width: auto;
    min-width: 180px;
    padding: 14px 32px;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: #16a34a;
    color: white;
    font-weight: 600;
    transition: background-color 0.2s, transform 0.2s;
}

.request button.btn:hover {
    background: #0d8b3a;
    transform: translateY(-2px);
}

.footer {
    background: #0f172a;
    color: #cbd5f5;
    text-align: center;
    padding: 20px;
}

.conditions {
    background: #f9fafb;
    padding: 70px 0;
}

.conditions h2 {
    text-align: center;
    margin-bottom: 10px;
}

.conditions-subtitle {
    text-align: center;
    color: #475569;
    margin-bottom: 40px;
    font-size: 16px;
}

.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.condition-card {
    display: flex;
    gap: 16px;
    background: #ffffff;
    border-radius: 10px;
    padding: 20px 22px;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.condition-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.condition-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}

.condition-text h4 {
    margin: 0 0 6px 0;
    font-size: 16px;
}

.condition-text p {
    margin: 0;
    font-size: 14px;
    color: #475569;
    line-height: 1.4;
}

.about {
    background: #ffffff;
    padding: 70px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.about h2 {
    text-align: center;
    margin-bottom: 40px;
}

.about-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

.about-photo {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.about-text h3 {
    margin-top: 0;
    color: #0f172a;
    font-size: 24px;
}

.about-text .subtitle {
    color: #16a34a;
    font-weight: bold;
    margin-bottom: 25px;
    font-size: 16px;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #475569;
}

.about-text strong {
    color: #0f172a;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-photo {
        max-width: 280px;
        margin: 0 auto;
    }
}

/* Стили для секции "Лицензии и дипломы" */
.certificates {
    background: #f9fafb;
    padding: 70px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.certificates h2 {
    text-align: center;
    margin-bottom: 15px;
    color: #0f172a;
}

.section-subtitle {
    text-align: center;
    color: #475569;
    margin-bottom: 40px;
    font-size: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.certificate-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.certificate-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.certificate-link {
    display: block;
    position: relative;
    overflow: hidden;
    height: 240px;
    background: #f8fafc;
}

.certificate-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 15px;
    transition: transform 0.4s ease;
}

.certificate-link:hover img {
    transform: scale(1.03);
}

.certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certificate-link:hover .certificate-overlay {
    opacity: 1;
}

.zoom-icon {
    font-size: 30px;
    color: white;
    background: rgba(22, 163, 74, 0.8);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate-title {
    padding: 20px;
    margin: 0;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    border-top: 1px solid #f1f5f9;
    background: #ffffff;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .certificates {
        padding: 50px 0;
    }
    
    .certificates-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .certificate-link {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .certificates-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }
}

/* Стили для секции контактов */
.contacts {
    background: #ffffff;
    padding: 70px 0;
    border-top: 1px solid #e5e7eb;
}

.contacts h2 {
    text-align: center;
    margin-bottom: 40px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    gap: 20px;
    background: #f8fafc;
    border-radius: 10px;
    padding: 25px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: #16a34a;
}

.contact-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f5e9;
    border-radius: 10px;
    color: #16a34a;
}

.contact-details h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #0f172a;
}

.contact-details p {
    margin: 5px 0;
    color: #475569;
    line-height: 1.5;
}

.contact-details a {
    color: #16a34a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.contact-details a:hover {
    color: #0d8b3a;
    text-decoration: underline;
}

.contact-note {
    font-size: 14px;
    color: #64748b !important;
    margin-top: 8px !important;
}

.contacts-note {
    text-align: center;
    padding: 20px;
    background: #f1f5f9;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
}

.contacts-note p {
    margin: 0;
    color: #475569;
    font-size: 16px;
}

/* Обновим стили футера */
/* Обновлённые стили для футера */
.footer {
    background: #0f172a;
    color: #cbd5f5;
    padding: 50px 0 30px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

/* Стили для логотипа в футере */
.footer-logo {
    text-align: center;
    margin-bottom: 10px;
}

.logo-footer {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.logo-footer:hover {
    opacity: 1;
}

.logo-footer img {
    height: 45px;
    width: auto;
}

.logo-text-footer {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff; /* Белый цвет текста как в header */
    white-space: nowrap;
    letter-spacing: 0.5px;
}

/* Стили для информации в футере */
.footer-info {
    border-top: 1px solid #334155;
    border-bottom: 1px solid #334155;
    padding: 25px 0;
    margin: 15px 0;
    text-align: center;
    width: 100%;
    max-width: 500px;
}

.footer-info p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #cbd5f5;
}

.footer-info strong {
    color: #ffffff;
    font-weight: 600;
}

/* Стили для копирайта */
.footer-copyright {
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
}

.footer-copyright p {
    margin: 5px 0;
    color: #94a3b8;
}

.footer-copyright p:first-child {
    color: #cbd5f5;
    font-weight: 500;
    font-size: 15px;
}

/* Адаптивность для футера */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 25px;
    }
    
    .logo-footer {
        flex-direction: column; /* На мобильных - в колонку */
        gap: 8px;
    }
    
    .logo-footer img {
        height: 40px;
    }
    
    .logo-text-footer {
        font-size: 18px;
    }
    
    .footer-info {
        padding: 20px 0;
        max-width: 100%;
    }
    
    .footer-info p {
        font-size: 15px;
    }
    
    .footer-info strong {
        display: block;
        margin-bottom: 5px;
    }
    
    .footer-copyright p:first-child {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .logo-text-footer {
        font-size: 16px;
    }
    
    .footer-info p {
        font-size: 14px;
    }
    
    .footer-copyright {
        font-size: 13px;
    }
}

/* Адаптивность для футера */
@media (max-width: 768px) {
    .footer-info p {
        font-size: 14px;
    }
    
    .footer-info strong {
        display: block;
        margin-bottom: 5px;
        min-width: auto;
    }
}

/* Адаптивность для контактов */
@media (max-width: 768px) {
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Можно также добавить медиа-запрос для лучшего отображения 3 элементов */
@media (max-width: 900px) {
    .contacts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .contacts-grid {
        grid-template-columns: 1fr;
    }
}
}


