
body {
    background-color: #101827;
    color: white;
    font-family: Arial, sans-serif;
    text-align: center;
    padding: 20px;
}

h1 {
    color: #a78bfa;
    font-size: 42px;
}

h2 {
    font-size: 26px;
}

p {
    font-size: 18px;
    color: #cbd5e1;
}

button {
    background-color: #a78bfa;
    color: #101827;
    border: none;
    border-radius: 10px;
    padding: 14px 28px;
    font-size: 16px;
    cursor: pointer;
}

/* Верхнее меню сайта */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #1e293b;
    border-radius: 12px;
}

/* Логотип DLS LAB */
.logo {
    font-size: 28px;
    font-weight: bold;
    color: white;
}

.logo span {
    color: #a78bfa;
}

/* Ссылки меню */
nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

/* Эффект при наведении мыши */
nav a:hover {
    color: #a78bfa;
}

/* Раздел наших услуг */
#services {
    margin-top: 80px;
    padding: 30px 0;
}

#services h2 {
    font-size: 32px;
    margin-bottom: 35px;
}

/* Контейнер с карточками */
.services-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

/* Карточка услуги */
.service-card {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 30px 20px;
    width: 240px;
    transition: transform 0.3s, border-color 0.3s;
}

/* Заголовок карточки */
.service-card h3 {
    color: #a78bfa;
    font-size: 20px;
}

/* Текст карточки */
.service-card p {
    font-size: 16px;
    line-height: 1.6;
}

/* Эффект при наведении мыши */
.service-card:hover {
    transform: translateY(-8px);
    border-color: #a78bfa;
}
html {
    scroll-behavior: smooth;
}

/* Раздел контактов */
#contacts {
    margin-top: 80px;
    padding: 40px 20px;
}

#contacts h2 {
    font-size: 32px;
    color: white;
}

/* Карточка контактов */
.contact-box {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 30px;
    max-width: 550px;
    margin: 30px auto;
}

.contact-box p {
    font-size: 17px;
    line-height: 1.8;
}

/* Нижняя часть сайта */
footer {
    background-color: #1e293b;
    margin-top: 60px;
    padding: 30px 20px;
    border-radius: 12px;
}

.footer-content p {
    margin: 10px 0;
    font-size: 14px;
}

.footer-logo {
    font-size: 24px !important;
    font-weight: bold;
    color: white;
}

.footer-logo span {
    color: #a78bfa;
}

/* Адаптация сайта для смартфонов */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    h1 {
        font-size: 28px;
    }

    .services-container {
        flex-direction: column;
        align-items: center;
    }
}

/* Улучшение мобильной версии */
@media (max-width: 600px) {
    #services {
        margin-top: 40px;
    }

    .service-card {
        width: 100%;
        max-width: 340px;
        box-sizing: border-box;
    }
}
/* Фирменный баннер DLS LAB */
.main-banner {
    display: block;
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: 20px auto 30px;
    border-radius: 16px;
}
/* ===== DLS LAB: ФИРМЕННЫЙ СТИЛЬ ===== */

/* Плавность эффектов */
.service-card {
    transition: transform 0.3s ease,
                box-shadow 0.3s ease,
                border-color 0.3s ease;

    border: 1px solid rgba(167, 139, 250, 0.2);
}

/* Свечение при наведении */
.service-card:hover {
    transform: translateY(-8px);

    border-color: #a78bfa;

    box-shadow:
        0 0 25px rgba(139, 92, 246, 0.25),
        0 0 45px rgba(56, 130, 246, 0.12);
}

/* Заголовки карточек */
.service-card h3 {
    color: #a78bfa;
    margin-bottom: 18px;
}

/* Текст карточек */
.service-card p {
    line-height: 1.7;
}
/* Расстояния между разделами */
#services {
    margin-top: 60px;
    margin-bottom: 60px;
}

#contacts {
    margin-top: 60px;
}

/* Адаптация расстояний для телефона */
@media (max-width: 600px) {
    #services {
        margin-top: 35px;
        margin-bottom: 35px;
    }

    #contacts {
        margin-top: 35px;
    }
}
/* Фирменная кнопка */
button {
    background: linear-gradient(
        135deg,
        #a78bfa,
        #6366f1
    );

    color: white;
    border: none;
    border-radius: 10px;
    padding: 14px 28px;

    font-weight: 600;
    cursor: pointer;

    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}

button:hover {
    transform: translateY(-3px);

    box-shadow:
        0 0 25px rgba(167, 139, 250, 0.45);
}
/* ===== ПОРТФОЛИО DLS ART ===== */

#portfolio {
    padding: 70px 20px;
    text-align: center;
}

#portfolio h2 {
    font-size: 30px;
    margin-bottom: 20px;
}

.portfolio-intro {
    max-width: 650px;
    margin: 0 auto 35px;
    line-height: 1.7;
    color: #cbd5e1;
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.portfolio-card {
    background: #1e293b;
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

.portfolio-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.portfolio-card h3 {
    color: #a78bfa;
    margin: 20px 15px 10px;
}

.portfolio-card p {
    padding: 0 20px 20px;
    line-height: 1.6;
}

/* Планшеты */
@media (max-width: 900px) {
    .portfolio-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Смартфоны */
@media (max-width: 600px) {
    #portfolio {
        padding: 40px 10px;
    }

    .portfolio-container {
        grid-template-columns: 1fr;
    }
}
/* Компактное расположение портфолио */
#portfolio {
    padding-top: 35px;
    padding-bottom: 45px;
}
.portfolio-label {
    color: #a78bfa;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 15px;
}
#contacts a {
    color: #a78bfa;
    text-decoration: none;
    font-weight: bold;
}

#contacts a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

/* ===== DLS LAB 1.0: финальные улучшения ===== */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; padding: 20px; }
main { display: block; }
:focus-visible { outline: 3px solid #a78bfa; outline-offset: 4px; }
.primary-button, .contact-button {
    display: inline-block; padding: 14px 28px; border-radius: 10px;
    background: linear-gradient(135deg, #a78bfa, #6366f1);
    color: white; font-size: 16px; font-weight: 600;
    text-decoration: none; transition: transform .2s ease, box-shadow .2s ease;
}
.primary-button:hover, .contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(167,139,250,.4);
    color: white; text-decoration: none;
}
#contacts .contact-button { color: white; }
.contact-box h3 { color: #a78bfa; font-size: 24px; }
.contact-email { overflow-wrap: anywhere; }
#services, #portfolio, #contacts { scroll-margin-top: 20px; }
@media (max-width: 600px) {
    body { padding: 12px; }
    header { padding: 18px 12px; }
    nav { gap: 12px; }
    nav a { font-size: 14px; }
    h1 { font-size: clamp(26px, 7vw, 34px); }
    h2 { font-size: 23px; }
    p { font-size: 16px; }
    .service-card { max-width: 100%; }
    .contact-box { padding: 24px 16px; }
    #contacts { padding: 30px 4px; }
    #portfolio { padding-left: 4px; padding-right: 4px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
