.price {
    padding: 10px 5%;
    background: #FAFBFF;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Services Section with Background */
.services-section {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('{% static "home/hero.jpeg" %}');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 40px 0;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(255, 255, 255);
    z-index: 1;
}

.services-section .container {
    position: relative;
    z-index: 2;
}

.services-section .section-title {
    color: #000000;
    margin-bottom: 50px;
}

.services-section .price-grid {
    gap: 25px;
}

.services-section .price-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.services-section .price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7C3AED, #a855f7);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.services-section .price-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.25);
    background: rgba(255, 255, 255, 0.98);
}

.services-section .price-card:hover::before {
    transform: scaleX(1);
}

.services-section .price-card h3 {
    color: #1a1a1a;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.services-section .price-card .price {
    color: #7C3AED;
    font-size: 26px;
    font-weight: 800;
    margin: 15px 0;
    text-shadow: none;
}

.services-section .price-card img {
    border-radius: 12px 12px 0 0;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.services-section .price-card:hover img {
    transform: scale(1.05);
}

/* Новые стили для кнопок в карточках услуг */
.price-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: #7C3AED;
    border: 2px solid #7C3AED;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    margin-top: 15px;
    min-width: 150px;
}

.price-card-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #7C3AED 0%, #6d28d9 100%);
    transition: left 0.4s ease;
    z-index: -1;
}

.price-card-btn .btn-text {
    transition: color 0.3s ease;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.price-card-btn .btn-icon {
    transition: transform 0.3s ease, opacity 0.3s ease;
    font-size: 18px;
    opacity: 0.8;
}

.price-card-btn:hover,
.price-card:hover .price-card-btn {
    color: #ffffff;
    border-color: #7C3AED;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

.price-card-btn:hover::before,
.price-card:hover .price-card-btn::before {
    left: 0;
}

.price-card-btn:hover .btn-icon,
.price-card:hover .price-card-btn .btn-icon {
    transform: translateX(3px);
    opacity: 1;
}

.price-card-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

/* Дополнительные эффекты для улучшения UX */
.price-card-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.price-card-btn:active:focus {
    outline: none;
}

/* Мобильная адаптация для новых кнопок */
@media (max-width: 768px) {
    .price-card-btn {
        padding: 11px 20px;
        font-size: 15px;
        min-width: 140px;
    }

    .price-card-btn .btn-icon {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .price-card-btn {
        padding: 10px 18px;
        font-size: 14px;
        min-width: 120px;
        gap: 6px;
    }

    .price-card-btn .btn-icon {
        font-size: 14px;
    }
}

/* Анимация при загрузке страницы */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.price-card-btn {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.price-card:nth-child(1) .price-card-btn {
    animation-delay: 0.1s;
}

.price-card:nth-child(2) .price-card-btn {
    animation-delay: 0.2s;
}

.price-card:nth-child(3) .price-card-btn {
    animation-delay: 0.3s;
}

.price-card:nth-child(4) .price-card-btn {
    animation-delay: 0.4s;
}

.price-card:nth-child(5) .price-card-btn {
    animation-delay: 0.5s;
}

.price-card:nth-child(6) .price-card-btn {
    animation-delay: 0.6s;
}

/* Эффект пульсации при клике */
.price-card-btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Дополнительные улучшения для доступности */
.price-card-btn:focus-visible {
    outline: 2px solid #7C3AED;
    outline-offset: 2px;
}

.price-card-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.price-card-btn:disabled:hover,
.price-card:disabled:hover .price-card-btn {
    background: transparent;
    color: #7C3AED;
    border-color: #7C3AED;
    transform: none;
    box-shadow: none;
}

.price-card-btn:disabled .btn-icon {
    transform: none;
}

/* Price About Section Styles */
.price-about-section {
    margin: 0 auto 40px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    width: 95%;
    max-width: 1200px;
    box-sizing: border-box;
}

.price-about-container {
    display: flex;
    gap: clamp(20px, 5vw, 40px);
    align-items: center;
    padding: clamp(20px, 4vw, 40px);
    width: 100%;
    box-sizing: border-box;
}

.price-about-content {
    flex: 1;
}

.price-about-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    line-height: 1.2;
    position: relative;
}

.price-about-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #7c3aed, #a855f7);
    border-radius: 2px;
}

.price-about-description {
    font-size: 16px;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 0;
    font-weight: 400;
}

.price-about-image {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.price-about-image:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.price-about-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.price-about-image:hover img {
    transform: scale(1.05);
}

/* Responsive styles for price-about-section */
@media (max-width: 1024px) {
    .price-about-container {
        gap: 30px;
        padding: 30px;
    }

    .price-about-title {
        font-size: 24px;
    }

    .price-about-image img {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .price-about-container {
        flex-direction: column;
        gap: 25px;
        padding: 25px;
    }

    .price-about-content {
        text-align: center;
    }

    .price-about-title {
        font-size: 22px;
        text-align: center;
    }

    .price-about-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .price-about-description {
        font-size: 15px;
        text-align: center;
    }

    .price-about-image {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .price-about-image img {
        height: 280px;
    }
}

@media (max-width: 576px) {
    .price-about-section {
        margin-bottom: 30px;
    }

    .price-about-container {
        padding: 20px;
        gap: 20px;
    }

    .price-about-title {
        font-size: 20px;
    }

    .price-about-description {
        font-size: 14px;
        line-height: 1.5;
    }

    .price-about-image img {
        height: 220px;
    }
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: clamp(10px, 2vw, 15px);
    margin: 20px auto 0 auto;
    width: 95%;
    max-width: 1200px;
    box-sizing: border-box;
}

.price-table {
    display: table;
    margin: 40px auto 0 auto;
    border-collapse: collapse;
    width: 95%;
    max-width: 1200px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    box-sizing: border-box;
}

.price-table th,
.price-table td {
    padding: clamp(8px, 1.5vw, 10px);
    text-align: left;
    border-bottom: 1px solid #E5E7EB;
    word-wrap: break-word;
    max-width: 0;
}

/* Настройка ширины для столбцов таблицы */
.price-table th:nth-child(1),
.price-table td:nth-child(1) {
    width: 30%; /* Название услуги */
    word-wrap: break-word;
}

.price-table th:nth-child(2),
.price-table td:nth-child(2) {
    width: 50%; /* Описание */
    word-wrap: break-word;
}

.price-table th:nth-child(3),
.price-table td:nth-child(3) {
    width: 10%; /* Цена */
    text-align: left;
    white-space: nowrap;
}

.price-table th {
    background: #7C3AED;
    color: #fff;
}

.price-table tr:hover {
    background: #F3E8FF;
}

.price-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border: 1px solid #E5E7EB;
}

.price-card:hover {
    transform: translateY(-4px);
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(124,58,237,0.15);
}

.price-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.price-card h3 {
    font-size: 18px;
    color: #000000;
    font-weight: 600;
}

.section-title-pricelist {
    text-align: center;
    font-size: 36px;
    margin-top: 40px;
    margin-bottom: 10px;
    color: #000000;
    font-weight: 700;
    position: relative;
}

.section-title-pricelist::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 80px;
    height: 4px;
    background: #7c3aed;
    border-radius: 2px;
}

.price-card .price {
    font-size: 24px;
    font-weight: 700;
    margin-top: 0px;
    color: #7C3AED;
}

.section-pricelist-button {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 32px;
    color: #333;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: clamp(10px, 2vw, 16px);
    margin: 40px auto;
    width: 95%;
    max-width: 1200px;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.btn-primary-pricelist {
    padding: clamp(12px, 2vw, 16px) clamp(16px, 3vw, 24px);
    border-radius: 14px;
    font-weight: 800;
    font-size: clamp(14px, 1.2vw, 16px);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: clamp(100px, 20vw, 150px);
    flex: 1;
    max-width: 250px;
    transition: all 0.3s ease;
    font-family: 'Arial', sans-serif;
    background: var(--primary-color);
    color: var(--text-button);
    border: none;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
    margin: 0;
    box-sizing: border-box;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-primary-pricelist:hover,
.price-card:hover .btn-primary-pricelist {
    background: #6B46C1;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.3);
}

.btn-secondary-pricelist {
    padding: clamp(12px, 2vw, 16px) clamp(16px, 3vw, 24px);
    border-radius: 14px;
    font-weight: 800;
    font-size: clamp(14px, 1.2vw, 16px);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: clamp(100px, 20vw, 150px);
    flex: 1;
    max-width: 250px;
    transition: all 0.3s ease;
    font-family: 'Arial', sans-serif;
    background: #ffffff;
    color: #6B46C1;
    margin: 0;
    box-sizing: border-box;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.btn-secondary-pricelist:hover,
.price-card:hover .btn-secondary-pricelist {
    background: var(--primary-color);
    color: var(--text-button);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.name-pricelist,
.descreption-pricelist {
    font-size: 16px;
    color: #000000;
    font-weight: 500;
}

/* Mobile styles for tablets - max-width: 768px */
@media (max-width: 768px) {
    .price {
        padding: 10px 3%;
    }

    .price-about-section {
        width: 98%;
        margin: 0 auto 30px auto;
    }

    .price-about-container {
        flex-direction: column;
        gap: 25px;
        padding: 25px 4%;
    }

    .price-about-content {
        text-align: center;
    }

    .price-about-title {
        font-size: 22px;
        text-align: center;
    }

    .price-about-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .price-about-description {
        font-size: 15px;
        text-align: center;
    }

    .price-about-image {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .price-about-image img {
        height: 280px;
    }

    .section-title-pricelist {
        font-size: 28px;
        margin-top: 15px;
        margin-bottom: 25px;
    }

    .price-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: clamp(12px, 2.5vw, 15px);
        margin: 15px auto 0 auto;
        width: 98%;
        padding: 0 1%;
    }

    .price-card {
        padding: 18px;
    }

    .price-card img {
        height: 160px;
    }

    .price-card h3 {
        font-size: 17px;
    }

    .price-card .price {
        font-size: 22px;
    }

    .price-table {
        width: 98%;
        margin: 30px auto 0 auto;
    }

    .price-table th,
    .price-table td {
        padding: clamp(8px, 2vw, 12px);
        font-size: clamp(14px, 2.5vw, 15px);
    }

    .price-table td:nth-child(1) {
        width: 35%;
        min-width: 120px;
        word-wrap: break-word;
    }

    .price-table td:nth-child(2) {
        width: 45%;
        min-width: 150px;
        word-wrap: break-word;
    }

    .price-table td:nth-child(3) {
        width: 20%;
        min-width: 80px;
        text-align: right;
        white-space: nowrap;
    }

    .button-container {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin: 30px auto;
        width: 98%;
        padding: 0 1%;
    }

    .btn-primary-pricelist,
    .btn-secondary-pricelist {
        width: 100%;
        max-width: 300px;
        padding: 14px 20px;
    }
}

/* Mobile styles for phones - max-width: 480px */
@media (max-width: 480px) {
    .price {
        padding: 5px 2%;
    }

    .price-about-section {
        width: 100%;
        margin: 0 auto 20px auto;
    }

    .price-about-container {
        padding: 15px 3%;
        gap: 15px;
    }

    .price-about-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .price-about-description {
        font-size: 14px;
        line-height: 1.5;
    }

    .price-about-image img {
        height: 200px;
    }

    .section-title-pricelist {
        font-size: 24px;
        margin-top: 10px;
        margin-bottom: 20px;
    }

    .section-title-pricelist::after {
        width: 60px;
        height: 3px;
    }

    .price-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(8px, 2vw, 10px);
        margin: 10px auto 0 auto;
        width: 100%;
        padding: 0 2%;
    }

    .price-card {
        padding: 12px;
        text-align: center;
    }

    .price-card img {
        width: 100%;
        height: 120px;
        object-fit: cover;
        margin-bottom: 10px;
    }

    .price-card h3 {
        font-size: 16px;
        margin-bottom: 8px;
        line-height: 1.2;
    }

    .name-pricelist,
    .descreption-pricelist {
        font-size: 14px;
        line-height: 1.4;
    }

    .price-card .price {
        font-size: 18px;
        margin-top: 10px;
    }

    .price-table {
        font-size: 13px;
        margin: 20px auto 0 auto;
        border-radius: 8px;
        width: 100%;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .price-table th,
    .price-table td {
        padding: clamp(6px, 1.5vw, 8px) clamp(4px, 1.5vw, 6px);
        font-size: clamp(12px, 3vw, 13px);
        line-height: 1.3;
        min-width: 80px;
    }

    .price-table th {
        font-size: 14px;
    }

    .price-table td:last-child {
        min-width: 80px;
        white-space: nowrap;
        text-align: right;
    }

    .button-container {
        margin: 20px auto;
        gap: clamp(8px, 2vw, 10px);
        width: 100%;
        padding: 0 2%;
    }

    .btn-primary-pricelist,
    .btn-secondary-pricelist {
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 12px;
        width: 100%;
        max-width: 280px;
    }

    .section-pricelist-button {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    /* Services Section Responsive Styles */
    .services-section {
        padding: 60px 0;
        background-attachment: scroll;
    }

    .services-section .section-title {
        color: #000000;
        margin-bottom: 40px;
        font-size: 28px;
    }

    .services-section .price-grid {
        gap: 15px;
    }

    .services-section .price-card {
        padding: 15px;
    }

    .services-section .price-card img {
        height: 160px;
    }

    .services-section .price-card h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .services-section .price-card .price {
        font-size: 22px;
        margin: 12px 0;
    }
}

/* Additional responsive styles for services section */
@media (max-width: 768px) {
    .services-section {
        padding: 50px 0;
        margin: 30px 0;
    }

    .services-section .price-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .services-section .price-card {
        padding: 18px;
    }

    .services-section .price-card img {
        height: 180px;
    }

    .services-section .price-card h3 {
        font-size: 19px;
    }

    .services-section .section-title {
        color: #000000;
        font-size: 32px;
    }
}