* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; color: #333; background-color: #f9f9f9; line-height: 1.6; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }

.container { max-width: 1170px; margin: 0 auto; padding: 0 15px; }
.flex { display: flex; }
.flex--between { justify-content: space-between; }
.flex--center { align-items: center; }
.flex--wrap { flex-wrap: wrap; }

/* Шапка */
.header { background: #fff; padding: 15px 0; box-shadow: 0 2px 5px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
.logo img { max-height: 60px; width: auto; display: block; }
.nav ul { display: flex; gap: 20px; }
.nav li { margin: 0; }
.nav a { font-weight: 600; color: #444; transition: color 0.3s; }
.nav a:hover { color: #b81678; }
.header__contact a { font-weight: bold; color: #b81678; font-size: 1.1rem; }


.burger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: relative;
    z-index: 101;
    padding: 0;
}

.burger-btn span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #333;
    border-radius: 3px;
    left: 0;
    transition: 0.3s ease-in-out;
}

.burger-btn span:nth-child(1) { top: 0; }
.burger-btn span:nth-child(2) { top: 9.5px; }
.burger-btn span:nth-child(3) { top: 19px; }


.burger-btn.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9.5px;
}
.burger-btn.active span:nth-child(2) {
    opacity: 0;
}
.burger-btn.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 9.5px;
}


.service { padding: 60px 0; }
.title { text-align: center; margin-bottom: 40px; }
.title h2 { font-size: 2.2rem; color: #222; }

.service__list { 
    display: flex;
    flex-wrap: wrap;
    gap: 20px; 
    justify-content: center; 
}

.service__list > li {
    flex: 0 0 calc(25% - 15px);
    max-width: calc(25% - 15px);
}

.service__item { 
    background: #fff; 
    border-radius: 8px; 
    padding: 25px 20px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
    transition: transform 0.3s; 
    display: block; 
    text-align: center; 
    height: 100%;
}

.service__item:hover { transform: translateY(-5px); }

/* Обновленные стили для увеличенных картинок в карточках услуг */
.service__img {
    margin-bottom: 20px;
    border-radius: 6px;
    overflow: hidden;
}

.service__img img {
    width: 100%;
    height: 180px;          /* Фиксированная аккуратная высота */
    object-fit: cover;      /* Чтобы картинка не деформировалась */
    display: block;
    border-radius: 6px;
}

.service__img.service__img--icon img {
    max-width: 80px;
    width: auto;
    height: auto;
    display: inline-block;
    margin: 0 auto;
}

.service__descr h3 { font-size: 1.1rem; margin-bottom: 10px; color: #111; }
.service__descr p { color: #666; font-size: 0.9rem; }

@media(max-width: 992px) {
    .service__list > li {
        flex: 0 0 calc(50% - 10px); 
        max-width: calc(50% - 10px);
    }
}

@media(max-width: 576px) {
    .service__list > li {
        flex: 0 0 100%; 
        max-width: 100%;
    }
}

/* Форма */
.form { background: #2b1055; color: #fff; padding: 60px 0; position: relative; }
.form__body { gap: 40px; }
.form__left { flex: 1; }
.form__left__title { font-size: 2rem; font-weight: bold; margin-bottom: 20px; line-height: 1.3; }
.form__left__title span { color: #f9c407; }
.form__left__descr { color: #ddd; font-size: 1.05rem; }
.form__right { flex: 1; background: rgba(255,255,255,0.05); padding: 30px; border-radius: 8px; }
.input-wrapper { margin-bottom: 15px; }
.clean-form input { width: 100%; padding: 12px 15px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.1); color: #fff; border-radius: 4px; outline: none; }
.clean-form input::placeholder { color: #bbb; }
.btn { display: inline-block; padding: 12px 30px; border-radius: 4px; font-weight: bold; cursor: pointer; border: none; text-align: center; }
.btn--pink { background-color: #b81678; color: #fff; width: 100%; transition: background 0.3s; }
.btn--pink:hover { background-color: #961160; }


.footer { 
    background: #1a1a1a; 
    color: #aaa; 
    padding: 50px 0 30px; 
    font-size: 0.95rem; 
}

.footer__container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer__left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer .copyright { 
    color: #666; 
    font-size: 0.85rem; 
    line-height: 1.5;
}

.footer__content { 
    flex: 1; 
    max-width: 650px;
}

.footer__row { 
    margin-bottom: 20px; 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
    padding-bottom: 20px; 
}

.footer__row--contacts {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.address span { display: block; color: #fff; font-weight: 600; margin-bottom: 5px; }

.social { 
    display: flex;
    gap: 15px; 
}
.social img { width: 24px; height: 24px; filter: brightness(0.8); transition: filter 0.3s; }
.social img:hover { filter: brightness(1); }

.footer__phone { margin-bottom: 5px; }
.footer__phone a { font-size: 1.2rem; font-weight: bold; color: #fff; }

.footer__schedule { 
    font-size: 0.85rem; 
    color: #888; 
    margin-bottom: 5px; 
}

.footer__mail a { 
    color: #f9c407; 
    display: block; 
    font-size: 0.95rem;
}

@media(max-width: 768px) {
    .footer__container { 
        flex-direction: column; 
        gap: 30px;
    }
    .footer__content { 
        width: 100%;
        max-width: 100%; 
    }
}


@media(max-width: 768px) {
    .header__contact {
        display: none; 
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 100%;
        max-width: 100%;
        height: 100vh;
        background: #fff;
        padding: 100px 40px 40px;
        transition: right 0.3s ease-in-out;
        z-index: 1000;
    }

    .nav.active {
        right: 0; 
    }

    .nav ul {
        flex-direction: column;
        gap: 25px;
    }

    .nav a {
        font-size: 1.4rem;
        display: block;
        padding: 5px 0;
    }

    .burger-btn {
        display: block;
        position: fixed;
        top: 25px;
        right: 25px;
        z-index: 1001;
    }

    .form__body { flex-direction: column; }
    .footer__content { margin-left: 0; margin-top: 30px; }
    .footer .container { flex-direction: column; }
}


.seo-section {
    background-color: #fff;
    padding: 50px 0;
    border-top: 1px solid #eaeaea;
    color: #555;
}

.seo-content h2 {
    font-size: 1.8rem;
    color: #222;
    margin-bottom: 20px;
    text-align: left;
}

.seo-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.seo-content p:last-child {
    margin-bottom: 0;
}

@media(max-width: 768px) {
    .seo-section {
        padding: 35px 0;
    }
    .seo-content h2 {
        font-size: 1.5rem;
    }
}


.infinite-gallery {
    overflow: hidden;
    background: #fff;
    padding: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 20px;
}

.marquee-group {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-shrink: 0;
    will-change: transform;
}

.marquee-group img {
    height: 220px;
    width: 330px; 
    object-fit: cover; 
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    display: block;
    flex-shrink: 0;
}

.marquee-left .marquee-group {
    animation: scrollLeft 30s linear infinite;
}

.marquee-right .marquee-group {
    animation: scrollRight 30s linear infinite;
}

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100% - 20px)); }
}

@keyframes scrollRight {
    0% { transform: translateX(calc(-100% - 20px)); }
    100% { transform: translateX(0); }
}

.infinite-gallery:hover .marquee-group {
    animation-play-state: paused;
}

@media(max-width: 768px) {
    .marquee-group img {
        height: 130px;
        width: 200px;
    }
    .infinite-gallery {
        padding: 15px 0;
        gap: 12px;
    }
    .marquee-track, .marquee-group {
        gap: 12px;
    }
    @keyframes scrollLeft {
        100% { transform: translateX(calc(-100% - 12px)); }
    }
    @keyframes scrollRight {
        0% { transform: translateX(calc(-100% - 12px)); }
    }
}


.blog-page {
    padding: 60px 0;
}

.blog__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog__card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

.blog__card:hover {
    transform: translateY(-5px);
}

.blog__img {
    display: block;
    height: 200px;
    overflow: hidden;
}

.blog__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog__card:hover .blog__img img {
    transform: scale(1.05);
}

.blog__content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog__date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
}

.blog__content h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: #222;
    line-height: 1.4;
}

.blog__content h3 a:hover {
    color: #b81678;
}

.blog__content p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.6;
}

.blog__read-more {
    font-weight: 600;
    color: #b81678;
    font-size: 0.9rem;
    display: inline-block;
    transition: color 0.3s;
}

.blog__read-more:hover {
    color: #961160;
}

@media (max-width: 992px) {
    .blog__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .blog-page {
        padding: 40px 0;
    }
    .blog__grid {
        grid-template-columns: 1fr;
    }
}


.article-page {
    padding: 50px 0 80px;
    background-color: #fff;
}

.container--narrow {
    max-width: 800px;
}

.breadcrumbs {
    margin-bottom: 25px;
}
.breadcrumbs ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    color: #777;
    list-style: none;
}
.breadcrumbs a:hover {
    color: #b81678;
}

.article-header {
    margin-bottom: 25px;
}
.article-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 12px;
}
.article-category {
    color: #b81678;
    font-weight: 600;
}
.article-header h1 {
    font-size: 2.3rem;
    color: #111;
    line-height: 1.3;
}

.article-featured-image {
    margin-bottom: 35px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

.article-content p.lead {
    font-size: 1.15rem;
    font-weight: 500;
    color: #222;
}

.article-content h2 {
    font-size: 1.6rem;
    color: #222;
    margin: 40px 0 15px;
}

.article-content h3 {
    font-size: 1.3rem;
    color: #333;
    margin: 30px 0 12px;
}


.article-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.article-content ol li, 
.article-content ul li {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 8px;
}


.article-content ul {
    list-style: disc !important;
    margin-left: 20px;
    margin-bottom: 20px;
}

.article-content li {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 8px;
}

.article-quote {
    background: #f9f9f9;
    border-left: 4px solid #b81678;
    padding: 20px 25px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}
.article-quote p {
    font-style: italic;
    color: #333;
    margin-bottom: 0;
}


.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 0.95rem;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    border-radius: 6px;
    overflow: hidden;
}

.article-content th, 
.article-content td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eaeaea;
}

.article-content th {
    background-color: #2b1055;
    color: #fff;
    font-weight: 600;
}

.article-content tr:nth-child(even) {
    background-color: #fcfcfc;
}

.article-content tr:hover {
    background-color: #f7f3fb;
}


.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 25px;
}

.article-cta {
    background: #2b1055;
    color: #fff;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    margin-top: 50px;
}
.article-cta h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #fff;
}
.article-cta p {
    color: #ddd;
    margin-bottom: 25px;
    font-size: 1.05rem;
}
.article-cta .btn {
    max-width: 250px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .article-header h1 {
        font-size: 1.7rem;
    }
    .article-page {
        padding: 30px 0 50px;
    }
    .article-cta {
        padding: 25px 20px;
    }
}


.service-hero {
    padding: 60px 0;
    background-color: #fff;
    border-bottom: 1px solid #eaeaea;
}

.service-hero__grid {
    gap: 40px;
}

.service-hero__content {
    flex: 1;
}

.service-hero__content h1 {
    font-size: 2.4rem;
    color: #222;
    margin-bottom: 20px;
    line-height: 1.2;
}

.service-hero__content .lead {
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.7;
}

.service-hero__img {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.service-hero__img img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 992px) {
    .service-hero__grid {
        flex-direction: column-reverse;
    }
    .service-hero__content h1 {
        font-size: 1.9rem;
    }
}


.article-image {
    margin: 30px 0;
    width: 100%;
}

.article-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.article-image figcaption {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}


.article-image--center {
    text-align: center;
}
.article-image--center img {
    max-width: 800px;
    margin: 0 auto;
}


.article-image--left {
    float: left;
    margin: 0 25px 20px 0;
    max-width: 400px;
}


.seo-content::after {
    content: "";
    display: table;
    clear: both;
}


@media (max-width: 768px) {
    .article-image--left {
        float: none;
        max-width: 100%;
        margin: 20px 0;
    }
}