
/* Modern Gradient Colors */

:root {
    --primary-gradient: linear-gradient(135deg, #4b6cb7 0%, #182848 100%);
    --secondary-gradient: linear-gradient(to right, #ff758c, #ff7eb3);
    --accent-color: #0a58ca;
    --text-dark: #2d3748;
/* WCAG AA контраст 7.09:1 на білому */

--text-light: #f8f9fa;
    --text-muted: #6c757d;
/* WCAG AA контраст 4.68:1 */

--primary-color: #0a58ca;
/* Більш контрастний синій (7.03:1) */

--card-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.2);
    --transition-base: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
/* Modern Base Styles */

body {
    font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    background-color: #f8fafc;
    line-height: 1.7;
    font-size: 1rem;
}
/* High contrast mode */

.high-contrast {
    --text-dark: #ffffff;
    --text-light: #000000;
    --text-muted: #cccccc;
    --primary-color: #ffff00;
/* Висококонтрастний жовтий */

--primary-gradient: linear-gradient(135deg, #000000 0%, #333333 100%);
    background-color: #000000 !important;
    color: #ffffff !important;
}
/* Исправление карточек в высококонтрастном режиме */

.high-contrast .card-modern {
    background-color: #000 !important;
    border: 2px solid #fff !important;
}

.high-contrast .card-modern .card-title,
.high-contrast .card-modern .card-text,
.high-contrast .card-modern .list-styled,
.high-contrast .card-modern .h5,
.high-contrast .card-modern .mb-0 {
    color: #fff !important;
}

.high-contrast .card-modern .card-icon {
    -webkit-text-fill-color: #fff !important;
    color: #fff !important;
}

.high-contrast .card-modern .text-primary {
    color: #ffff00 !important;
/* Желтый для иконок в высококонтрастном режиме */

}

.high-contrast .card-modern:hover {
    background-color: #222 !important;
    transform: translateY(-5px);
    box-shadow: 0 0 0 2px #ffff00 !important;
/* Желтая обводка при наведении */

}
/* Дополнительные улучшения для контрастного режима */

.high-contrast .card-modern .list-styled li::before {
    color: #ffff00 !important;
/* Желтые маркеры списка */

}

.high-contrast .card-modern a {
    color: #ffff00 !important;
/* Желтые ссылки */

text-decoration: underline !important;
}

.high-contrast .card-modern .text-muted {
    color: #ccc !important;
/* Светло-серый для второстепенного текста */

}
/* Исправление видимости текста в высококонтрастном режиме */


/* Блок "Історія успіху" */

.high-contrast .testimonial-card {
    background-color: #000 !important;
    border: 2px solid #fff !important;
}

.high-contrast .testimonial-card h3,
.high-contrast .testimonial-card p,
.high-contrast .testimonial-card .text-muted,
.high-contrast .testimonial-card .testimonial-body p {
    color: #fff !important;
}

.high-contrast .testimonial-card .text-warning {
    color: #ffff00 !important;
}
/* Блок "Контакти" и "Наші контакти" */

.high-contrast #contact .card-modern {
    background-color: #000 !important;
    border: 2px solid #fff !important;
}

.high-contrast #contact .card-title,
.high-contrast #contact .form-label,
.high-contrast #contact .form-control,
.high-contrast #contact .list-unstyled,
.high-contrast #contact .contact-list li,
.high-contrast #contact .social-icon,
.high-contrast #contact .h5,
.high-contrast #contact .text-primary {
    color: #fff !important;
}

.high-contrast #contact .form-control {
    background-color: #222 !important;
    color: #fff !important;
    border: 1px solid #fff !important;
}

.high-contrast #contact .social-icon:hover {
    background-color: #ffff00 !important;
    color: #000 !important;
}

.high-contrast #contact .btn-primary {
    background-color: #ffff00 !important;
    color: #000 !important;
    border: 1px solid #ffff00 !important;
}
/* Общие исправления для текста */

.high-contrast .section-title,
.high-contrast .h1,
.high-contrast .h2,
.high-contrast .h3,
.high-contrast .h4,
.high-contrast .h5,
.high-contrast p,
.high-contrast li {
    color: #fff !important;
}

.high-contrast .text-primary {
    color: #ffff00 !important;
}
/* Исправление подвала в высококонтрастном режиме */

.high-contrast .footer-modern {
    background-color: #000 !important;
    border-top: 2px solid #fff !important;
}

.high-contrast .footer-modern h3,
.high-contrast .footer-modern h5,
.high-contrast .footer-modern p,
.high-contrast .footer-modern li,
.high-contrast .footer-modern a {
    color: #fff !important;
}

.high-contrast .footer-modern a:hover {
    color: #ffff00 !important;
    text-decoration: underline !important;
}

.high-contrast .footer-modern .social-icon {
    background-color: #222 !important;
    border: 1px solid #fff !important;
}

.high-contrast .footer-modern .social-icon:hover {
    background-color: #ffff00 !important;
    color: #000 !important;
}

.high-contrast .footer-modern .form-control {
    background-color: #222 !important;
    color: #fff !important;
    border: 1px solid #fff !important;
}

.high-contrast .footer-modern .btn-primary {
    background-color: #ffff00 !important;
    color: #000 !important;
    border: 1px solid #ffff00 !important;
}

.high-contrast .footer-modern hr {
    border-color: #fff !important;
}

.high-contrast .footer-modern .text-danger {
    color: #ff6b6b !important;
}

.high-contrast .footer-modern .text-white {
    color: #fff !important;
}
/* Дополнительные улучшения для подвала */

.high-contrast .footer-modern .bi-heart-fill {
    color: #ff6b6b !important;
}

.high-contrast .footer-modern input::placeholder {
    color: #ccc !important;
}

.high-contrast .navbar-modern {
  background-color: #000 !important;
  border-bottom: 1px solid #444;
}

.high-contrast .navbar-brand,
.high-contrast .nav-link {
  color: #fff !important;
}

.high-contrast .nav-link:hover,
.high-contrast .nav-link:focus {
  background-color: #fff !important;
  color: #000 !important;
}
/* Стили для блока FAQ в высококонтрастном режиме */

.high-contrast #faq {
  --hc-faq-bg: #000;
  --hc-faq-text: #fff;
  --hc-faq-border: #fff;
  --hc-faq-accent: #ffff00;
}

.high-contrast #faq .accordion-item {
  background-color: var(--hc-faq-bg) !important;
  border: 2px solid var(--hc-faq-border) !important;
  margin-bottom: 0.5rem;
}

.high-contrast #faq .accordion-button {
  background-color: var(--hc-faq-bg) !important;
  color: var(--hc-faq-text) !important;
  border: none !important;
}

.high-contrast #faq .accordion-button:not(.collapsed) {
  background-color: #222 !important;
  color: var(--hc-faq-accent) !important;
}

.high-contrast #faq .accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 0, 0.5) !important;
}

.high-contrast #faq .accordion-body {
  background-color: #111 !important;
  color: var(--hc-faq-text) !important;
  border-top: 1px solid var(--hc-faq-border) !important;
}

.high-contrast #faq .accordion-button::after {
  filter: brightness(0) invert(1) !important;
}

.high-contrast #faq .section-title {
  color: #fff !important;
}

.high-contrast #faq .section-title::after {
  background-color: #ffff00 !important;
}

.high-contrast .nav-link.active {
  background-color: var(--primary-color) !important;
  color: #000 !important;
  outline: 2px solid #fff;
}

.high-contrast :focus-visible {
    outline: 3px solid #ffff00 !important;
    outline-offset: 3px;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 0, 0.5) !important;
}

.high-contrast .btn:focus-visible {
    outline: 3px solid #ffff00 !important;
    outline-offset: 2px;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 0, 0.5),
                0 0 0 0.1rem black !important;
}

.high-contrast .bi-contrast {
  color: #ffff00 !important;
}

.high-contrast .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffff00' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.high-contrast .bi-zoom-in,
.high-contrast .bi-zoom-out {
  color: #ffff00 !important;
}

.high-contrast #back-to-top .bi-arrow-up {
  color: #000 !important;
}

.high-contrast .bi-circle-half {
  color: #ffff00 !important;
/* Ярко-желтый для лучшей видимости */

}
/* Дополнительно: стиль для активного состояния */

.high-contrast .btn-outline-light:hover .bi-circle-half,
.high-contrast .btn-outline-light:focus .bi-circle-half {
  color: #000 !important;
}

.bi-circle-half {
  color: currentColor;
}
/* Accessibility focus styles */

:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
    box-shadow: 0 0 0 0.25rem rgba(79, 172, 254, 0.3);
    transition: all 0.2s ease;
}

#infoModal :focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.high-contrast #infoModal :focus-visible {
    outline: 3px solid #ffff00 !important;
}
/* Специфичные стили для кнопок */

.btn:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 0.25rem rgba(79, 172, 254, 0.3),
                0 0 0 0.1rem white;
}

.form-control:focus-visible,
.form-select:focus-visible {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(79, 172, 254, 0.3);
}

.form-control:focus {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
/* Для навигационных ссылок */

.nav-link:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
    background-color: var(--text-dark);
    color: white !important;
    border-radius: 4px;
}
/* Skip to content link */

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

.visually-hidden-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
}
/* Animated Header */

.header-animated {
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.header-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjA1KSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3QgZmlsbD0idXJsKCNwYXR0ZXJuKSIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIvPjwvc3ZnPg==');
}
/* Modern Navigation */

.navbar-modern {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link:hover,
.nav-link:focus {
  background-color: var(--text-dark);
  color: white !important;
  border-radius: 4px;
}

.nav-link.active {
  background-color: var(--primary-color);
  color: white !important;
  border-radius: 4px;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    font-weight: 500;
    transition: var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition-base);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}
/* Hero Section with Animation */

.hero-section {
    background: var(--primary-gradient);
    color: white;
    border-radius: 0 0 30px 30px;
    overflow: hidden;
    position: relative;
    padding: 5rem 0 !important;
    margin-bottom: 5rem !important;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgcGF0dGVyblRyYW5zZm9ybT0icm90YXRlKDQ1KSI+PHJlY3Qgd2lkdGg9IjUwIiBoZWlnaHQ9IjUwIiBmaWxsPSJyZ2JhKDI1NSwyNTUsMjU1LDAuMDUpIi8+PC9wYXR0ZXJuPjwvZGVmcz48cmVjdCBmaWxsPSJ1cmwoI3BhdHRlcm4pIiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIi8+PC9zdmc+');
}

.hero-title {
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease;
    margin-bottom: 1.5rem;
}

.hero-image {
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: perspective(1000px) rotateY(-10deg);
    transition: var(--transition-base);
    border: 5px solid white;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}
/* Modern Cards */

.card-modern {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-base);
    background: white;
    height: 100%;
}

.card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.3);
}

.card-icon {
    font-size: 2.5rem;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}
/* Testimonials Section */

.testimonial-card {
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    border: 3px solid var(--accent-color);
}

.testimonial-author h3 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.testimonial-body {
    padding: 0.5rem 0;
}

.testimonial-rating {
    margin-top: 1rem;
    font-size: 1.2rem;
}
/* Team Members */

.team-member {
    text-align: center;
    padding: 2rem;
}

.team-member img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 5px solid white;
    box-shadow: var(--card-shadow);
}

.team-info h3 {
    margin-top: 1rem;
    color: var(--text-dark);
}

.position {
    color: #0a58ca;
    font-weight: 500;
}

.bio {
    margin-top: 1rem;
    font-size: 0.9rem;
}
/* Partner Logos */

.partner {
    text-align: center;
    padding: 1rem;
}

.partner-logo {
    filter: grayscale(100%) contrast(0.5);
    opacity: 0.7;
    transition: var(--transition-base);
    padding: 1rem;
    background: white;
    border-radius: 10px;
    max-height: 80px;
    object-fit: contain;
    width: 100%;
}

.partner:hover .partner-logo {
    filter: grayscale(0%) contrast(1);
    opacity: 1;
    transform: scale(1.05);
}

.partner-description {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    color: var(--text-dark);
}
/* Success Stories */

.success-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
}

.success-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.success-content {
    padding: 1.5rem;
    background: white;
}

.success-content h4 {
    margin-bottom: 0.5rem;
}
/* News Cards */

.news-card {
    height: 100%;
    overflow: hidden;
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card:hover,
.success-card:hover,
.card-modern:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
    transition: var(--transition-base);
}

.news-content {
    padding: 1.5rem;
}

.news-content time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.news-content h3 {
    margin: 0.5rem 0;
    font-size: 1.2rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 500;
    color: #0a58ca;
    text-decoration: none;
}
/* FAQ */

.accordion-button:not(.collapsed) {
    background-color: rgba(10, 88, 202, 0.1);
    color: #0a58ca;
}

.accordion-button {
    color: #0a58ca;
/* Changed from #4facfe to a darker blue */

background-color: #f8f9fa;
/* Lighter background for better contrast */

}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(79, 172, 254, 0.25);
}
/* Video Container */

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/* Animated Buttons */

.btn-animated {
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: -1;
}

.btn-animated:hover::before {
    width: 100%;
    transform: scaleX(1);
    transform-origin: left;
}

.btn-animated:focus {
    transform: scale(1.05);
    box-shadow: 0 0 0 0.25rem rgba(79, 172, 254, 0.5);
}

.btn-outline-light:hover {
    border-color: black !important;
    color: black !important;
}

.btn-primary {
    background: var(--primary-color);
    background: linear-gradient(to right, var(--primary-color) 0%, #0b5ed7 100%);
    border: none;
}
/* Section Headings */

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
    font-weight: 700;
    color: var(--text-dark);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}
/* Contact List */

.contact-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
/* Social Icons */

.social-icon {
    transition: var(--transition-base);
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
}
/* Form Validation */

.is-invalid {
    border-color: #dc3545 !important;
}

.invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.is-invalid ~ .invalid-feedback {
    display: block;
}
/* Accessibility Feedback */

#accessibility-feedback {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    z-index: 1050;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#accessibility-feedback.show {
    opacity: 1;
}
/* ARIA Live Region */

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

.text-muted {
    color: var(--text-muted) !important;
}

.high-contrast .text-muted {
    color: var(--text-muted) !important;
}
/* ARIA improvements */

[aria-hidden="true"] {
    pointer-events: none;
}
/* Focus styles for accessibility */

.btn:focus, .nav-link:focus, .form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(10, 88, 202, 0.3);
}
/* Links */

a {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

a:hover {
    color: #084298;
    text-decoration-thickness: 2px;
}

.high-contrast a {
    color: var(--primary-color);
    text-decoration: underline;
}
/* Modern Footer */

.footer-modern {
    background: var(--text-dark);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.footer-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjAzKSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3QgZmlsbD0idXJsKCNwYXR0ZXJuKSIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIvPjwvc3ZnPg==');
}
/* Back to top button */

#back-to-top {
    width: 50px;
    height: 50px;
    opacity: 0.8;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

#back-to-top:hover {
    opacity: 1;
    transform: translateY(-5px);
}
/* Animations */

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Responsive Adjustments */

@media (max-width: 992px) {
    .hero-section {
        text-align: center;
        padding: 3rem 0 !important;
    }
    
    .hero-image {
        margin-top: 2rem;
        max-width: 80%;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-base: 0.9rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .footer-modern {
        text-align: center;
    }
    
    .footer-modern .col-md-2,
    .footer-modern .col-md-3,
    .footer-modern .col-md-4 {
        margin-bottom: 2rem;
    }
    
    .team-member img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .btn-animated {
        padding: 0.5rem 1.5rem;
    }
    
    .news-card img,
    .success-card img {
        height: 150px;
    }
    
    .testimonial-header {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-avatar {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    #infoModal .modal-dialog {
      margin: 0.5rem;
      max-width: 100%;
    }
    
    #infoModal .modal-content {
      border-radius: 0;
      min-height: 100vh;
    }
    
    #infoModal .modal-body {
      padding: 1rem;
    }
    
    #infoModal .modal-footer {
      flex-wrap: wrap;
      gap: 0.5rem;
    }
    
    #infoModal .btn-close {
      position: absolute;
      right: 1rem;
      top: 1rem;
      z-index: 1;
    }
    
    #infoModal .modal-header {
      position: sticky;
      top: 0;
      z-index: 10;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
  
    #infoModal .btn {
        padding: 0.5rem 1rem;
    }
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}
.skip-link:focus {
    top: 0;
}

@media (prefers-reduced-motion: no-preference) {
    .hero-title {
        animation: fadeInUp 0.8s ease;
    }
    
    .animate-on-scroll {
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .btn-animated,
    .card-modern,
    .partner-logo,
    .social-icon,
    #back-to-top {
        transition: var(--transition-base);
    }
    
    .hero-image {
        transition: var(--transition-base);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .highlight-important,
    .highlight-important::after {
        animation: none !important;
    }
    
    .btn-animated::before {
        transition: none !important;
    }
}

@media print {
    .no-print { display: none; }
    body { font-size: 12pt; }
    a::after { content: " (" attr(href) ")"; }
}
/* Стили для модального окна уведомления */

#infoModal {
  --modal-bg: #ffffff;
  --modal-text: #212529;
  --modal-border: rgba(0, 0, 0, 0.1);
  --modal-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.high-contrast #infoModal {
  --modal-bg: #000000;
  --modal-text: #ffffff;
  --modal-border: #ffff00;
}

#infoModal .modal-body {
  padding: 1.5rem;
}

#infoModal .modal-content {
  background-color: var(--modal-bg);
  color: var(--modal-text);
  border: none;
  border-radius: 0.5rem;
  box-shadow: var(--modal-shadow);
}

#infoModal .modal-header {
  border-bottom: 1px solid var(--modal-border);
  background: rgba(0, 0, 0, 0.02);
  padding: 1rem 1.5rem;
}

.high-contrast #infoModal .modal-header {
  border-bottom: 1px solid var(--modal-border) !important;
}

.high-contrast #infoModal .btn-close {
  filter: invert(1) brightness(2);
}

.high-contrast #infoModal .modal-content {
  border: 2px solid var(--modal-border) !important;
}

.high-contrast #infoModal .alert-info {
  border-left-color: #ffff00 !important;
}

#infoModal .btn-primary {
  background-color: var(--primary-color);
}

#infoModal .modal-title {
  font-weight: 600;
  color: var(--primary-color);
  display: flex;
  align-items: center;
}

#infoModal .alert-info {
  background: rgba(13, 110, 253, 0.05);
  border-left: 3px solid var(--primary-color);
  border-radius: 0;
}
/* Запрещаем прокрутку тела при открытом модальном окне */

body.modal-open {
  overflow: hidden;
}

#infoModal.fade .modal-dialog {
  transform: translateY(-20px);
  opacity: 0;
  transition: transform 0.3s ease-out, opacity 0.3s ease;
}

#infoModal.show .modal-dialog {
  transform: translateY(0);
  opacity: 1;
}

.modal-backdrop.fade {
  opacity: 0;
  transition: opacity 0.15s linear;
}

.modal-backdrop.show {
  opacity: 0.5;
}

@media (prefers-color-scheme: dark) {
  #infoModal:not(.high-contrast) {
    --modal-bg: #212529;
    --modal-text: #f8f9fa;
    --modal-border: rgba(255, 255, 255, 0.1);
  }
  
  #infoModal .modal-content {
    background-color: #333;
    color: #fff;
  }

  #infoModal .alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
  }

  #infoModal:not(.high-contrast) .alert-warning {
    background-color: rgba(255, 193, 7, 0.15) !important;
    border-left-color: #ffc107 !important;
    color: #f8f9fa !important;
  }
  
  #infoModal:not(.high-contrast) .alert-warning .text-muted {
    color: #adb5bd !important;
  }
}
/* Add to style.css */

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.highlight-important {
    animation: pulse 2s infinite;
    position: relative;
}

.highlight-important::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid var(--accent-color);
    border-radius: inherit;
    animation: pulse 2s infinite 0.5s;
    pointer-events: none;
}
/* For high contrast mode */

.high-contrast .highlight-important::after {
    border-color: #ffff00;
}
/* Стили для полей формы */

.form-control, .form-select {
    border: 2px solid #000;
/* Черная обводка */

border-radius: 8px;
/* Закругленные углы */

padding: 12px 15px;
/* Внутренние отступы */

transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-color: #fff;
/* Белый фон */

}

.form-control::placeholder {
    color: #6c757d;
/* Серый цвет */

opacity: 0.7;
}

.high-contrast .form-control::placeholder {
    color: #ccc !important;
}
/* Стиль при фокусе */

.form-control:focus, .form-select:focus {
    border-color: #000;
/* Черная обводка остается */

box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.1);
/* Светлая тень */

outline: none;
/* Убираем стандартный outline */

}
/* Стиль для невалидных полей */

.form-control.is-invalid {
    border-color: #dc3545;
/* Красная обводка для ошибок */

}
/* Стиль для подписей */

.form-label {
    font-weight: 600;
/* Полужирный текст */

margin-bottom: 8px;
    color: #000;
/* Черный цвет текста */

}
/* Для темного режима */

.high-contrast .form-control,
.high-contrast .form-select {
    border-color: #fff !important;
/* Белая обводка в контрастном режиме */

background-color: #000 !important;
    color: #fff !important;
}

.high-contrast .form-control:focus,
.high-contrast .form-select:focus {
    border-color: #ffff00 !important;
}

.high-contrast .alert-warning {
    background-color: #333300 !important;
    border-left: 3px solid #ffff00 !important;
    color: #ffffff !important;
}

.high-contrast .alert-warning .text-muted {
    color: #cccccc !important;
}