 html, body {
            height: 100%;
        }



        /* Фон с фиксированным позиционированием */
        .background-wrapper {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -2;
            overflow: hidden;
        }

        .background {
            position: absolute;
            top: -10%;
            left: -10%;
            width: 120%;
            height: 120%;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            opacity: 0.55;
            transition: opacity 1s ease;
            filter: blur(1px);
        }

        [data-theme="dark"] .background {
            opacity: 0.5;
        }

        /* Основное содержимое */
        .content-wrapper {
            flex: 1 0 auto;
            position: relative;
            z-index: 1;
            background-color: rgba(var(--bg-rgb), 0.8);
        }

        section {
            padding: 6rem 0;
            position: relative;
        }

        .section-title {
            text-align: center;
            margin-bottom: 3rem;
            font-size: 2.5rem;
            background: linear-gradient(90deg, var(--primary), var(--accent));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

        .contacts-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3rem;
            margin-top: 2rem;
        }

        .contact-info {
            background: var(--card-bg);
            padding: 2.5rem;
            border-radius: 15px;
            box-shadow: var(--shadow);
        }

        .contact-item {
            display: flex;
            align-items: center;
            margin-bottom: 1.5rem;
        }

        .contact-icon {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 1.5rem;
            flex-shrink: 0;
        }

        .contact-text h3 {
            margin-bottom: 0.3rem;
            color: var(--primary);
        }

        .contact-text a {
            color: var(--accent); /* Uses the theme's accent color (#4cc9f0 in light mode, #f72585 in dark mode) */
            text-decoration: none; /* Optional: removes underline by default */
            transition: color 0.3s ease; /* Smooth transition for hover */
        }

        .contact-text a:hover {
            color: var(--primary-dark); /* Optional: darker shade on hover for interaction */
            text-decoration: underline; /* Optional: adds underline on hover to indicate clickability */
        }

        .contact-map {
            height: 100%;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: var(--shadow);
        }

        .contact-map iframe {
            width: 100%;
            height: 100%;
            border: none;
        }

        .contact-form {
            background: var(--card-bg);
            padding: 2.5rem;
            border-radius: 15px;
            box-shadow: var(--shadow);
            margin-top: 3rem;
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
        }

        .form-control {
            width: 100%;
            padding: 0.8rem 1.2rem;
            border: 1px solid rgba(0, 0, 0, 0.1);
            border-radius: 8px;
            background: rgba(0,0,0,0.03);
            transition: var(--transition);
        }

        [data-theme="dark"] .form-control {
            color: var(--text);
            background: rgba(255, 255, 255, 0.05);
            border-color: rgba(255, 255, 255, 0.1);
        }

        .form-control::placeholder {
            color: var(--text-light);
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
        }

        [data-theme="dark"] .form-control:focus {
            box-shadow: 0 0 0 3px rgba(76, 201, 240, 0.2);
        }

        textarea.form-control {
            min-height: 150px;
            resize: vertical;
        }



        .theme-toggle {
            position: relative;
            display: inline-block;
            width: 60px;
            height: 30px;
            margin-left: 1rem;
        }

        .theme-toggle input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .4s;
            border-radius: 34px;
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 22px;
            width: 22px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }

        input:checked + .slider {
            background-color: var(--primary);
        }

        input:checked + .slider:before {
            transform: translateX(30px);
        }

        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }

            .contacts-container {
                grid-template-columns: 1fr;
            }

            .contact-map {
                height: 300px;
            }
        }