/* ==========================================================================
   DESIGN SYSTEM & CUSTOM FONTS
   ========================================================================== */

@font-face {
    font-family: 'Ekaterina Velikaya Two';
    src: url('assets/fonts/ekaterinavelikayatwo.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kreadon';
    src: url('assets/fonts/Kreadon-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kreadon';
    src: url('assets/fonts/Kreadon-Light.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kreadon';
    src: url('assets/fonts/Kreadon-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kreadon';
    src: url('assets/fonts/Kreadon-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kudry';
    src: url('assets/fonts/Kreadon-Bold.ttf') format('truetype');
    /* Заглушка, если нет Kudry */
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Kudry Weird Headline';
    src: url('assets/fonts/kudry_weird-headline.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Color Palette */
    --color-dark: #61564F;
    --color-dark-rgb: 97, 86, 79;
    --color-bg-light: #DCD4C9;
    --color-bg-light-rgb: 220, 212, 201;
    --color-beige: #D6CCC2;
    --color-beige-light: #F5EBE0;
    --color-accent: #C0AA93;
    --color-white: #FFFFFF;
    --color-white-rgb: 255, 255, 255;

    /* Fonts */
    --font-title: 'Ekaterina Velikaya Two', serif;
    --font-main: 'Kreadon', sans-serif;
    --font-kudry: 'Kudry Weird Headline', sans-serif;

    /* Transitions */
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-medium: all 0.4s ease;
    --transition-fast: all 0.2s ease-in-out;

    /* Shadow */
    --shadow-premium: 0 20px 40px rgba(97, 86, 79, 0.08);
    --shadow-soft: 0 10px 30px rgba(97, 86, 79, 0.04);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

html {
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg-light);
    color: var(--color-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
    overflow: hidden;
}

img,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button,
input,
textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
}

ul {
    list-style: none;
}

/* Common Layout Containers */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    width: 100%;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* Section Common Styles */
.section {
    padding: 120px 0;
    position: relative;
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }
}

.section-title {
    font-family: var(--font-title);
    font-size: 4rem;
    /* 64px */
    font-weight: 400;
    text-align: center;
    margin-bottom: 100px;
    color: var(--color-dark);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

@media (max-width: 992px) {
    .section-title {
        font-size: 3rem;
        margin-bottom: 40px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2.25rem;
        margin-bottom: 30px;
    }
}

/* ==========================================================================
   BUTTONS & UI ELEMENTS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-main);
    font-weight: 500;
    text-align: center;
    border-radius: 100px;
    transition: var(--transition-medium);
    letter-spacing: 0.05em;
}

.btn-cta {
    background-color: var(--color-dark);
    color: var(--color-bg-light);
    font-size: 1.25rem;
    /* 20px */
    padding: 20px 48px;
    border: 1px solid var(--color-dark);
    width: 100%;
    max-width: 742px;
}

.btn-cta:hover {
    background-color: transparent;
    color: var(--color-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(97, 86, 79, 0.1);
}

.btn-cta:active {
    transform: translateY(0);
}

/* ==========================================================================
   HEADER (NAVIGATION)
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(227, 223, 215, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(97, 86, 79, 0.05);
    transition: var(--transition-medium);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
}

.logo {
    font-family: var(--font-title);
    font-size: 1.5rem;
    /* 24px */
    color: var(--color-dark);
    font-weight: 400;
    z-index: 101;
    letter-spacing: -0.01em;
}

.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-family: var(--font-main);
    font-size: 1.5rem;
    /* 24px */
    font-weight: 400;
    color: var(--color-dark);
    position: relative;
    padding: 5px 0;
}

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

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

/* Burger Button */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    z-index: 101;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-dark);
    transition: var(--transition-medium);
    transform-origin: left center;
}

@media (max-width: 992px) {
    .burger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--color-bg-light);
        z-index: 100;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition-smooth);
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .burger.active span:nth-child(1) {
        transform: rotate(45deg);
        position: relative;
        top: -1px;
    }

    .burger.active span:nth-child(2) {
        width: 0%;
        opacity: 0;
    }

    .burger.active span:nth-child(3) {
        transform: rotate(-45deg);
        position: relative;
        top: 1px;
    }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
    padding-top: 180px;
    padding-bottom: 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 0 0 0 120px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    filter: sepia(10%) contrast(95%);
    transition: var(--transition-smooth);
    border-radius: 0 0 0 120px;
}

.hero-image-wrapper:hover .hero-image {
    transform: scale(1.03);
}

.hero-content {
    display: flex;
    flex-direction: column;
}

.hero-quote {
    font-size: 1.5rem;
    /* ~24px */
    font-weight: 200;
    line-height: 1.6;
    margin-bottom: 50px;
    color: var(--color-dark);
    position: relative;
    font-style: italic;
    opacity: 0.9;
}

.hero-quote::before {
    content: '“';
    font-family: var(--font-title);
    font-size: 5rem;
    position: absolute;
    top: -40px;
    left: -30px;
    color: rgba(97, 86, 79, 0.08);
}

.hero-name {
    font-family: var(--font-main);
    font-size: 5rem;
    /* 80px */
    font-weight: 200;
    line-height: 1.1;
    margin-bottom: 10px;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-family: var(--font-title);
    font-size: 3.5rem;
    /* 56px */
    font-weight: 400;
    color: var(--color-dark);
    margin-bottom: 50px;
    line-height: 1.1;
    opacity: 0.85;
}

.hero-stats {
    display: flex;
    gap: 60px;
    margin-bottom: 60px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 4.5rem;
    /* 72px */
    font-weight: 200;
    line-height: 1;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.stat-text {
    font-size: 0.95rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(97, 86, 79, 0.7);
}

@media (max-width: 1200px) {
    .hero-name {
        font-size: 4rem;
    }

    .hero-subtitle {
        font-size: 2.75rem;
    }

    .stat-num {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-content {
        text-align: center;
        align-items: center;
    }

    .hero-quote::before {
        left: 50%;
        transform: translateX(-50%);
        top: -30px;
    }

    .hero-stats {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-name {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .stat-num {
        font-size: 3rem;
    }

    .hero-quote {
        font-size: 1.2rem;
    }
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */

.about-section {
    background-color: var(--color-beige-light);
    background-image: url('assets/images/bg-about.svg');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.about-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content {
    display: flex;
    flex-direction: column;
}

.about-title {
    font-family: var(--font-title);
    font-size: 4rem;
    font-weight: 400;
    margin-bottom: 60px;
    line-height: 1.1;
}

.about-text p {
    font-size: 1.5625rem;
    /* 25px */
    font-weight: 200;
    line-height: 1.3;
    /* 32.5px */
    margin-bottom: 30px;
    color: rgba(97, 86, 79, 0.95);
}

.about-text p.about-highlight {
    font-weight: 500;
    font-style: italic;
    color: var(--color-dark);
    margin-top: 10px;
}

.about-image-wrapper {
    position: relative;
    box-shadow: var(--shadow-premium);
    border-radius: 0 120px 120px 0;
    overflow: hidden;
}

.about-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    filter: sepia(5%) contrast(98%);
    border-radius: 0 120px 120px 0;
}

@media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }

    .about-title {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .about-title {
        font-size: 2.5rem;
    }

    .about-text p {
        font-size: 1.15rem;
    }
}

/* ==========================================================================
   PROBLEMS SECTION (WHAT I WORK WITH)
   ========================================================================== */

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

.problems-cloud {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1360px;
    margin: 40px auto 80px;
    position: relative;
}

.problem-circle {
    width: 477px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -20px -20px;
    transition: var(--transition-smooth);
    z-index: 2;
    position: relative;
}

.problem-circle::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    padding: 1px;
    background: linear-gradient(to bottom, #61564F, #D6CCC2);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.problem-circle:hover {
    transform: translateY(-8px) scale(1.02);
    z-index: 5;
}

/* Создаем красивый внутренний концентрический круг */
.circle-inner {
    width: 80%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background-color: var(--color-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    transition: var(--transition-smooth);
}

.problem-circle:hover .circle-inner {
    background-color: var(--color-beige-light);
}

.problem-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.problem-list li {
    font-size: 1.5rem;
    /* 24px */
    font-weight: 300;
    line-height: 1.35;
    color: var(--color-dark);
}

.problems-footer {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.problems-footer p {
    font-size: 2rem;
    /* 32px */
    font-weight: 300;
    line-height: 1.5;
    color: var(--color-dark);
}

.problems-footer p.accent-text {
    font-weight: 500;
    color: var(--color-dark);
    margin-top: 10px;
    opacity: 0.9;
}

@media (max-width: 1400px) {
    .problems-cloud {
        max-width: 1000px;
    }

    .problem-circle {
        width: 380px;
    }

    .circle-inner {
        width: 80%;
    }

    .problem-list li {
        font-size: 1rem;
        gap: 10px;
    }
}

@media (max-width: 992px) {
    .problems-cloud {
        max-width: 800px;
        gap: 20px;
    }

    .problem-circle {
        margin: 0;
        width: 340px;
    }

    .circle-inner {
        width: 80%;
    }
}

@media (max-width: 768px) {
    .problems-cloud {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .problem-circle {
        width: 100%;
        max-width: 360px;
    }

    .circle-inner {
        width: 80%;
    }
}

/* ==========================================================================
   HOW I WORK SECTION
   ========================================================================== */

.how-section {
    background-color: var(--color-beige-light);
}

.how-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    background-color: #E3DFD7;
    border-radius: 60px;
    padding: 80px 60px;
    box-shadow: 12px 15px 40px rgba(93, 80, 72, 0.15);
}

.how-intro {
    display: flex;
    flex-direction: column;
}

.how-title {
    font-family: var(--font-title);
    font-size: 4rem;
    font-weight: 400;
    margin-bottom: 80px;
    line-height: 1.1;
}

.how-intro-text {
    font-size: 2rem;
    /* 32px */
    font-weight: 200;
    line-height: 1.6;
    margin-bottom: 30px;
    color: rgba(97, 86, 79, 0.95);
}

.how-intro-accent {
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-dark);
    font-style: italic;
    opacity: 0.9;
}

.how-steps {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.step-item {
    display: flex;
    gap: 40px;
    padding: 30px 0;
    border-bottom: 1px solid rgba(97, 86, 79, 0.1);
    align-items: flex-start;
    transition: var(--transition-medium);
}

.step-item:first-child {
    padding-top: 10px;
}

.step-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.step-item:hover {
    transform: translateX(10px);
}

.step-num {
    font-size: 8.75rem;
    /* 140px */
    font-weight: 200;
    line-height: 1;
    color: var(--color-dark);
    opacity: 0.3;
    font-family: var(--font-kudry);
    transition: var(--transition-medium);
}

.step-item:hover .step-num {
    opacity: 0.8;
    color: var(--color-accent);
}

.step-content p {
    font-size: 1.25rem;
    font-weight: 200;
    line-height: 1.6;
    color: var(--color-dark);
}

@media (max-width: 992px) {
    .how-container {
        grid-template-columns: 1fr;
        gap: 60px;
        padding: 50px 30px;
        border-radius: 40px;
    }

    .how-title {
        text-align: center;
    }

    .how-intro {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .how-container {
        padding: 40px 20px;
        border-radius: 30px;
    }

    .step-item {
        flex-direction: column;
        gap: 15px;
    }

    .step-num {
        font-size: 3rem;
    }

    .step-content p {
        font-size: 1.1rem;
    }

    .how-intro-text {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   PRICING SECTION
   ========================================================================== */

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

.pricing-circles {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1360px;
    margin: 40px auto 0;
    position: relative;
}

.price-circle {
    width: 693px;
    height: 693px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    transition: var(--transition-smooth);
    position: relative;
    background-color: transparent;
}

.price-circle::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    padding: 1px;
    background: linear-gradient(to bottom, #61564F, #D6CCC2);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.circle-ind {
    margin-right: -20px;
    z-index: 2;
    color: var(--color-dark);
}

.circle-couple {
    margin-left: -20px;
    z-index: 1;
    color: var(--color-dark);
}

.circle-bg-num {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 74%;
    width: auto;
    filter: invert(35%) sepia(10%) saturate(670%) hue-rotate(341deg) brightness(97%) contrast(87%);
    opacity: 1;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

.price-circle:hover {
    transform: scale(1.03);
    z-index: 3;
    box-shadow: 0 40px 80px rgba(97, 86, 79, 0.15);
}

.price-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.price-type {
    font-size: 2rem;
    /* 32px */
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: 30px;
    line-height: 1.2;
    z-index: 1;
}

.price-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
    z-index: 1;
}

.price-main {
    font-size: 2rem;
    /* 32px */
    font-weight: 200;
    line-height: 1.3;
    z-index: 1;
}

.price-sub {
    font-size: 2rem;
    /* 32px */
    font-weight: 200;
    opacity: 0.8;
    z-index: 1;
}

@media (max-width: 1200px) {
    .price-circle {
        width: 520px;
        height: 520px;
        padding: 40px;
    }

    .price-type {
        font-size: 1.6rem;
    }

    .price-main {
        font-size: 1.4rem;
    }

    .price-sub {
        font-size: 1.15rem;
    }
}

@media (max-width: 992px) {
    .pricing-circles {
        flex-direction: column;
        gap: 40px;
    }

    .price-circle {
        margin: 0 !important;
        width: 100%;
        max-width: 500px;
        height: 500px;
    }
}

@media (max-width: 576px) {
    .price-circle {
        max-width: 340px;
        height: 340px;
        padding: 25px;
    }

    .price-type {
        font-size: 1.25rem;
        margin-bottom: 20px;
    }

    .price-main {
        font-size: 1.1rem;
    }

    .price-sub {
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   DIAGNOSTIC SECTION
   ========================================================================== */

.diagnostic-section {
    background-color: var(--color-beige-light);
}

.diag-card {
    background-color: #E3DFD7;
    border-radius: 60px;
    padding: 80px 60px;
    box-shadow: 12px 15px 40px rgba(93, 80, 72, 0.15);
    margin-bottom: 50px;
    text-align: left;
}

.diag-card .diag-details {
    margin-bottom: 30px;
}

.diagnostic-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.diag-text {
    font-size: 1.75rem;
    /* ~28px */
    font-weight: 200;
    line-height: 1.6;
    margin-bottom: 60px;
    color: var(--color-dark);
}

.diag-details {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-bottom: 60px;
    text-align: left;
}

.diag-detail-item {
    font-size: 1.35rem;
    font-weight: 200;
    line-height: 1.5;
    flex: 1;
}

.diag-detail-item strong {
    font-weight: 500;
}

.diag-note {
    font-size: 1.1rem;
    font-weight: 200;
    opacity: 0.8;
    text-align: center;
}

@media (max-width: 992px) {
    .diag-card {
        padding: 50px 30px;
        border-radius: 40px;
    }

    .diag-text {
        font-size: 1.4rem;
    }

    .diag-details {
        flex-direction: column;
        gap: 30px;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .diag-card {
        padding: 40px 20px;
        border-radius: 30px;
    }

    .diag-text {
        font-size: 1.2rem;
    }

    .diag-detail-item {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   EDUCATION SECTION (SLIDER)
   ========================================================================== */

.education-section {
    background-color: var(--color-beige-light);
    background-image: url('assets/images/bg-education.svg');
    background-size: cover;
    background-position: center;
}

.education-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.education-title {
    font-family: var(--font-title);
    font-size: 4rem;
    font-weight: 400;
    margin-bottom: 60px;
    line-height: 1.1;
}

.education-subtitle {
    font-size: 1.5rem;
    font-weight: 200;
    line-height: 1.6;
    margin-bottom: 60px;
    color: rgba(97, 86, 79, 0.95);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Slider Layout */
.slider-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.slider-container {
    flex: 1;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.3;
    transition: var(--transition-medium);
}

.slide.active {
    opacity: 1;
}

.certificate-img {
    max-width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: contain;
}

.slider-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    transition: var(--transition-medium);
    flex-shrink: 0;
}

.slider-btn img {
    width: 24px;
    height: 24px;
    transition: var(--transition-fast);
}

.slider-btn:hover {
    background-color: var(--color-dark);
}

.slider-btn:hover img {
    filter: invert(90%) sepia(10%) saturate(100%) hue-rotate(180deg);
}

@media (max-width: 768px) {
    .slider-wrapper {
        gap: 20px;
    }

    .slider-btn {
        width: 45px;
        height: 45px;
    }

    .education-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .slider-wrapper {
        flex-direction: column;
    }

    .slider-btn {
        display: none !important;
        /* На моб. лучше свайп, но пока просто скроем кнопки */
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background-color: var(--color-dark);
    color: var(--color-bg-light);
    padding: 100px 0 40px;
    border-top: 1px solid rgba(227, 223, 215, 0.1);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 80px;
    margin-bottom: 80px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    font-family: var(--font-main);
    font-size: 2.5rem;
    /* 40px */
    color: var(--color-bg-light);
    font-weight: 100;
    margin-bottom: 10px;
}

.footer-tagline {
    font-family: var(--font-main);
    font-size: 2rem;
    /* 32px */
    font-weight: 100;
    opacity: 0.7;
    margin-left: 5px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-nav a {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--color-bg-light);
    opacity: 0.8;
}

.footer-nav a:hover {
    opacity: 1;
    transform: translateX(5px);
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-end;
}

.contact-link {
    font-size: 1.5rem;
    font-weight: 300;
    transition: var(--transition-fast);
}

.contact-link:hover {
    color: var(--color-accent);
}

.socials-container {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--color-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-medium);
}

.social-link:hover {
    background-color: var(--color-bg-light);
    color: var(--color-dark);
    transform: translateY(-3px);
}

.social-icon-svg {
    width: 50px;
    height: 50px;
}

.social-icon-img {
    width: 24px;
    height: 24px;
    transition: var(--transition-fast);
}

.social-link:hover .social-icon-img {
    filter: brightness(0.2);
}

.footer-bottom {
    border-top: 1px solid rgba(227, 223, 215, 0.1);
    padding-top: 40px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.5;
}

@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .footer-contacts {
        align-items: center;
    }
}

/* ==========================================================================
   MODAL WINDOW & FORM
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(97, 86, 79, 0.4);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-medium);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-window {
    background-color: var(--color-bg-light);
    width: 100%;
    max-width: 600px;
    padding: 60px;
    box-shadow: 0 30px 60px rgba(97, 86, 79, 0.2);
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: var(--transition-smooth);
    border: 1px solid rgba(97, 86, 79, 0.1);
}

.modal-window.popup-image-content {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    max-width: 480px;
    width: 90%;
}

.popup-image-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.popup-img {
    width: 100%;
    height: auto;
    display: block;
}

.popup-link {
    position: absolute;
    display: block;
    cursor: pointer;
    left: 10%;
    right: 10%;
}

.popup-link-tel {
    top: 66%;
    height: 7%;
}

.popup-link-email {
    top: 75%;
    height: 7%;
}

.popup-link-tg {
    left: 41%;
    width: 7%;
    right: auto;
    top: 86%;
    height: 10%;
}

.popup-link-vk {
    left: 52%;
    width: 7%;
    right: auto;
    top: 86%;
    height: 10%;
}

.popup-image-content .modal-close {
    color: var(--color-bg-light);
    opacity: 0.7;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.popup-image-content .modal-close:hover {
    color: #fff;
    opacity: 1;
}

.modal-overlay.active .modal-window {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2.5rem;
    line-height: 1;
    color: var(--color-dark);
    opacity: 0.5;
    transition: var(--transition-fast);
}

.modal-close:hover {
    opacity: 1;
}

.modal-title {
    font-family: var(--font-title);
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.modal-desc {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.8;
}

.callback-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

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

.form-group label {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.8;
}

.form-group input,
.form-group textarea {
    background-color: var(--color-white);
    border: 1px solid rgba(97, 86, 79, 0.15);
    padding: 15px 20px;
    font-family: var(--font-main);
    color: var(--color-dark);
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-dark);
    box-shadow: 0 0 10px rgba(97, 86, 79, 0.05);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #E07A5F;
    background-color: rgba(224, 122, 95, 0.03);
}

.btn-submit {
    background-color: var(--color-dark);
    color: var(--color-bg-light);
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 15px;
    border: 1px solid var(--color-dark);
}

.btn-submit:hover {
    background-color: transparent;
    color: var(--color-dark);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Success State */
.form-success {
    text-align: center;
    padding: 40px 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--color-dark);
    color: var(--color-bg-light);
    font-size: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.form-success h4 {
    font-size: 1.75rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.form-success p {
    font-size: 1.15rem;
    opacity: 0.8;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .modal-window {
        padding: 40px 20px;
    }

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

/* ==========================================================================
   LIGHTBOX MODAL (CERTIFICATE ZOOM)
   ========================================================================== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(97, 86, 79, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-medium);
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.95);
    transition: var(--transition-smooth);
}

.lightbox-overlay.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.lightbox-close {
    position: absolute;
    top: 40px;
    right: 40px;
    font-size: 4rem;
    line-height: 1;
    color: var(--color-bg-light);
    opacity: 0.7;
    transition: var(--transition-fast);
    cursor: pointer;
    background: none;
    border: none;
}

.lightbox-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 3rem;
    }
}

/* Tooltip copy confirmation */
.copy-tooltip {
    position: absolute;
    background-color: var(--color-dark);
    color: var(--color-bg-light);
    padding: 8px 16px;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 500;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.copy-tooltip.active {
    opacity: 1;
    transform: translateY(0);
}