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

:root {
    --primary-color: #2c3e50;
    --text-color2: #ebebeb;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --secondary-600: #2980b9;
    --secondary-700: #217dbb;
    --header-bg: #3f6b8e;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

body.page-gradient {
    background: linear-gradient(135deg, #d8cfcf, #4f6f8f, #36485a);
    /* --text-color: #ebebeb; */
}

/* Шапка сайта */
.header {
    background-color: var(--header-bg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.header-transparent {
    background-color: transparent;
    box-shadow: none;
}

.header.header-transparent .logo a,
.header.header-transparent .nav-menu a {
    color: var(--white);
}

.header.header-transparent .nav-menu a:hover {
    color: var(--secondary-color);
}

.header .logo a,
.header .nav-menu a {
    color: var(--white);
}

.header .nav-buttons button {
    color: var(--white);
}

.header .mobile-menu-btn {
    color: var(--white) !important;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo h1 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 0;
    border: 1px solid transparent;
    transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, border-radius 250ms ease;
}

.nav-menu a:hover {
    color: var(--secondary-color);
    background-color: rgba(52,152,219,0.08);
}

.nav-menu a.active {
    color: var(--secondary-color);
    font-weight: 600;
    background-color: rgba(52,152,219,0.12);
}

/* .header .nav-menu a {
    border-color: rgba(255,255,255,0.35);
    border-width: 1.5px;
    border-radius: 10;
} */
.header .nav-menu a:hover,
/* .header .nav-menu a:focus-visible {
    border-color: rgba(255,255,255,0.55); */
/* } */
.header .nav-menu a.active {
    border-radius: 12px;
    background-color: rgba(255,255,255,0.12);
    animation: navActiveRound 250ms ease-out;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.nav-buttons button {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-buttons button:hover {
    color: var(--secondary-color);
}

.nav-buttons button:active {
    color: var(--secondary-600);
}

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

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

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    z-index: 4;
    font-size: 1.5rem;
    transition: background-color 0.3s ease;
}

.slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 2rem;
}

.next-btn {
    right: 2rem;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--secondary-600);
}

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

/* Категории */
.about-section {
    padding: 4rem 2rem;
    background: transparent;
}

.categories {
    padding: 4rem 2rem;
    background-color: transparent; 
}

.categories h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color2);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    background: var(--light-bg);
    filter: brightness(1.01);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.45s ease;
    display: block;
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.category-card:hover img { transform: scale(1.04); }

.category-card h3 {
    padding: 1rem;
    color: var(--primary-color);
}

.category-card p {
    padding: 0 1rem 1rem;
    color: #666;
}

.features {
    padding: 4rem 2rem;
    background-color: transparent;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color2);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--light-bg);
    filter: brightness(1.01);
    padding: 2rem;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.45s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Футер */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .logo {
        flex-grow: 1;
        text-align: right;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .category-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(44,62,80,0.97);
    z-index: 2000;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 90px;
    transition: opacity 0.3s;
}

.mobile-menu-overlay.active {
    display: flex;
}

.close-mobile-menu {
    position: absolute;
    top: 32px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2100;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-nav-list li {
    width: 100%;
    text-align: center;
}

.mobile-nav-list a {
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    padding: 1rem 0;
    display: block;
    width: 100%;
    transition: background 0.2s, color 0.2s;
}

.mobile-nav-list a:hover {
    background: rgba(255,255,255,0.08);
    color: var(--secondary-color);
}

.mobile-nav-list a.active {
    background: rgba(255,255,255,0.08);
    color: var(--secondary-color);
    font-weight: 700;
}

@media (max-width: 900px) {
    .nav-menu {
        display: none !important;
    }
    .mobile-menu-btn {
        display: block !important;
    }
}

@media (min-width: 901px) {
    .mobile-menu-overlay {
        display: none !important;
    }
    .mobile-menu-btn {
        display: none !important;
    }
}

.contacts-section {
    padding: 60px 0 60px 0;
}

.contacts-section .container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 40px;
}

.contacts-section h2 {
    text-align: left;
    margin-bottom: 18px;
    /* color: #1a2947; */
    /* color: #122b5e; */
    color: var(--text-color2);
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-top: 0;
}

.contacts-section .section-underline {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color) 60%, var(--secondary-600) 100%);
    border-radius: 2px;
    margin-bottom: 36px;
    margin-left: 0;
}

@media (max-width: 900px) {
    .contacts-section h2, .contacts-section .section-underline {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}

.contacts-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    align-items: stretch;
    flex-wrap: wrap;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex-basis: 450px;
    flex-grow: 1;
}

.contact-card {
    background: linear-gradient(120deg, #fff 60%, #f0f6ff 100%);
    padding: 28px 16px;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(44, 62, 80, 0.07);
    text-align: left;
    min-width: 0;
    min-height: 72px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    transition: box-shadow 0.3s, transform 0.3s;
    border: 1.5px solid #e3eaf5;
    font-size: 1.08rem;
}

.contact-card:hover {
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.13);
    transform: translateY(-4px) scale(1.03);
    border-color: #b3d0f7;
}

.contact-card i {
    font-size: 2.1rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #5dade2 0%, #3498db 100%);
    color: #fff;
    box-shadow: 0 4px 24px rgba(52,152,219,0.18), 0 0 0 8px #eaf4fd;
    border-radius: 50%;
    padding: 0;
    margin-right: 14px;
    margin-bottom: 0;
    transition: box-shadow 0.3s, background 0.3s;
}

.contact-card:hover i {
    background: linear-gradient(135deg, #3498db 0%, #5dade2 100%);
    box-shadow: 0 8px 32px rgba(52,152,219,0.25), 0 0 0 12px #eaf4fd;
}

.contact-card h3 {
    margin: 0 0 6px 0;
    color: #1a2947;
    font-size: 1.18rem;
    font-weight: 700;
}

.contact-card p {
    color: #4a5a6a;
    margin: 0;
    font-size: 1rem;
}

.map-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(44, 62, 80, 0.07);
    border: 1.5px solid #e3eaf5;
    padding: 16px;
    flex-basis: 450px;
    flex-grow: 1;
}

.map-container iframe {
    width: 100%; 
    height: 400px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .map-container iframe {
        width: 700px; 
        height: 450px;
    }
}

.map, #map {
    width: 100%;
    border-radius: 14px;
    border: 1.5px solid #dbeafe;
    box-shadow: 0 2px 12px rgba(52,152,219,0.07);
    min-width: 0;
}

#map {
    height: 400px;
}

@media (max-width: 480px) {
    #map { height: 300px; }
}

@media (min-width: 768px) {
    #map { height: 450px; }
}

@media (min-width: 1200px) {
    #map { height: 500px; }
}

.contact-form {
    background: linear-gradient(120deg, #fafdff 60%, #eaf1fb 100%);
    padding: 48px 36px 40px 36px;
    border-radius: 32px;
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.13);
    min-width: 380px;
    max-width: 520px;
    margin-left: auto;
    border: 1.5px solid #e3eaf5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    gap: 18px;
    position: relative;
}

.form-icon {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #eaf4fd 60%, #d0e6fa 100%);
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(52,152,219,0.10);
}

.contact-form h3 {
    margin-bottom: 18px;
    color: #1a2947;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
}

.form-group {
    margin-bottom: 18px;
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 18px;
    border: 1.5px solid #dbeafe;
    border-radius: 10px;
    font-size: 1.08rem;
    background: #fff;
    transition: border 0.2s, box-shadow 0.2s;
    outline: none;
    color: #1a2947;
    box-shadow: 0 1px 4px rgba(44, 62, 80, 0.03);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #3498db;
    box-shadow: 0 2px 8px rgba(52,152,219,0.10);
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(90deg, var(--secondary-color) 60%, var(--secondary-600) 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.2s, transform 0.15s ease;
    box-shadow: 0 2px 8px rgba(52,152,219,0.10);
    margin-top: 8px;
}

.submit-btn:hover {
    background: linear-gradient(90deg, var(--secondary-700) 60%, var(--secondary-600) 100%);
    box-shadow: 0 6px 18px rgba(245,158,11,0.25);
    transform: translateY(-1px);
}

@media (max-width: 1024px) {
    .contact-form {
        min-width: 0;
        max-width: 100%;
        padding: 20px 8px 20px 8px;
        border-radius: 18px;
        font-size: 1rem;
        gap: 10px;
    }

    .form-icon {
        width: 48px;
        height: 48px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.98rem;
        padding: 12px 8px;
        border-radius: 7px;
    }

    .submit-btn {
        font-size: 1rem;
        padding: 12px;
        border-radius: 7px;
    }
}

@media (max-width: 768px) {
    .contact-info {
        flex-direction: column;
        gap: 18px;
    }

    .map {
        height: 260px;
    }

    .contacts-section h2 {
        font-size: 2rem;
    }
}

.modal {
    display: none; 
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 900px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: slideIn 0.4s;
}

.close-modal-btn {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    transition: color 0.3s;
}

.close-modal-btn:hover,
.close-modal-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    display: flex;
    gap: 30px;
}

.modal-image {
    flex: 1;
    max-width: 40%;
}

.modal-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.modal-details {
    flex: 2;
}

.modal-details h2 {
    margin-top: 0;
    color: var(--primary-color);
}

.modal-details p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.modal-details p strong {
    color: var(--text-color);
}

.feature-desc {
  color: #4a5a6a;
} 

@keyframes navActiveRound {
    from { border-radius: 0; background-color: rgba(255,255,255,0); }
    to { border-radius: 12px; background-color: rgba(255,255,255,0.12); }
}

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

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

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20% auto;
        padding: 20px;
    }
    .modal-body {
        flex-direction: column;
    }
    .modal-image {
        max-width: 100%;
    }
}