:root {
    --surface-base: #ffffff;
    --surface-card: rgba(255, 255, 255, 0.88);
    --surface-soft: rgba(245, 248, 255, 0.92);
    --surface-strong: rgba(255, 255, 255, 0.72);
    --border-soft: rgba(15, 23, 42, 0.08);
    --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.08);
    --shadow-strong: 0 28px 70px rgba(15, 23, 42, 0.18);
}

body.dark-mode,
.dark-mode {
    --surface-base: #0f172a;
    --surface-card: rgba(15, 23, 42, 0.82);
    --surface-soft: rgba(17, 24, 39, 0.92);
    --surface-strong: rgba(15, 23, 42, 0.74);
    --border-soft: rgba(255, 255, 255, 0.08);
    --shadow-soft: 0 20px 45px rgba(2, 6, 23, 0.4);
    --shadow-strong: 0 28px 70px rgba(2, 6, 23, 0.5);
}

body {
    background:
        radial-gradient(circle at top left, rgba(26, 115, 232, 0.14), transparent 32%),
        radial-gradient(circle at top right, rgba(52, 168, 83, 0.12), transparent 24%),
        linear-gradient(180deg, #f7faff 0%, #eef4ff 38%, #ffffff 100%);
}

body.dark-mode {
    background:
        radial-gradient(circle at top left, rgba(138, 180, 248, 0.18), transparent 30%),
        radial-gradient(circle at top right, rgba(52, 168, 83, 0.16), transparent 22%),
        linear-gradient(180deg, #0b1120 0%, #0f172a 45%, #111827 100%);
}

main {
    position: relative;
    z-index: 1;
}

section {
    position: relative;
}

header {
    background: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.dark-mode header {
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 12px 36px rgba(2, 6, 23, 0.35);
}

.navbar {
    min-height: 82px;
    gap: 24px;
    padding: 16px 0;
}

.logo {
    gap: 14px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.15;
}

.logo-text strong {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.logo-text span {
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    color: var(--text-light);
    text-transform: uppercase;
}

.nav-menu {
    gap: 8px;
    padding: 8px;
    border-radius: 999px;
    background: var(--surface-strong);
    border: 1px solid var(--border-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.dark-mode .nav-menu {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-item {
    margin-left: 0;
}

.nav-link {
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
}

.nav-link::after {
    display: none;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(26, 115, 232, 0.1);
    color: var(--primary-blue);
}

.nav-link-cta,
.nav-link-cta:hover,
.nav-link-cta.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #1a73e8 0%, #34a853 100%);
    box-shadow: 0 14px 28px rgba(26, 115, 232, 0.28);
}

.navbar-controls {
    gap: 12px;
}

.lang-btn,
.theme-toggle,
.hamburger {
    background: var(--surface-card);
    border: 1px solid var(--border-soft);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.dark-mode .lang-btn,
.dark-mode .theme-toggle,
.dark-mode .hamburger {
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.22);
}

.page-header {
    padding: 168px 0 96px !important;
    overflow: hidden;
}

.page-header::before,
.page-header::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.page-header::before {
    width: 380px;
    height: 380px;
    top: -180px;
    right: -120px;
    background: rgba(255, 255, 255, 0.12);
}

.page-header::after {
    width: 240px;
    height: 240px;
    bottom: -100px;
    left: -60px;
    background: rgba(255, 255, 255, 0.08);
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-title {
    max-width: 760px;
    margin: 0 auto;
    padding: 38px 42px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(12px);
}

.page-title h1 {
    font-size: clamp(2.6rem, 6vw, 4.1rem);
    letter-spacing: -0.04em;
    margin-bottom: 16px;
}

.page-subtitle {
    font-size: 1.05rem;
    line-height: 1.85;
    max-width: 620px;
}

.section-title {
    margin-bottom: 56px;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}

.section-title h2::after {
    width: 76px;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--accent) 100%);
}

.section-title p {
    max-width: 720px;
    font-size: 1.04rem;
    line-height: 1.8;
}

.hero {
    padding: 176px 0 112px;
    background: transparent;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    pointer-events: none;
}

.hero::before {
    inset: auto 0 6% auto;
    width: 42vw;
    height: 42vw;
    max-width: 540px;
    max-height: 540px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 115, 232, 0.18) 0%, transparent 68%);
}

.hero::after {
    inset: 5% auto auto -10%;
    width: 34vw;
    height: 34vw;
    max-width: 400px;
    max-height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52, 168, 83, 0.14) 0%, transparent 70%);
}

.hero-content {
    gap: 56px;
    align-items: center;
}

.hero-text {
    padding-right: 0;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    margin-bottom: 24px;
    border-radius: 999px;
    background: var(--surface-card);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    color: var(--primary-blue);
    font-size: 0.92rem;
    font-weight: 700;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5rem);
    letter-spacing: -0.05em;
    line-height: 1.04;
    margin-bottom: 24px;
}

.hero-title span {
    color: inherit;
}

.hero-title span:last-child {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-desc {
    max-width: 560px;
    margin-bottom: 32px;
    font-size: 1.08rem;
    line-height: 1.85;
}

.hero-buttons {
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 28px;
    border-radius: 16px;
    font-weight: 700;
}

.btn-primary {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    box-shadow: 0 16px 32px rgba(26, 115, 232, 0.24);
}

.btn-primary:hover {
    box-shadow: 0 22px 36px rgba(26, 115, 232, 0.28);
}

.btn-outline {
    border-width: 1px;
    background: var(--surface-card);
    border-color: var(--border-soft);
    color: var(--text-dark);
}

.btn-outline:hover {
    color: #ffffff;
    border-color: var(--primary-blue);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 36px;
}

.hero-stat,
.service-card,
.mv-card,
.team-member,
.timeline-content,
.service-item,
.case-item,
.news-item,
.sidebar-section,
.contact-form-section,
.info-card,
.social-section,
.faq-item,
.stat-item {
    position: relative;
    overflow: hidden;
    background: var(--surface-card);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

.hero-stat {
    padding: 20px;
    border-radius: 24px;
}

.hero-stat strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 1.02rem;
}

.hero-stat span {
    display: block;
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.65;
}

.hero-image-frame {
    position: relative;
    padding: 20px;
    border-radius: 32px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.26) 100%);
    border: 1px solid rgba(255, 255, 255, 0.38);
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(18px);
}

.hero-image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.18);
}

.hero-floating-card {
    position: absolute;
    min-width: 220px;
    padding: 16px 18px;
    border-radius: 20px;
    color: #ffffff;
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.2);
}

.hero-floating-card span {
    display: block;
    margin-bottom: 6px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.72;
}

.hero-floating-card strong {
    display: block;
    font-size: 1rem;
    line-height: 1.45;
}

.hero-card-top {
    top: 24px;
    right: -28px;
    background: rgba(15, 23, 42, 0.82);
}

.hero-card-bottom {
    left: -28px;
    bottom: 24px;
    background: rgba(26, 115, 232, 0.9);
}

.slider-section,
.services,
.about-intro,
.mission-vision,
.team,
.timeline,
.services-detail,
.cases-grid,
.success-stats,
.news-content,
.contact-content,
.faq-section {
    background: transparent;
}

.slider-section,
.services,
.about-intro,
.mission-vision,
.team,
.timeline,
.services-detail,
.success-stats,
.news-content,
.contact-content,
.faq-section,
.cta-section {
    padding-top: 92px;
    padding-bottom: 92px;
}

.slider-container,
.map-container,
.modal-content {
    border: 1px solid var(--border-soft);
    border-radius: 32px;
    box-shadow: var(--shadow-strong);
}

.slide-content {
    padding: 36px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.88) 100%);
}

.slide-content h3 {
    font-size: 2rem;
    line-height: 1.2;
}

.slide-content p {
    line-height: 1.7;
}

.services-grid,
.mv-grid,
.team-grid,
.service-items,
.cases-container,
.stats-grid {
    gap: 28px;
}

.service-card,
.mv-card,
.team-member,
.service-item,
.case-item,
.news-item,
.sidebar-section,
.contact-form-section,
.info-card,
.social-section,
.faq-item,
.stat-item {
    border-radius: 28px;
}

.service-card {
    padding: 32px 28px;
    text-align: left;
}

.service-icon,
.mv-icon,
.member-avatar,
.service-icon-large,
.item-icon,
.info-icon {
    background: linear-gradient(145deg, rgba(26, 115, 232, 0.12) 0%, rgba(52, 168, 83, 0.1) 100%);
    border: 1px solid rgba(26, 115, 232, 0.08);
}

.service-icon {
    margin: 0 0 22px;
}

.service-card h3,
.mv-card h3,
.service-item h3,
.case-content h3,
.info-content h3,
.sidebar-title,
.section-header h2,
.about-text h2,
.service-title h2 {
    letter-spacing: -0.03em;
}

.about-content,
.contact-layout,
.news-layout {
    gap: 36px;
}

.about-image img {
    border-radius: 28px;
}

.timeline-container::before {
    width: 3px;
    background: linear-gradient(180deg, rgba(26, 115, 232, 0.2) 0%, rgba(26, 115, 232, 1) 40%, rgba(52, 168, 83, 0.85) 100%);
}

.timeline-dot {
    width: 18px;
    height: 18px;
    box-shadow: 0 0 0 8px rgba(26, 115, 232, 0.12);
}

.timeline-content {
    border-radius: 24px;
}

.service-nav,
.case-filter,
.news-categories {
    padding: 12px 0 0;
    border-bottom: 0;
    background: transparent;
    box-shadow: none;
    top: 98px;
}

.service-nav .container,
.case-filter .container,
.news-categories .container {
    padding-top: 18px;
    padding-bottom: 18px;
    background: var(--surface-card);
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

.category-btn,
.filter-btn,
.tab-btn {
    padding: 11px 20px;
    border: 1px solid transparent;
    background: transparent;
    font-weight: 600;
}

.category-btn:hover,
.filter-btn:hover,
.tab-btn:hover,
.category-btn.active,
.filter-btn.active,
.tab-btn.active {
    transform: translateY(-1px);
}

.category-btn:hover,
.filter-btn:hover,
.tab-btn:hover {
    background: rgba(26, 115, 232, 0.08);
    border-color: rgba(26, 115, 232, 0.12);
}

.category-btn.active,
.filter-btn.active,
.tab-btn.active {
    background: linear-gradient(135deg, #1a73e8 0%, #34a853 100%);
    box-shadow: 0 14px 28px rgba(26, 115, 232, 0.22);
}

.cta-section {
    padding-top: 0;
    background: transparent;
}

.cta-content {
    position: relative;
    overflow: hidden;
    padding: 54px 40px;
    border-radius: 32px;
    background: linear-gradient(135deg, #0d47a1 0%, #1a73e8 46%, #34a853 100%);
    color: #ffffff;
    box-shadow: 0 30px 60px rgba(13, 71, 161, 0.28);
}

.cta-content::before {
    content: '';
    position: absolute;
    inset: auto -10% -45% auto;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

.cta-content > * {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: clamp(2rem, 5vw, 3.1rem);
    letter-spacing: -0.04em;
}

.cta-section .btn-primary {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.26);
    color: #ffffff;
    box-shadow: none;
}

.cta-section .btn-primary:hover {
    background: #ffffff;
    color: var(--primary-blue);
}

.news-layout {
    grid-template-columns: minmax(0, 1.25fr) 360px;
}

.news-item.featured {
    grid-template-columns: 1.08fr 0.92fr;
}

.sidebar-section,
.contact-form-section,
.social-section {
    padding: 32px;
}

.form-group input,
.form-group select,
.form-group textarea,
.subscribe-form input {
    min-height: 54px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.88);
}

.form-group textarea {
    min-height: 140px;
}

.dark-mode .form-group input,
.dark-mode .form-group select,
.dark-mode .form-group textarea,
.dark-mode .subscribe-form input {
    background: rgba(15, 23, 42, 0.74);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--text-dark);
}

.submit-btn {
    min-height: 54px;
}

.map-section {
    padding: 0 20px 92px;
    background: transparent;
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.faq-question {
    padding: 22px 24px;
}

footer {
    margin-top: 0;
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
}

.dark-mode footer {
    background: linear-gradient(180deg, #020617 0%, #0f172a 100%);
    color: #e8eaed;
}

footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(26, 115, 232, 0.22), transparent 28%),
        radial-gradient(circle at top right, rgba(52, 168, 83, 0.16), transparent 24%);
    pointer-events: none;
}

footer .container,
.footer-legal .container {
    position: relative;
    z-index: 1;
}

.footer-info {
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    margin-bottom: 24px;
}

.footer-logo-img {
    height: 46px;
}

.footer-desc,
.dark-mode .footer-desc,
.dark-mode .footer-links a,
.dark-mode .legal-links a,
.dark-mode .copyright {
    color: rgba(255, 255, 255, 0.72);
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
}

.footer-badges span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
}

.social-links a {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-heading {
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-heading::after {
    width: 54px;
    height: 3px;
    background: linear-gradient(90deg, #34a853 0%, #8ab4f8 100%);
}

.footer-links a,
.legal-links a,
.copyright,
.qr-text,
.friendlinks-grid a {
    color: rgba(255, 255, 255, 0.75);
}

.friendlinks-grid a {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.06);
}

.qr-container,
.footer-legal {
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.qr-container {
    background: rgba(255, 255, 255, 0.06);
}

.footer-legal {
    background: rgba(2, 6, 23, 0.36);
    backdrop-filter: blur(10px);
}

@media (max-width: 1024px) {
    .logo-text span {
        display: none;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-card-top {
        right: 16px;
    }

    .hero-card-bottom {
        left: 16px;
    }

    .news-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        min-height: 72px;
    }

    .logo-text {
        display: none;
    }

    .nav-menu {
        width: min(82vw, 320px);
        border-radius: 28px 0 0 28px;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18);
        padding: 96px 20px 30px;
        gap: 8px;
    }

    .dark-mode .nav-menu {
        background: rgba(15, 23, 42, 0.96);
    }

    .nav-link {
        width: 100%;
        padding: 12px 16px;
    }

    .page-header {
        padding: 136px 0 72px !important;
    }

    .page-title {
        padding: 28px 24px;
        border-radius: 24px;
    }

    .hero {
        padding: 140px 0 76px;
    }

    .hero-content {
        gap: 36px;
    }

    .hero-buttons {
        justify-content: flex-start;
    }

    .hero-image img {
        max-width: 100%;
    }

    .hero-floating-card {
        position: static;
        min-width: 0;
        margin-top: 16px;
    }

    .hero-image-frame {
        padding: 18px;
    }

    .slider-section,
    .services,
    .about-intro,
    .mission-vision,
    .team,
    .timeline,
    .services-detail,
    .cases-grid,
    .success-stats,
    .news-content,
    .contact-content,
    .faq-section,
    .cta-section {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .service-nav,
    .case-filter,
    .news-categories {
        position: static;
        top: auto;
    }

    .service-nav .container,
    .case-filter .container,
    .news-categories .container {
        border-radius: 20px;
    }

    .cta-content {
        padding: 40px 24px;
        border-radius: 28px;
    }

    .sidebar-section,
    .contact-form-section,
    .social-section {
        padding: 24px;
    }

    .map-section {
        padding: 0 20px 72px;
    }

    footer {
        padding-top: 64px;
    }

    .footer-info {
        padding: 22px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 2.45rem;
    }

    .hero-buttons {
        flex-direction: column;
        max-width: none;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-image-frame {
        padding: 14px;
        border-radius: 24px;
    }

    .slider-container,
    .map-container,
    .modal-content,
    .cta-content,
    .page-title,
    .service-card,
    .mv-card,
    .team-member,
    .timeline-content,
    .service-item,
    .case-item,
    .news-item,
    .sidebar-section,
    .contact-form-section,
    .info-card,
    .social-section,
    .faq-item,
    .stat-item,
    .footer-info {
        border-radius: 24px;
    }

    .footer-info,
    .footer-logo,
    .footer-desc,
    .footer-badges,
    .social-links {
        justify-content: center;
        text-align: center;
    }
}
