/* Общие стили и сброс */
:root {
    --primary-color: #3a506b; /* Глубокий сине-серый */
    --secondary-color: #6c91c2; /* Спокойный синий */
    --text-color: #333;
    --bg-color: #f4f7f6;
    --light-bg-color: #ffffff;
    --accent-color: #e8c547; /* Теплый акцентный цвет */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Roboto', sans-serif; line-height: 1.6; color: var(--text-color); background-color: var(--bg-color); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; color: var(--primary-color); }
h1 { font-size: 2.8rem; line-height: 1.2; margin-bottom: 10px; }
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 40px; }
h3 { margin-bottom: 15px; color: var(--secondary-color); }
section { padding: 60px 0; }
.section-subtitle { text-align: center; max-width: 700px; margin: -30px auto 40px; font-size: 1.1rem; }

.btn { display: inline-block; padding: 12px 25px; background-color: var(--secondary-color); color: #fff; text-decoration: none; border-radius: 5px; font-family: 'Montserrat', sans-serif; transition: background-color 0.3s ease; }
.btn:hover { background-color: var(--primary-color); }

/* Header */
.header { background-color: var(--light-bg-color); box-shadow: 0 2px 5px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 100; width: 100%; }
.header-content { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { font-family: 'Montserrat', sans-serif; font-size: 1.5rem; font-weight: 500; color: var(--primary-color); text-decoration: none; }
.nav ul { display: flex; list-style: none; }
.nav ul li { margin-left: 30px; }
.nav ul li a { text-decoration: none; color: var(--primary-color); font-weight: 500; transition: color 0.3s ease; }
.nav ul li a:hover { color: var(--secondary-color); }

/* Hero Section */
.hero { background-color: var(--light-bg-color); min-height: calc(100vh - 70px); display: flex; align-items: center; }
.hero-container { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero-text { flex: 1; }
.hero-text .subtitle { font-family: 'Montserrat', sans-serif; font-size: 1.2rem; font-weight: 500; color: var(--secondary-color); margin-bottom: 20px; }
.hero-image { flex: 1; text-align: center; }
.hero-image img { max-width: 100%; height: auto; width: 380px; border-radius: 50%; object-fit: cover; aspect-ratio: 1/1; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* About Section */
.about-container { display: flex; align-items: center; gap: 50px; }
.about-image { flex: 1; }
.about-text { flex: 1.5; }
.about-image img { max-width: 100%; border-radius: 10px; }
.credentials { margin-top: 30px; }
.credentials h3 { font-size: 1.2rem; font-weight: 600; }
.credentials ul { list-style: none; padding-left: 0; }
.credentials li { padding: 5px 0 5px 30px; position: relative; }
.credentials li::before { content: '✓'; color: var(--secondary-color); font-weight: bold; position: absolute; left: 0; top: 5px; font-size: 1.2rem; }

/* Стили для секции с сертификатами */
.certificates-section { background-color: #f8f9fa; padding: 60px 0; }
.section-title-light { font-size: 2.2rem; text-align: center; margin-bottom: 40px; font-family: 'Montserrat', sans-serif; font-weight: 500; color: var(--primary-color); }
.certificates-section .swiper { width: 100%; height: 380px; padding: 10px 0 50px 0; }
.certificates-section .swiper-slide { text-align: center; font-size: 18px; background: transparent; width: auto; display: flex; justify-content: center; align-items: center; }
.certificate-link { display: block; height: 300px; }
.certificates-section .swiper-slide img { display: block; height: 100%; width: auto; border-radius: 8px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); cursor: pointer; transition: transform 0.3s ease, box-shadow 0.4s ease; }
.certificates-section .swiper-slide:hover img { transform: translateY(-8px); box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15); }
.swiper-pagination { position: absolute; bottom: 10px !important; }
.swiper-pagination-bullet { width: 12px; height: 12px; background-color: #ccc; opacity: 1; transition: background-color 0.3s ease; }
.swiper-pagination-bullet-active { background-color: var(--secondary-color); }

/* Formats Section */
.formats { background-color: var(--light-bg-color); }
.formats-cards { display: flex; gap: 30px; justify-content: center; }
.card { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.08); flex-basis: 32%; text-align: left; }
.card h4 { margin-top: 15px; font-size: 1.1rem; }
.card hr { border: none; height: 1px; background-color: #eee; margin: 15px 0; }

/* Requests Section */
.approach-info { text-align: center; max-width: 700px; margin: -20px auto 30px; background: #e9eef2; padding: 15px; border-radius: 8px; }
.requests-list { max-width: 700px; margin: 0 auto; columns: 2; column-gap: 40px; }
.requests-list ul { list-style: none; padding-left: 0; }
.requests-list li { padding: 8px 0 8px 30px; position: relative; border-bottom: 1px solid #ddd; }
.requests-list li::before { content: '✓'; color: var(--secondary-color); font-weight: bold; position: absolute; left: 0; top: 8px; }

/* Contact Section */
.contact { background-color: var(--primary-color); color: #fff; }
.contact h2 { color: #fff; }
.contact p { max-width: 700px; margin: 0 auto; text-align: center; }
.contact-details { margin-top: 30px; text-align: center; }
.contact-details p { margin-bottom: 10px; font-size: 1.2rem; }
.contact-details a { color: #fff; text-decoration: none; }
.contact-details a:hover { text-decoration: underline; color: var(--accent-color); }

/* Footer */
.footer { background-color: #333; color: #ccc; text-align: center; padding: 20px 0; font-size: 0.9rem; }

/* Лайтбокс */
.lightbox { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.9); justify-content: center; align-items: center; }
.lightbox.active { display: flex; }
.lightbox-content { margin: auto; display: block; max-width: 90%; max-height: 90vh; animation: zoom 0.4s ease-in-out; }
.close-lightbox { position: absolute; top: 15px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; transition: 0.3s; cursor: pointer; }
.close-lightbox:hover, .close-lightbox:focus { color: #bbb; }
@keyframes zoom { from {transform: scale(0.8)} to {transform: scale(1)} }

/* Burger Menu */
.burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.burger span { display: block; width: 25px; height: 3px; background-color: var(--primary-color); transition: all 0.3s ease; }

/* Адаптивность */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .nav { display: none; position: absolute; top: 70px; left: 0; width: 100%; background-color: var(--light-bg-color); flex-direction: column; text-align: center; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
    .nav.active { display: flex; }
    .nav ul { flex-direction: column; }
    .nav ul li { margin: 0; padding: 15px 0; border-top: 1px solid #eee; }
    .burger { display: flex; }
    .burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .burger.active span:nth-child(2) { opacity: 0; }
    .burger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

    .hero-container, .about-container { flex-direction: column; text-align: center; }
    .hero-text { order: 2; }
    .hero-image { order: 1; margin-bottom: 30px; }
    .hero-image img { width: 280px; }
    .about-text { text-align: left; }

    .formats-cards { flex-direction: column; }
    .requests-list { columns: 1; }
}