/* ==========================================================================
   Base styles
   ========================================================================== */
:root {
    --primary-color: #0c9fdd;
    --primary-dark: #3a56d4;
    --accent-color: #f72585;
    --accent-dark: #e5177b;
    --text-color: #2b2d42;
    --text-light: #8d99ae;
    --light-color: #edf2f4;
    --white: #ffffff;
    --black: #000000;
    --gray: #e9ecef;
    --dark-gray: #6c757d;
    --success-color: #4cc9f0;
    --warning-color: #f8961e;
    --error-color: #ef233c;
    
    --font-main: 'Manrope', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    
    --container-width: 1200px;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
    transition: var(--transition);
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 5rem 0;
}

.section__title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.section__title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.section__subtitle {
    font-size: 1.25rem;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    position: relative;
    overflow: hidden;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.4s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
}

.btn__icon {
    margin-right: 0.7rem;
    font-size: 1.1rem;
}

.btn--primary {
    background-color: var(--primary-color);
    color: var(--white);
}
.btn--primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}
.btn__pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    opacity: 0;
}
.btn--light:hover .btn__pulse {
    animation: pulse-animation 1.5s infinite;
}
@keyframes pulse-animation {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.2); opacity: 0; }
}
.btn--accent {
    background: linear-gradient(45deg, #f72585, #b5179e);
    color: white;
}

.btn--accent:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn--light {
    background: rgba(255, 255, 255, 0.9);
    color: #2b2d42;
    backdrop-filter: blur(5px);
}

.btn--light:hover {
    background-color: #e2e7ea;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}
.btn--shine {
    box-shadow: 0 4px 15px rgba(247, 37, 133, 0.4);
}

.btn--shine .btn__glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: 0.7s;
}
.btn--hover-grow:hover {
    transform: scale(1.05);
}
.btn--shine:hover .btn__glow {
    left: 100%;
}

.btn--outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn--outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn--small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn--large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ==========================================================================
   Header
   ========================================================================== */
.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: var(--transition);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.logo__primary {
    color: var(--primary-color);
}

.logo__secondary {
    color: var(--text-color);
}

.nav__list {
    display: flex;
    gap: 1.5rem;
}

.nav__link {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    padding: 0.5rem 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__link.active {
    color: var(--primary-color);
}

.phone {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--text-color);
}

.phone__icon {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.burger {
    display: none;
    width: 30px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
}

.burger__line {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: var(--transition);
}

.header__contacts {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ==========================================================================
   Hero section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url('https://up72.ru/img/bg-potolki.jpg') no-repeat center center/cover;
    color: var(--white);
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero__title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero__offer {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(5px);
    margin-top: 2rem;
}

.offer-badge {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
    border-radius: 50px;
    overflow: hidden;
    z-index: 1;
}
.offer-badge__content {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(90deg, #f72585 0%, #ff4da6 100%);
    color: white;
    font-weight: 600;
    border-radius: 50px;
    z-index: 2;
}
.offer-badge__icon {
    margin-right: 0.8rem;
    font-size: 1.2rem;
    color: #fff;
    animation: bounce 2s infinite;
}
.offer-badge__text strong {
    font-weight: 700;
    color: #fff;
}
.offer-badge__stars {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    border-radius: 50px;
    z-index: 1;
}

.star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    opacity: 0;
}

.star:nth-child(1) {
    width: 4px;
    height: 4px;
    top: 10px;
    left: 30px;
    animation: twinkle 3s infinite;
}

.star:nth-child(2) {
    width: 3px;
    height: 3px;
    top: 15px;
    right: 40px;
    animation: twinkle 4s infinite 1s;
}

.star:nth-child(3) {
    width: 2px;
    height: 2px;
    bottom: 10px;
    left: 50%;
    animation: twinkle 5s infinite 0.5s;
}
/* Анимации для бейджа */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(247, 37, 133, 0.7); }
    70% { transform: scale(1.02); box-shadow: 0 0 0 15px rgba(247, 37, 133, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(247, 37, 133, 0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-5px);}
    60% {transform: translateY(-3px);}
}

@keyframes twinkle {
    0% { opacity: 0; transform: translateY(0); }
    50% { opacity: 0.8; }
    100% { opacity: 0; transform: translateY(-20px); }
}
.hero__buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ==========================================================================
   Advantages section
   ========================================================================== */
.advantages {
    background-color: var(--light-color);
}

.advantages__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.advantage-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.advantage-card__icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.advantage-card__title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.advantage-card__text {
    color: var(--text-light);
}

/* ==========================================================================
   Services section
   ========================================================================== */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-card__image {
    height: 200px;
    overflow: hidden;
}

.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-card__image img {
    transform: scale(1.05);
}

.service-card__content {
    padding: 1.5rem;
}

.service-card__title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-card__description {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.service-card__price {
    margin-bottom: 1.5rem;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.service-card__btn {
    width: 100%;
}

/* ==========================================================================
   Portfolio section
   ========================================================================== */
.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.portfolio-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 250px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-item__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(67, 97, 238, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item__overlay i {
    color: var(--white);
    font-size: 2rem;
}

.portfolio-item:hover .portfolio-item__overlay {
    opacity: 1;
}

/* ==========================================================================
   CTA section
   ========================================================================== */
.cta {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://up72.ru/img/cta-bg.jpg') no-repeat center center/cover;
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
    padding-top: 4rem !important;
    margin-top: 2rem;
    position: relative; /* Для псевдоэлемента */
}

.cta__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta__text {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-form {
    max-width: 500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .cta-form {
        grid-template-columns: 1fr 1fr auto;
    }
}

.cta-form__input {
    padding: 1rem;
    border-radius: 50px;
    border: none;
}

.cta-form__submit {
    border-radius: 50px;
}

/* ==========================================================================
   Contacts section
   ========================================================================== */
.contacts__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 992px) {
    .contacts__grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item__icon {
    width: 50px;
    height: 50px;
    background-color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-item__title {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.contact-item__text,
.contact-item__link {
    color: var(--text-light);
}

.contact-item__link:hover {
    color: var(--primary-color);
}

.contacts__map {
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.contacts__map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--text-color);
    color: var(--white);
    padding: 4rem 0 0;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer__inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .footer__inner {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer__logo {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer__logo .logo__primary {
    color: var(--white);
}

.footer__logo .logo__secondary {
    color: var(--light-color);
}

.footer__text {
    color: var(--light-color);
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.footer__title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer__menu {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__link {
    color: var(--light-color);
    opacity: 0.8;
    transition: var(--transition);
}

.footer__link:hover {
    opacity: 1;
    color: var(--white);
    padding-left: 0.5rem;
}

.footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer__contact-icon {
    width: 20px;
    text-align: center;
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.social {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social__link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.125rem;
    transition: var(--transition);
}

.social__link:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer__btn {
    width: 100%;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer__bottom {
        flex-direction: row;
    }
}

.footer__copyright {
    color: var(--light-color);
    opacity: 0.8;
    font-size: 0.875rem;
}

.footer__policy {
    color: var(--light-color);
    opacity: 0.8;
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer__policy:hover {
    opacity: 1;
    color: var(--white);
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal__content {
    position: relative;
    background-color: var(--white);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: var(--transition);
}

.modal.active .modal__content {
    transform: translateY(0);
}

.modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.25rem;
    transition: var(--transition);
}

.modal__close:hover {
    color: var(--text-color);
}

.modal__title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.modal__text {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-form {
    display: grid;
    gap: 1rem;
}

.modal-form__group {
    margin-bottom: 0.5rem;
}

.modal-form__input {
    width: 100%;
}

.modal-form__submit {
    margin-top: 1rem;
}

/* ==========================================================================
   Responsive styles
   ========================================================================== */
@media (max-width: 1199px) {
    .section {
        padding: 4rem 0;
    }
    
    .hero__title {
        font-size: 3rem;
    }
}

@media (max-width: 991px) {
    .nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav__list {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    
    .nav__item {
        width: 100%;
        text-align: center;
    }
    
    .nav__link {
        display: block;
        padding: 1rem;
    }
    
    .nav__link::after {
        display: none;
    }
    
    .burger {
        display: flex;
    }
    
    .burger.active .burger__line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .burger.active .burger__line:nth-child(2) {
        opacity: 0;
    }
    
    .burger.active .burger__line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .header__contacts {
        display: none;
    }
    
    .hero__title {
        font-size: 2.5rem;
    }
    
    .hero__subtitle {
        font-size: 1.25rem;
    }
}
/* Адаптивность */
@media (max-width: 768px) {
    .hero__buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn--large {
        width: 100%;
        padding: 1rem;
    }
    
    .offer-badge__content {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
}
@media (max-width: 767px) {
    .section {
        padding: 3rem 0;
    }
    
    .section__title {
        font-size: 2rem;
    }
    
    .section__subtitle {
        font-size: 1.125rem;
    }
    
    .hero {
        min-height: 500px;
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .hero__subtitle {
        font-size: 1.125rem;
    }
    
    .hero__buttons {
        flex-direction: column;
    }
    
    .hero__buttons .btn {
        width: 100%;
    }
    
    .cta-form {
        grid-template-columns: 1fr;
    }
    
    .cta-form__submit {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .section {
        padding: 2.5rem 0;
    }
    
    .section__title {
        font-size: 1.75rem;
    }
    
    .hero__title {
        font-size: 1.75rem;
    }
    
    .hero__offer {
        padding: 1.5rem;
    }
    
    .offer-badge {
        font-size: 0.875rem;
    }
    
    .footer__inner {
        grid-template-columns: 1fr;
    }
}
/* Стили для уведомлений */
.alert-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  max-width: 400px;
  animation: slideIn 0.3s ease-out;
}

.alert-success {
  background-color: #d1fae5;
  color: #065f46;
  border-left: 4px solid #10b981;
}

.alert-danger {
  background-color: #fee2e2;
  color: #b91c1c;
  border-left: 4px solid #ef4444;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Стили для спиннера */
.spinner-border {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  vertical-align: -0.125em;
  border: 0.2em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
  to { transform: rotate(360deg); }
}

/* Блокировка скролла */
.no-scroll {
  overflow: hidden;
}

/* новое */
/* Breadcrumbs - Modern Style */
.breadcrumb-wrapper {
    margin-top: 60px;
}

.breadcrumb-content {
    font-size: 0.9rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb-content a {
    color: var(--primary-color);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    font-weight: 500;
}

.breadcrumb-content a:hover {
    color: var(--primary-dark);
}

/* Main Title Section */
.py-5.bg-white {
    background: #ffffff;
    padding: 3rem 0 0;
}

.text-center.mb-4 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    width: 100%;
}

.text-center.mb-4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 2px;
}

/* Category Description */
.category-description {
    background: rgba(12, 159, 221, 0.05);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 2rem auto;
    max-width: 900px;
}

.category-description p.lead {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #495057;
    margin-bottom: 0;
    font-weight: 400;
}

/* ==========================================================================
   Fixed Service Cards Styles
   ========================================================================== */

.services-grid {
  display: grid;
  gap: 1.8rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.service-item {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  height: 100%; /* Добавлено для выравнивания высоты */
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(12, 159, 221, 0.15);
}

.service-item__image {
  height: 200px;
  overflow: hidden;
  flex-shrink: 0; /* Запрещаем сжатие изображения */
}

.service-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-item__content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Занимаем все доступное пространство */
}

.service-item__title {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: #212529;
  position: relative;
  padding-bottom: 8px;
}

.service-item__title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: #0c9fdd;
}

.service-item__desc {
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1; /* Занимаем доступное пространство */
}

.service-item__price {
  margin: 1rem 0;
  font-size: 1.1rem;
  color: #0c9fdd;
  font-weight: 600;
}

.service-item__button-container {
  margin-top: auto; /* Прижимаем кнопку к низу */
  padding-top: 1rem;
}

.service-item__button {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: white;
  color: #0c9fdd;
  border: 2px solid #0c9fdd;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  width: auto; /* Убираем растягивание на всю ширину */
}

.service-item__button:hover {
  background: #0c9fdd;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(12, 159, 221, 0.3);
}

/* Адаптация */
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-item {
    flex-direction: row;
    min-height: 200px;
  }
  
  .service-item__image {
    flex: 0 0 40%;
    height: auto;
  }
  
  .service-item__content {
    flex: 0 0 60%;
    padding: 1.5rem;
  }
}

@media (min-width: 992px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .service-item {
    min-height: 220px;
  }
  
  .service-item__image {
    flex: 0 0 35%;
  }
  
  .service-item__content {
    flex: 0 0 65%;
    padding: 1.8rem;
  }
}

/* Бургер-иконка */
.burger {
  display: none; /* Скрыто на десктопе */
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 100;
  background: none;
  border: none;
  cursor: pointer;
}

.burger__line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-color);
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.burger__line:nth-child(1) { top: 0; }
.burger__line:nth-child(2) { top: 50%; transform: translateY(-50%); }
.burger__line:nth-child(3) { bottom: 0; }

/* Состояние активного бургера */
.burger.active .burger__line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.burger.active .burger__line:nth-child(2) {
  opacity: 0;
}
.burger.active .burger__line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Мобильное меню */
@media (max-width: 991px) {
  .burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 1000;
  }
  
  .burger__line {
    display: block;
    width: 100%;
    height: 2px;
    background: #333;
    transition: all 0.3s ease;
  }
  
  .burger.active .burger__line:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }
  
  .burger.active .burger__line:nth-child(2) {
    opacity: 0;
  }
  
  .burger.active .burger__line:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }
  
  .nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: white;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;
    padding: 20px 0;
  }
  
  .nav.active {
    transform: translateX(0);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }
  
  .nav__list {
    flex-direction: column;
    align-items: center;
  }
  
  .nav__item {
    width: 100%;
    text-align: center;
  }
  
  .nav__link {
    display: block;
    padding: 15px;
    font-size: 18px;
  }
  
  /* Блокировка скролла при открытом меню */
  .no-scroll {
    overflow: hidden;
  }
}

/* ==========================================================================
   Service Single Page Content Styles
   ========================================================================== */

.service-single-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.service-single-content p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

/* Sections */
.service-single-content section {
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray);
}

.service-single-content section:last-child {
    border-bottom: none;
    margin-bottom: 2rem;
}

/* Headings */
.service-single-content h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #272932;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.service-single-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}

/* Lists */
.service-single-content .list-unstyled {
    margin-bottom: 1.5rem;
    padding-left: 0;
}

.service-single-content .list-unstyled li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.service-single-content .list-unstyled li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.service-single-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    counter-reset: item;
}

.service-single-content ol li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.service-single-content ol li::before {
    content: counter(item) ".";
    counter-increment: item;
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Grid for ceiling types */
.service-single-content .row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-single-content .col {
    display: flex;
}

.service-single-content .col > div {
    flex: 1;
    background-color: var(--light-color);
    border: 1px solid var(--gray);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
}

.service-single-content .col > div:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
    border-color: var(--primary-color);
}

.service-single-content .col strong {
    color: #1e262a;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Table styles */
.service-single-content .table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.service-single-content .table th,
.service-single-content .table td {
    padding: 1rem;
    text-align: left;
    border: 1px solid var(--gray);
}

.service-single-content .table thead th {
    background-color: var(--light-color);
    color: var(--primary-dark);
    font-weight: 600;
}

.service-single-content .table tbody tr:nth-child(even) {
    background-color: rgba(12, 159, 221, 0.05);
}

.service-single-content .table tbody tr:hover {
    background-color: rgba(12, 159, 221, 0.1);
}

.service-single-content .text-muted {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: -1rem;
    margin-bottom: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-single-content {
        font-size: 1rem;
    }
    
    .service-single-content h2 {
        font-size: 1.3rem;
    }
    
    .service-single-content .row {
        grid-template-columns: 1fr;
    }
    
    .service-single-content .table {
        display: block;
        overflow-x: auto;
    }
}

/* Additional spacing and typography */
.service-single-content strong {
    color: var(--primary-dark);
    font-weight: 600;
}

.service-single-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.service-single-content a:hover {
    color: var(--primary-dark);
}
/* ==========================================================================
   Service Cover Styles
   ========================================================================== */

.service-single-cover {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin: 2rem auto 3rem;
    height: 400px;
    max-width: var(--container-width);
    transition: var(--transition);
}

.service-single-cover:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-single-cover__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.service-single-cover:hover .service-single-cover__image {
    transform: scale(1.03);
}

.service-single-cover__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem;
    background: linear-gradient(0deg, 
                rgba(12, 159, 221, 0.9) 0%, 
                rgba(12, 159, 221, 0.6) 50%, 
                transparent 100%);
    display: flex;
    align-items: flex-end;
    min-height: 60%;
}

.service-single-cover__title {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    max-width: 80%;
    font-family: var(--font-heading);
}

.service-single-cover__title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Responsive styles */
/* Responsive styles */
@media (max-width: 1199px) {
    .service-single-cover {
        border-radius: 0;
        margin-left: -1rem;
        margin-right: -1rem;
        width: calc(100% + 2rem);
        max-width: none;
    }
}

@media (max-width: 992px) {
    .service-single-cover {
        height: 350px;
    }
    
    .service-single-cover__overlay {
        padding: 2rem;
        min-height: 50%;
    }
    
    .service-single-cover__title {
        font-size: 2rem;
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .service-single-cover {
        height: 300px;
        margin: 0 0 2rem 0;
    }
    
    .service-single-cover__overlay {
        padding: 1.5rem;
        min-height: 60%;
        background: linear-gradient(0deg, 
                    rgba(12, 159, 221, 0.95) 0%, 
                    rgba(12, 159, 221, 0.7) 50%, 
                    transparent 100%);
    }
    
    .service-single-cover__title {
        font-size: 1.8rem;
        max-width: 100%;
    }
    
    .service-single-cover__title::after {
        bottom: -10px;
        height: 3px;
        width: 60px;
    }
}

@media (max-width: 480px) {
    .service-single-cover {
        height: 250px;
    }
    
    .service-single-cover__title {
        font-size: 1.5rem;
    }
    
    .service-single-cover__overlay {
        padding: 1rem;
    }
}
/* ==========================================================================
   Portfolio Gallery Styles
   ========================================================================== */

.row.g-4 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 0 1rem;
}

.row.g-4 p {
    margin: 0;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    aspect-ratio: 4 / 3;
}



.row.g-4 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.row.g-4 p:hover img {
    transform: scale(1.05);
}

/* Lightbox effect overlay */


.row.g-4 p:hover::after {
    opacity: 1;
}

/* Zoom icon effect */
.row.g-4 p::before {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    font-size: 2rem;
    opacity: 0;
    z-index: 3;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.row.g-4 p:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .row.g-4 {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.2rem;
    }
}

@media (max-width: 768px) {
    .row.g-4 {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .row.g-4 {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .row.g-4 p {
        aspect-ratio: 16 / 9;
    }
}

/* Стили для галереи */
.gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay.active {
    display: flex;
    opacity: 1;
}

.gallery-image-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.gallery-image-container img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 1001;
}




/* Стили для миниатюр в галерее */
.row.g-4 p {
    cursor: pointer;
    transition: transform 0.3s ease;
    margin: 10px 0;
}


.row.g-4 img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}
/* Для всех списков в контенте услуг */
.service-single-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.service-single-content li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.service-single-content li:before {
    content: "\f00c"; /* Код иконки Font Awesome (галочка) */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color); /* Используйте ваш цвет */
    position: absolute;
    left: 0;
    top: 3px;
}
/* Стили для таблицы */
.service-single-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0; /* Отступ сверху и снизу */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.service-single-content th,
.service-single-content td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid #e0e0e0;
}

.service-single-content th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.service-single-content tr:nth-child(even) {
    background-color: #f9f9f9;
}

.service-single-content tr:hover {
    background-color: #f0f0f0;
}

/* Отступ перед заголовком "Часто задаваемые вопросы" */
.service-single-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}