/* Reset & Variables */
:root {
    --primary-color: #1F2937;
    /* Deep Slate / Charcoal */
    --secondary-color: #374151;
    --accent-color: #bfa07d;
    /* Soft Gold from new design */
    --accent-hover: #9c6e4b;
    --bg-light: #fcf9f5;
    /* Creamy white background */
    --bg-white: #FFFFFF;
    --text-main: #332822;
    /* Набагато темніший коричневий для читабельності */
    --text-muted: #554b44;
    --font-heading: 'Lora', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: 0.3s ease-in-out;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --border-radius: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 500;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

.section {
    padding: 100px 0;
}

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

.section-subtitle {
    display: block;
    color: var(--accent-color);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-desc {
    max-width: 600px;
    margin: 0 auto 50px;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 30px;
    font-weight: 500;
    font-family: var(--font-body);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--accent-color);
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: #fff;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.4s ease;
    background: transparent;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: var(--glass-shadow);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--bg-white);
}

.logo span {
    color: var(--accent-color);
}

.navbar.scrolled .logo,
.navbar.scrolled .nav-links a {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--bg-white);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

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

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

.navbar.scrolled .btn-outline {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.navbar.scrolled .btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.burger-menu {
    display: none;
    cursor: pointer;
}

.burger-menu .line {
    width: 25px;
    height: 3px;
    background-color: var(--bg-white);
    margin: 5px;
    transition: var(--transition);
}

.navbar.scrolled .burger-menu .line {
    background-color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    background: url('images/banner.jpg') center center / cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(20, 15, 10, 0.85) 0%, rgba(20, 15, 10, 0.5) 50%, rgba(20, 15, 10, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    color: #fff;
    text-align: left;
    padding-bottom: 40px;
    margin-left: 60px;
    margin-right: auto;
}

.hero-content h1,
.hero-content p,
.hero-content .hero-buttons {
    max-width: 650px;
    margin-left: 0;
    margin-right: auto;
}

.hero h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 25px;
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* Hero buttons like reference */
.btn-hero-primary {
    background-color: #b48560;
    color: #fff !important;
    border: 2px solid #b48560;
    padding: 14px 35px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-hero-primary:hover {
    background-color: #9a7050;
    border-color: #9a7050;
}

.btn-hero-outline {
    background-color: transparent;
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.6);
    padding: 14px 35px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-hero-outline:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 60%;
    height: 60%;
    background-color: var(--accent-color);
    opacity: 0.1;
    border-radius: var(--border-radius);
    z-index: -1;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 5px;
    line-height: 1.2;
}

.stat-item .stat-degree {
    font-size: 1.3rem !important;
    line-height: 1.3;
}

.stat-item p {
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
}

@media (max-width: 992px) {
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px 10px;
    }

    /* Move degree to the next row and full width */
    .stat-item:nth-child(3) {
        order: 4;
        grid-column: 1 / -1;
    }

    /* Move 100% block to the 3rd spot */
    .stat-item:nth-child(4) {
        order: 3;
    }

    .stat-item h3 {
        font-size: 1.8rem;
    }

    .stat-item .stat-degree {
        font-size: 1.3rem !important;
    }

    .stat-item p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .stats {
        gap: 15px 5px;
    }

    .stat-item h3 {
        font-size: 1.4rem;
    }

    .stat-item .stat-degree {
        font-size: 1.2rem !important;
    }

    .stat-item p {
        font-size: 0.65rem;
        word-break: normal;
        hyphens: auto;
    }
}

/* Services Section */
.bg-light {
    background-color: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid #e8e0d8;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 250px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-color);
}

.service-icon {
    width: 55px;
    height: 55px;
    background: #f5ece3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b48560;
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: #4a3b32;
}

.service-card p {
    color: #6b625a;
    font-size: 0.95rem;
    flex-grow: 1;
    line-height: 1.6;
}

/* Approach Section (Parallax / Glass) */
.approach {
    position: relative;
    background: linear-gradient(135deg, #4a3b32 0%, #2a201a 100%);
    background-attachment: fixed;
    /* Parallax effect */
    padding: 120px 0;
}

.approach-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    /* Легке затемнення */
}

.approach .container {
    position: relative;
    z-index: 10;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 60px;
    border-radius: 20px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--glass-shadow);
}

.approach-content p {
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Contact Section */
.contact-wrapper {
    display: flex;
    gap: 60px;
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.contact-info {
    flex: 1;
    padding: 60px;
    background: linear-gradient(135deg, #5a3e2b 0%, #3d2a1a 100%);
    color: #fff;
}

.contact-info .section-subtitle {
    color: var(--accent-color);
}

.contact-info .section-title {
    color: #fff;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 15px;
}

.contact-item .icon {
    font-size: 1.5rem;
}

.contact-item h4 {
    color: #fff;
    margin-bottom: 5px;
    font-size: 1.1rem;
    font-family: var(--font-body);
}

.contact-item p {
    margin-bottom: 0;
}

.contact-form-container {
    flex: 1;
    padding: 60px;
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    background: var(--bg-light);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-main);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--text-muted);
    transition: var(--transition);
    pointer-events: none;
    background: transparent;
    padding: 0 5px;
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    color: var(--accent-color);
    background: #fff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: transparent;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.zoom-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* Responsive Design */
@media (max-width: 992px) {

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-wrapper {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .burger-menu {
        display: block;
    }

    .nav-links,
    .navbar .btn-outline {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--glass-bg);
        backdrop-filter: blur(15px);
        padding: 20px;
        text-align: center;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .navbar.scrolled .nav-links.active a {
        color: var(--primary-color);
    }

    .navbar:not(.scrolled) .nav-links.active a {
        color: var(--primary-color);
    }


    .hero h1 {
        font-size: 2.2rem;
    }

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

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section {
        padding: 70px 0;
    }

    .glass-panel {
        padding: 30px;
    }

    .contact-info,
    .contact-form-container {
        padding: 30px;
    }
}

/* =========================================
   Extended Footer Styles
   ========================================= */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.brand-col {
    grid-column: span 1;
}

@media (min-width: 992px) {
    .brand-col {
        grid-column: span 2;
        padding-right: 40px;
    }
}

.footer-desc {
    margin: 20px 0;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-family: var(--font-heading);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
    font-size: 0.95rem;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact-list {
    list-style: none;
    padding: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-contact-list .icon {
    margin-right: 15px;
    font-size: 1.1rem;
    line-height: 1;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer {
    background: #201814;
    color: #fcf9f5;
    padding: 60px 0 20px;
}

.footer .logo {
    color: #fcf9f5;
}

.footer .footer-desc {
    color: rgba(252, 249, 245, 0.85) !important;
}

.footer .footer-bottom p {
    color: rgba(252, 249, 245, 0.6);
}

.footer .footer-title {
    color: #fcf9f5;
}

.footer-contact-list li {
    color: rgba(252, 249, 245, 0.8);
}

.footer-links a {
    color: rgba(252, 249, 245, 0.8);
}

/* Footer Button Fix */
.footer .btn-outline {
    color: #fcf9f5;
    border-color: var(--accent-color);
}

.footer .btn-outline:hover {
    background-color: var(--accent-color);
    color: #201814;
}

/* =========================================
   Diplomas Section Styles
   ========================================= */
.diplomas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.diploma-card {
    background: #fff;
    padding: 20px 20px 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    cursor: pointer;
    border-top: 3px solid #bfa07d;
}

.diploma-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.diploma-img-wrapper {
    height: auto;
    max-height: 350px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.diploma-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s;
}

.diploma-card:hover .diploma-img-wrapper img {
    transform: scale(1.05);
}

.diploma-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1rem;
    line-height: 1.4;
}

.diploma-org {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.diploma-year {
    color: #fff;
    background: #bfa07d;
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: lightboxIn 0.3s ease;
}

@keyframes lightboxIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
    transition: transform 0.2s;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

.diploma-img-wrapper {
    cursor: pointer;
}


/* --- Header Redesign (Desktop & Mobile) --- */
.navbar {
    background: #ffffff !important;
    padding: 22px 0 !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

body {
    padding-top: 0 !important;
    /* removed offset to avoid gap */
}

.hero {
    height: 100vh !important;
    min-height: 600px !important;
    padding-top: 85px !important;
    /* hero content offset for fixed header */
    margin-top: 0 !important;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Design */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 0;
    border: none;
    background-color: transparent;
    transition: var(--transition);
}

.logo:hover {
    background-color: transparent;
    opacity: 0.8;
}

.logo-text-block {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: #4a3b32;
    letter-spacing: 0.5px;
}

.logo-subtitle {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    color: #b48560;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Footer logo overrides */
.footer .logo-name {
    color: #fcf9f5 !important;
}

.footer .logo-subtitle {
    color: #bfa07d !important;
}

/* Nav Links Styling */
.nav-links {
    display: flex;
    gap: 15px;
    /* reduced gap */
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #6b625a !important;
    font-weight: 500;
    font-size: 0.85rem;
    /* smaller font */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 0;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: #bfa07d !important;
}

.nav-links a::after {
    background-color: #bfa07d !important;
}

/* Header Contact Block */
.header-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    /* reduced gap */
}

.header-phones {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #fcf9f5;
    padding: 5px 12px;
    border-radius: 30px;
}

.phone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background-color: #b48560;
    color: #fff;
    border-radius: 50%;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.phone-numbers {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.phone-numbers a {
    color: #4a3b32;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s;
    white-space: nowrap;
}

.phone-numbers a:hover {
    color: #bfa07d;
}

.header-cta {
    background-color: #b48560 !important;
    color: #fff !important;
    padding: 8px 15px !important;
    border-radius: 4px !important;
    text-transform: none;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: none !important;
    border: none;
    white-space: nowrap;
}

.header-cta:hover {
    background-color: #9c6e4b !important;
    transform: translateY(-2px);
}

.burger-menu .line {
    background-color: #4a3b32 !important;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1200px) {
    .nav-links {
        display: none;
        /* Hide on small desktop to prevent overlap, use burger */
    }

    .burger-menu {
        display: block;
    }
}

@media (max-width: 900px) {
    .header-phones {
        display: none;
        /* Hide phones on tablet to save nav space */
    }
}

@media (max-width: 600px) {
    .header-contact {
        display: none;
    }

    .logo-name {
        font-size: 1.2rem;
    }

    .logo-subtitle {
        font-size: 0.55rem;
        letter-spacing: 2px;
    }

    .navbar {
        padding: 16px 0 !important;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .hero-content {
        margin-left: 20px !important;
        margin-right: 20px !important;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn-hero-primary,
    .btn-hero-outline {
        text-align: center;
    }

    /* Footer mobile: вирівнювання ліворуч з відступами */
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: left !important;
        padding: 0 15px !important;
    }

    .footer-col {
        text-align: left !important;
    }

    .footer-social {
        justify-content: flex-start !important;
    }

    .footer-bottom {
        text-align: left !important;
        padding-left: 15px;
    }
}

/* Mobile Nav Menu Adjustments */
@media (max-width: 1200px) {
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        padding: 10px 25px;
        text-align: center;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #f0f0f0;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .nav-links.active a {
        font-size: 0.95rem;
        padding: 10px 0;
        display: block;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .nav-links.active a:last-child {
        border-bottom: none;
    }

    /* Social icons in mobile menu */
    .nav-social-icons {
        display: flex;
        justify-content: center;
        gap: 15px;
        padding: 12px 0;
    }
}

/* Trust Stats Block */
.trust-stats {
    background: linear-gradient(135deg, #4a3b32 0%, #2a201a 100%);
    padding: 60px 0;
}

.trust-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.trust-stat-item {
    padding: 20px;
}

.trust-stat-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: #bfa07d;
    line-height: 1.2;
    margin-bottom: 8px;
}

.trust-stat-label {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.5px;
}

.trust-stat-degree {
    font-size: 1.3rem !important;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .trust-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px 10px;
    }

    .trust-stat-item {
        padding: 15px 10px;
    }

    /* Move degree to the next row and full width */
    .trust-stat-item:nth-child(3) {
        order: 4;
        grid-column: 1 / -1;
    }

    /* Move 100% block to the 3rd spot */
    .trust-stat-item:nth-child(4) {
        order: 3;
    }

    .trust-stat-number {
        font-size: 1.8rem;
    }

    .trust-stat-degree {
        font-size: 1.3rem !important;
    }

    .trust-stat-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .trust-stats {
        padding: 40px 0;
    }

    .trust-stats-grid {
        gap: 15px 5px;
    }

    .trust-stat-item {
        padding: 10px 5px;
    }

    .trust-stat-number {
        font-size: 1.4rem;
    }

    .trust-stat-degree {
        font-size: 1.2rem !important;
    }

    .trust-stat-label {
        font-size: 0.65rem;
        word-break: normal;
        hyphens: auto;
    }
}

/* Social Icon Links */
.social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1.5px solid #bfa07d;
    border-radius: 50%;
    color: #bfa07d;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon-link:hover {
    background-color: #bfa07d;
    color: #fff;
    transform: scale(1.1);
}

/* Footer social icon overrides */
.footer .social-icon-link {
    border-color: rgba(252, 249, 245, 0.4);
    color: rgba(252, 249, 245, 0.8);
}

.footer .social-icon-link:hover {
    background-color: #bfa07d;
    border-color: #bfa07d;
    color: #fff;
}

/* Desktop: hide social icons in nav, show only on mobile */
.nav-social-icons {
    display: none !important;
}

@media (max-width: 1200px) {
    .nav-links.active .nav-social-icons {
        display: flex !important;
        justify-content: center;
        gap: 15px;
        padding: 12px 0;
        border-bottom: none !important;
    }
}

/* --- Info Block (Reference Design) --- */
.info-block {
    padding: 0 0 60px 0;
    /* Видалено верхній паддінг */
    background-color: transparent;
    /* Фону більше немає, він у cards */
    position: relative;
    z-index: 10;
    margin-top: -30px;
    /* Менше накладання на банер, щоб не перекривати текст */
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    /* Трохи більша тінь для ефекту глибини */
    overflow: hidden;
}

.help-box {
    padding: 50px 40px;
    background-color: #fff;
}

.info-box-title {
    font-size: 1.8rem;
    color: #4a3b32;
    margin-bottom: 25px;
    font-family: var(--font-heading);
}

.help-text p {
    color: #6b625a;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.help-list {
    list-style: none;
    padding: 0;
}

.help-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    color: #6b625a;
    font-size: 1.05rem;
    line-height: 1.4;
}

.help-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background-color: #bfa07d;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.call-box {
    position: relative;
    background-color: #9c6e4b;
    background-image: linear-gradient(135deg, rgba(65, 51, 43, 0.9), rgba(32, 24, 20, 0.95));
    /* Замість картинки теплий градієнт */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 40px;
    text-align: center;
}

.call-box-content {
    position: relative;
    z-index: 2;
}

.call-box-title {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 25px;
    font-family: var(--font-heading);
}

.call-phones {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    /* Дозволяє перенос на вузьких екранах */
}

.call-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: transparent;
    border: 2px solid #bfa07d;
    /* Золотий колір, як у темі */
    color: #bfa07d;
    border-radius: 50%;
    font-size: 1.4rem;
    transition: var(--transition);
}

.call-button {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    background: transparent;
    border: none;
    transition: var(--transition);
}

.call-button:hover .call-icon {
    background-color: #bfa07d;
    color: #fff;
    transform: scale(1.05);
}

.call-numbers {
    display: flex;
    flex-direction: column;
}

.call-button span {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    transition: color 0.3s;
}

.call-button:hover span {
    color: #fcf9f5;
    opacity: 0.9;
}

@media (max-width: 992px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Home About Section --- */
.home-about-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 60px;
    align-items: center;
}

.home-about-image {
    position: relative;
    border-radius: 12px;
}

.home-about-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.home-about-quote {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: #fff;
    padding: 20px 25px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 60%;
    z-index: 2;
}

.quote-icon {
    font-size: 2.5rem;
    color: #bfa07d;
    line-height: 0.5;
    margin-bottom: 5px;
    font-family: serif;
}

.home-about-quote h3 {
    font-size: 1rem;
    color: #4a3b32;
    line-height: 1.4;
    margin: 0;
    font-family: var(--font-heading);
}

.about-title-wrapper {
    margin-bottom: 15px;
}

.home-about-text p {
    margin-bottom: 18px;
    color: #6b625a;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Mobile responsive for home-about */
@media (max-width: 992px) {
    .home-about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .home-about-quote {
        position: relative;
        bottom: -15px;
        right: auto;
        margin: -40px auto 0 auto;
        max-width: 85%;
        padding: 20px 25px;
    }

    .home-about-text .btn,
    .approach-content .btn {
        display: block;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        max-width: max-content;
    }
}

/* =========================================
   Floating Mobile Contact Button
   ========================================= */
.mobile-float-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Show only on mobile */
@media (max-width: 768px) {
    .mobile-float-btn {
        display: flex;
    }
}

/* Main toggle button */
.float-main-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #b48560, #9c6e4b);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(180, 133, 96, 0.4);
    transition: all 0.3s ease;
    position: relative;
    animation: floatPulse 2.5s infinite;
}

.float-main-btn:active {
    transform: scale(0.95);
}

@keyframes floatPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(180, 133, 96, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(180, 133, 96, 0.65); }
}

/* Icon switching */
.float-icon-close {
    display: none;
}

.mobile-float-btn.open .float-icon-contact {
    display: none;
}

.mobile-float-btn.open .float-icon-close {
    display: block;
}

.mobile-float-btn.open .float-main-btn {
    animation: none;
    background: #4a3b32;
}

/* Expandable action buttons container */
.float-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.mobile-float-btn.open .float-actions {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Individual action buttons */
.float-action-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    transition: all 0.25s ease;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.float-action-btn:hover {
    transform: scale(1.1);
}

/* Viber button */
.viber-btn {
    background: #fff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

/* Phone button */
.phone-float-btn {
    background: linear-gradient(135deg, #b48560, #9c6e4b);
}

/* Tooltip labels */
.float-action-btn::before {
    content: attr(aria-label);
    position: absolute;
    right: 60px;
    background: rgba(74, 59, 50, 0.9);
    color: #fff;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.mobile-float-btn.open .float-action-btn::before {
    opacity: 1;
}