/* Integral CF Regular */
@font-face {
    font-family: 'Integral CF';
    src: url('../img/font/Fontspring-DEMO-integralcf-regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Integral CF Medium */
@font-face {
    font-family: 'Integral CF';
    src: url('../img/font/Fontspring-DEMO-integralcf-medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Integral CF Demi Bold */
@font-face {
    font-family: 'Integral CF';
    src: url('../img/font/Fontspring-DEMO-integralcf-demibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Integral CF Bold */
@font-face {
    font-family: 'Integral CF';
    src: url('../img/font/Fontspring-DEMO-integralcf-bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Integral CF Extra Bold */
@font-face {
    font-family: 'Integral CF';
    src: url('../img/font/Fontspring-DEMO-integralcf-extrabold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* Integral CF Heavy (если есть) */
@font-face {
    font-family: 'Integral CF';
    src: url('../img/font/Fontspring-DEMO-integralcf-heavy.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    background: black;
    font-family: 'Inter', sans-serif;
}

.intro {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.intro-container {
    color: white;
    padding: 7% 5%;
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    z-index: 999;
}

.intro-background {
    position: absolute;
    left: 0;
    top: -6%;
    width: 100%;
    z-index: 1;
    filter: brightness(80%);
}

.intro-title {
    font-family: Integral CF;
    font-weight: 400;
    font-size: 12vw;
}

.intro-subtitle {
    font-family: Integral CF;
    font-weight: 400;
    font-size: 1.65vw;
    text-transform: uppercase;
    margin-top: -20px;
}

.intro-take {
    font-family: Inter;
    font-weight: 400;
    font-size: 1.5vw;

}

.intro-coupon {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
    margin-top: -20px;
}

.coupon-button {
    background: white;
    border: none;
    border-radius: 30px;
    padding: 15px 15px;
    color: rgba(0, 80, 142, 1) !important;
    font-family: Inter;
    font-weight: 400;
    font-size: 20px;
    cursor: pointer;
    max-width: 211px;
    transition: all 0.3s ease;
}

.coupon-button:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.coupon-text {
    font-family: Inter;
    font-weight: 400;
    font-size: 20px;
    line-height: 140%;
}

.intro-steps {
    font-family: Inter;
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;
    margin-top: -20px;
}

/* NewYork */

.newYork {
    margin-top: 50px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.newYork-container {
    display: flex;
    flex-direction: column;
    padding: 7% 5%;
    gap: 30px;
}

.newYork-text__mini {
    font-family: Inter;
    font-weight: 400;
    font-size: 20px;
    color: rgba(154, 154, 154, 1);
}

.newYork-title {
    font-family: Integral CF;
    font-weight: 400;
    font-size: 4vw;
    color: white;
    line-height: 85%;
}

.newYork-text {
    font-family: Inter;
    font-weight: 400;
    font-size: 20px;
    color: white;
    line-height: 140%;
}

.newYork-image {
    position: absolute;
    width: 320px;
    border-radius: 12px;
    border: 1px white solid;
}

.newYork-image.first {
    right: 15%;
    top: 22%;
}

.newYork-image.second {
    right: 23%;
    top: 63%;
    z-index: 4;
}

.newYork-image.third {
    right: 8%;
    top: 50%;
}

/* NewYork */


/* reviews */

.reviews {
    margin-top: 50px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.reviews-container {
    display: flex;
    flex-direction: column;
    padding: 7% 5%;
    gap: 30px;
}

.reviews-title {
    font-family: Integral CF;
    font-weight: 400;
    font-size: 4vw;
    color: white;
    line-height: 85%;
}

.reviews-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 20px;
    margin-top: 20px;
    position: relative;
    width: 100%;
}

.reviews-card {
    background: rgba(28, 28, 28, 1);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 12px;
    gap: 40px;
    width: 33%;
    position: relative;
}

.reviews-card__bottom-human {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
}

.reviews-card__bottom-img {
    width: 52px;
    border-radius: 70px;
}

.reviews-card__text {
    font-family: Inter;
    font-weight: 400;
    font-size: 20px;
    line-height: 130%;
    color: white;
}

.reviews-card__bottom {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
}

.reviews-card__bottom-person {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reviews-card__bottom-person__name {
    font-family: Inter;
    font-weight: 700;
    font-size: 18px;
    line-height: 130%;
    color: white;
}

.reviews-card__bottom-person__date {
    font-family: Inter;
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    color: white;
}

.reviews-card__bottom-rating {
    width: 125px;
    height: 22px;
    position: relative;
}
/* reviews */

/* Footer */

footer {
    margin-top: 50px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.footer-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 7% 5%;
    gap: 30px;
    justify-content: space-between;
    color: white;
}

.footer-logo {
    font-family: Integral CF;
    font-weight: 400;
    font-size: 2vw;
    color: white;
    line-height: 85%;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: left;
}

.footer-center {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 300px;
    gap: 20px;
}

.footer-right {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
}

.footer-left-text {
    font-family: Inter;
    font-weight: 400;
    font-size: 20px;
    color: rgba(154, 154, 154, 1);
}

.footer-center-text {
    font-family: Inter;
    font-weight: 400;
    font-size: 20px;
    color: white !important;
    line-height: 140%;
    text-decoration: none !important;
}

.footer-right-text {
    font-family: Inter;
    font-weight: 400;
    font-size: 20px;
    color: rgba(154, 154, 154, 1);
}
/* Footer */

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Затемнение */
    z-index: 9998; /* Ниже попапа */
    display: none;
    cursor: pointer;
}

.overlay.active {
    display: block;
}

/* Popup Container */
.popup-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    padding: 20px;
    overflow-y: auto;
    align-items: center;
    justify-content: center;
}

.popup-container.active {
    display: flex;
}

.popup-page {
    background: white;
    width: 100%;
    max-width: 500px;
    border-radius: 30px;
    padding: 40px 30px;
    display: none;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    margin: auto;
}

.popup-page.active {
    display: flex !important;
}

.popup-first__sign {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 26px;
    margin-bottom: 30px;
    color: black;
    font-style: bold;
    margin-left: -10px;
    text-align: center;
    width: 100%;
}

.popup-first__title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
    line-height: 1.3;
    width: 100%;
}

.popup-first__subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
}

.popup-first__button {
    background-color: rgba(28, 103, 216, 1);
    border: none;
    color: white;
    padding: 18px 30px;
    border-radius: 120px;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
    margin-top: 20px;
    text-align: center;
    display: block;
}

.popup-first__button:hover {
    background-color: rgba(20, 90, 200, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(28, 103, 216, 0.3);
}

.popup-first__button:active {
    transform: translateY(0);
}

.popup-first__button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.popup-first__button:disabled:hover {
    background-color: #cccccc;
    transform: none;
}

.popup-first__button.secondary {
    background-color: #6c757d;
    border: 1px solid #6c757d;
}

.popup-first__button.secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* Form */

.contact-form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    row-gap: 20px;
}

.contact-form-item {
    display: flex;
    flex-direction: column;
    background: rgba(244, 244, 244, 1);
    border-radius: 30px;
    padding: 10px 20px;
}

.contact-map {
    width: 100%;
    height: 100%;
}

.contact-form-item input,
.contact-form-item textarea {
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    background: none;
    border: none;
    font-family: rgba(244, 244, 244, 1);
    font-size: 18px;
    outline: none;
}

.contact-form-item textarea {
    min-height: 160px;
}

.contact-form-item label{
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    font-family: rgba(244, 244, 244, 1);
    font-size: 16px;
    font-weight: 400;
    color: gray;
}

.contact-form-item input::placeholder, 
.contact-form-item textarea::placeholder {
    color: black;
    font-family: Inter;
    font-size: 18px;
    font-weight: 500;
}

.error-message {
    color: red;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.contact-form input.error {
    border-color: red;
}

.photo-error {
    color: red;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
    font-weight: 500;
}

.contact-form-button {
    margin-top: 30px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    background: black;
    border: none;
    border-radius: 120px;
    text-decoration: none;
    color: white;
    padding: 5px 5px 5px 30px;
    column-gap: 20px;
    width: 100%;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
}

.contact-form-button:hover {
    opacity: 0.7;
}

.contact-form-button-text {
    font-family: Inter;
    font-size: 18px;
    font-weight: 400;
}


/* Form */

/* Confirmation photo */
.file-upload-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
    width: 100%;
}

.file-input {
    display: none;
}

.popup-photo__place {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: 2px dashed #B0B0B0;
    border-radius: 12px;
    width: 95%;
    height: 160px;
    margin: 10px auto;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.popup-photo__place:hover {
    border-color: #007AFF;
    background-color: #F8F9FA;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.1);
}

.popup-photo__place:active {
    transform: translateY(0);
}

.upload-text {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
    text-align: center;
}

.upload-icon {
    font-size: 32px;
    margin-bottom: 5px;
}

.upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.upload-preview-item {
    position: relative;
    width: 120px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.upload-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-preview-item span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 12px;
    padding: 4px;
    text-align: center;
}

/* Success page */
.popup-nice {
    display: block;
    margin: 0 0 20px;
    max-width: 225px;
    height: auto;
}

.popup-page[data-page="5"] {
    text-align: center;
}

.popup-page[data-page="5"] .popup-first__title {
    margin-bottom: 15px;
    color: #28A745;
}

.popup-page[data-page="5"] .popup-first__subtitle {
    margin-bottom: 25px;
    color: #666;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .popup-photo__place {
        height: 140px;
        width: 100%;
    }
    
    .upload-text {
        font-size: 14px;
    }
    
    .upload-icon {
        font-size: 28px;
    }
    
    .upload-preview-item {
        width: 100px;
        height: 75px;
    }
}

@media (max-width: 480px) {
    .popup-photo__place {
        height: 120px;
        padding: 15px;
    }
    
    .upload-text {
        font-size: 13px;
    }
    
    .upload-icon {
        font-size: 24px;
    }
}

.popup-photo__place.loading {
    opacity: 0.7;
    pointer-events: none;
}

.popup-photo__place.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007AFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.popup-photo__place.uploaded {
    border-color: #28A745;
    background-color: #F0FFF4;
}

.popup-photo__place.uploaded .upload-text {
    color: #28A745;
}

.popup-photo__place.uploaded .upload-icon {
    color: #28A745;
}

.popup-first__subtitle {
    margin-bottom: 30px;
}

.sign {
    position: relative;
    width: 100%;
    height: 40px;
    color: rgb(255, 255, 255);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    background: #2d4996;
    border-radius: 5px;
    border: none;
    font-size: 18px;
    margin-bottom: 10px;
    align-items: center;
    font-family: Inter;
    cursor: pointer;
}

.sign img {
    width: 32px;
}

.sign p {
    padding-right: 35%;
}

.sign:nth-of-type(2) {
    background: #4d96e4;
}

.sign:nth-of-type(3) {
    background: #436f9e;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .intro-title {
        font-size: 16vw;
    }
    
    .intro-subtitle {
        font-size: 2.5vw;
    }
    
    .intro-take {
        font-size: 2.2vw;
    }
    
    .newYork-title,
    .reviews-title {
        font-size: 6vw;
    }
    
    .reviews-grid {
        flex-direction: column;
    }
    
    .reviews-card {
        width: 100%;
    }
    
    .newYork-image {
        position: relative;
        width: 80%;
        margin: 10px auto;
        display: block;
    }
    
    .newYork-image.first,
    .newYork-image.second,
    .newYork-image.third {
        position: relative;
        right: auto;
        top: auto;
        margin-bottom: 20px;
    }
    
    .popup-page {
        max-width: 90%;
        padding: 30px 20px;
    }
    
    .popup-first__title {
        font-size: 24px;
    }
    
    .popup-first__subtitle {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .intro-title {
        font-size: 20vw;
    }
    
    .intro-subtitle {
        font-size: 3.5vw;
    }
    
    .intro-take {
        font-size: 3vw;
    }
    
    .coupon-button {
        font-size: 16px;
        padding: 12px 20px;
    }
    
    .coupon-text,
    .newYork-text,
    .footer-left-text,
    .footer-center-text,
    .footer-right-text {
        font-size: 16px;
    }
    
    .popup-page {
        padding: 20px 15px;
        border-radius: 20px;
    }
    
    .popup-first__title {
        font-size: 22px;
    }
    
    .popup-first__subtitle {
        font-size: 13px;
    }
    
    .popup-first__button {
        padding: 15px 20px;
        font-size: 16px;
    }
}