@import url('fonts.css');
@import url('colors.css');

html, body {
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    outline: none;
    background: #2c2725 !important;
}

* {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', serif;
    text-transform: uppercase;
    color: #fff;
}

.footer {
    background: var(--dark);
    padding: 2rem;
}

.footer__wrapper {
    max-width: 1110px;
    width: 100%;
    margin: 0 auto;
}

.footer__wrapper * {
    color: #fff;
}

.footer__wrapper hr {
    border:none;
    height: 1px;
    background: var(--dark);
    margin: 2rem 0;
}

.footer__navigation {
    display: flex;
    flex-direction: row;
    gap:5vw;
}

.footer__navigation > menu {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.footer__contacts, .footer__copyright {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.footer__contact {
    text-decoration: none;
    font-family: "Oswald";
    font-weight: 300;
    font-size: 1.2rem;
}

.footer__link {
    text-decoration: none;
    font-weight: 300;
    line-height: 1.5rem;
}

.footer__link:hover {
    color: #e0e0e0;
}

.header {
    background: var(--primary);
}

.header__wrapper {
    max-width: 1110px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: .7rem 1.5rem;
    box-sizing: border-box;
    justify-content: space-between;
}

.header__navbar {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: center;
}

.header__link {
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.header__logo img {
    max-height: 40px;
}

.header__link:hover {
    color: #e0e0e0;
    cursor: pointer;
}

.intro-swiper {
    width: 100%;
    height: 640px;
}

.sound-swiper {
    width: 650px;
    height: 390px;
}

.intro-slide__backdrop {
    background: rgba(0,0,0, 0.4);
    width: 100%;
    height: 100%;
}

.swiper-slide h2 {
    margin: 0;
    padding: 0;
    font-size: 48px;
    color: #fff;
    max-width: 600px;
}

.swiper-slide p {
    color: #fff;
    font-size: 16px;
    margin: 5vh 0;
}

.outline-button {
    border: 2px solid #fff;
    padding: .9rem 3rem;
    text-transform: uppercase;
    border-radius: 8px;
    color: #fff;
    background: none;
    text-decoration: none;
    font-weight: 600;
}

.outline-button:hover {
    background: rgba(255,255,255, .2);
}

.outline-button.primary {
    border-color: var(--primary);
    color: var(--primary);
}

.intro-slide__wrapper {
    max-width: 1110px;
    width: 100%;
    margin: 0 auto;
    padding: 15vh 0;
}

@media screen and (max-width: 1100px) {
    .intro-slide__wrapper {
        width: 90%;
    }
}

@media screen and (max-width: 470px) {
    .intro-slide__wrapper > h2 {
        font-size: 2rem;
    }
}

.wrapper {
    max-width: 1110px;
    width: 100%;
    margin: 5vh auto;
}

@media screen and (max-width: 1100px) {
    .wrapper {
        width: 90%;
    }
}

.gallery__header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.heading {
    font-size: 30px;
    color: #fff;
}

.service__nav-item {
    color: #fff;
}

.heading::before {
    content: '≅ ';
    color: var(--primary);
}

.gallery__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 1rem;
    grid-auto-rows: 400px;
}

.gallery__item {
    transition: .2s;
    overflow: hidden;
    transform: scale(1, 1);
    position: relative;
}

@media screen and (max-width: 1150px) {
    .gallery__body {
        grid-template-columns: 1fr;
    }
}

.gallery__item:hover {
    transform: scale(1.02, 1.02);
    cursor: pointer;
}

.gallery__item-overlay {
    padding: 1rem;
    background: #fff;
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    color: #111;
}

.gallery__item-overlay p {
    font-size: .8rem;
    color: #444;
}

.services__categories {
    display: flex;
    flex-direction: row;
    gap: .8rem;
    list-style-type: none;
    text-transform: uppercase;
    justify-content: center;
    flex-wrap: wrap;
    padding-left: 0;
}

.services__categories > li {
    padding: .4rem .7rem;
    font-family: 'Oswald', 'sans-serif';
    font-weight: 400;
    border-bottom: 2px solid transparent;
}

.services__categories > li.active, .services__categories > li:hover {
    color: var(--primary);
    border-color: var(--primary);
    cursor: pointer;
}

.service__item, .service__item-thumb {
    overflow: hidden;
    max-width: 350px;
    width: 100%;
    height: 300px;
    object-fit: cover;
    position: relative;
    border-radius: 10px;
    transition: .2s;
}

.service__item-thumb {
    border-radius: 6px;
}

.service__item {
    border: 4px solid var(--primary);
}

.services__items {
    margin-top: 3vh;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex-wrap: wrap;

    display: none;
}

#serviceCategory1 {
    display: flex;
}

.service__item-island {
    position: absolute;
    right: 0;
    bottom: 1rem;
    box-sizing: border-box;
    padding: .8rem;
    border-radius: 8px 0 0 8px;
    color: #fff;
    font-family: "Oswald", sans-serif;
    width: 90%;
    min-height: 60px;
    background: var(--primary);
    font-size: 1.4rem;
}

.service__item:hover > .service__item-thumb {
    transform: scale(1.1, 1.1);
}

.service__item:hover {
    border-color: transparent;
}

.sound-rent__wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.sound-rent__wrapper > p {
    max-height: 300px;
    max-width: 400px;
    width: 90%;
    font-weight: 300;
}

@media screen and (max-width: 600px) {
    .sound-rent__wrapper {
        flex-direction: column;
        gap: 1rem;
    }
}

.sound-rent__slider {
    border: 2px solid var(--primary);
    padding: 1.5rem;
    box-sizing: border-box;
}

.sound-rent__thumb {
    width: 250px;
    height: auto;
    max-height: 250px;
}

.sound-rent__item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.sound-rent__content {
    max-width: 330px;
}

.text {
    max-width: 1110px;
    width: 95%;
    margin: 10vh auto;
}

.text .attachment {
    background: #555;
    border-radius: .8rem;
    max-width: 350px;
    width: 95%;
}

.text .attachment img {
    width: 100%;
}

.text p {
    color: #fff;
}

.reviews {
    list-style-type: none;
    border-left: 2px solid #dedede;
    padding: .5rem;
}

.reviews li {
    border-left: 2px solid var(--primary);
    padding-left: 1rem;
}

.reviews-container {
    max-width: 1200px;
    width: 95%;
    margin: 5vh auto;
    padding: 0 20px;
}

.reviews-header {
    text-align: center;
    margin-bottom: 3rem;
}

.reviews-header h1 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.reviews-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.reviews-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--primary);
    border-radius: 15px;
    color: white;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.reviews-grid {
    list-style-type: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.review-card {
    background: #f0f0f0;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 1rem;
}

.review-meta {
    flex: 1;
}

.review-author {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.review-rating {
    display: flex;
    gap: 2px;
}

.star {
    color: #ddd;
    font-size: 1rem;
}

.star.active {
    color: #ffd700;
}

.review-content {
    margin-bottom: 1.5rem;
}

.review-content p {
    color: #555;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.review-date {
    color: #95a5a6;
    font-size: 0.85rem;
    text-align: right;
}

.reviews-cta {
    text-align: center;
    padding: 3rem;
    background: #f8f9fa;
    border-radius: 15px;
    margin-top: 2rem;
}

.reviews-cta h3 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.reviews-cta p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}

.cta-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 91, 193, 0.4);
}

/* Адаптивность */
@media (max-width: 768px) {
    .reviews-container {
        margin: 2vh auto;
        padding: 0 15px;
    }

    .reviews-header h1 {
        font-size: 2rem;
    }

    .reviews-stats {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .review-card {
        padding: 1.5rem;
    }

    .reviews-cta {
        padding: 2rem 1rem;
    }
}

.calculator__block {
    background: #222;
    padding: 2rem;
    box-sizing: border-box;
}

.calculator__block > *, .calculator__block input[name="eventDuration"] {
    color: #fff;
}

.calculator__block-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.calculator__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: minmax(380px, auto);
    grid-gap: 20px;
    padding: 20px;
}

.calculator__actions {
    color: #fff;
}

@media screen and (max-width: 1160px) {
    .calculator__wrapper {
        grid-template-columns: 1fr !important;
    }

    .calculator__actions {
        max-width: 90%;
    }
}

@media screen and (max-width: 650px) {
    .order__form {
        flex-direction: column !important;
        width: 90% !important;
    }
}

.center-block {
    margin: 5vh auto;
    text-align: center;
}

#eventDuration {
    padding: .6rem .8rem;
    border:none;
    background: none;
    outline: none;
    border-bottom: 2px solid #e0e0e0;
    transition: .1s;
}

#eventDuration:focus {
    border-color: var(--primary);
}

.calculator__between {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#final-services-price {
    color: var(--primary);
    font-size: 3rem;
    font-weight: 700;
}

.calculator__actions {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 1rem;
    align-items: center;
    margin: 2rem 1rem 2rem auto;
}

.order__submit-button {
    border: none;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    transition: .1s;
    padding: .8rem 2rem;
}

.order__submit-button:hover {
    opacity: .8;
    cursor: pointer;
}

.order__form {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    max-width: 1000px;
    width: 100%;
    justify-content: space-around;
    margin: 10vh auto;
    border-radius: 10px;
    background: #f0f0f0;
    padding: 5vh 1rem;
}

.order__contacts, .order__totals {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.order__input, .order__textarea {
    padding: .6rem 1.2rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: #fff;
    resize: vertical;
}

.order__textarea {
    min-height: 100px;
}

.order__button-submit {
    padding: .9rem;
    color: #fff;
    background: var(--primary);
    border-radius: 8px;
    border:none;
    transition: .1s;
    font-weight: 500;
}

.order__button-submit:hover {
    opacity: .9;
    cursor: pointer;
}

.ui-datepicker-next, .ui-datepicker-prev {
    background: #fff;
    cursor: pointer;
}

.ui-datepicker-calendar td {
    border: none;
}

.ui-state-default {
    height: 25px;
    width: 25px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center !important;
    border-radius: 4px;
    border: none !important;
    background: #f5f5f5;
    font-weight: 500 !important;
}

.ui-state-active, .ui-state-highlight {
    background: var(--primary) !important;
    color: #fff !important;
}

.ui-state-highlight {
    background: #5d78ff !important;
}

.success-block {
    max-width: 500px;
    margin: 25vh auto;
    width: 100%;
    color: #fff;
    text-align: center;
}

@media screen and (max-width: 726px) {
    .footer__contacts, .footer__copyright {
        flex-direction: column;
        align-items: center;
    }

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

@media screen and (max-width: 540px) {
    .footer__navigation {
        flex-direction: column;
    }

    .header__navbar {
        justify-content: flex-start;
        width: 100%;
        overflow-x: scroll;
        margin-top: .8rem;
    }
}

.fast-order-form {
    max-width: 1200px;
    width: 95%;
    margin: 5vh auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--dark);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.fast-order-form h3 {
    margin-bottom: 10px;
    text-align: center;
    color: #fff;
}

.fast-order-form p {
    color: #fff;
}

.fast-order-form .form-group {
    margin-bottom: 15px;
}

.privacy-text > a {
    color: dodgerblue;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: var(--dark);
}

.privacy-text {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 15px;
}

.contacts-form__row {
    display: flex;
    flex-direction: row;
    gap: 15px;
}

@media screen and (max-width: 1050px) {
    .contacts-form__row {
        flex-direction: column;
        gap: 10px;
    }
}

.additional-runs-container {
    margin-left: 20px;
    padding-left: 20px;
    border-left: 2px solid #eee;
    margin-top: 10px;
    margin-bottom: 10px;
}

.additional-run-item {
    position: relative;
    margin-top: 5px;
    padding-right: 30px; /* Место для кнопки удаления */
}

.additional-run-item label {
    font-size: 0.9em;
    color: #666;
}

.btn-remove-additional {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    display: none;
}

.btn-remove-additional:hover {
    background: #ff5252;
}

.additional-run-item {
    position: relative;
    padding-right: 25px;
}

/* Стили для модального окна в темной теме */
.modal-content.bg-dark {
    background-color: var(--dark);
    color: #fff;
}

.modal-header.border-secondary {
    border-color: #444 !important;
}

.modal-footer.border-secondary {
    border-color: #444 !important;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Стили для карточек услуг */
.service__item {
    position: relative;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    background: var(--dark);
}

.service__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.service__item-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service__item-island {
    padding: 15px;
    background: var(--dark);
}

.service__item-price {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
}

.contact-item {
    display: flex;
    flex-direction: row;
    gap: 25px;
}

.contact-item img {
    max-width: 300px;
}

.contact-item__info {
    display: flex;
    flex-direction: column;
}

.contact-item__info > h3 {
    font-size: 2.2rem;
    margin: 0;
}

.contact-item__info > h4 {
    opacity: .6;
}

.contact-item__info a {
    color: var(--primary);
    padding: 5px 10px;
    text-decoration: none;
    cursor: pointer;
}

.contact-item__info a:hover {
    transition: .1s;
    color: #fff;
}