html { scroll-behavior: smooth; }
html.home-scroll { scroll-snap-type: y mandatory; }
.home-scroll .hero {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}
.home-scroll #hizmetler-vitrini {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    scroll-margin-top: 15px;
}
.home-scroll footer { scroll-snap-align: none; }
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary-rgb: 2, 132, 199;
    --secondary-rgb: 16, 185, 129;
    --accent-orange: #E17055;   
    --primary: rgb(var(--primary-rgb));
    --secondary: rgb(var(--secondary-rgb));
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-light: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --nav-height: 90px;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    background-color: #f0f9ff;
    background-image: 
        radial-gradient(at 0% 0%, rgba(var(--primary-rgb), 0.25) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(var(--secondary-rgb), 0.25) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(var(--primary-rgb), 0.25) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(var(--secondary-rgb), 0.25) 0px, transparent 50%);
    background-size: 150% 150%;
    animation: gradientWave 15s ease infinite alternate;
    background-attachment: fixed;
    overflow-x: hidden;
}
@keyframes gradientWave {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
a { text-decoration: none; color: inherit; transition: var(--transition-smooth); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.navbar {
    height: 90px;
    position: fixed; width: 100%; top: 0; z-index: 1000;
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}
.container {
    max-width: 1200px; margin: 0 auto; height: 100%;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px; position: relative;
}
.logo-container {
    position: relative; 
    display: flex; align-items: center;
    background: transparent; 
    padding: 0; border: none; backdrop-filter: none;
}
.logo-img { 
    height: 55px; width: auto; 
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: transform 0.3s;
}
.logo-container:hover .logo-img { transform: scale(1.05); }
.nav-links { display: flex; gap: 15px; align-items: center; height: 100%; }
.nav-links a {
    font-weight: 600; color: var(--text-main); font-size: 0.95rem; 
    position: relative; 
    padding: 32px 10px; 
    display: flex; align-items: center;
    transition: color 0.3s ease;
}
.nav-links a:not(.btn-cta)::after {
    content: ''; position: absolute; bottom: 25px; left: 10px; right: 10px;
    width: auto; height: 2px; background: var(--primary);
    transform: scaleX(0); transform-origin: right;
    transition: transform 0.3s ease;
}
.nav-links a:not(.btn-cta):hover::after,
.nav-links a.active:not(.btn-cta)::after { transform: scaleX(1); transform-origin: left; }
.nav-links a:not(.btn-cta):hover { color: var(--primary); }
.dropdown-parent { position: relative; height: 100%; display: flex; align-items: center; }
.dropdown {
    position: absolute; 
    top: 100%; 
    left: 50%; 
    transform: translateX(-50%) translateY(20px); 
    min-width: 260px; 
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-radius: 12px; 
    padding: 10px;
    opacity: 0; visibility: hidden; 
    transition: opacity 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1100;
}
.dropdown-parent:hover .dropdown { 
    opacity: 1; visibility: visible; 
    transform: translateX(-50%) translateY(0); 
}
.dropdown li a { 
    display: block; 
    padding: 12px 15px; 
    border-radius: 8px; 
    width: 100%;
    text-align: left;
    white-space: nowrap; 
    color: #334155;
}
.dropdown li a:hover { 
    background: rgba(var(--primary-rgb), 0.08); 
    color: var(--primary); 
    transform: translateX(5px); 
}
.dropdown li a.active,
.dropdown li a[aria-current="page"] {
    background: rgba(31, 41, 55, 0.12);
    color: #1f2937;
    font-weight: 700;
}
.dropdown li a::after { display: none; }
.btn-cta {
    background: var(--primary); color: white !important;
    padding: 0.7rem 1.5rem !important; border-radius: 50px;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
    height: auto; display: inline-block;
}
.btn-cta:hover {
    background: var(--secondary); transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--secondary-rgb), 0.4);
}
.menu-toggle {
    display: none; 
    cursor: pointer;
    color: var(--text-main);
    background: transparent;
    border: 0;
    padding: 0;
}
.hero {
    height: 100vh; 
    width: 100%;
    position: relative;
    display: flex; align-items: center; justify-content: center; text-align: center;
    overflow: hidden; 
    padding-top: 80px;
    background-color: #0f172a; 
    isolation: isolate;
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 1; opacity: 1; 
}
.hero .hero-bg {
    animation: slowZoom 30s infinite alternate;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.2); 
    z-index: 2; pointer-events: none;
}
#tsparticles {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 3; pointer-events: auto;
}
.hero-content {
    max-width: 900px;
    position: relative; z-index: 10;
    background: rgba(11, 17, 32, 0.75); 
    padding: 2rem 1.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
    margin: 0 20px;
}
.btn-hero {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white; font-weight: 700; font-size: 1.1rem;
    border-radius: 50px; text-decoration: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
    border: 2px solid transparent;
    margin-top: 10px;
}
.btn-hero:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(var(--primary-rgb), 0.4);
    border-color: var(--secondary);
    background: rgba(255,255,255,0.1);
}
.services-showcase {
    height: 100vh;
    width: 100%;
    padding-top: 90px; 
    padding-bottom: 20px;
    background: transparent;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}
.services-showcase .container {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.section-title {
    text-align: center; 
    margin-top: 10px; 
    margin-bottom: 15px; 
    flex-shrink: 0; 
    z-index: 10;
}
.section-title h2 {
    font-size: 2rem; 
    color: var(--text-main); 
    margin-bottom: 0;
    line-height: 1.2;
}
.section-title p { 
    color: var(--text-muted); 
    font-size: 0.95rem; 
    margin-top: 5px;
}
.vitrin-grid {
    display: flex;
    flex-direction: column;
    gap: 12px; 
    flex-grow: 1; 
    min-height: 0; 
}
.vitrin-row {
    display: flex;
    gap: 12px; 
    flex: 1; 
    min-height: 0;
}
.service-card {
    flex: 1; 
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.35s cubic-bezier(0.25, 1, 0.5, 1), background 0.25s ease, border-color 0.25s ease;
    contain: content;
}
.service-card:hover {
    flex: 2.2; 
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.1);
    will-change: flex;
}
.card-icon {
    width: 28px; height: 28px; 
    color: var(--primary);
    margin-bottom: 8px;
    transition: color 0.3s;
    flex-shrink: 0;
}
.service-card:hover .card-icon { color: var(--secondary); }
.service-card h3 {
    font-size: 1rem; 
    font-weight: 700;
    color: var(--text-main); 
    margin: 0;
    white-space: nowrap; 
}
.card-detail {
    max-height: 0; opacity: 0; 
    overflow: hidden;
    transition: opacity 0.4s ease 0.1s; 
    width: 100%;
}
.service-card:hover .card-detail {
    max-height: 60px;
    opacity: 1; 
    margin-top: 8px;
}
.card-detail p { 
    font-size: 0.8rem; color: var(--text-muted); margin-bottom: 5px;
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis;
}
.btn-detail {
    display: inline-block;
    background: var(--primary); color: white; 
    padding: 4px 12px; border-radius: 50px; 
    font-size: 0.75rem; font-weight: 600;
    text-decoration: none;
}
.btn-detail:hover { background: var(--secondary); }
footer {
    position: relative;
    background: rgba(15, 23, 42, 0.98); 
    backdrop-filter: blur(20px);
    color: #cbd5e1;
    padding: 50px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    scroll-snap-align: end;
    scroll-snap-stop: always;
}
.footer-container { display: flex; flex-direction: column; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-logo { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.footer-logo img { height: 100px; width: auto; }
.footer-logo h3 { color: #fff; font-size: 1.5rem; margin: 0; }
.footer-desc { font-size: 0.95rem; line-height: 1.6; color: #94a3b8; }
.footer-col h4 {
    color: #fff; font-size: 1.1rem; margin-bottom: 20px;
    position: relative; padding-bottom: 10px;
}
.footer-col h4::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 40px; height: 3px; background: var(--secondary); border-radius: 2px;
}
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #94a3b8; transition: color 0.3s ease, transform 0.3s ease; display: inline-block; }
.footer-links a:hover { color: var(--secondary); transform: translateX(5px); }
.contact-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 15px; font-size: 0.95rem; }
.contact-list i { width: 20px; height: 20px; color: var(--secondary); margin-top: 3px; }
.contact-link { color: inherit; text-decoration: none; }
.contact-link.is-disabled { cursor: default; pointer-events: none; }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 30px; font-size: 0.9rem; color: #64748b;
}
.page-hero {
    min-height: 60vh;
    height: auto;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: calc(var(--nav-height) + 16px);
    padding-bottom: 34px;
    background-color: #0f172a;
    isolation: isolate;
}
.page-hero .hero-bg { animation: slowZoom 30s infinite alternate; }
    @keyframes slowZoom {
        0% { transform: scale(1); }
        100% { transform: scale(1.5); }
}
.page-hero .hero-title {
    font-size: clamp(1.85rem, 6.2vw, 2.8rem);
    line-height: 1.15;
    margin: 0 0 14px 0;
}
.page-hero .hero-description {
    font-size: clamp(0.98rem, 3.2vw, 1.1rem);
    line-height: 1.6;
    max-width: 68ch;
    margin: 0 auto;
}
.home-scroll .page-hero {
    scroll-snap-align: none;
    scroll-snap-stop: normal;
}
.certificate-modal__footer {
    border-top: 1px solid #e2e8f0;
    padding: 10px 16px;
    background: #fff;
}
.certificate-modal__footer a {
    color: #475569;
    font-size: 0.88rem;
    text-decoration: underline;
}
.certificate-modal__footer a:hover {
    color: #0f172a;
}
@media (max-width: 900px) {
    .page-hero { height: 100vh; }
}
.section-premium {
    background-color: #f8fafc !important; 
    padding: 100px 0 150px 0;
    color: #334155;
    position: relative;
    overflow: hidden;
    --color-blue: rgb(37, 99, 235);
    --color-green: rgb(16, 185, 129);
    --mouse-x: 50%; --mouse-y: 50%; --mix-ratio: 50%;
}
.section-premium::before {
    content: ''; position: absolute;
    top: var(--mouse-y); left: var(--mouse-x);
    transform: translate(-50%, -50%);
    width: 800px; height: 800px; border-radius: 50%;
    filter: blur(200px); 
    background: color-mix(in srgb, var(--color-blue) var(--mix-ratio), var(--color-green));
    opacity: 0.25; z-index: 0; pointer-events: none;
    transition: background 0.1s ease-out, opacity 0.3s ease;
    will-change: transform, background;
}
.content-wrapper { position: relative; z-index: 2; max-width: 1000px; margin: 0 auto; padding: 0 25px;}
.premium-title {
    font-size: 2.5rem; font-weight: 800;
    color: color-mix(in srgb, rgb(37, 99, 235) 70%, rgb(16, 185, 129));
    margin-bottom: 30px; letter-spacing: -0.5px; display: block; position: relative;
}
.premium-title::after { content: ''; display: block; width: 60px; height: 4px; background: var(--primary); margin-top: 15px; border-radius: 2px; }
.premium-text { font-size: 1.15rem; line-height: 1.8; color: #475569; margin-bottom: 25px; font-weight: 400; }
.premium-text strong { color: #0f172a; font-weight: 700; }
.services-grid-clean { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.clean-card {
    background: #f8fafc; padding: 30px; border-radius: 12px; border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.clean-card:hover {
    transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    background: #fff; border-color: var(--primary);
}
.clean-card h3 { font-size: 1.2rem; font-weight: 700; color: #0f172a; margin: 15px 0 10px; }
.clean-card p { font-size: 0.95rem; color: #64748b; line-height: 1.5; }
.mv-block { margin-bottom: 60px; padding-left: 30px; border-left: 4px solid #cbd5e1; transition: border-left-color 0.3s ease; }
.mv-block:hover { border-left-color: var(--primary); }
.mv-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; padding-top: 1em;}
.mv-title { font-size: 1.8rem; font-weight: 700; color: color-mix(in srgb, var(--color-blue) var(--mix-ratio), var(--color-green)); margin: 0; }
.mv-desc { font-size: 1.1rem; line-height: 1.8; color: #475569; padding: 0 1em 2em 0;}
.services-accordion-section {
    background-color: #f8fafc;
    padding: 100px 0 150px;
    min-height: 60vh;
}
.services-accordion-section .container {
    display: block !important;
    height: auto !important;
    max-width: 900px !important;
}
.accordion-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    scroll-margin-top: 110px; 
}
.accordion-item.active {
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.1);
}
.accordion-header {
    width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    padding: 25px 30px;
    background: none; border: none; cursor: pointer;
    text-align: left; transition: background 0.2s;
}
.accordion-header:hover { background-color: #f1f5f9; }
.header-left { display: flex; align-items: center; gap: 20px; flex: 1; }
.acc-icon { color: var(--primary); width: 28px; height: 28px; flex-shrink: 0; }
.accordion-header h3 { font-size: 1.25rem; font-weight: 700; color: #0f172a; margin: 0; }
.arrow-icon { color: #94a3b8; transition: transform 0.3s ease; flex-shrink: 0; }
.accordion-item.active .arrow-icon { transform: rotate(180deg); color: var(--primary); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0, 1, 0, 1); background-color: #ffffff; }
.content-inner { padding: 0 30px 30px 78px; color: #475569; }
.lead-text { font-size: 1.1rem; font-weight: 500; color: #334155; margin-bottom: 15px; }
.content-inner p { margin-bottom: 20px; line-height: 1.7; }
.service-list { margin-top: 20px; padding: 20px; background: #f8fafc; border-radius: 8px; border-left: 4px solid var(--secondary); }
.service-list li { margin-bottom: 8px; font-weight: 600; color: #334155; position: relative; padding-left: 20px; }
.service-list li::before { content: '•'; position: absolute; left: 0; color: var(--secondary); font-size: 1.5rem; line-height: 1rem; top: 2px; }
@media (max-width: 900px) {
    body { background-attachment: scroll; animation: none; }
    html.home-scroll { scroll-snap-type: none; }
    .home-scroll .hero,
    .home-scroll #hizmetler-vitrini,
    .home-scroll footer {
        scroll-snap-align: none;
        scroll-snap-stop: normal;
    }
    #tsparticles { pointer-events: none; }
    .menu-toggle { display: block; font-size: 1.8rem; }
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; width: 100%;
        background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(20px);
        flex-direction: column; height: auto; padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-top: 1px solid rgba(0,0,0,0.05);
        max-height: calc(100vh - 90px); overflow-y: auto;
    }
    .nav-links.active { display: flex; }
        .nav-links a {
        padding: 15px;
        width: 100%;
        justify-content: center;
    }
    .nav-links a:not(.btn-cta)::after {
        bottom: 8px;
        left: 24px;
        right: 24px;
    }
    .nav-links a.active:not(.btn-cta)::after {
        transform: scaleX(1);
        transform-origin: center;
    }
    .dropdown {
        position: static; width: 100%; transform: none; 
        opacity: 1; visibility: visible; display: none;
        box-shadow: none; border: none; background: rgba(0,0,0,0.03); 
        margin-top: 0; min-width: 0;
    }
    .dropdown.open { display: block; animation: slideDown 0.3s ease; }
    @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
    .dropdown li a { text-align: center; padding: 12px; }
    .dropdown-parent > a { cursor: pointer; }
    .services-showcase { height: auto; padding: 92px 14px 26px; }
    .services-showcase .container { display: block !important; padding: 0 6px; }
    .vitrin-grid { gap: 8px; }
    .vitrin-row { flex-direction: column; flex: none; gap: 8px; }
    #hizmetler-vitrini .service-card {
        min-height: 92px;
        margin-bottom: 0;
        padding: 0.75rem 0.8rem;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: 1px solid rgba(var(--primary-rgb), 0.28);
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(var(--secondary-rgb), 0.14);
        position: relative;
        animation: mobileServiceCardPulse 2.8s ease-in-out infinite;
    }
    #hizmetler-vitrini .service-card::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        pointer-events: none;
        box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), 0.18);
        opacity: 0.55;
        animation: mobileServiceCardHint 2.8s ease-in-out infinite;
    }
    #hizmetler-vitrini .service-card:hover,
    #hizmetler-vitrini .service-card:focus-visible,
    #hizmetler-vitrini .service-card:active { 
        flex: 1;
        border-color: rgba(var(--primary-rgb), 0.52);
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(var(--secondary-rgb), 0.24);
        animation-play-state: paused;
    }
    #hizmetler-vitrini .service-card:hover::after,
    #hizmetler-vitrini .service-card:focus-visible::after,
    #hizmetler-vitrini .service-card:active::after {
        opacity: 0.9;
        animation-play-state: paused;
    }
    .card-icon { width: 22px; height: 22px; margin-bottom: 6px; }
    .service-card h3 { font-size: 0.95rem; white-space: normal; line-height: 1.25; }
    .card-detail { max-height: 66px; opacity: 1; margin-top: 6px; }
    .card-detail p { white-space: normal; font-size: 0.75rem; margin-bottom: 0; line-height: 1.35; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-logo, .contact-list li { justify-content: center; }
    .footer-col h4::after { left: 50%; transform: translateX(-50%); }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
    .services-grid-clean { grid-template-columns: 1fr;}
    .premium-title { font-size: 2rem; }
    .content-wrapper { padding: 0 20px; }
    .accordion-header { padding: 20px; }
    .header-left { gap: 15px; }
    .content-inner { padding: 0 20px 25px 20px; }
    .accordion-header h3 { font-size: 1.1rem; }
    .hero-content {
        padding: 2rem 1.5rem;
        background: rgba(11, 17, 32, 0.90);
    }
}
@keyframes mobileServiceCardPulse {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(var(--secondary-rgb), 0.14);
    }
    50% {
        transform: translateY(-1px);
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(var(--primary-rgb), 0.24);
    }
}
@keyframes mobileServiceCardHint {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 0.8; }
}
.gradient-text-legal {
    background: linear-gradient(to right, #22c55e, #0ea5e9);
    -webkit-background-clip: text;  
    background-clip: text;
    color: transparent;
    display: inline-block;
    filter: drop-shadow(0 0 1px rgba(34, 197, 94, 0.5)); 
}
.gradient-text-digital {
    background: linear-gradient(to right, #3b82f6, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    filter: drop-shadow(0 0 1px rgba(59, 130, 246, 0.5)); 
}
.hero-title {
    color: #ffffff;
    text-shadow: none; 
}
.hero-description {
    font-size: 1.2rem;
    color: #cbd5e1;
    line-height: 1.7;
    max-width: 100%;
    margin: 0 auto 20px auto;
    font-weight: 400;
}
.hero-description strong {
    color: #fff;
    font-weight: 700;
}
.partnership-header {
    display: flex;
    justify-content: center;
    align-items: center; 
    gap: 50px;  
    margin-bottom: 75px;
    margin-top: -35px;
    flex-wrap: wrap;
}
.partner-logo-box {
    height: 175px;
    width: 300px;          
    display: flex; 
    align-items: center;
    justify-content: center;
    background: #fff;
    background: linear-gradient(145deg, #f8fafc, #e2e8f0);

    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.partner-logo-box img {
    height: 100%;
    width: auto;
    object-fit: contain;
}
@media (max-width: 768px) {
    .partnership-header { flex-direction: column; }
}
.partners-section-wrapper {
    margin-top: 100px;
    padding-top: 50px;
    border-top: 1px solid #e2e8f0;
}
.logos-slider {
    height: 170px;
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.logos-slide-track {
    display: flex;
    align-items: center;
    width: max-content;
    gap: 20px;
    animation: scrollLogos 30s linear infinite;
}
.slide-logo {
    width: 240px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    border-radius: 16px;
    border: 1px solid rgba(var(--primary-rgb), 0.14);
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.slide-logo img {
    max-width: 100%;
    max-height: 95px;
    object-fit: contain;
    transition: filter 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}
.slide-logo img:hover { transform: scale(1.1); }
.logos-slide-track:hover { animation-play-state: paused; }
.slide-logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 10px)); }
}
@media (max-width: 768px) {
    .logos-slider {
        mask-image: none;
        -webkit-mask-image: none;
        height: auto;
    }
    .logos-slide-track {
        animation: none; 
        width: 100%;
        overflow-x: auto; 
        scroll-behavior: smooth;
        gap: 10px;
        padding-bottom: 20px;
    }
    .logos-slide-track::-webkit-scrollbar {
        display: none;
    }
    .slide-logo {
        flex: 0 0 180px;
        min-width: 180px;
        height: 110px;
    }
}
.contact-wrapper {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}
.contact-info-side { flex: 1; }
.contact-info-side.full-width {
    flex: 1 1 100%;
    .info-cards { gap: 5px; };
}
.info-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex-direction: column;
    gap: 20px;
    margin-bottom: 10px;
}
.info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.info-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
}
.office-card.is-active {
    border-color: var(--primary);
    box-shadow: 0 12px 28px rgba(var(--primary-rgb), 0.16);
}
.contact-channel-card { grid-column: 1 / -1; }
.icon-box {
    width: 50px; height: 50px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.info-text h4 { margin: 0 0 6px 0; font-size: 1.1rem; color: #0f172a; }
.info-text p { margin: 0; color: #64748b; font-size: 0.95rem; line-height: 1.5; }
.info-text p + p { margin-top: 6px; }
.info-text a { color: inherit; }
.info-link {
    display: inline-flex;
    margin-top: 10px;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--primary) !important;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}
.info-link:hover { border-color: var(--primary); }
@media (max-width: 900px) {
    .contact-wrapper { flex-direction: column; }
    .info-cards { grid-template-columns: 1fr; }
}
.map-hero-section {
    width: 100%;
    height: 50vh;
    min-height: 600px;
    margin-top: 90px;
    position: relative;
    background: #e2e8f0;
}
.map-overlay-card {
    position: absolute;
    top: 1em;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: min(600px, calc(100% - 30px));
    background: rgba(31, 45, 78, 0.82);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 12px 20px;
    backdrop-filter: blur(3px);
}
.map-overlay-card h3 {
    margin: 0;
    font-size: 1.1rem;
}
.map-overlay-card p {
    margin: 8px 0 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}
.map-hero-section iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;    
}
@media (max-width: 768px) {
    .map-hero-section {
        height: 40vh;
        min-height: 500px;
    }
        .map-overlay-card {
        top: 1em;
        width: calc(100% - 24px);
        padding: 14px;
    }
    .map-overlay-card h3 { font-size: 1rem; }
    .map-overlay-card p { font-size: 0.88rem; }
}
.btn-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    border-bottom: 2px solid transparent;
}
.btn-detail-link:hover {
    color: var(--secondary);
    transform: translateX(5px);
}
.btn-detail-link i {
    width: 20px; 
    height: 20px;
    transition: transform 0.3s ease;
}
.btn-detail-link:hover i { transform: translateX(3px); }
.text-gradient {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}
.margin-b100 { margin-bottom: 100px; }
@media (max-width: 768px) {
    .nav-links.active {
        right: 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    body { animation: none; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
@supports (height: 100svh) {
  .hero { height: 100svh; }
  .page-hero {
    min-height: 50svh;
    height: auto;
  }
  @media (max-width: 900px) {
    .page-hero { min-height: calc(90svh - var(--nav-height)); }
  }
}
.hero-title {
  color: #ffffff;
  text-shadow: none;
  font-size: clamp(1.65rem, 5.6vw, 3rem);
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
.hero-description {
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
@media (max-width: 900px) {
  .hero-content { padding: 1.5rem 1.1rem; gap: 1rem; }
  .hero-title { max-inline-size: 22ch; }
  .hero-title br { display: none; }
  .hero-description { font-size: 1rem; line-height: 1.55; }
}
@media (max-width: 480px) {
  .hero-content { width: calc(100% - 24px); }
}
@media (max-width: 900px) {
  .nav-links { overflow-x: hidden; }
  .dropdown-parent { display: block; width: 100%; height: auto; }
  .dropdown-parent > a { justify-content: center; }
  .dropdown-parent:hover .dropdown { transform: none; }
  .dropdown {
    margin-top: 10px;
    padding: 8px;
    border-radius: 10px;
  }
  .dropdown li {
    list-style: none;
    margin: 0;
  }
  .dropdown li a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 8px;
    white-space: normal;
    text-align: center;
    justify-content: center;
    line-height: 1.25;
  }
  .dropdown li a:hover { transform: none; }
}
.info-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  opacity: 0;
  transition: opacity 240ms ease;
}
.info-modal.is-open {
  display: block;
  opacity: 1;
}
.info-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(var(--secondary-rgb), 0.26), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(225, 112, 85, 0.25), transparent 48%),
    rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.info-modal__dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: min(620px, calc(100% - 32px));
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 251, 255, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow:
    0 40px 90px rgba(2, 6, 23, 0.42),
    0 12px 28px rgba(var(--secondary-rgb), 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  padding: 22px;
  opacity: 0;
  transition: transform 280ms cubic-bezier(.2,.9,.2,1), opacity 280ms ease;
  will-change: transform, opacity;
  max-height: calc(100dvh - 32px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.info-modal.is-open .info-modal__dialog {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}
@supports (padding: env(safe-area-inset-top)) {
  .info-modal__dialog {
    max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }
}
.info-modal__content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 8px 6px;
  min-height: clamp(300px, 46vh, 430px);
}
.modal-intro {
  position: absolute;
  inset: 8px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.42), transparent 42%),
    radial-gradient(circle at 85% 75%, rgba(255, 255, 255, 0.2), transparent 50%),
    linear-gradient(145deg, rgba(12, 22, 54, 0.78), rgba(65, 12, 20, 0.72));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.32),
    0 16px 38px rgba(9, 17, 36, 0.36);
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 420ms cubic-bezier(.2,.9,.2,1), transform 460ms cubic-bezier(.2,.9,.2,1), filter 460ms ease;
  pointer-events: none;
  z-index: 2;
}
.modal-intro__frame {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #070b16;
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  transform: translateY(8px) scale(0.97);
  transition: transform 500ms cubic-bezier(.2,.9,.2,1);
}
.modal-intro__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.12), transparent 46%),
    radial-gradient(circle at 78% 76%, rgba(255, 255, 255, 0.08), transparent 50%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.14), transparent 38%);
  mix-blend-mode: screen;
  pointer-events: none;
}
.modal-intro__gif {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  image-rendering: auto;
  filter: contrast(0.95) saturate(1.2) brightness(0.85) drop-shadow(0 12px 16px rgba(0, 0, 0, 0.22));
}
.modal-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 420ms cubic-bezier(.2,.9,.2,1), transform 460ms cubic-bezier(.2,.9,.2,1), filter 460ms ease;
}
.info-modal.is-intro .modal-intro {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}
.info-modal.is-intro .modal-intro__frame {
  transform: translateY(0) scale(1);
}
.info-modal.is-intro .modal-main {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  pointer-events: none;
}
.modal-pill {
  align-self: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(var(--secondary-rgb), 0.15), rgba(225, 112, 85, 0.16));
  color: #2141a8;
  border: 1px solid rgba(var(--secondary-rgb), 0.24);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.modal-title {
  font-size: clamp(1.4rem, 1.2rem + 0.7vw, 1.95rem);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.4px;
  color: #0f172a;
  margin: 2px 0 0;
  text-align: center;
}
.modal-text {
  color: #475569;
  font-size: 1rem;
  line-height: 1.72;
  margin: 0;
  text-align: center;
  max-width: 56ch;
  align-self: center;
}
.modal-logos {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 65px;
  padding: 16px;
  margin: 8px 0 6px;
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.86), rgba(244, 248, 255, 0.76));
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.10), 0 0 0 1px rgba(255, 255, 255, 0.45) inset;
}
.modal-logos::before {
  content: "";
  position: absolute;
  inset: -40% -30%;
  background: radial-gradient(circle at 30% 40%, rgba(var(--secondary-rgb), 0.24), transparent 55%),
              radial-gradient(circle at 70% 60%, rgba(225, 112, 85, 0.20), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}
.modal-logos::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), transparent 55%);
  pointer-events: none;
}
.modal-logos img,
.modal-logo {
  position: relative;
  z-index: 1;
  height: 256px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.14));
}
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.modal-btn {
  border: 0;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.93rem;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
  cursor: pointer;
}
.modal-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--secondary), #5678f0);
  box-shadow: 0 12px 28px rgba(var(--secondary-rgb), 0.36);
}
.modal-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(var(--secondary-rgb), 0.42);
}
.modal-btn--ghost {
  color: #1e293b;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(30, 41, 59, 0.14);
}
.modal-btn--ghost:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--secondary-rgb), 0.34);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}
@media (prefers-reduced-motion: reduce) {
  .modal-intro,
  .modal-intro__frame,
  .modal-main { transition: none; }
}
@media (max-width: 480px) {
  .info-modal__dialog {
    width: calc(100% - 20px);
    border-radius: 20px;
    padding: 16px;
  }
  .info-modal__content { min-height: 300px; }
  .modal-intro {
    inset: 4px;
    border-radius: 14px;
  }
  .modal-logos {
    padding: 14px;
    gap: 10px;
  }
  .modal-logos img,
  .modal-logo {
    height: 110px;
    max-width: 110px;
  }
  .modal-actions { flex-direction: column; }
  .modal-btn { width: 100%; }
}
html.modal-open,
body.modal-open {
  overflow: hidden;
}
.back-nav {
  position: fixed;
  left: 18px;
  top: calc(90px + 16px);
  z-index: 1200;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  color: var(--text-main);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.back-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--secondary-rgb), 0.55);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
}
.back-btn:active { transform: translateY(0); }
.back-btn .back-ico {
  width: 18px;
  height: 18px;
  color: rgb(var(--secondary-rgb));
}
@media (max-width: 900px) {
  .back-nav {
    top: auto;
    bottom: 16px;
    left: 16px;
  }
  .back-btn {
    position: relative;
    background: rgba(15, 23, 42, 0.72);
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.06),
      0 0 22px rgba(var(--secondary-rgb), 0.28);
    padding: 12px 14px;
  }
  .back-btn::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 999px;
    pointer-events: none;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 26px rgba(255, 140, 0, 0.18);
  }
  .back-btn .back-ico {
    filter: drop-shadow(0 0 10px rgba(var(--secondary-rgb), 0.35));
  }
  .back-btn:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.08),
      0 0 28px rgba(var(--secondary-rgb), 0.34);
  }
}
.corporate-structure-layout {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    margin-bottom: 60px;
}
.corporate-structure-text { flex: 1; }
.corporate-structure-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8fafc;
    border-radius: 12px;
    margin-top: 75px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.corporate-structure-logo {
    max-width: 80%;
    height: auto;
}
@media (max-width: 768px) {
    .corporate-structure-layout {
        flex-direction: column;
        gap: 24px;
        margin-bottom: 40px;
    }
    .corporate-structure-image {
        width: 100%;
        margin-top: 0;
        padding: 18px;
    }
    .corporate-structure-logo { max-width: 65%; }
}
.mission-vision-grid { width: 100%; }
.mission-vision-grid .clean-card { min-width: 0; }
@media (max-width: 768px) {
    .mission-vision-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        margin-bottom: 48px !important;
    }
    .services-grid-clean { gap: 15px; }
    .services-grid-clean .clean-card { padding: 10px; }
}
@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .services-grid-clean { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-logo-box {
    width: min(100%, 260px);
    height: 150px;
  }
  .map-hero-section { min-height: 520px; }
  .modal-logos {
    gap: 20px;
    flex-wrap: wrap;
  }
  .modal-logos img,
  .modal-logo {
    height: clamp(120px, 20vw, 190px);
    max-width: min(42vw, 180px);
  }
}
@media (max-width: 900px) {
  .section-premium,
  .services-accordion-section {
    padding: 72px 0 90px;
  }
  .premium-title {
    font-size: clamp(1.6rem, 5.5vw, 2rem);
    line-height: 1.2;
  }
  .premium-text,
  .mv-desc {
    font-size: 1rem;
    line-height: 1.7;
  }
  .mv-block {
    margin-bottom: 36px;
    padding-left: 18px;
  }
  .map-hero-section {
    min-height: 430px;
    height: 48vh;
  }
  .back-nav { left: 12px; }
  .back-btn {
    padding: 10px 12px;
    font-size: 0.86rem;
    gap: 6px;
  }
}
@media (max-width: 600px) {
  .content-wrapper {
    padding: 0 14px;
  }
  .services-grid-clean {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .clean-card { padding: 20px; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
@media (min-width: 901px) {
  .navbar .dropdown-parent > a[href*="hizmetler"] + .dropdown li:first-child,
  .navbar .dropdown-parent > a[href*="hizmetler"] ~ .dropdown li:first-child {
    display: none;
  }
}
.page-hero--certificates .hero-overlay { background: linear-gradient(135deg, rgba(2, 132, 199, 0.28), rgba(15, 23, 42, 0.58)); }
.certificates-section { padding: 38px 0 120px; }
.certificates-wrapper { max-width: 1180px; }
.certificates-title { margin-bottom: 40px; }
.certificates-title h2 { font-size: clamp(1.9rem, 4vw, 2.5rem); }
.certificates-title p { max-width: 640px; }
[data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
    transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}
.certificate-group {
    margin-bottom: 42px;
    padding: 22px;
    border: 1px solid #e5edf6;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}
.certificate-group:last-child { margin-bottom: 0; }
.certificate-group__head {
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e6edf5;
}
.certificate-group__head h3 {
    font-size: clamp(1.35rem, 2.5vw, 1.72rem);
    color: #0f172a;
    letter-spacing: -0.02em;
}
.certificate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}
.certificate-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid #dbe8f5;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.certificate-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--primary-rgb), 0.35);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}
.certificate-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background-color: #e2e8f0;
}
.certificate-card__body {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}
.certificate-card__body h4 {
    font-size: 1.02rem;
    color: #0f172a;
}
.certificate-card__body p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #64748b;
    flex-grow: 1;
}
.certificate-card__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-radius: 10px;
    border: 1px solid #d1d9e6;
    background: #f8fafc;
    color: #334155;
    font-weight: 700;
    font-size: 0.87rem;
    padding: 9px 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.certificate-card:focus-within {
    transform: translateY(-4px);
    border-color: rgba(var(--primary-rgb), 0.35);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}
.certificate-card__action:hover {
    border-color: #b8c4d5;
    background: #f1f5f9;
    color: #0f172a;
}
.certificate-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 2100;
}
.certificate-modal.is-open { display: block; }
.certificate-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.66);
    backdrop-filter: blur(2px);
}
.certificate-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(1050px, calc(100% - 24px));
    height: min(86vh, 900px);
    margin: max(60px, 6vh) auto 0;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 45px rgba(2, 6, 23, 0.4);
    display: flex;
    flex-direction: column;
}
.certificate-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 14px;
}
.certificate-modal__header h3 {
    margin: 0;
    font-size: 1rem;
    color: #0f172a;
}
.certificate-modal__hint {
    margin: 0;
    padding: 8px 14px 0;
    margin-top: 4px;
    font-size: 0.82rem;
    color: #64748b;
}
.certificate-modal__close {
    width: 36px;
    height: 36px;
    border: 1px solid #dbe2ea;
    border-radius: 50%;
    background: #f8fafc;
    color: #334155;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}
.certificate-modal__content {
    flex: 1;
    min-height: 0;
    background: #f8fafc;
}
#certificate-modal-frame {
    width: 100%;
    height: 100%;
    border: 0;
}
.certificate-modal__status {
    padding: 14px;
    font-size: 0.92rem;
    color: #334155;
}
.certificate-modal__pages {
    height: 100%;
    overflow: auto;
    padding: 12px;
    display: grid;
    gap: 12px;
    align-content: start;
}
.certificate-modal__page-canvas {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 15px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}
#certificate-modal-frame[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .certificate-card,
    .certificate-card:hover,
    .certificate-card:focus-within {
        transition: none;
        transform: none;
    }
}
@media (max-width: 900px) {
    .certificates-section { padding: 55px 0 85px; }
    .certificates-title { margin-bottom: 28px; }
    .certificate-group {
        padding: 16px;
        border-radius: 14px;
    }
    .certificate-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
    .certificate-modal__dialog {
        width: calc(100% - 16px);
        height: min(86vh, 760px);
        margin-top: 50px;
    }
}
@media (max-width: 640px) {
    .certificate-grid { grid-template-columns: 1fr; }
    .certificate-card { border-radius: 12px; }
    .certificate-card img { aspect-ratio: 16 / 10; }
    .certificate-modal__dialog {
        width: calc(100% - 10px);
        height: min(88vh, 720px);
        margin-top: 26px;
        border-radius: 10px;
    }
    .certificate-card img { aspect-ratio: 16 / 11; }
    .certificate-modal__header { padding: 10px 12px; }
    .certificate-modal__header h3 { font-size: 0.95rem; }
    .certificate-modal__hint { font-size: 0.76rem; }
}
