/* ========================================
ПОЛНЫЙ СБРОС И БАЗОВЫЕ СТИЛИ
======================================== */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(43, 125, 134, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

::selection {
    background-color: #2b7d86;
    color: #ffffff;
}

::-moz-selection {
    background-color: #2b7d86;
    color: #ffffff;
}

/* ========================================
БАННЕР И HERO-СЕКЦИЯ
======================================== */
.photo-wrapper {
    position: relative;
    width: 100%;
    padding: 40px 0;
    box-sizing: border-box;
}

.hero-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    margin: 0;
    padding: 0;
}

.glass-panel {
    position: relative;
    margin: 0 auto;
    width: 90%;
    max-width: 1200px;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid #ffffff;
    border-radius: 24px;
    padding: 60px;
    box-sizing: border-box;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.banner-logo {
    text-align: center;
    color: #ffffff;
    margin: 0 0 40px 0;
    font-family: "Playfair Display", serif;
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 400;
}

.hero-title {
    font-family: "Playfair Display", serif;
    font-size: 80px;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.hero-subtitle {
    font-family: "Jost", sans-serif;
    font-size: 30px;
    font-weight: 400;
    opacity: 0.9;
    margin: 0 0 25px 0;
}

/* ========================================
КНОПКИ ДЕЙСТВИЯ
======================================== */
.cta-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 60px;
}

.btn {
    font-family: "Jost", sans-serif;
    font-size: 20px;
    text-decoration: none;
    padding: 12px 32px;
    border-radius: 10px;
    font-weight: 500;
    transition: background 0.3s ease;
    white-space: nowrap;
    min-width: 180px;
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.btn-primary {
    background-color: #2b7d86;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #216168;
}

.btn-secondary {
    background-color: #f3ece7;
    color: #000000;
}

.btn-secondary:hover {
    background-color: #e5ded9;
}

/* ========================================
БЛОК "ОБО МНЕ"
======================================== */
.about-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    width: 100%;
}

.about-content {
    max-width: 70%;
}

.about-title {
    font-family: "Playfair Display", serif;
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.about-text {
    font-family: "Jost", sans-serif;
    font-size: 20px;
    line-height: 1.6;
    font-weight: 400;
    margin: 0;
    color: #ffffff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}

.about-image-box {
    flex-shrink: 0;
}

.about-avatar {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #ffffff;
    display: block;
}

/* ========================================
ОСНОВНОЙ РЯД: СЛАЙДЕР + КОНТАКТЫ
======================================== */
.main-content-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 80px;
    margin-top: 60px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 60px;
}

/* ========================================
СЛАЙДЕР
======================================== */
.slider-window {
    position: relative;
    width: 380px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
    box-sizing: border-box;
    background-color: #ffffff;
}

.slider-tape,
#sliderTape {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: max-content;
    will-change: transform;
}

.second-section {
    flex-shrink: 0;
    width: 380px;
    height: 480px;
    background-color: #fdfdfd;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    background-position: center 25%;
    background-repeat: no-repeat;
    background-size: 50%;
    transition: background-size 0.4s ease-in-out;
}

.second-section:hover::before {
    transform: scale(1.1);
}

.second-section img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
ИНФОРМАЦИОННАЯ ПЛАШКА СЛАЙДА
======================================== */
.card-info {
    padding: 24px;
    background-color: #ffffff;
    border-top: 1px solid #eeeeee;
    min-height: 90px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-text-box {
    flex: 1;
}

.card-title {
    font-family: "Jost", sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #222222;
    margin: 0 0 4px 0;
}

.card-subtitle {
    font-family: "Jost", sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: #777777;
    margin: 0;
}

/* ========================================
КНОПКИ УПРАВЛЕНИЯ СЛАЙДЕРОМ
======================================== */
.slider-controls {
    position: absolute;
    bottom: 24px;
    right: 24px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #2b7d86;
    background-color: transparent;
    color: #2b7d86;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    user-select: none;
    flex-shrink: 0;
}

.slider-btn:hover {
    background-color: #2b7d86;
    color: #ffffff;
}

/* ========================================
БЛОК КОНТАКТОВ
======================================== */
.contact-block {
    flex-shrink: 0;
    width: 500px;
    font-family: "Jost", sans-serif;
    color: #ffffff;
}

.contact-title {
    font-family: "Playfair Display", serif;
    font-size: 60px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.contact-subtitle {
    font-size: 20px;
    font-weight: 400;
    margin: 0 0 40px 0;
    line-height: 1.5;
    color: #ffffff;
    opacity: 0.95;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    color: #ffffff;
    font-weight: 400;
    transition: color 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    width: fit-content;
}

.contact-svg-icon {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    stroke: #ffffff;
    flex-shrink: 0;
    transition: stroke 0.3s ease;
}

.contact-item:hover {
    color: #2b7d86;
}

.contact-item:hover .contact-svg-icon {
    stroke: #2b7d86;
}

.contact-link-text {
    font-family: "Jost", sans-serif;
    font-size: 25px;
    line-height: 1;
}

.contact-phone-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    width: fit-content;
}

.contact-item-wrapper {
    position: relative;
    width: fit-content;
    display: flex;
    align-items: center;
}

.contact-toast {
    position: absolute;
    left: 102%;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%) translateX(10px);
    background-color: #2b7d86;
    color: #ffffff;
    font-size: 18px;
    padding: 10px 20px;
    border-radius: 10px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.contact-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(15px);
}

/* ========================================
ФУТЕР
======================================== */
.main-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 10%;
    color: #ffffff;
    font-family: "Jost", sans-serif;
    box-sizing: border-box;
}

.footer-brand {
    font-family: "Playfair Display", serif;
    font-size: 20px;
    margin: 0;
}

.footer-phone-box {
    position: relative;
}

.footer-phone {
    background: none;
    border: none;
    color: #ffffff;
    font-family: "Jost", sans-serif;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.3s ease;
    user-select: none;
}

.footer-phone:hover {
    opacity: 0.8;
}

.copy-toast {
    position: absolute;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2b7d86;
    color: #ffffff;
    font-size: 18px;
    padding: 10px 20px;
    border-radius: 10px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.copy-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* ========================================
АДАПТИВНОСТЬ — ПЛАНШЕТЫ (до 1300px)
======================================== */
@media (max-width: 1300px) {
    .contact-block {
        margin-left: 20px;
    }
}

/* ========================================
АДАПТИВНОСТЬ — ПЛАНШЕТЫ (до 1200px)
======================================== */
@media (max-width: 1200px) {
    .main-content-row {
        gap: 40px;
    }
    
    .contact-block {
        width: 400px;
    }
}

/* ========================================
АДАПТИВНОСТЬ — ПЛАНШЕТЫ (до 1024px)
======================================== */
@media (max-width: 1024px) {
    .contact-block {
        margin-left: 0px;
    }

    .glass-panel {
        padding: 40px;
    }

    .hero-title {
        font-size: 60px;
    }

    .hero-subtitle {
        font-size: 24px;
    }

    .about-title {
        font-size: 36px;
    }

    .about-text {
        font-size: 18px;
    }

    .about-avatar {
        width: 160px;
        height: 160px;
    }

    .main-content-row {
        flex-direction: column;
        gap: 40px;
    }

    .contact-block {
        width: 100%;
    }

    .contact-title {
        font-size: 48px;
    }

    .contact-subtitle {
        font-size: 18px;
    }

    .contact-link-text {
        font-size: 20px;
    }
}

/* ========================================
АДАПТИВНОСТЬ — МОБИЛЬНЫЕ (до 768px)
======================================== */
@media (max-width: 768px) {
    .glass-panel {
        padding: 30px 20px;
        width: 95%;
    }

    .banner-logo {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .about-section {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .about-image-box {
        order: 1;
    }

    .about-content {
        order: 2;
        max-width: 100%;
        text-align: center;
    }

    .about-title {
        font-size: 32px;
    }

    .about-text {
        font-size: 16px;
    }

    .about-avatar {
        width: 140px;
        height: 140px;
    }

    .main-content-row {
        margin-top: 40px;
        padding-top: 40px;
    }

    .slider-window {
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
    }

    .second-section {
        width: 340px;
        height: 420px;
    }

    .card-title {
        font-size: 18px;
    }

    .card-subtitle {
        font-size: 14px;
    }

    .slider-controls {
        bottom: 16px;
        right: 16px;
    }

    .slider-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .contact-title {
        font-size: 36px;
        text-align: center;
    }

    .contact-subtitle {
        font-size: 16px;
        text-align: center;
        margin-bottom: 30px;
    }

    .contact-list {
        gap: 20px;
        align-items: center;
    }

    .contact-item-wrapper {
        width: 100%;
        justify-content: center;
    }

    .contact-item {
        font-size: 18px;
    }

    .contact-link-text {
        font-size: 18px;
    }

    .contact-toast {
        left: 50%;
        top: auto;
        bottom: -50px;
        transform: translateX(-50%);
    }

    .contact-toast.show {
        transform: translateX(-50%) translateY(-5px);
    }

    .main-footer {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        text-align: center;
    }

    .footer-brand {
        font-size: 18px;
    }

    .footer-phone {
        font-size: 14px;
    }

    .banner-logo,
    .hero-title,
    .hero-subtitle {
        text-align: center;
    }
}

/* ========================================
АДАПТИВНОСТЬ — МАЛЕНЬКИЕ МОБИЛЬНЫЕ (до 480px)
======================================== */
@media (max-width: 480px) {
    .glass-panel {
        padding: 25px 15px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .about-title {
        font-size: 28px;
    }

    .about-text {
        font-size: 15px;
    }

    .about-avatar {
        width: 120px;
        height: 120px;
    }

    .card-info {
        padding: 16px;
        min-height: 80px;
    }

    .card-title {
        font-size: 16px;
    }

    .card-subtitle {
        font-size: 13px;
    }

    .slider-controls {
        bottom: 16px;
        right: 16px;
    }

    .slider-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .contact-title {
        font-size: 28px;
    }

    .contact-subtitle {
        font-size: 15px;
    }

    .contact-link-text {
        font-size: 16px;
    }

    .contact-svg-icon {
        width: 20px;
        height: 20px;
        margin-right: 10px;
    }
}

/* ========================================
ИСПРАВЛЕНИЕ УВЕДОМЛЕНИЯ О КОПИРОВАНИИ
======================================== */

/* Родительский контейнер — разрешаем выход за границы */
.contact-item-wrapper {
    position: relative;
    width: fit-content;
    display: flex;
    align-items: center;
    overflow: visible; /* ВАЖНО: разрешаем уведомлению выходить за границы */
}

/* Уведомление — увеличиваем padding и z-index */
.contact-toast {
    position: absolute;
    left: 102%;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%) translateX(10px);
    background-color: #2b7d86;
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    padding: 12px 24px; /* Увеличили padding */
    border-radius: 10px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 1000; /* Высокий z-index чтобы быть поверх всего */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Добавили тень для лучшей видимости */
    pointer-events: none; /* Чтобы уведомление не мешало кликам */
}

.contact-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(15px);
}

/* ========================================
МОБИЛЬНАЯ ВЕРСИЯ — уведомление по центру снизу
======================================== */
@media (max-width: 768px) {
    .contact-toast {
        left: 50%;
        top: auto;
        bottom: -60px; /* Чуть дальше от номера */
        transform: translateX(-50%);
        font-size: 16px;
        padding: 10px 20px;
        white-space: nowrap;
    }

    .contact-toast.show {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ========================================
МАЛЕНЬКИЕ МОБИЛЬНЫЕ — ещё меньше
======================================== */
@media (max-width: 480px) {
    .contact-toast {
        font-size: 14px;
        padding: 8px 16px;
        bottom: -50px;
    }
}