/* =========================================
   БАЗОВІ НАЛАШТУВАННЯ
========================================= */

:root {
    --bg-main: #FAFAFA;
    --bg-blue: #EAF4FF;
    --bg-mint: #DDF5F0;
    --bg-beige: #F8F1E7;

    --text-dark: #333333;
    --text-muted: #666666;

    --accent-blue: #4A90E2;
    --accent-blue-hover: #357ABD;

    --white: #FFFFFF;

    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.04);
    --shadow-medium: 0 15px 40px rgba(74, 144, 226, 0.1);

    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;

    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Manrope', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================
   КНОПКИ
========================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(74, 144, 226, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-blue-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
}

.btn-outline:hover {
    background-color: var(--bg-blue);
    transform: translateY(-2px);
}

/* =========================================
   HEADER
========================================= */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(250, 250, 250, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.03);
    padding: 16px 0;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--accent-blue);
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-muted);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-blue);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.header-phone {
    font-weight: 600;
    font-size: 16px;
}

.messengers {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.msg-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    transition: 0.3s;
}

.msg-icon:hover {
    transform: scale(1.1);
}

.tg { background-color: #26A5E4; }
.viber { background-color: #7360F2; }
.wa { background-color: #25D366; }
.ig {
    background: linear-gradient(
        45deg,
        #F58529,
        #DD2A7B,
        #8134AF,
        #515BD4
    );
}

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.burger-line {
    width: 28px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* =========================================
   HERO
========================================= */

.hero {
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        var(--bg-blue) 0%,
        var(--bg-mint) 100%
    );
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: start;
}

.hero-heading,
.hero-body {
    position: relative;
    z-index: 2;
}

.hero-heading {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.hero-image-wrapper {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
}

.hero-body {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.tag {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--white);
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 24px;
    box-shadow: var(--shadow-soft);
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.hero-desc {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 540px;
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 32px;
    max-width: 540px;
}

.hero-highlight {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(74, 144, 226, 0.1);
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    font-family: 'Manrope', sans-serif;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.08);
}

.hero-highlight i {
    color: var(--accent-blue);
    font-size: 14px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: min(430px, 100%);
    max-width: 430px;
    margin: 0 auto;
}

.hero-circle-bg {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    background: var(--bg-beige);
    border-radius: 0 0 220px 220px;
    z-index: 1;
}

.hero-img {
    position: relative;
    z-index: 2;
    border-radius: 0 0 200px 200px;
    width: 100%;
    height: auto;
    object-fit: cover;
    background-color: transparent;
    box-shadow: 0 20px 45px rgba(0,0,0,0.12);
}

/* =========================================
   СЕКЦІЯ ПРО МЕНЕ
========================================= */

.section {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: stretch;
}

.about-image {
    background-color: var(--bg-beige);
    border-radius: var(--radius-lg);
    padding: 22px;
    position: relative;
    height: 100%;
    display: flex;
}

.about-photo {
    width: 100%;
    height: 100%;
    min-height: 480px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.experience-badge {
    position: absolute;
    bottom: 40px;
    right: -20px;
    background-color: var(--white);
    padding: 20px 24px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-medium);
    text-align: center;
}

.exp-num {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-blue);
    line-height: 1;
}

.exp-text {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;
}

.about-text {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 16px;
}

.education-item {
    display: flex;
    flex-direction: column;
}

.education-item p {
    flex: 1;
    display: flex;
    align-items: center;
}

/* =========================================
   КВАЛІФІКАЦІЇ
========================================= */

.qualifications {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
}

.q-item {
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--accent-blue);
}

.q-item h4 {
    margin-bottom: 8px;
    font-size: 16px;
}

.q-item p {
    font-size: 14px;
    color: var(--text-muted);
}

/* =========================================
   МАЛЕНЬКА ГАЛЕРЕЯ СЕРТИФІКАТІВ
========================================= */

.certificates {
    min-width: 0;
}

.certificate-slider {
    width: 100%;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.certificate-image-container {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f7f7f7;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.certificate-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.certificate-image:hover {
    transform: scale(1.02);
}

.cert-prev,
.cert-next {
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.cert-prev:hover,
.cert-next:hover {
    background-color: var(--accent-blue);
    color: var(--white);
    transform: scale(1.08);
}

/* =========================================
   ВЕЛИКА ГАЛЕРЕЯ
========================================= */

.certificate-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 60px 90px;
    z-index: 9999;
}

.certificate-modal.active {
    display: flex;
}

.modal-certificate-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-certificate-container img {
    max-width: 85vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    user-select: none;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 34px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.close-modal:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.08);
}

.modal-prev,
.modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.modal-prev { left: 25px; }
.modal-next { right: 25px; }

.modal-prev:hover,
.modal-next:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.08);
}

/* =========================================
   СЕКЦІЯ ПОСЛУГИ
========================================= */

.bg-light {
    background-color: #F4F8FC;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header p {
    color: var(--text-muted);
    margin-top: 12px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.service-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.01);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.service-icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    border-radius: var(--radius-sm);
    background-color: var(--bg-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 24px;
    flex-shrink: 0;
}

.service-card:nth-child(even) .service-icon {
    background-color: var(--bg-mint);
}

.service-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    height: 84px;
    overflow: hidden;
}

.service-desc {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 24px;
    flex-grow: 1;
    margin-top: 16px;
}

.service-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #F0F0F0;
    margin-top: auto;
}

.service-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    flex-shrink: 0;
}

.service-price span {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
}

.service-footer .btn {
    flex-shrink: 0;
}

/* =========================================
   ВІДГУКИ
========================================= */

.reviews-carousel {
    position: relative;
}

.reviews-grid {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 2px 16px;
    scrollbar-width: thin;
}

.review-card {
    flex: 0 0 calc((100% - 48px) / 3);
    scroll-snap-align: start;
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
}

.reviews-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--white);
    color: var(--accent-blue);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    z-index: 2;
}

.reviews-arrow.is-hidden {
    display: none;
}

.reviews-arrow:hover {
    background: var(--accent-blue);
    color: var(--white);
}

.reviews-prev { left: -22px; }
.reviews-next { right: -22px; }

.mobile-only-link {
    display: none;
}

.review-stars {
    color: #FFC107;
    margin-bottom: 16px;
    font-size: 18px;
}

.review-text {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 24px;
    font-style: italic;
    flex-grow: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: auto;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--bg-beige);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-dark);
}

.author-info h5 {
    font-size: 16px;
    font-weight: 600;
}

.author-info p {
    font-size: 13px;
    color: var(--text-muted);
}

/* =========================================
   ЧОМУ САМЕ Я
========================================= */

.why-me {
    background-color: #F4F8FC;
}

.why-me-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.why-me-header .section-title {
    margin-bottom: 12px;
}

.why-me-header p {
    color: var(--text-muted);
    line-height: 1.7;
}

.why-me-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    counter-reset: whyme-item;
    max-width: 1100px;
    margin: 0 auto;
}

.why-me-item {
    background-color: var(--white);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    text-align: left;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-height: 120px;
}

.why-me-item::before {
    counter-increment: whyme-item;
    content: counter(whyme-item) ".";
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 22px;
    line-height: 1.2;
    flex-shrink: 0;
    margin-top: 2px;
}

.why-me-item p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.why-me-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

/* =========================================
   З ЯКИМИ ЗАПИТАМИ Я ПРАЦЮЮ
========================================= */

.requests {
    background-color: var(--bg-main);
}

.requests-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.requests-header .section-title {
    margin-bottom: 12px;
}

.requests-intro {
    color: var(--text-muted);
    font-size: 16px;
}

.requests-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.requests-card {
    background-color: var(--white);
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--accent-blue);
    color: var(--text-dark);
}

.requests-card h3 {
    margin-bottom: 20px;
}

.requests-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.requests-list li {
    position: relative;
    padding-left: 28px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.requests-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 18px;
}

/* =========================================
   КОНТАКТИ
========================================= */

.contact-section {
    background-color: #F4F8FC;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch;
}

.contact-main {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-soft);
}

.contact-label {
    display: inline-block;
    color: var(--accent-blue);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.contact-title {
    font-size: 36px;
    line-height: 1.25;
    margin-bottom: 16px;
}

.contact-description {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 500px;
}

.contact-phone-block {
    padding: 24px;
    background-color: var(--bg-blue);
    border-radius: var(--radius-md);
    margin-bottom: 32px;
}

.contact-phone-label {
    display: block;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 6px;
}

.contact-phone {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
    font-size: 26px;
    font-weight: 700;
}

.contact-phone i {
    color: var(--accent-blue);
    font-size: 24px;
}

.contact-phone:hover {
    color: var(--accent-blue);
}

.contact-call-btn {
    margin-top: 16px;
}

.contact-messengers-title {
    font-size: 18px;
    margin-bottom: 16px;
}

.contact-messengers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.contact-messenger {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: var(--radius-md);
    color: var(--white);
    transition: var(--transition);
}

.contact-messenger:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.contact-messenger i {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.2);
    font-size: 20px;
}

.contact-messenger-content {
    display: flex;
    flex-direction: column;
}

.contact-messenger-name {
    font-size: 15px;
    font-weight: 700;
}

.contact-messenger-text {
    font-size: 12px;
    opacity: 0.85;
}

.contact-messenger.tg { background-color: #26A5E4; }
.contact-messenger.viber { background-color: #7360F2; }
.contact-messenger.wa { background-color: #25D366; }
.contact-messenger.ig {
    background: linear-gradient(
        45deg,
        #F58529,
        #DD2A7B,
        #8134AF,
        #515BD4
    );
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-soft);
}

.contact-info-card h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    margin-bottom: 12px;
}

.contact-info-card h3 i {
    color: var(--accent-blue);
    font-size: 22px;
}

.contact-info-card p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
}

.contact-address {
    display: inline-block;
    color: var(--text-muted);
}

.contact-address:hover {
    color: var(--accent-blue);
}

/* =========================================
   КАРТА — ЗАТЕМНЕНА + КНОПКА
========================================= */

.contact-map-wrapper {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 16px;
}

.contact-map {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.contact-map-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
    pointer-events: none;
}

.contact-map-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 28px;
    background: #ffffff;
    color: #333333;
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.contact-map-button:hover {
    transform: translate(-50%, -50%) translateY(-3px);
    background: #f8f8f8;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.contact-map-button i {
    font-size: 16px;
}

/* =========================================
   FOOTER
========================================= */

.footer {
    background-color: #1A1A1A;
    color: #FFFFFF;
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 0.6fr 0.8fr 0.6fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid #333333;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-logo span {
    color: var(--accent-blue);
}

.footer-desc {
    color: #999999;
    font-size: 14px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: #999999;
    font-size: 14px;
}

.footer-link:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666666;
    font-size: 14px;
}

/* =========================================
   АДАПТИВНІСТЬ (MEDIA QUERIES)
========================================= */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 38px;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .why-me-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 760px;
    }
}

@media (max-width: 768px) {
    /* HEADER */
    .mobile-only-link {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        padding: 40px 24px;
        gap: 24px;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .burger-menu {
        display: flex;
    }

    .header-actions .btn {
        display: none;
    }

    /* HERO */
    .hero-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "heading"
            "image"
            "body";
        text-align: center;
        gap: 24px;
    }

    .hero-heading { grid-area: heading; }

    .hero-image-wrapper {
        grid-area: image;
        margin: 0 auto;
        width: min(320px, 100%);
        max-width: 320px;
    }

    .hero-body { grid-area: body; }

    .hero-desc {
        margin: 0 auto 24px;
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
    }

    .hero-circle-bg {
        width: calc(100% - 16px);
        height: calc(100% - 16px);
        border-radius: 0 0 200px 200px;
    }

    .hero-img {
        max-width: 100%;
        border-radius: 0 0 200px 200px;
    }

    /* QUALIFICATIONS */
    .qualifications {
        grid-template-columns: 1fr;
    }

    /* REVIEWS */
    .reviews-carousel {
        padding: 0 10px;
    }

    .reviews-grid {
        display: flex;
        flex-direction: row;
        gap: 0;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scrollbar-width: none;
        padding: 4px 0 16px;
    }

    .reviews-grid::-webkit-scrollbar {
        display: none;
    }

    .review-card {
        flex: 0 0 100%;
        width: 100%;
        scroll-snap-align: start;
        padding: 24px;
        min-height: 360px;
    }

    .reviews-arrow {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        top: 50%;
        z-index: 5;
        padding: 0;
        line-height: 1;
    }

    .reviews-prev { left: -5px; }
    .reviews-next { right: -5px; }

    /* WHY ME & REQUESTS */
    .why-me-header {
        margin-bottom: 30px;
    }

    .why-me-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .why-me-item {
        padding: 20px;
        min-height: auto;
    }

    .requests-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .requests-card {
        padding: 24px 20px;
    }

    /* CONTACTS */
    .contact-main {
        padding: 32px 24px;
    }

    .contact-title {
        font-size: 30px;
    }

    .contact-phone {
        font-size: 22px;
    }

    .contact-messengers {
        grid-template-columns: 1fr;
    }

    .contact-info-card {
        padding: 24px 20px;
    }

    .contact-map-wrapper {
        height: 280px;
    }

    .contact-map-button {
        padding: 13px 22px;
        font-size: 15px;
    }

    /* FOOTER */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    /* MESSENGERS & TAGS */
    .messengers {
        gap: 6px;
    }

    .msg-icon {
        width: 30px;
        height: 30px;
        font-size: 15px;
    }

    .tag {
        font-size: 14px;
        padding: 6px 12px;
        border-radius: 18px;
        margin-bottom: 18px;
    }

    /* GALLERIES */
    .certificate-slider {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
        gap: 6px;
    }

    .certificate-image-container {
        height: 200px;
    }

    .cert-prev,
    .cert-next {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .certificate-modal {
        padding: 60px 50px;
    }

    .modal-certificate-container img {
        max-width: 90vw;
        max-height: 80vh;
    }

    .modal-prev,
    .modal-next {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .modal-prev { left: 8px; }
    .modal-next { right: 8px; }

    .close-modal {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
}