

.hero-link {
    display: block;
    position: relative;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.hero-link::after {
    content: "Перейти на сайт квартир";
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.hero-link:hover::after {
    opacity: 0.65;
}



/* ==========================================================
   ИКОНКА WI-FI В ЗАГОЛОВКЕ
========================================================== */

.welcome-row {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 8px;
}


.wifi-badge {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #eee5d8,
            #f7f2ea
        );

    color: #8b663c;

    font-size: 20px;

    box-shadow:
        0 3px 10px rgba(139,102,60,.10);
}


/* ==========================================================
   5. ПОЛЕ ТЕЛЕФОНА
   Яркая бензиново-радужная рамка
   Поле "ожидает" ввода
========================================================== */

.phone {
    width: 100%;
    height: 52px;

    box-sizing: border-box;

    border: 2px solid transparent;
    border-radius: 14px;

    padding: 0 15px;

    font-size: 17px;
    font-weight: 500;

    outline: none;

    color: #222;

    background:
        linear-gradient(#faf9f7, #faf9f7) padding-box,
        linear-gradient(
            90deg,
            #00c9b7,
            #00e0c3,
            #7c5cff,
            #ff4ecd,
            #00c9b7
        ) border-box;

    background-size:
        100% 100%,
        300% 100%;

    animation: phoneRainbow 4s linear infinite;

    box-shadow:
        0 0 8px rgba(0, 201, 183, .18),
        0 0 18px rgba(124, 92, 255, .10);

    transition:
        box-shadow .25s ease,
        background-color .25s ease;
}


/* ==========================================================
   ПЕРЕЛИВАНИЕ РАДУЖНОЙ РАМКИ
========================================================== */

@keyframes phoneRainbow {

    0% {
        background-position:
            0 0,
            0% 50%;
    }

    50% {
        background-position:
            0 0,
            100% 50%;
    }

    100% {
        background-position:
            0 0,
            200% 50%;
    }
}


/* ==========================================================
   PLACEHOLDER
========================================================== */

.phone::placeholder {
    color: #999;

    animation: phonePlaceholder 2.2s ease-in-out infinite;
}


/* Мягко "дышит" подсказка */

@keyframes phonePlaceholder {

    0%,
    100% {
        color: #999;
        opacity: .75;
    }

    50% {
        color: #666;
        opacity: 1;
    }
}


/* ==========================================================
   КОГДА ПОЛЬЗОВАТЕЛЬ НАЖАЛ НА ПОЛЕ
========================================================== */

.phone:focus {

    background: #fff;

    animation: none;

    border: 2px solid #00c9b7;

    box-shadow:
        0 0 0 3px rgba(0, 201, 183, .14),
        0 0 18px rgba(0, 201, 183, .22);
}


.phone:focus::placeholder {
    animation: none;

    color: #c5c5c5;
}


/* ==========================================================
   ПОСЛЕ ВВОДА НОМЕРА
========================================================== */

.phone:not(:placeholder-shown) {

    animation: none;

    background: #fff;

    border: 2px solid #b58b57;

    box-shadow:
        0 0 0 3px rgba(181, 139, 87, .10);
}




/* ==========================================================
   WIFI PAGE
   Основные стили страницы
========================================================== */


/* ==========================================================
   1. ОБЩИЕ НАСТРОЙКИ
========================================================== */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;

    min-height: 100%;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    color: #242424;

    background: #f4f1ec;
}

body {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    padding: 18px 14px 30px;
}

.page {
    width: 100%;
    max-width: 430px;
}


/* ==========================================================
   2. HERO — ВЕРХНЯЯ КАРТИНКА
========================================================== */

.hero {
    position: relative;

    overflow: hidden;

    min-height: 210px;

    border-radius: 24px;

    background:
        linear-gradient(
            135deg,
            rgba(25, 25, 25, .78),
            rgba(25, 25, 25, .25)
        ),
        url("https://kvartiry-posutochno16.ru/img/kvartira_WI_fi.png")
        center / cover no-repeat,
        #555;

    display: flex;

    align-items: flex-end;

    padding: 24px;

    color: white;

    box-shadow:
        0 12px 35px rgba(0,0,0,.12);
}


.hero-content {
    position: relative;

    z-index: 2;
}


.logo {
    font-size: 13px;

    font-weight: 600;

    letter-spacing: .8px;

    text-transform: uppercase;

    opacity: .9;

    margin-bottom: 8px;
}


h1 {
    margin: 0;

    font-size: 29px;

    line-height: 1.12;

    font-weight: 750;
}


.subtitle {
    margin-top: 9px;

    font-size: 15px;

    opacity: .92;
}


/* ==========================================================
   3. ОСНОВНАЯ КАРТОЧКА
========================================================== */

.card {
    margin-top: 14px;

    background: white;

    border-radius: 24px;

    padding: 24px 20px 22px;

    box-shadow:
        0 10px 30px rgba(0,0,0,.08);
}


.welcome {
    font-size: 21px;

    font-weight: 700;

    margin-bottom: 8px;
}


.text {
    color: #666;

    font-size: 14px;

    line-height: 1.55;

    margin-bottom: 20px;
}


/* ==========================================================
   4. ЗАГОЛОВОК ПОЛЯ
========================================================== */

.label {
    display: block;

    font-size: 14px;

    font-weight: 650;

    margin-bottom: 8px;

    color: #2a2927;
}




/* ==========================================================
   8. СОГЛАСИЕ
========================================================== */

.agreement {
    display: flex;

    gap: 11px;

    align-items: flex-start;

    margin: 17px 0 20px;

    font-size: 12.5px;

    line-height: 1.5;

    color: #666;
}


/* ==========================================================
   9. ЧЕКБОКС
   Яркая, но спокойная переливающаяся рамка
========================================================== */

.agreement input {

    appearance: none;
    -webkit-appearance: none;

    width: 21px;
    height: 21px;

    flex: 0 0 21px;

    margin: 0;

    position: relative;

    cursor: pointer;

    border-radius: 7px;

    border: 2px solid transparent;

    background:
        linear-gradient(
            #ffffff,
            #ffffff
        ) padding-box,

        linear-gradient(
            135deg,
            #b58b57,
            #62c8b2,
            #8ba7e8,
            #c084d7,
            #d7839c,
            #b58b57
        ) border-box;

    background-size:
        100% 100%,
        250% 250%;

    animation:
        checkboxBorder 7s ease-in-out infinite;

    transition:
        transform .18s ease,
        box-shadow .2s ease;
}


/* ==========================================================
   10. АНИМАЦИЯ ЧЕКБОКСА
========================================================== */

@keyframes checkboxBorder {

    0% {
        background-position:
            0 0,
            0% 50%;
    }

    50% {
        background-position:
            0 0,
            100% 50%;
    }

    100% {
        background-position:
            0 0,
            0% 50%;
    }
}


/* ==========================================================
   11. НАВЕДЕНИЕ НА ЧЕКБОКС
========================================================== */

.agreement input:hover {

    box-shadow:
        0 0 0 4px rgba(112,181,170,.10);

    transform: scale(1.04);
}


/* ==========================================================
   12. ВЫБРАННЫЙ ЧЕКБОКС
========================================================== */

.agreement input:checked {

    background:
        linear-gradient(
            135deg,
            #68bca9,
            #9b75b8
        ) padding-box,

        linear-gradient(
            135deg,
            #b58b57,
            #62c8b2,
            #8ba7e8,
            #c084d7
        ) border-box;

    box-shadow:
        0 3px 10px rgba(104,188,169,.25);
}


/* ==========================================================
   13. ГАЛОЧКА ВНУТРИ
========================================================== */

.agreement input:checked::after {

    content: "";

    position: absolute;

    left: 5px;
    top: 2px;

    width: 6px;
    height: 11px;

    border:
        solid white;

    border-width:
        0 2px 2px 0;

    transform:
        rotate(45deg);
}


/* ==========================================================
   14. ССЫЛКИ В СОГЛАСИИ
========================================================== */

.agreement a {

    color: #8b663c;

    text-decoration: underline;

    text-decoration-thickness: 1px;

    text-underline-offset: 2px;
}


/* ==========================================================
   КОПИЯ СОГЛАСИЯ НА E-MAIL
========================================================== */

.email-copy {

    margin: 0 0 19px;

    padding: 13px 14px;

    border-radius: 15px;

    background: #faf9f7;

    border: 1px solid #eee9e2;
}


/* Заголовок */

.email-copy-title {

    font-size: 12.5px;

    font-weight: 700;

    color: #555;

    margin-bottom: 4px;
}


/* Описание */

.email-copy-text {

    font-size: 10.5px;

    line-height: 1.45;

    color: #999;

    margin-bottom: 9px;
}


/* Поле + кнопка */

.email-copy-row {

    display: flex;

    gap: 7px;
}


/* E-mail */

.email-copy-input {

    flex: 1;

    min-width: 0;

    height: 40px;

    padding: 0 11px;

    border-radius: 10px;

    border: 1px solid #e1ddd7;

    background: #fff;

    color: #333;

    font-size: 12px;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}


.email-copy-input::placeholder {
    color: #aaa;
}


.email-copy-input:focus {

    border-color: #b9a07d;

    box-shadow:
        0 0 0 3px rgba(181,139,87,.09);
}


/* Кнопка отправки */

.email-copy-button {

    flex: 0 0 auto;

    height: 40px;

    padding: 0 13px;

    border: 0;

    border-radius: 10px;

    background: #eee8df;

    color: #806541;

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .15s ease;
}


.email-copy-button:active {

    transform: scale(.97);
}


.email-copy-button:hover {

    background: #e5ddcf;
}


/* Сообщение после отправки */

.email-copy-status {

    margin-top: 7px;

    font-size: 10.5px;

    line-height: 1.4;

    color: #32945a;
}

/* ==========================================================
   15. ОСНОВНАЯ КНОПКА
========================================================== */

.button {
    width: 100%;

    height: 54px;

    border: 0;

    border-radius: 15px;

    background: #9c7547;

    color: white;

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 7px 18px rgba(156,117,71,.25);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


.button:active {
    transform: scale(.98);
}


.button:disabled {

    opacity: .45;

    cursor: not-allowed;

    box-shadow: none;
}


/* ==========================================================
   16. МЕЛКИЙ ТЕКСТ
========================================================== */

.small {

    text-align: center;

    color: #999;

    font-size: 11px;

    margin-top: 18px;

    line-height: 1.45;
}


/* ==========================================================
   17. FOOTER
========================================================== */

.footer {

    text-align: center;

    margin-top: 15px;

    font-size: 12px;

    color: #999;

    line-height: 1.6;
}


.footer a {

    color: #8b663c;

    text-decoration: none;
}


/* ==========================================================
   18. GUEST GUIDE
   Информация для гостей
========================================================== */

.guest-guide {

    display: flex;

    align-items: flex-start;

    gap: 12px;

    margin-top: 14px;

    padding: 14px;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #f7f2ea,
            #fbfaf8
        );

    border: 1px solid #e8dfd3;

    color: #242424;

    text-decoration: none;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}


.guest-guide:active {
    transform: scale(.98);
}


.guest-guide-icon {

    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: #eee5d8;

    font-size: 20px;
}


.guest-guide-content {
    min-width: 0;
}


.guest-guide-title {

    font-size: 14px;

    font-weight: 750;

    margin-bottom: 4px;

    color: #2a2a2a;
}


.guest-guide-text {

    font-size: 11.5px;

    line-height: 1.45;

    color: #777;
}


.guest-guide-link {

    margin-top: 7px;

    font-size: 12px;

    font-weight: 700;

    color: #9c7547;
}


/* ==========================================================
   19. ИНФОРМАЦИЯ О НОМЕРЕ ТЕЛЕФОНА
========================================================== */

.phone-info {

    margin-top: 9px;

    padding: 12px 13px;

    border-radius: 13px;

    background: #f7f5f2;

    border: 1px solid #eee9e2;

    color: #777;

    font-size: 11.5px;

    line-height: 1.5;
}


.phone-info-main {

    display: flex;

    flex-direction: column;

    gap: 4px;
}


.phone-info-main strong {

    color: #555;

    font-size: 12px;

    font-weight: 700;
}


.phone-info-main span {

    color: #777;
}


/* ==========================================================
   20. ACCORDION
========================================================== */

.phone-info-details {

    margin-top: 7px;
}


.phone-info-details summary {

    display: inline-flex;

    align-items: center;

    cursor: pointer;

    color: #8b663c;

    font-size: 11px;

    font-weight: 600;

    list-style: none;

    user-select: none;
}


.phone-info-details summary::-webkit-details-marker {
    display: none;
}


.phone-info-details summary::after {

    content: "＋";

    margin-left: 5px;

    font-size: 12px;

    font-weight: 400;
}


.phone-info-details[open] summary::after {
    content: "−";
}


.phone-info-text {

    margin-top: 9px;

    padding-top: 9px;

    border-top: 1px solid #e7e1d8;

    color: #888;

    font-size: 10.5px;

    line-height: 1.55;
}


.phone-info-text a {

    color: #8b663c;

    text-decoration: underline;
}


/* ==========================================================
   21. МОДАЛЬНОЕ ОКНО
========================================================== */

.modal-overlay {

    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 18px;

    background:
        rgba(20,18,15,.62);

    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity .25s ease,
        visibility .25s ease;
}


.modal-overlay.show {

    opacity: 1;

    visibility: visible;
}


/* ==========================================================
   22. МОДАЛЬНАЯ КАРТОЧКА
========================================================== */

.modal {

    width: 100%;

    max-width: 410px;

    max-height:
        calc(100vh - 36px);

    overflow-y: auto;

    background: #fff;

    border-radius: 26px;

    padding: 25px 20px 20px;

    box-shadow:
        0 25px 70px rgba(0,0,0,.25);

    transform:
        translateY(18px)
        scale(.97);

    transition:
        transform .25s ease;
}


.modal-overlay.show .modal {

    transform:
        translateY(0)
        scale(1);
}


/* ==========================================================
   23. ЗАГОЛОВОК МОДАЛЬНОГО ОКНА
========================================================== */

.modal-success {

    width: 58px;
    height: 58px;

    margin: 0 auto 14px;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #eaf7ee;

    color: #2c9b54;

    font-size: 29px;

    font-weight: 700;
}


.modal-title {

    margin: 0;

    text-align: center;

    font-size: 23px;

    line-height: 1.2;

    font-weight: 750;
}


.modal-subtitle {

    margin: 9px 0 21px;

    text-align: center;

    color: #707070;

    font-size: 14px;

    line-height: 1.5;
}


/* ==========================================================
   24. WIFI — СПИСОК СЕТЕЙ
========================================================== */

.wifi-list {

    display: flex;

    flex-direction: column;

    gap: 11px;
}


.wifi-item {

    border: 1px solid #e7e1d8;

    background: #faf9f7;

    border-radius: 17px;

    padding: 14px 13px;
}


.wifi-top {

    display: flex;

    align-items: center;

    gap: 11px;
}


.wifi-icon {

    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    border-radius: 13px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #eee5d8;

    color: #8b663c;

    font-size: 20px;
}


.wifi-info {

    min-width: 0;

    flex: 1;
}


.wifi-name {

    font-size: 16px;

    font-weight: 750;

    color: #242424;

    margin-bottom: 3px;

    word-break: break-word;
}


.wifi-label {

    font-size: 11px;

    color: #999;
}


/* ==========================================================
   25. ПАРОЛЬ WIFI
========================================================== */

.password-row {

    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: 12px;
}


.password {

    flex: 1;

    min-width: 0;

    height: 42px;

    padding: 0 12px;

    border-radius: 11px;

    background: #fff;

    border: 1px solid #e1ddd7;

    color: #333;

    font-size: 14px;

    font-weight: 650;

    letter-spacing: .3px;

    display: flex;

    align-items: center;
}


.copy-button {

    flex: 0 0 auto;

    height: 42px;

    padding: 0 13px;

    border: 0;

    border-radius: 11px;

    background: #9c7547;

    color: white;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

    transition: .2s;
}


.copy-button:active {

    transform: scale(.96);
}


.copy-button.copied {

    background: #32945a;
}


/* ==========================================================
   26. ПРИМЕЧАНИЕ В МОДАЛЬНОМ ОКНЕ
========================================================== */

.modal-note {

    margin-top: 16px;

    padding: 12px 13px;

    border-radius: 13px;

    background: #f6f4f1;

    color: #777;

    font-size: 11.5px;

    line-height: 1.5;

    text-align: center;
}


/* ==========================================================
   27. КНОПКА ЗАКРЫТИЯ
========================================================== */

.modal-close {

    width: 100%;

    height: 49px;

    margin-top: 12px;

    border: 0;

    border-radius: 14px;

    background: #242424;

    color: white;

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;
}


/* ==========================================================
   28. МОБИЛЬНАЯ ВЕРСИЯ
========================================================== */

@media (max-width: 360px) {

    .hero {

        min-height: 190px;

        padding: 20px;
    }


    h1 {

        font-size: 25px;
    }


    .card {

        padding: 21px 17px;
    }


    .agreement {

        font-size: 12px;
    }


    .modal {

        padding: 22px 16px 17px;

        border-radius: 23px;
    }


    .modal-title {

        font-size: 21px;
    }


    .wifi-item {

        padding: 12px;
    }


    .copy-button {

        padding: 0 10px;
    }
}


/* ==========================================================
   29. УМЕНЬШЕНИЕ АНИМАЦИИ
   Для пользователей, у которых включено
   "уменьшение движения" в настройках телефона
========================================================== */

@media (prefers-reduced-motion: reduce) {

    .phone,
    .agreement input {

        animation: none;
    }

    .phone {

        background:
            linear-gradient(
                #faf9f7,
                #faf9f7
            ) padding-box,

            linear-gradient(
                110deg,
                #b58b57,
                #65c7b5,
                #8ba7e8,
                #b28bd9
            ) border-box;

        background-size:
            100% 100%,
            100% 100%;
    }
}



/* ==========================================================
   КОПИЯ СОГЛАСИЯ — СКРЫТА ПО УМОЛЧАНИЮ
========================================================== */

.email-copy {
    display: none;

    margin: 8px 0 19px;
    padding: 13px 14px;

    border-radius: 15px;

    background: #faf9f7;

    border: 1px solid #eee9e2;

    opacity: 0;
    transform: translateY(-6px);

    transition:
        opacity .25s ease,
        transform .25s ease;
}


/* Показываем поле только после установки галочки */

.email-copy.show {
    display: block;

    opacity: 1;
    transform: translateY(0);
}


/* ==========================================================
   ЧЕКБОКС "ОТПРАВИТЬ КОПИЮ"
========================================================== */

.email-copy-option {
    display: flex;

    align-items: flex-start;

    gap: 11px;

    margin-top: 12px;

    font-size: 12.5px;

    line-height: 1.45;

    color: #666;

    cursor: pointer;
}


.email-copy-option input {
    appearance: none;
    -webkit-appearance: none;

    width: 21px;
    height: 21px;

    flex: 0 0 21px;

    margin: 0;

    position: relative;

    cursor: pointer;

    border-radius: 7px;

    border: 2px solid transparent;

    background:
        linear-gradient(#fff,#fff) padding-box,

        linear-gradient(
            135deg,
            #b58b57,
            #62c8b2,
            #8ba7e8,
            #c084d7,
            #d7839c,
            #b58b57
        ) border-box;

    background-size:
        100% 100%,
        250% 250%;

    animation:
        checkboxBorder 7s ease-in-out infinite;

    transition:
        transform .18s ease,
        box-shadow .2s ease;
}


/* Галочка */

.email-copy-option input:checked {
    background:
        linear-gradient(
            135deg,
            #68bca9,
            #9b75b8
        ) padding-box,

        linear-gradient(
            135deg,
            #b58b57,
            #62c8b2,
            #8ba7e8,
            #c084d7
        ) border-box;

    box-shadow:
        0 3px 10px rgba(104,188,169,.25);
}


.email-copy-option input:checked::after {

    content: "";

    position: absolute;

    left: 5px;
    top: 2px;

    width: 6px;
    height: 11px;

    border: solid white;

    border-width:
        0 2px 2px 0;

    transform: rotate(45deg);
}


/* ==========================================================
   АНИМАЦИЯ ПОЯВЛЕНИЯ ПОЛЯ E-MAIL
========================================================== */

.email-copy.show .email-copy-input,
.email-copy.show .email-copy-button {

    animation: emailFieldAppear .25s ease;
}


@keyframes emailFieldAppear {

    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}