/* css/styles.css */

/* ===== ПЕРЕМЕННЫЕ ===== */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --error-color: #ef4444;
    --transition: 0.3s ease;
}

/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 80px 0;
}

/* ===== ШАПКА ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    height: 70px;
}

.header-contacts {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.header-phone {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    padding: 0.25rem 0.6rem;
    border-radius: 5px;
    transition: color 0.3s;
}

.header-phone:hover {
    color: var(--secondary-color);
    background: #f1f5f9;
}

.header-whatsapp {
    display: flex;
    align-items: center;
    transition: box-shadow 0.3s;
    padding: 4px;
}

.header-whatsapp img {
    display: block;
    width: 26px;
    height: 26px;
}

.header-whatsapp:hover {
    box-shadow: 0 0 0 3px #e2e8f0;
}

/* Логотип */
.logo a {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-pic {
    max-height: 60px;
}

.logo-text {
    margin-left: 0.5rem;
}

/* Навигация */
.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-list a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition);
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

/* Бургер-меню */
.burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.burger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all var(--transition);
}

.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 {
    margin-top: 45px;
    position: relative;
    height: 600px;
    overflow: hidden;
    padding: 0;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    text-align: center;
    color: var(--white);
    padding: 2rem;
    max-width: 800px;
    /* background-color: rgba(0, 0, 0, 0.5); */
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 4px rgba(0, 0, 0, 0.5);

}

.slide-content h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 3px 3px 4px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    text-shadow: 3px 3px 4px rgba(0, 0, 0, 0.5);
}

.slide-content .regions {
    font-size: 1rem;
    opacity: 0.9;
}

/* Кнопки слайдера */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
    border: none;
    font-size: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background-color var(--transition);
    z-index: 10;
}

.slider-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.slider-btn-prev {
    left: 20px;
}

.slider-btn-next {
    right: 20px;
}

/* Индикаторы слайдера */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color var(--transition);
}

.dot.active,
.dot:hover {
    background-color: var(--white);
}

/* ===== О КОМПАНИИ ===== */
.about {
    background-color: var(--bg-light);
}

.about-content p {
    font-size: 1.125rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-light);
}

/* ===== УСЛУГИ ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    padding: 10px;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== ГАЛЕРЕЯ ===== */
.gallery {
    background-color: var(--bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1 / 1;
    background-color: #ddd;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition);
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== ИСПЫТАНИЯ ===== */
.tests-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.test-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--white);
    border-left: 4px solid var(--accent-color);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow var(--transition);
}

.test-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.test-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    font-weight: 700;
}

.test-item p {
    margin: 0;
    color: var(--text-color);
}

/* ===== ОТЧЕТЫ ===== */
.reports {
    background-color: var(--bg-light);
}

.reports-content {
    max-width: 800px;
    margin: 0 auto;
}

.reports-list {
    list-style: none;
    padding: 0;
}

.reports-list li {
    padding: 1rem 1rem 1rem 3rem;
    margin-bottom: 1rem;
    background-color: var(--white);
    border-radius: 4px;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.reports-list li::before {
    content: '✓';
    position: absolute;
    left: 1rem;
    color: var(--success-color);
    font-weight: 700;
    font-size: 1.25rem;
}

/* ===== ЦЕНЫ ===== */
.prices-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem;
    color: var(--text-light);
}

.price-table-wrapper {
    overflow-x: auto;
    margin-bottom: 2rem;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.price-table thead {
    background-color: var(--primary-color);
    color: var(--white);
}

.price-table th,
.price-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.price-table tbody tr:hover {
    background-color: var(--bg-light);
}

.price-notes {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #fef3c7;
    border-left: 4px solid var(--accent-color);
    border-radius: 4px;
}

.price-notes ul {
    list-style-position: inside;
    margin-top: 1rem;
}

.price-notes li {
    margin-bottom: 0.5rem;
}

/* ===== КОНТАКТЫ И ФОРМА ===== */
.contact {
    background-color: var(--bg-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.contact-item p {
    margin-bottom: 0.25rem;
}

.contact-item a {
    color: var(--text-color);
}

.contact-item a:hover {
    color: var(--secondary-color);
}

/* Форма */
.contact-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.required {
    color: var(--error-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group.error input,
.form-group.error textarea {
    border-color: var(--error-color);
}

.error-message {
    display: none;
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-group.error .error-message {
    display: block;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition);
}

.btn-submit:hover {
    background-color: var(--secondary-color);
}

.form-success {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #d1fae5;
    color: var(--success-color);
    border-radius: 4px;
    text-align: center;
}

/* ===== ФУТЕР ===== */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.footer-content p {
    margin-bottom: 0.5rem;
}

.footer a {
    color: var(--white);
    text-decoration: underline;
}

.footer a:hover {
    color: var(--accent-color);
}

.certificates {
    padding: 80px 0;
    background-color: #f9fafb;
}

.certificates h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.certificates-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.certificate-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    padding: 2rem 1.5rem 1rem 1.5rem;
    text-align: center;
    width: auto;
    max-width: 100%;
    transition: transform 0.3s;
}

.certificate-item:hover {
    transform: translateY(-7px) scale(1.03);
}

.certificate-item img {
    width: 100%;
    max-height: 540px;
    object-fit: contain;
    border-radius: 4px;
    margin-bottom: 1rem;
    background: #f1f5f9;
    box-shadow: 0 2px 10px rgba(30, 58, 138, 0.06);
}

.certificate-item p {
    margin: 0;
    color: #555;
    font-size: 1rem;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .certificates-grid {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .certificate-item {
        width: 100%;
        padding: 1.5rem 1rem 1rem 1rem;
    }
}

/* ===== АДАПТИВНОСТЬ ===== */

/* Планшеты */
@media (max-width: 992px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .slide-content h1 {
        font-size: 2.5rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .burger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--white);
        transform: translateX(-100%);
        transition: transform var(--transition);
        overflow-y: auto;
    }

    .nav.active {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        padding: 2rem;
        gap: 0;
    }

    .nav-list li {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-list a {
        display: block;
        padding: 1rem 0;
    }
}

/* Мобильные устройства */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .header-content {
        gap: 0.2rem;
    }

    .header-phone {
        padding-right: 0;
        padding-left: 3px;
    }

    .header-whatsapp {
        width: 35px;
    }

    .header-whatsapp:hover {
        box-shadow: none;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }



    .hero {
        height: 400px;
    }

    .slide-content h1 {
        font-size: 1.75rem;
    }

    .slide-content h2 {
        font-size: 1.75rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .slider-btn {
        padding: 0.5rem 1rem;
        font-size: 1.5rem;
    }

    .slider-btn-prev {
        left: 10px;
    }

    .slider-btn-next {
        right: 10px;
    }

    .services-grid,
    .tests-list {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .price-table {
        font-size: 0.875rem;
    }

    .price-table th,
    .price-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo-text {
        font-size: 1.125rem;
    }

    .hero {
        height: 300px;
    }

    .slide-content h1 {
        font-size: 1.5rem;
    }

    .slide-content h2 {
        font-size: 1.25rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}