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

.dboard {
    margin-top: 50px;
}

body {
    font-family: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background-color: #e9eef3;
    line-height: 1.4;
    color: #1a2a3f;
}

.fixed-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image: url('../img/wp.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    filter: brightness(1.02) contrast(1.02);
}

.fixed-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.45);
    pointer-events: none;
}

.main-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem 2rem;
}

.glass-card {
    background: rgb(255 255 255 / 15%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 2rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05), 0 2px 6px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

section, header, footer {
    margin-bottom: 2.2rem;
}

.header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.2rem 2rem;
}

.logo-placeholder {
    flex-shrink: 0;
    backdrop-filter: blur(4px);
    padding: 0.8rem 1.8rem;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 1px;
    max-width: 280px;
    width: auto;
    overflow: hidden;
    word-break: break-word;
}

.logo-placeholder span {
    font-weight: 700;
    background: linear-gradient(135deg, #2c5a7a, #1e3e58);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-placeholder img {
    max-width: 100%;
    height: auto;
    display: block;
}

.right-titles {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.upper-title {
    font-weight: 350;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
    color: #00549d;
    background: rgba(255,255,245,0.5);
    backdrop-filter: blur(4px);
    padding: 0.2rem 1rem;
    border-radius: 40px;
    display: inline-block;
    align-self: flex-end;
}

.lower-title {
    font-weight: 800;
    font-size: 1.8rem;
    line-height: 1.2;
    color: #00549d;
    text-shadow: 0 1px 1px rgba(255,255,200,0.5);
    background: rgba(255,255,250,0.3);
    padding: 0.1rem 0.8rem;
    border-radius: 60px;
    letter-spacing: -0.3px;
}

.double-slider {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.slider-vertical {
    flex: 1;
    min-width: 260px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    border-radius: 1.6rem;
    padding: 1rem;
    border: 1px solid rgba(255,255,245,0.7);
}

.slider-horizontal {
    flex: 2;
    min-width: 360px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    border-radius: 1.6rem;
    padding: 1rem;
    border: 1px solid rgba(255,255,245,0.7);
}

.slider-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.slider-viewport {
    flex: 1;
    overflow: hidden;
    border-radius: 1.2rem;
    position: relative;
    background: #eef2f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.horizontal-slider-wrapper {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
    border-radius: 1.2rem;
}

.horizontal-slides {
    display: flex;
    flex-direction: row;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.horizontal-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2f7;
}

.horizontal-slide img {
    width: 100%;
    height: 100%;
    display: block;
}

.slider-vertical .horizontal-slide img {
    object-fit: cover;
    object-position: center;
}

.slider-horizontal .horizontal-slide img {
    object-fit: cover;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #1a4b6e;
    font-size: 24px;
    font-weight: 500;
    user-select: none;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.slider-btn:active {
    transform: scale(0.95);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(30, 70, 100, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #1a4b6e;
    width: 24px;
    border-radius: 4px;
}

.info-section {
    padding: 1.8rem 2rem;
}

.info-section h2 {
    font-size: 1.9rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: #1c4b6e;
    letter-spacing: -0.2px;
    border-left: 5px solid #3c7aa6;
    padding-left: 1rem;
}

.empty-container {
    min-height: 100px;
    background: rgba(250, 250, 255, 0.4);
    border-radius: 1.2rem;
    padding: 1.5rem;
    font-style: italic;
    color: #456e8c;
    text-align: center;
    border: 1px dashed rgba(60,100,130,0.3);
    backdrop-filter: blur(4px);
}

.diploma-section {
    padding: 1.8rem 2rem;
}

.diploma-section h2 {
    font-size: 1.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1c4b6e;
    border-left: 5px solid #3c7aa6;
    padding-left: 1rem;
}

.diploma-images {
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
    justify-content: center;
    align-items: center;
}

.diploma-card {
    flex: 1 1 280px;
    max-width: 500px;
    overflow: hidden;
    padding: 0.6rem;
    transition: transform 0.2s;
}

.diploma-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    border-radius: 1rem;
    display: block;
}

.cta-section {
    text-align: center;
    padding: 2.5rem 2rem;
}

.cta-question {
    font-size: 1.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1a4c6e, #2c6288);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cta-answer {
    font-size: 1.8rem;
    font-weight: 700;
    background: #00549d;
    backdrop-filter: blur(12px);
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 60px;
    border: 1px solid rgba(255,255,210,0.8);
    color: white;
    margin-top: 0.5rem;
    letter-spacing: 1px;
}

.cta-answer a {
    text-decoration: none;
    color: white;
    transition: 0.2s;
}

.cta-answer a:hover {
    color: #2a6d96;
}

.footer {
    padding: 2rem 2rem;
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    font-size: 0.95rem;
}

.footer-block p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-block strong {
    font-weight: 600;
    color: #1a4b6e;
}

.footer a {
    color: #1f5e86;
    text-decoration: none;
    border-bottom: 1px dotted rgba(30,80,110,0.4);
}

.footer a:hover {
    color: #0a3146;
    border-bottom: 1px solid #1f5e86;
}

hr {
    margin: 0.5rem 0 1rem;
    border: none;
    height: 1px;
    background: rgba(100,120,140,0.2);
}

@media (max-width: 780px) {
    .main-content {
        padding: 1rem;
    }
    
    .lower-title {
        font-size: 1.2rem;
    }
    
    .upper-title {
        font-size: 0.9rem;
    }
    
    .double-slider {
        flex-direction: column;
    }
    
    .slider-vertical,
    .slider-horizontal {
        flex: 1;
        min-width: auto;
    }
    
    .horizontal-slider-wrapper {
        height: 380px;
    }
    
    .cta-question {
        font-size: 1.4rem;
    }
    
    .cta-answer {
        font-size: 1.3rem;
    }
    
    .logo-placeholder {
        max-width: 220px;
        font-size: 1.3rem;
        padding: 0.6rem 1.2rem;
    }
    
    .slider-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}

.empty-container p {
    margin: 0;
    opacity: 0.8;
}

/* Стиль для контейнера формы — стеклянный эффект */
.glass-form-section {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: rgb(255 255 255 / 15%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.4), 0 0 0 0.5px rgba(255, 255, 255, 0.05) inset;
    transition: transform 0.25s ease, box-shadow 0.3s ease;
}

.glass-form-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 30px 50px -15px rgba(0, 0, 0, 0.5);
}

/* Внутренний отступ */
.form-wrapper {
    padding: 2.2rem 2rem 2.5rem;
}

/* Заголовки */
.form-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff, #cbd5e6);
    background-clip: text;
    -webkit-background-clip: text;
    color: 1e5174;
    margin-bottom: 0.5rem;
}

.form-description {
    font-size: 0.95rem;
    color: rgba(210, 225, 250, 0.8);
    margin-bottom: 2rem;
    border-left: 3px solid #3b82f6;
    padding-left: 0.85rem;
    font-weight: 450;
    backdrop-filter: blur(2px);
}

/* Форма */
.modern-form {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

/* Группы полей */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: 1e5174;
    margin-left: 0.25rem;
}

.required-badge {
    color: #f97316;
    font-weight: 600;
    margin-left: 2px;
}

/* Поля ввода */
.input-group input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.2rem;
    padding: 0.9rem 1.2rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: #f0f3fa;
    transition: all 0.2s ease;
    outline: none;
    backdrop-filter: blur(5px);
}

.input-group input::placeholder {
    color: rgba(170, 190, 220, 0.6);
    font-weight: 400;
    font-size: 0.9rem;
}

.input-group input:focus {
    border-color: #3b82f6;
    background: rgba(18, 26, 42, 0.8);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Кнопка отправки */
.submit-button {
    margin-top: 0.6rem;
    background: linear-gradient(100deg, #2563eb, #1e40af);
    border: none;
    padding: 0.9rem 1.4rem;
    border-radius: 2.2rem;
    font-weight: 600;
    font-size: 1rem;
    font-family: inherit;
    color: white;
    cursor: pointer;
    transition: all 0.25s;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2px);
}

.submit-button:hover {
    background: linear-gradient(100deg, #1d4ed8, #172554);
    transform: scale(1.01);
    box-shadow: 0 12px 22px -8px rgba(37, 99, 235, 0.5);
}

.submit-button:active {
    transform: scale(0.98);
}

/* Сообщение обратной связи */
.form-message {
    margin-top: 1.5rem;
    padding: 0.85rem 1rem;
    border-radius: 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
    display: none;
    backdrop-filter: blur(8px);
}

.form-message.success {
    display: block;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #ccf0e0;
}

.form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #ffcdcd;
}

/* Адаптивность */
@media (max-width: 540px) {
    .form-wrapper {
        padding: 1.8rem 1.4rem 2rem;
    }
    .form-title {
        font-size: 1.65rem;
    }
    .input-group input {
        padding: 0.75rem 1rem;
    }
    .submit-button {
        padding: 0.8rem 1rem;
    }
}

/* Лёгкая анимация появления */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-form-section {
    animation: fadeUp 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}
