@font-face {
    font-family: 'Gogh';
    src: url('assets/font/Gogh-ExtraBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --primary-color: #0D9488;
    --primary-dark: #0F766E;
    --secondary-color: #5EEAD4;
    --accent-color: #E11D48;
    --accent-soft: rgba(225, 29, 72, 0.12);
    --text-dark: #134E4A;
    --text-light: #115E59;
    --bg-light: #F0FDFA;
    --bg-white: #FFFFFF;
    --bg-gradient: linear-gradient(135deg, #CCFBF1 0%, #F0FDFA 50%, #FFF7ED 100%);
    --gradient-primary: linear-gradient(135deg, #0D9488 0%, #0F766E 100%);
    --gradient-hero: linear-gradient(135deg, rgba(13, 148, 136, 0.15) 0%, rgba(225, 29, 72, 0.08) 100%);
    --shadow-sm: 0 2px 8px rgba(13, 148, 136, 0.12);
    --shadow-md: 0 4px 16px rgba(13, 148, 136, 0.18);
    --shadow-lg: 0 8px 32px rgba(13, 148, 136, 0.22);
    --shadow-glow: 0 0 30px rgba(13, 148, 136, 0.35);
    --shadow-accent: 0 4px 20px rgba(225, 29, 72, 0.25);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

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

.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1001;
}
.nav-burger:hover {
    background: var(--bg-light);
}
.nav-burger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-dark);
    border-radius: 1px;
    transition: var(--transition);
}
.nav-burger[aria-expanded="true"] .nav-burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-burger[aria-expanded="true"] .nav-burger-line:nth-child(2) {
    opacity: 0;
}
.nav-burger[aria-expanded="true"] .nav-burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-dropdown {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

@media (min-width: 901px) {
    .nav-dropdown {
        flex: 1;
        min-width: 0;
    }
    .nav-dropdown .appointment-btn {
        margin-left: auto;
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
}

.appointment-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm), 0 0 20px rgba(13, 148, 136, 0.35);
    position: relative;
    overflow: hidden;
    animation: pulseButton 2s ease-in-out infinite;
}

@keyframes pulseButton {
    0%, 100% { box-shadow: var(--shadow-sm), 0 0 20px rgba(13, 148, 136, 0.35); }
    50% { box-shadow: var(--shadow-md), 0 0 30px rgba(13, 148, 136, 0.5); }
}

.appointment-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.appointment-btn:hover::before {
    width: 300px;
    height: 300px;
}

.appointment-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-md), 0 0 40px rgba(13, 148, 136, 0.5);
    animation: none;
}

.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gradient);
    padding: clamp(60px, 10vw, 100px) 20px clamp(20px, 4vw, 40px);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 80% 50% at 70% 30%, rgba(13, 148, 136, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse 60% 40% at 20% 70%, rgba(13, 148, 136, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-image {
    position: relative;
    animation: fadeInUp 1s ease-out;
}

.hero-img {
    width: 100%;
    max-width: min(500px, 45vw);
    height: auto;
    max-height: min(70vh, 520px);
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transition: var(--transition-slow);
    filter: brightness(1.02) contrast(1.05);
}

.hero-image:hover .hero-img {
    transform: scale(1.02) translateY(-5px);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(13, 148, 136, 0.4);
}

.hero-cta-btn {
    margin-top: clamp(1rem, 2vw, 2rem);
    padding: clamp(0.75rem, 1.5vw, 1rem) clamp(1.25rem, 2.5vw, 2.5rem);
    font-size: clamp(0.95rem, 1.5vw, 1.2rem);
    font-weight: 700;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #E11D48 0%, #BE123C 100%);
    color: white;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-accent);
    position: relative;
    overflow: hidden;
}

.hero-cta-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 28px rgba(225, 29, 72, 0.4);
}

.hero-text {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-title {
    font-size: clamp(1.75rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5em;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.5rem);
    color: var(--text-light);
    font-weight: 400;
    line-height: 1.4;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

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

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.section {
    padding: 6rem 0;
    position: relative;
    scroll-margin-top: 80px;
}

@media (max-width: 768px) {
    .section {
        scroll-margin-top: 100px;
        padding-top: 5rem;
    }
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-dark);
    position: relative;
    animation: fadeInUp 0.8s ease-out;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-visible .section-title {
    opacity: 1;
    transform: translateY(0);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    transition: transform 0.8s ease-out 0.3s;
}

.section-visible .section-title::after {
    transform: translateX(-50%) scaleX(1);
}

.about-section {
    background: var(--bg-white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 2.5rem 3rem;
    align-items: start;
}

.about-description {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 0;
}

.about-single-photo {
    margin-top: 0.25rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 220px;
    justify-self: end;
}

.about-single-photo img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: top;
}

@media (max-width: 640px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .about-single-photo {
        max-width: 260px;
        justify-self: center;
        margin-top: 0;
    }
}

.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.image-item {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    background: var(--bg-white);
}

.image-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.image-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
    display: block;
    border-radius: 15px;
}

.image-item:hover img {
    transform: scale(1.05);
}

.education-section {
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.education-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(13, 148, 136, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(94, 234, 212, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.education-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
}

.education-timeline {
    position: relative;
    padding-left: 3rem;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
    animation: fadeInUp 0.8s ease-out;
    padding-left: 0;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -11px;
    top: 0.5rem;
    width: 19px;
    height: 19px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid var(--bg-white);
    box-shadow: 0 0 0 3px var(--primary-color), var(--shadow-md);
    z-index: 2;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-content {
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transform-origin: top;
    transition: var(--transition);
}

.timeline-content:hover::before {
    transform: scaleY(1);
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.timeline-year-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: var(--shadow-sm); }
    50% { transform: scale(1.05); box-shadow: var(--shadow-md); }
}

.year-start,
.year-end {
    font-size: 1.1rem;
}

.year-separator {
    font-size: 1.2rem;
    opacity: 0.8;
}

.timeline-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 700;
}

.timeline-content p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.7;
}

.diplomas-section {
    margin-top: 4rem;
}

.diplomas-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.diplomas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.diploma-placeholder {
    padding: 3rem;
    background: var(--bg-light);
    border-radius: 15px;
    text-align: center;
    color: var(--text-light);
    border: 2px dashed var(--secondary-color);
}

.expandable-block {
    margin-top: 1.5rem;
    border-top: 1px solid rgba(13, 148, 136, 0.2);
    padding-top: 1rem;
}

.expandable-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.expandable-trigger:hover {
    background: var(--secondary-color);
    color: var(--primary-dark);
    border-color: var(--primary-color);
}

.expandable-icon {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.expandable-trigger[aria-expanded="true"] .expandable-icon {
    transform: rotate(180deg);
}

.expandable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.expandable-content.is-open {
    max-height: 2000px;
}

.diplomas-inline {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 160px));
    gap: 1.25rem;
    padding: 1.5rem 0 0;
    justify-content: start;
}

.diplomas-inline--portrait {
    grid-template-columns: repeat(auto-fill, 130px);
}

.diplomas-inline--portrait .diploma-item {
    width: 130px;
    min-height: 0;
}

.diplomas-inline--portrait .diploma-item img,
.diplomas-inline--portrait .diploma-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: top center;
    max-height: 420px;
}

.diploma-placeholder-text {
    font-size: 0.9rem;
    color: var(--text-light);
    grid-column: 1 / -1;
}

.diplomas-inline .diploma-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--bg-white);
    cursor: pointer;
    transition: var(--transition);
}

.diplomas-inline .diploma-item:hover {
    box-shadow: var(--shadow-md);
}

.diplomas-inline .diploma-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: top;
}

.diplomas-inline .diploma-title {
    padding: 0.5rem 0.6rem;
    font-size: 0.8rem;
    text-align: center;
    color: var(--text-dark);
    line-height: 1.3;
}

.diplomas-inline--horizontal {
    grid-template-columns: 1fr;
    max-width: 100%;
}

.diploma-item--horizontal {
    width: 100%;
    max-width: 100%;
}

.diploma-item--horizontal .diploma-image {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: contain;
    object-position: center;
}

.diplomas-inline--mixed {
    grid-template-columns: 1fr 140px;
    gap: 1.25rem;
    align-items: start;
}

.diplomas-inline--mixed .diploma-item--horizontal {
    grid-column: 1;
}

.diplomas-inline--mixed .diploma-item--horizontal .diploma-image {
    max-height: 320px;
}

.diplomas-inline--mixed .diploma-item--vertical {
    grid-column: 2;
    width: 140px;
}

.diplomas-inline--mixed .diploma-item--vertical .diploma-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 400px;
}

@media (max-width: 500px) {
    .diplomas-inline--mixed {
        grid-template-columns: 1fr;
    }
    .diplomas-inline--mixed .diploma-item--vertical {
        grid-column: 1;
        width: 100%;
        max-width: 200px;
        justify-self: center;
    }
}

.diploma-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.diploma-fullscreen.active {
    opacity: 1;
    visibility: visible;
}

.diploma-fullscreen-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.diploma-fullscreen-img {
    max-width: 100%;
    max-height: 95vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    pointer-events: none;
}

.diploma-fullscreen-close {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    z-index: 3010;
    transition: background 0.2s;
}

.diploma-fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.35);
}

.diploma-fullscreen-prev,
.diploma-fullscreen-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 3010;
    transition: background 0.2s;
}

.diploma-fullscreen-prev { left: 16px; }
.diploma-fullscreen-next { right: 16px; }

.diploma-fullscreen-prev:hover,
.diploma-fullscreen-next:hover {
    background: rgba(255, 255, 255, 0.35);
}

.diploma-fullscreen-counter {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 20px;
    font-size: 0.95rem;
    z-index: 3010;
}

.science-inline-photo {
    margin: 3rem auto;
    max-width: 480px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.science-inline-photo img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 280px;
}

.science-section {
    background: var(--bg-white);
}

.science-intro {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 1.2rem;
    color: var(--text-light);
}

.science-description strong {
    color: var(--primary-color);
    font-weight: 600;
}

.subsection-title {
    font-size: 2rem;
    margin: 3rem 0 2rem;
    color: var(--text-dark);
    text-align: center;
}

.rationalization-section {
    margin: 4rem 0;
}

.rationalization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.rationalization-item {
    background: var(--bg-gradient);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
}

.rationalization-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.rationalization-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.rationalization-year {
    font-size: 1.2rem;
    color: var(--text-light);
}

.presentations-section {
    margin: 4rem 0;
}

.presentations-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.carousel-container {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    padding: 3rem;
    background: var(--bg-gradient);
    display: flex;
    gap: 2rem;
    align-items: center;
}

.presentation-year {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 100px;
}

.presentation-content h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.presentation-content p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.presentation-location {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.carousel-btn:hover {
    background: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
    left: -25px;
}

.carousel-btn-next {
    right: -25px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--secondary-color);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.videos-section {
    margin: 4rem 0;
}

.video-caption {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.25rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.video-single {
    position: relative;
    width: 100%;
    max-width: 853px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-single iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

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

.video-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.video-placeholder {
    aspect-ratio: 16/9;
    background: var(--bg-gradient);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    padding: 2rem;
    text-align: center;
}

.video-placeholder p {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.video-note {
    font-size: 0.9rem;
    color: var(--text-light);
}

.services-section {
    background: var(--bg-light);
}

.services-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.service-list-item {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.service-list-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.service-list-info {
    flex: 1;
}

.service-list-category {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}

.service-list-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: 700;
    margin: 0;
}

.service-list-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

.service-list-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-list-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.service-list-btn:hover::before {
    width: 300px;
    height: 300px;
}

.service-list-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), 0 0 20px rgba(13, 148, 136, 0.4);
}

.service-detail-modal {
    max-width: 700px;
}

.service-detail-content {
    margin-bottom: 2rem;
}

.service-detail-category {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.service-detail-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-detail-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.service-detail-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-style: italic;
    line-height: 1.7;
}

.service-detail-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-detail-features li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-light);
    line-height: 1.7;
}

.service-detail-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.service-detail-addon {
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.service-detail-duration {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 500;
    font-size: 1.05rem;
}

.service-detail-important {
    font-size: 0.95rem;
    color: var(--accent-color);
    background: var(--accent-soft);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--primary-color);
    line-height: 1.7;
}

.service-detail-appointment-btn {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.service-detail-appointment-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.service-detail-appointment-btn:hover::before {
    width: 300px;
    height: 300px;
}

.service-detail-appointment-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), 0 0 20px rgba(13, 148, 136, 0.4);
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal-content {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease-out;
    box-shadow: var(--shadow-lg);
}

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

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--text-dark);
    background: var(--bg-light);
}

.modal-content h2 {
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.success-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease, visibility 0.3s ease;
}

.success-toast.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.success-toast-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(13, 148, 136, 0.15);
    max-width: 420px;
}

.success-toast-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 50%;
}

.success-toast-text {
    flex: 1;
}

.success-toast-text strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.success-toast-text p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.4;
}

.success-toast-close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-light);
    color: var(--text-light);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
}

.success-toast-close:hover {
    background: var(--secondary-color);
    color: var(--primary-dark);
}

.appointment-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.form-row.contact-choice {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.radio-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
}

.radio-label input {
    width: auto;
}

.submit-btn {
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
}

.submit-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.telegram-link {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--bg-light);
    text-align: center;
}

.telegram-link p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.telegram-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #0088cc;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition);
}

.telegram-btn:hover {
    background: #006ba3;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.gallery-section {
    margin: 4rem 0;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
    background: var(--bg-white);
    min-height: 300px;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
    display: block;
    border-radius: 15px;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.gallery-fullscreen.active {
    opacity: 1;
    pointer-events: all;
}

.gallery-fullscreen-content {
    position: relative;
    width: 90%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-fullscreen-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.gallery-fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.gallery-fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.gallery-fullscreen-prev,
.gallery-fullscreen-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.gallery-fullscreen-prev {
    left: 20px;
}

.gallery-fullscreen-next {
    right: 20px;
}

.gallery-fullscreen-prev:hover,
.gallery-fullscreen-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.gallery-fullscreen-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 1rem;
    backdrop-filter: blur(10px);
}

.payment-section {
    background: var(--bg-light);
}

.payment-placeholder {
    text-align: center;
    padding: 4rem;
    background: var(--bg-white);
    border-radius: 20px;
    color: var(--text-light);
    box-shadow: var(--shadow-sm);
}

.payment-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.payment-placeholder h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.footer {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    padding: 2rem 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-copy {
    margin: 0;
    font-size: 0.95rem;
}

.footer-credits {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

.footer-team {
    font-family: 'Gogh', sans-serif;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-team:hover {
    color: #6667ab;
}

.footer-offer {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}
.footer-offer:hover {
    color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-img {
        max-width: min(400px, 70vw);
        margin: 0 auto;
    }

    .service-card {
        min-width: calc(50% - 1rem);
    }

    .timeline-item {
        padding-left: 2rem;
    }

    .timeline-item::before {
        left: 0;
    }

    .timeline-item::after {
        left: -8px;
    }
}

@media (max-width: 900px) {
    .navbar {
        min-height: 0;
    }

    .nav-container {
        padding: 0.6rem 16px;
    }

    .nav-burger {
        display: flex;
        z-index: 1002;
        position: relative;
    }

    .nav-dropdown {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        margin: 0;
        background: #fff;
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.25rem;
        padding: 72px 24px 32px;
        box-sizing: border-box;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 1001;
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    .navbar.is-open .nav-dropdown {
        pointer-events: auto;
        opacity: 1;
        visibility: visible;
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
        text-align: center;
        width: 100%;
        max-width: 280px;
    }

    .nav-link {
        display: block;
        padding: 1rem 1.25rem;
        font-size: 1.1rem;
        width: 100%;
        box-sizing: border-box;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .nav-link:last-of-type {
        border-bottom: none;
    }

    .nav-appointment {
        width: 100%;
        max-width: 280px;
        margin-top: 0.5rem;
        flex-shrink: 0;
    }

    .section {
        scroll-margin-top: 56px;
    }
}

@media (max-width: 768px) {
    .appointment-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .hero-img {
        max-width: 85vw;
        max-height: min(55vh, 380px);
    }

    .section-title {
        font-size: 2rem;
    }

    .image-grid {
        grid-template-columns: 1fr;
    }

    .service-list-header {
        flex-direction: column;
        gap: 1rem;
    }

    .service-list-price {
        font-size: 1.8rem;
    }

    .carousel-btn-prev,
    .services-carousel-btn-prev {
        left: -20px;
    }

    .carousel-btn-next,
    .services-carousel-btn-next {
        right: -20px;
    }

    .carousel-slide {
        flex-direction: column;
        text-align: center;
    }

    .presentation-year {
        min-width: auto;
    }

    .videos-grid {
        grid-template-columns: 1fr;
    }

    .rationalization-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .modal-content {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.oferta-page .nav-container {
    flex-wrap: wrap;
}
.oferta-page .nav-appointment {
    margin-left: auto;
}

.oferta-main {
    padding: 6rem 0 4rem;
    min-height: 100vh;
}
.oferta-container {
    max-width: 720px;
}
.oferta-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
}
.oferta-title {
    font-size: 1.75rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.oferta-meta {
    font-size: 0.95rem;
    color: var(--text-light);
}
.oferta-body {
    font-size: 0.9375rem;
    line-height: 1.7;
}
.oferta-intro {
    margin-bottom: 2rem;
    color: var(--text-dark);
}
.oferta-section {
    margin-bottom: 2rem;
}
.oferta-h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}
.oferta-p {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}
.oferta-p:last-child {
    margin-bottom: 0;
}
.oferta-link {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.oferta-link:hover {
    color: var(--primary-dark);
}
.oferta-rekv {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(13, 148, 136, 0.2);
}

.form-oferta-note {
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: var(--text-light);
    text-align: center;
    line-height: 1.5;
}
.form-oferta-note a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.form-oferta-note a:hover {
    color: var(--primary-dark);
}
