/* Цветовая схема из HYDROLAN */
:root {
    --primary-red: #C8445A;
    --primary-blue: #507BAD;
    --background-light: #ffffff;
    --text-white: #ffffff;
    --text-dark: #333333;
    --border-color: #507BAD;
    --hover-opacity: 0.8;
    --neutral-gray: #a1a1a1;
    --bg-base: #060103;
    --bg-accent: #1B0407;
    --bg-accent-strong: #3A0A13;
    --card-overlay: rgba(12, 0, 3, 0.55);
    --text-soft: rgba(255, 255, 255, 0.78);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(200, 68, 90, 0.18) 0%, rgba(200, 68, 90, 0.05) 35%, rgba(6, 1, 3, 0.5) 100%),
        linear-gradient(140deg, var(--bg-base) 0%, var(--bg-accent) 48%, var(--bg-accent-strong) 100%);
    color: var(--text-white);
    min-height: 100vh;
    margin: 0;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 14% 22%, rgba(255, 255, 255, 0.09) 0%, transparent 55%),
        radial-gradient(circle at 82% 78%, rgba(200, 68, 90, 0.25) 0%, transparent 60%);
    opacity: 0.75;
    pointer-events: none;
    z-index: 0;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
    padding: 48px 24px 56px;
    position: relative;
    z-index: 1;
}

.site-header {
    width: 100%;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 1180px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    align-items: stretch;
    animation: fadeInUp 0.8s ease-out;
}

.hero-panel,
.cta-panel {
    background: var(--card-overlay);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 32px;
    padding: 40px;
    backdrop-filter: blur(22px);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-panel {
    display: flex;
    flex-direction: column;
    gap: 28px;
    animation: fadeInUp 0.9s ease-out;
    animation-fill-mode: both;
}

.cta-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    animation: fadeInUp 1s ease-out;
    animation-fill-mode: both;
}

.cta-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at bottom left, rgba(200, 68, 90, 0.22) 0%, transparent 60%);
    pointer-events: none;
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-header {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hero-badge {
    align-self: flex-start;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.85rem;
}

.hero-lead {
    font-size: 1.1rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
    max-width: 520px;
}

.hero-services {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    color: #FFFFFF;
    max-width: 560px;
}

.hero-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0;
    margin: 0;
    color: var(--text-soft);
}

.hero-list li {
    position: relative;
    padding-left: 28px;
    font-size: 1.02rem;
    line-height: 1.55;
}

.hero-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    top: 0;
    color: rgba(200, 68, 90, 0.75);
    font-weight: 500;
}

/* Логотип */
.logo-section {
    margin: 0;
}

.logo-text {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-white);
    text-transform: lowercase;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.2;
}

.main-logo {
    max-width: 520px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.buttons-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    max-width: 360px;
}

/* Стили для кнопок в виде капель/пузырей */
.action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 25px;
    text-decoration: none;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    font-size: 1.05rem;
    font-weight: 500;
    transition: all 0.3s ease;
    gap: 16px;
    min-height: 70px;
    position: relative;
    overflow: hidden;
}

.action-button:hover {
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
    background: rgba(255, 255, 255, 0.12);
}

.button-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.action-button span {
    flex: 0 1 auto;
    text-align: center;
    line-height: 1.4;
}


/* Специальные стили для первой кнопки */
.course-button {
    border-color: rgba(255, 255, 255, 0.2);
}

.course-button .button-icon {
    color: rgba(255, 255, 255, 0.6);
}

/* Стили для VK */
.vk-button:hover,
.telegram-button:hover,
.catalog-button:hover,
.contact-button:hover {
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.action-button.contact-button span {
    white-space: nowrap;
}

.action-button,
.action-button:focus {
    cursor: pointer;
    outline: none;
}

.action-button:focus-visible {
    outline: 3px solid rgba(200, 68, 90, 0.45);
    outline-offset: 3px;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
    }

    .hero-panel,
    .cta-panel {
        padding: 36px;
    }
}

@media (max-width: 768px) {
    .page-wrapper {
        padding: 42px 18px;
    }

    .hero-title {
        font-size: 1.35rem;
    }

    .hero-list li {
        font-size: 0.98rem;
    }

    .main-logo {
        max-width: 220px;
    }

    .action-button {
        padding: 18px 22px;
        min-height: 64px;
        font-size: 1rem;
    }
}

@media (max-width: 520px) {
    .hero-panel,
    .cta-panel {
        padding: 28px 24px;
        border-radius: 24px;
    }

    .buttons-section {
        max-width: 100%;
        gap: 16px;
    }

    .action-button {
        padding: 16px 20px;
        font-size: 0.95rem;
        min-height: 58px;
        gap: 12px;
    }

    .button-icon {
        width: 26px;
        height: 26px;
    }
}

/* Плавная анимация появления */
.container {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.action-button {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.action-button:nth-child(1) { animation-delay: 0.1s; }
.action-button:nth-child(2) { animation-delay: 0.2s; }
.action-button:nth-child(3) { animation-delay: 0.3s; }

/* Модальное окно */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 999;
}

.modal.is-visible {
    display: flex;
    animation: fadeIn 0.25s ease-out;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 0, 0, 0.65);
    backdrop-filter: blur(12px);
}

.modal-dialog {
    position: relative;
    width: 100%;
    max-width: 520px;
    border-radius: 28px;
    background: linear-gradient(180deg, #25090D 0%, #741726 100%);
    padding: 3px;
    box-shadow: 0 25px 60px rgba(35, 38, 81, 0.25);
    z-index: 1;
}

.modal-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
    backdrop-filter: blur(30px);
    border-radius: 25px;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 12px;
}

.modal-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    margin-bottom: 28px;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(34, 8, 11, 0.45);
    font-size: 0.95rem;
    color: #FFFFFF;
    background-color: rgba(20, 3, 4, 0.35);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.form-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='12' viewBox='0 0 18 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 3l7.5 6 7.5-6' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px;
    padding-right: 42px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: rgba(200, 68, 90, 0.9);
    box-shadow: 0 0 0 3px rgba(200, 68, 90, 0.35);
    outline: none;
    background-color: rgba(20, 3, 4, 0.6);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.58);
}

.form-field select option {
    color: #140304;
}

.form-field select option[value=""],
.form-field select option:disabled {
    color: rgba(20, 3, 4, 0.5);
}

.field-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.consent-field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: 16px;
    font-size: 0.85rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.85);
}

.consent-field input {
    margin-top: 2px;
}

.consent-field a {
    color: #FF6B80;
    text-decoration: none;
}

.consent-field a:hover,
.consent-field a:focus {
    text-decoration: underline;
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.primary-action,
.secondary-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-action {
    background: linear-gradient(90deg, #1B0607 0%, #C8445A 100%);
    color: #FDF3F5;
    box-shadow: 0 12px 24px rgba(200, 68, 90, 0.28);
}

.primary-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(200, 68, 90, 0.4);
}

.privacy-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-top: 4px;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    border: none;
    background: transparent;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 2;
}

.modal-close:hover,
.modal-close:focus-visible {
    transform: translateY(-1px);
    color: #FFFFFF;
    outline: none;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body.modal-open {
    overflow: hidden;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 520px) {
    .modal-card {
        padding: 24px;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-subtitle {
        font-size: 0.95rem;
    }

    .primary-action,
    .secondary-action {
        font-size: 0.95rem;
        padding: 14px;
    }
}

/* ШИММЕР ЭФФЕКТ для кнопки */
.primary-action.loading {
    position: relative;
    overflow: hidden;
    pointer-events: none;
}

.primary-action.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Стили для ошибки В ТЕМНОМ СТИЛЕ */
.form-error {
    color: #ff6b6b;
    font-size: 13px;
    margin-top: 8px;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15) 0%, rgba(220, 53, 69, 0.15) 100%);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 8px;
    display: none;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.4;
}

.form-error.show {
    display: block;
    animation: errorFadeIn 0.3s ease;
}

@keyframes errorFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Модальное окно успеха В СТИЛИСТИКЕ САЙТА */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.success-modal.show {
    opacity: 1;
    visibility: visible;
}

.success-modal-content {
    background: linear-gradient(135deg, rgba(29, 39, 51, 0.95) 0%, rgba(67, 79, 99, 0.95) 100%);
    backdrop-filter: blur(20px);
    padding: 32px 24px;
    border-radius: 16px;
    max-width: 320px;
    width: 90%;
    text-align: center;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.success-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-modal-close:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.success-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #4CAF50 0%, #45A049 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.25);
}

.success-title {
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

.success-message {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
    margin-bottom: 20px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
}

.success-button {
    background: linear-gradient(135deg, #c8445a 0%, #b23a4f 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(200, 68, 90, 0.25);
    font-family: 'Inter', sans-serif;
    min-width: 120px;
}

.success-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(200, 68, 90, 0.35);
}
