:root {
    --primary-blue: #1e3a8a;
    --dark-blue: #1e40af;
    --accent-teal: #0d9488;
    --light-blue: #e0f2fe;
    --warm-gray: #f5f5f4;
    --dark-text: #1c1917;
    --medium-text: #57534e;
    --border-soft: #e7e5e4;
    --gradient-start: #eff6ff;
    --gradient-end: #f0fdfa;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--dark-text);
    background: linear-gradient(180deg, var(--gradient-start) 0%, #ffffff 20%);
    font-size: 17px;
    letter-spacing: -0.01em;
}

/* Creative Sticky Header */
.header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-soft);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
}

.header.scrolled {
    box-shadow: 0 1px 20px rgba(30, 58, 138, 0.08);
    border-bottom-color: transparent;
    background: rgba(255, 255, 255, 0.98);
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    white-space: nowrap;
}

.logo-container:hover {
    transform: translateX(3px);
}

.logo-text {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Desktop Navigation - Completely Redesigned */
.nav-desktop {
    display: flex;
    gap: 0.25rem;
    list-style: none !important;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.nav-desktop ul {
    display: flex;
    gap: 0.25rem;
    list-style: none !important;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.nav-desktop li {
    position: relative;
    list-style: none !important;
    display: inline-block;
    margin: 0;
    padding: 0;
}

.nav-desktop a {
    text-decoration: none;
    color: var(--medium-text);
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    position: relative;
    font-size: 0.975rem;
    white-space: nowrap;
    overflow: hidden;
}

.nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-desktop a:hover {
    color: var(--primary-blue);
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.06) 0%, rgba(13, 148, 136, 0.06) 100%);
    transform: translateY(-1px);
}

.nav-desktop a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-desktop a.active {
    color: var(--primary-blue);
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.12) 0%, rgba(13, 148, 136, 0.12) 100%);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.1);
}

.nav-desktop a.active::before {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
    border-radius: 2px;
}

.nav-desktop a.active::after {
    display: none;
}

/* Responsive adjustments for different desktop sizes */
@media (min-width: 1024px) {
    .nav-desktop {
        display: flex !important;
    }
    
    .nav-desktop ul {
        display: flex !important;
        list-style: none !important;
        flex-direction: row;
        gap: 0.25rem;
    }
    
    .nav-desktop li {
        display: inline-block !important;
        list-style: none !important;
    }
    
    .nav-mobile-toggle {
        display: none !important;
    }
    
    .nav-mobile {
        display: none !important;
    }
}

@media (min-width: 1024px) and (max-width: 1280px) {
    .header-container {
        padding: 1rem 2rem;
        gap: 1.5rem;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .nav-desktop a {
        padding: 0.7rem 1rem;
        font-size: 0.925rem;
    }
}

@media (min-width: 1281px) and (max-width: 1440px) {
    .header-container {
        padding: 1.1rem 2.5rem;
    }
    
    .nav-desktop a {
        padding: 0.75rem 1.15rem;
    }
}

@media (min-width: 1441px) {
    .header-container {
        padding: 1.2rem 4rem;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .nav-desktop a {
        padding: 0.8rem 1.4rem;
        font-size: 1rem;
    }
}

/* Mobile Navigation Toggle */
.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--dark-text);
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.3s ease;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

.nav-mobile-toggle:hover {
    background: var(--warm-gray);
}

.nav-mobile-toggle.active {
    background: var(--light-blue);
}

/* Mobile Navigation - Smooth Animation */
.nav-mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
    z-index: 999;
}

.nav-mobile.active {
    display: block;
    max-height: 600px;
    opacity: 1;
    background: #ffffff;
}

.nav-mobile ul {
    list-style: none;
    padding: 1.5rem 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-mobile a {
    text-decoration: none;
    color: var(--medium-text);
    font-weight: 500;
    display: block;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    transform: translateX(-10px);
    opacity: 0;
}

.nav-mobile.active a {
    animation: slideInMenu 0.4s ease forwards;
}

.nav-mobile.active a:nth-child(1) { animation-delay: 0.05s; }
.nav-mobile.active a:nth-child(2) { animation-delay: 0.1s; }
.nav-mobile.active a:nth-child(3) { animation-delay: 0.15s; }
.nav-mobile.active a:nth-child(4) { animation-delay: 0.2s; }
.nav-mobile.active a:nth-child(5) { animation-delay: 0.25s; }
.nav-mobile.active a:nth-child(6) { animation-delay: 0.3s; }
.nav-mobile.active a:nth-child(7) { animation-delay: 0.35s; }

@keyframes slideInMenu {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.nav-mobile a:hover {
    color: var(--primary-blue);
    background: var(--light-blue);
    transform: translateX(5px);
}

.nav-mobile a.active {
    color: var(--primary-blue);
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(13, 148, 136, 0.1) 100%);
    font-weight: 600;
}

/* Tablet / Half-screen adaptive navigation */
@media (min-width: 768px) and (max-width: 1023px) {
    .header {
        position: sticky;
    }
    
    .header-container {
        padding: 1rem 1.75rem;
        gap: 1.25rem;
        flex-wrap: wrap;
        align-items: center;
    }
    
    .logo-container {
        flex: 0 0 auto;
        order: 1;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .nav-mobile-toggle {
        display: none;
    }
    
    .nav-desktop {
        display: flex;
        flex: 1 1 100%;
        order: 2;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.35rem;
        margin-top: 0.5rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--border-soft);
        list-style: none;
    }
    
    .nav-desktop li {
        flex: 0 1 auto;
        margin: 0;
        padding: 0;
    }
    
    .nav-desktop a {
        padding: 0.55rem 0.85rem;
        font-size: 0.85rem;
        white-space: nowrap;
        display: inline-block;
    }
    
    .nav-desktop a::after,
    .nav-desktop a.active::before {
        bottom: 0.4rem;
    }
    
    .nav-mobile {
        display: none !important;
    }
}

/* Medium tablets - более компактная навигация */
@media (min-width: 900px) and (max-width: 1023px) {
    .nav-desktop {
        flex-wrap: nowrap;
        gap: 0.3rem;
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }
    
    .nav-desktop a {
        padding: 0.65rem 0.9rem;
        font-size: 0.9rem;
    }
}

/* Mobile - switch to hamburger menu */
@media (max-width: 767px) {
    .header-container {
        padding: 1rem 1.5rem;
        gap: 1rem;
    }
    
    .logo-text {
        font-size: 1.5rem !important;
        font-weight: 700 !important;
    }
    
    .logo-container {
        flex: 0 0 auto;
    }
    
    .nav-desktop {
        display: none;
    }
    
    .nav-mobile-toggle {
        display: flex;
    }
}

/* Main Content - Creative Layouts */
main {
    min-height: calc(100vh - 200px);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-align: center;
}

.section-subtitle {
    font-size: 1.35rem;
    color: var(--medium-text);
    margin-bottom: 3.5rem;
    max-width: 750px;
    line-height: 1.6;
    font-weight: 400;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Creative Hero Section */
.hero {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(30, 58, 138, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    color: var(--dark-text);
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: -0.04em;
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero p {
    font-size: 1.4rem;
    color: var(--medium-text);
    max-width: 750px;
    margin: 0 auto 3rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero .container {
    text-align: center;
}

/* Creative Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.card {
    background: var(--white);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.12);
    border-color: transparent;
}

.card:hover::before {
    transform: scaleX(1);
}

.card-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.card-text {
    color: var(--medium-text);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Buttons - Completely Redesigned with Site Theme */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.15rem 2.85rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3), 
                0 2px 8px rgba(13, 148, 136, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
    min-height: 52px;
    text-transform: none;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.25) 50%, 
        transparent 100%);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn:hover {
    background: linear-gradient(135deg, var(--dark-blue) 0%, #0f766e 100%);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px rgba(30, 58, 138, 0.4), 
                0 4px 12px rgba(13, 148, 136, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: translateY(-2px) scale(1);
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.35), 
                0 2px 8px rgba(13, 148, 136, 0.25);
}

.btn:focus-visible {
    outline: 3px solid rgba(30, 58, 138, 0.4);
    outline-offset: 2px;
}

/* Mobile Button Styles */
@media (max-width: 768px) {
    .btn {
        padding: 1rem 2.25rem;
        font-size: 0.975rem;
        width: 100%;
        max-width: 100%;
        min-height: 50px;
        border-radius: 12px;
    }
    
    .btn:hover {
        transform: translateY(-2px) scale(1);
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 0.95rem 1.75rem;
        font-size: 0.95rem;
        min-height: 48px;
    }
}

/* Secondary Button - Redesigned */
.btn-secondary {
    background: #ffffff;
    color: var(--primary-blue);
    border: 2px solid transparent;
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.15),
                inset 0 0 0 2px var(--primary-blue);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.btn-secondary > * {
    position: relative;
    z-index: 1;
    color: inherit;
    transition: color 0.4s ease;
}

.btn-secondary:hover {
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.3),
                0 2px 8px rgba(13, 148, 136, 0.2);
    transform: translateY(-4px) scale(1.02);
}

.btn-secondary:hover::before {
    opacity: 1;
}

.btn-secondary:active {
    transform: translateY(-2px) scale(1);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.25);
}

/* Creative Forms - Fully Responsive */
.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--dark-text);
    font-size: 0.95rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-soft);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
}

.form-textarea {
    min-height: 140px;
    resize: vertical;
}

/* Form Responsive Styles */
@media (max-width: 768px) {
    .form-group {
        margin-bottom: 1.75rem;
    }
    
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.65rem;
    }
    
    .form-input,
    .form-textarea {
        padding: 0.9rem 1.15rem;
        font-size: 0.95rem;
        border-radius: 10px;
    }
    
    .form-textarea {
        min-height: 120px;
    }
    
    .form-input:focus,
    .form-textarea:focus {
        box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
    }
}

@media (max-width: 480px) {
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-label {
        font-size: 0.875rem;
        margin-bottom: 0.6rem;
    }
    
    .form-input,
    .form-textarea {
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    
    .form-textarea {
        min-height: 110px;
    }
}

.form-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

.form-error.active {
    display: block;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 0.15rem;
    cursor: pointer;
    accent-color: var(--primary-blue);
}

.checkbox-group label {
    font-size: 0.9rem;
    color: var(--medium-text);
    line-height: 1.6;
    cursor: pointer;
}

.checkbox-group label a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.checkbox-group label a:hover {
    text-decoration: underline;
}

/* Footer - Completely Redesigned with Modern Style */
.footer {
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
    border-top: 1px solid var(--border-soft);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--accent-teal) 50%, var(--primary-blue) 100%);
    background-size: 200% 100%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-soft);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 1fr;
    gap: 1rem;
    margin-bottom: 3rem;
    align-items: start;
}

/* Desktop Large (1400px+) */
@media (min-width: 1400px) {
    .footer {
        padding: 4.5rem 0 2.5rem;
    }
    
    .footer-content {
        gap: 1.25rem;
        margin-bottom: 3.5rem;
    }
    
    .footer-section:first-child {
        max-width: 450px;
    }
}

/* Desktop Medium (1024px - 1399px) */
@media (min-width: 1024px) and (max-width: 1399px) {
    .footer-content {
        grid-template-columns: 2fr 1.5fr 1.5fr 1fr;
        gap: 1.25rem;
    }
    
    .footer-section:first-child {
        max-width: 380px;
    }
}

/* Tablet Landscape (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .footer {
        padding: 3.5rem 0 2rem;
        margin-top: 4rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        margin-bottom: 2.5rem;
    }
    
    .footer-section:first-child {
        max-width: 100%;
        grid-column: 1 / -1;
    }
    
    .footer-section h3 {
        font-size: 1.35rem;
        margin-bottom: 1.5rem;
        padding-bottom: 0.9rem;
    }
    
    .footer-section:first-child h3 {
        font-size: 1.5rem;
    }
    
    .footer-section p {
        font-size: 0.95rem;
    }
    
    .footer-section a {
        font-size: 0.95rem;
    }
    
    .footer-contact-item {
        margin-bottom: 0.75rem;
    }
    
    .footer-contact-item strong {
        font-size: 0.95rem;
    }
    
    .footer-contact-item a,
    .footer-contact-item span {
        font-size: 0.95rem;
    }
    
    .footer-bottom {
        padding-top: 2.5rem;
    }
}

/* Tablet Portrait (600px - 767px) */
@media (min-width: 600px) and (max-width: 767px) {
    .footer {
        padding: 3.5rem 0 1.75rem;
        margin-top: 4rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        margin-bottom: 2.5rem;
    }
    
    .footer-section h3 {
        font-size: 1.2rem;
        margin-bottom: 1.25rem;
    }
    
    .footer-section p {
        font-size: 0.9rem;
        line-height: 1.7;
    }
    
    .footer-section a {
        font-size: 0.9rem;
        padding: 0.4rem 0;
        margin-bottom: 0.3rem;
    }
    
    .footer-contact-item {
        margin-bottom: 0.5rem;
        padding: 0.6rem 0;
    }
    
    .footer-contact-item strong {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .footer-contact-item a,
    .footer-contact-item span {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .footer-bottom {
        padding-top: 2rem;
        text-align: center;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
    }
}

/* Mobile (up to 599px) - Full Responsive */
@media (max-width: 599px) {
    .footer {
        padding: 3rem 0 1.75rem;
        margin-top: 3.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-bottom: 2.5rem;
    }
    
    .footer-section:first-child {
        max-width: 100%;
    }
    
    .footer-section {
        text-align: left;
        padding-bottom: 2rem;
        border-bottom: 1px solid var(--border-soft);
        position: relative;
    }
    
    .footer-section:last-of-type {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .footer-section h3 {
        font-size: 1.3rem;
        margin-bottom: 1.25rem;
        padding-bottom: 0.85rem;
        border-bottom: 2px solid var(--border-soft);
        width: 100%;
    }
    
    .footer-section h3::after {
        display: none;
    }
    
    .footer-section:first-child h3 {
        font-size: 1.4rem;
        background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .footer-section p {
        font-size: 0.9rem;
        line-height: 1.75;
        margin-bottom: 1.25rem;
    }
    
    .footer-section a {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
        margin-left: -0.75rem;
        margin-bottom: 0.25rem;
        display: inline-flex;
    }
    
    .footer-contact-item {
        margin-bottom: 0.75rem;
    }
    
    .footer-contact-item:last-child {
        margin-bottom: 0;
    }
    
    .footer-contact-item strong {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        display: block;
    }
    
    .footer-contact-item a,
    .footer-contact-item span {
        font-size: 0.9rem;
        line-height: 1.7;
        display: block;
        word-break: break-word;
    }
    
    .footer-bottom {
        padding-top: 2rem;
        text-align: center;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
        line-height: 1.7;
        padding: 0 1rem;
    }
}

/* Extra Small Mobile (up to 360px) */
@media (max-width: 360px) {
    .footer {
        padding: 2.5rem 0 1.25rem;
    }
    
    .footer-content {
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .footer-section h3 {
        font-size: 1.15rem;
        margin-bottom: 1rem;
    }
    
    .footer-section p,
    .footer-section a {
        font-size: 0.875rem;
    }
    
    .footer-contact-item {
        margin-bottom: 0.5rem;
    }
    
    .footer-contact-item strong {
        font-size: 0.875rem;
    }
    
    .footer-contact-item a,
    .footer-contact-item span {
        font-size: 0.875rem;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* Ueber-uns Page Responsive Styles */
@media (max-width: 1023px) {
    .ueber-uns-mission {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }
    
    .ueber-uns-features {
        padding: 2.5rem !important;
    }
    
    .ueber-uns-features-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

@media (max-width: 768px) {
    .ueber-uns-content {
        gap: 2.5rem !important;
    }
    
    .ueber-uns-mission {
        gap: 2rem !important;
    }
    
    .ueber-uns-mission h2 {
        font-size: 1.75rem !important;
        margin-bottom: 1.25rem !important;
    }
    
    .ueber-uns-mission p {
        font-size: 0.95rem !important;
        line-height: 1.75 !important;
    }
    
    .ueber-uns-features {
        padding: 2rem !important;
        border-radius: 10px !important;
    }
    
    .ueber-uns-features h2 {
        font-size: 1.5rem !important;
        margin-bottom: 1.25rem !important;
    }
    
    .ueber-uns-features-grid {
        gap: 1.75rem !important;
    }
    
    .ueber-uns-features-grid h3 {
        font-size: 1.05rem !important;
        margin-bottom: 0.65rem !important;
    }
    
    .ueber-uns-features-grid p {
        font-size: 0.9rem !important;
        line-height: 1.65 !important;
    }
}

@media (max-width: 480px) {
    .ueber-uns-content {
        gap: 2rem !important;
    }
    
    .ueber-uns-mission {
        gap: 1.75rem !important;
    }
    
    .ueber-uns-mission h2 {
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .ueber-uns-mission p {
        font-size: 0.9rem !important;
        margin-bottom: 1.25rem !important;
    }
    
    .ueber-uns-features {
        padding: 1.75rem !important;
        border-left-width: 3px !important;
    }
    
    .ueber-uns-features h2 {
        font-size: 1.35rem !important;
        margin-bottom: 1rem !important;
    }
    
    .ueber-uns-features-grid {
        gap: 1.5rem !important;
    }
    
    .ueber-uns-features-grid h3 {
        font-size: 1rem !important;
        margin-bottom: 0.6rem !important;
    }
    
    .ueber-uns-features-grid p {
        font-size: 0.875rem !important;
        line-height: 1.6 !important;
    }
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-section:first-child {
    max-width: 400px;
}

.footer-section h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--dark-text);
    letter-spacing: -0.02em;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
    border-radius: 2px;
}

.footer-section:first-child h3 {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
}

.footer-section p {
    color: var(--medium-text);
    line-height: 1.8;
    font-size: 0.95rem;
    margin: 0;
}

.footer-section a {
    color: var(--medium-text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.3rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem 0.75rem;
    margin-left: -0.75rem;
    border-radius: 8px;
    position: relative;
    font-size: 0.95rem;
}

.footer-section a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.footer-section a:hover {
    color: var(--primary-blue);
    background: rgba(30, 58, 138, 0.05);
    transform: translateX(4px);
}

.footer-section a:hover::before {
    width: 4px;
}

.footer-contact-item {
    margin-bottom: 0.5rem;
    padding: 0;
}

.footer-contact-item:last-child {
    margin-bottom: 0;
}

.footer-contact-item strong {
    display: block;
    color: var(--dark-text);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.footer-contact-item a,
.footer-contact-item span {
    color: var(--medium-text);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.7;
    display: block;
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: var(--primary-blue);
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-soft);
    color: var(--medium-text);
    font-size: 0.9rem;
    position: relative;
}

.footer-bottom p {
    margin: 0;
    opacity: 0.8;
}

/* Cookie Banner - Creative Style */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
    padding: 2rem 2.5rem;
    z-index: 2000;
    display: none;
    max-width: 1400px;
    margin: 0 auto;
    border-top: 1px solid var(--border-soft);
}

.cookie-banner.active {
    display: block;
    animation: slideUpBanner 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUpBanner {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
    color: var(--medium-text);
    line-height: 1.7;
    font-size: 0.95rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Cookie Banner Responsive */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1.5rem 1.5rem;
        max-width: 100%;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .cookie-text {
        min-width: 100%;
        font-size: 0.9rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 1.25rem 1.25rem;
    }
    
    .cookie-text {
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    .cookie-btn {
        padding: 0.9rem 1.25rem;
        font-size: 0.875rem;
    }
}

.cookie-btn-accept {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
    color: var(--white);
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3);
}

.cookie-btn-necessary {
    background: var(--white);
    color: var(--dark-text);
    border: 2px solid var(--border-soft);
}

.cookie-btn-necessary:hover {
    background: var(--warm-gray);
    border-color: var(--medium-text);
}

/* Contact Info Styles */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    background: var(--white);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(30, 58, 138, 0.1);
    border-color: var(--primary-blue);
}

.contact-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
}

.contact-item p,
.contact-item a {
    color: var(--medium-text);
    text-decoration: none;
    line-height: 1.8;
    font-size: 1.05rem;
}

.contact-item a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* Responsive Design - Comprehensive Breakpoints */

/* Large Desktop (1600px+) */
@media (min-width: 1600px) {
    .container {
        max-width: 1600px;
        padding: 0 4rem;
    }
    
    .hero {
        padding: 9rem 0 7rem;
    }
    
    .hero h1 {
        font-size: 4.5rem;
    }
    
    .hero p {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
    
    .section-subtitle {
        font-size: 1.45rem;
    }
}

/* Desktop (1200px - 1599px) */
@media (min-width: 1200px) and (max-width: 1599px) {
    .container {
        padding: 0 3rem;
    }
}

/* Tablet Landscape (900px - 1199px) */
@media (min-width: 900px) and (max-width: 1199px) {
    .container {
        padding: 0 2.5rem;
    }
    
    .hero {
        padding: 6.5rem 0 5rem;
    }
    
    .hero h1 {
        font-size: 3.25rem;
        text-align: center;
    }
    
    .hero p {
        font-size: 1.25rem;
        text-align: center;
    }
    
    .section-title {
        font-size: 2.75rem;
        text-align: center;
    }
    
    .section-subtitle {
        font-size: 1.3rem;
        text-align: center;
    }
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.25rem;
    }
}

/* Tablet Portrait (768px - 899px) */
@media (min-width: 768px) and (max-width: 899px) {
    .container {
        padding: 0 2rem;
    }
    
    .hero {
        padding: 5.5rem 0 4.5rem;
    }
    
    .hero h1 {
        font-size: 2.75rem;
        text-align: center;
    }
    
    .hero p {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .section-title {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .section-subtitle {
        font-size: 1.25rem;
        text-align: center;
    }
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .section {
        padding: 4.5rem 0;
    }
}

/* Mobile Landscape & Small Tablets (600px - 767px) */
@media (min-width: 600px) and (max-width: 767px) {
    .header-container {
        padding: 1rem 1.5rem;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .container {
        padding: 0 1.75rem;
    }
    
    .hero {
        padding: 5rem 0 4rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .hero p {
        font-size: 1.15rem;
        text-align: center;
    }
    
    .section-title {
        font-size: 2.25rem;
        text-align: center;
    }
    
    .section-subtitle {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}

/* Mobile (up to 599px) */
@media (max-width: 599px) {
    .header-container {
        padding: 1rem 1.5rem;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .hero {
        padding: 4.5rem 0 3.5rem;
    }
    
    .hero h1 {
        font-size: 2.25rem;
        line-height: 1.2;
        text-align: center;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 1.25rem;
        text-align: center;
    }
    
    .section-subtitle {
        font-size: 1.15rem;
        margin-bottom: 3rem;
        text-align: center;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        margin-top: 3rem;
    }
    
    .card {
        padding: 2rem;
        border-radius: 16px;
    }
    
    .card-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .card-text {
        font-size: 1rem;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .cookie-text {
        min-width: 100%;
    }
    
    .cookie-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cookie-btn {
        width: 100%;
        padding: 1rem 1.5rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .section {
        padding: 3.5rem 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }
    
    .contact-item {
        padding: 1.75rem;
    }
    
    .course-layout {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .course-layout .card[style*="position: sticky"],
    .productivity-layout .productivity-sidebar {
        position: relative !important;
        top: 0 !important;
    }
    
    .productivity-layout {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .form-group {
        margin-bottom: 1.75rem;
    }
    
    .form-input,
    .form-textarea {
        padding: 0.9rem 1.15rem;
        font-size: 0.95rem;
    }
}

/* Tablet adjustments for course layout */
@media (min-width: 769px) and (max-width: 1023px) {
    .course-layout {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .course-layout .card[style*="position: sticky"],
    .productivity-layout .productivity-sidebar {
        position: relative !important;
        top: 0 !important;
    }
    
    .productivity-layout {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .zeitmanagement-sidebar {
        position: relative !important;
        top: 0 !important;
    }
    
    .ueber-uns-images {
        grid-template-columns: 1fr !important;
    }
    
    .zeitmanagement-hero-title {
        font-size: 2.5rem !important;
        text-align: center !important;
    }
    
    .zeitmanagement-hero-text {
        font-size: 1.15rem !important;
        text-align: center !important;
    }
    
    .priorisierung-title {
        font-size: 1.5rem !important;
        text-align: center !important;
    }
}

/* Large desktop optimizations */
@media (min-width: 1600px) {
    .header-container {
        max-width: 1800px;
        padding: 1.3rem 5rem;
    }
    
    .logo-text {
        font-size: 1.6rem;
    }
    
    .nav-desktop a {
        padding: 0.85rem 1.6rem;
        font-size: 1.05rem;
    }
}


/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
    .header-container {
        padding: 0.875rem 1.25rem;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .container {
        padding: 0 1.25rem;
    }
    
    .hero {
        padding: 4rem 0 3rem;
    }
    
    .hero h1 {
        font-size: 1.9rem;
        line-height: 1.15;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .section-title {
        font-size: 1.85rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
        text-align: center;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .cards-grid {
        gap: 1.5rem;
        margin-top: 2.5rem;
    }
    
    .card {
        padding: 1.75rem;
        border-radius: 14px;
    }
    
    .card-title {
        font-size: 1.4rem;
    }
    
    .card-text {
        font-size: 0.95rem;
    }
    
    .contact-item {
        padding: 1.5rem;
    }
    
    .contact-item h3 {
        font-size: 1rem;
    }
    
    .contact-item p,
    .contact-item a {
        font-size: 0.95rem;
    }
}

/* Extra Small Mobile (up to 360px) */
@media (max-width: 360px) {
    .header-container {
        padding: 0.75rem 1rem;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 3.5rem 0 2.5rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
        text-align: center;
    }
    
    .hero p {
        font-size: 0.95rem;
        text-align: center;
    }
    
    .section-title {
        font-size: 1.7rem;
        text-align: center;
    }
    
    .section-subtitle {
        font-size: 1.05rem;
        text-align: center;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
    
    .card-text {
        font-size: 0.9rem;
    }
}

/* Privacy Policy Page Responsive Styles */
@media (max-width: 768px) {
    .card[style*="padding: 3rem"] {
        padding: 2rem !important;
    }
    
    h2[style*="font-size: 2rem"] {
        font-size: 1.75rem !important;
    }
    
    div[style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
    }
    
    #kontaktformular {
        padding: 2rem !important;
        margin-top: 3rem !important;
    }
}

@media (max-width: 480px) {
    .card[style*="padding: 3rem"] {
        padding: 1.5rem !important;
    }
    
    h2[style*="font-size: 2rem"] {
        font-size: 1.5rem !important;
        margin-bottom: 1.25rem !important;
    }
    
    p[style*="font-size: 1.05rem"] {
        font-size: 1rem !important;
    }
    
    strong[style*="font-size: 1.15rem"],
    strong[style*="font-size: 1.1rem"] {
        font-size: 1rem !important;
    }
    
    div[style*="padding: 1.5rem"],
    div[style*="padding: 1.25rem"] {
        padding: 1rem !important;
    }
    
    #kontaktformular {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
    
    div[style*="gap: 4rem"] {
        gap: 2.5rem !important;
    }
}

