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

:root {
    /* Brand palette — strictly limited to these four colors */
    --primary-blue: #047590;   /* фирменный бирюзовый */
    --primary-cyan: #C0DCE3;   /* вторичный бирюзовый */
    --text-dark: #373435;      /* чёрный */
    --bg-white: #FEFEFE;       /* белый */

    /* Neutral tints derived from the brand black/turquoise for supporting UI (borders, muted text, subtle backgrounds) */
    --text-light: #6E6B6A;
    --bg-light: #F3F9FA;
    --border-light: #DCE9EC;
    --warning-grey: #9B9897;
}

html {
    scroll-behavior: smooth;
}

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

/* HEADER & NAV */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.logo img {
    height: 30px;      /* Adjust to fit your navbar */
    width: auto;
    display: block;
    transform: scale(6.5); /* 150% size */
    transform-origin: left center;  
    position: relative;
    left: 20px;
}


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

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.2rem;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    background: var(--bg-white);
}

.lang-btn {
    border: none;
    background: transparent;
    color: var(--text-dark);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}

.lang-btn:hover {
    color: var(--primary-blue);
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    color: #fff;
}

.lang-menu-row {
    display: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav a:hover {
    color: var(--primary-blue);
}

nav ul li a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    left: -10px;
}

nav ul li a:hover {
    color: var(--primary-blue);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.btn-book {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(4, 117, 144, 0.2);
}

.menu-toggle {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    background: var(--bg-white);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 4px 0;
    background: var(--text-dark);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* HERO */
.hero {
    margin-top: 80px;
    padding: 6rem 2rem;
    text-align: center;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-white), var(--bg-light));
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    color: var(--text-dark);
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    color: white;
    box-shadow: 0 10px 30px rgba(4, 117, 144, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(4, 117, 144, 0.3);
}

.btn-secondary {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    background: white;
}

.btn-secondary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

/* STATS - ANIMATED */
.stats {
    background: var(--bg-white);
    padding: 5rem 2rem;
    margin: 2rem 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.stats-content {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-label {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
}

/* ECOSYSTEM - HORIZONTAL CHESS PATTERN */
.ecosystem {
    max-width: 3200px;
    margin: 0 auto;
    padding: 6rem 2rem;
    margin-bottom: -500px;
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
    align-items: start;
}

.ecosystem-row {
    display: contents;
}

.ecosystem-block {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    scroll-margin-top: 120px;
}

.ecosystem-block:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 10px 30px rgba(4, 117, 144, 0.15);
    transform: translateY(-5px);
}

/* Chess Pattern - Staggered Horizontal Layout */
/* Block 1: Design, Polygraf, Academy - LEFT */
.ecosystem-row:nth-child(1) .ecosystem-block {
    grid-column: 1;
    grid-row: 1;
}

/* Block 2: DigiCenter - RIGHT */
.ecosystem-row:nth-child(2) .ecosystem-block {
    grid-column: 2;
    grid-row: 2;
    position: relative;
    top: -200px;    /* negative = up, positive = down */
    left: 55px; 
    max-height: 400px;   /* adjust DigiCenter's height */
    max-width: 800px;
}

/* Block 3: Transportation, Storage, Supply - LEFT */
.ecosystem-row:nth-child(3) .ecosystem-block {
    grid-column: 1;
    grid-row: 3;
    position: relative;
    top: -300px;
    
}

/* Block 4: Finance & Law - RIGHT */
.ecosystem-row:nth-child(4) .ecosystem-block {
    grid-column: 2;
    grid-row: 4;
    position: relative;
    top: -500px;    /* negative = up, positive = down */
    left: 55px; 
    max-height: 400px;   /* adjust DigiCenter's height */
    max-width: 800px;
}

/* TRIO LAYOUT - For grouped items */
.ecosystem-block-trio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.ecosystem-mini {
    background: linear-gradient(135deg, rgba(4, 117, 144, 0.05), rgba(192, 220, 227, 0.05));
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.ecosystem-mini:hover {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, rgba(4, 117, 144, 0.1), rgba(192, 220, 227, 0.1));
}

.ecosystem-mini-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.ecosystem-block .ecosystem-mini-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.ecosystem-mini h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.ecosystem-mini p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.since-small {
    font-size: 0.75rem;
    color: var(--primary-blue);
    font-weight: 600;
}

.ecosystem-block h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 700;
}

.ecosystem-block p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.ecosystem-block .since {
    display: inline-block;
    background: linear-gradient(135deg, rgba(4, 117, 144, 0.1), rgba(192, 220, 227, 0.1));
    color: var(--primary-blue);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.coming-soon {
    position: relative;
    filter: grayscale(0%);
}

.coming-soon::after {
    content: "COMING SOON";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    background: linear-gradient(135deg, var(--primary-blue), var(--text-dark));
    color: var(--bg-white);

    padding: 0.75rem 1.5rem;
    border-radius: 10px;

    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;

    border: 2px solid white;

    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.35),
        0 0 15px rgba(4, 117, 144, 0.5);
}


.ecosystem-mini {
    background: linear-gradient(135deg, rgba(4, 117, 144, 0.05), rgba(192, 220, 227, 0.05));
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.ecosystem-mini:hover {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, rgba(4, 117, 144, 0.1), rgba(192, 220, 227, 0.1));
}

.ecosystem-mini-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.ecosystem-block .ecosystem-mini-icon {
    font-size: 3rem;
}

.ecosystem-mini h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.ecosystem-mini p {
    font-size: 0.8rem;
    color: var(--text-light);
}

.ecosystem-block h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 700;
}

.ecosystem-block p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.ecosystem-block .since {
    display: inline-block;
    background: linear-gradient(135deg, rgba(4, 117, 144, 0.1), rgba(192, 220, 227, 0.1));
    color: var(--primary-blue);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.coming-soon {
    opacity: 0.6;
    position: relative;
}

.coming-soon::after {
    content: "COMING SOON";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    color: var(--bg-white);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid white;
    box-shadow: 0 0 20px rgba(4, 117, 144, 0.6);
}
/* PORTFOLIO */
.portfolio {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
    background: var(--bg-white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-item {
    background: linear-gradient(135deg, var(--bg-white), var(--bg-light));
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 10px 30px rgba(4, 117, 144, 0.15);
    transform: translateY(-5px);
}

.portfolio-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, rgba(4, 117, 144, 0.1), rgba(192, 220, 227, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-light);
    padding: 8.5px;
    overflow: hidden;
}

.portfolio-image img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 16px;
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.portfolio-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.portfolio-tag {
    display: inline-block;
    background: rgba(4, 117, 144, 0.1);
    color: var(--primary-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-more {
    text-align: center;
    margin-top: 3rem;
}

/* ABOUT */
.about {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-image {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue), var(--text-dark));
    border-radius: 20px;
    overflow: hidden;
}

.sprout-emoji {
    display: inline-block;
    font-size: 6rem;
    line-height: 1;
    opacity: 0;
    transform: scale(0.1) translateY(60px);
    transform-origin: bottom center;
    transition: opacity 1s ease-out, transform 1.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sprout-emoji.grown {
    opacity: 1;
    transform: scale(1) translateY(0);
}





/* FOOTER */
footer {
    background: var(--text-dark);
    color: var(--bg-light);
    padding: 4rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 0.75rem;
    display: block;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: var(--primary-blue);
}

.footer-logo-section {
    grid-column: span 1;
    position: relative;
    top: -50px;
}

.footer-logo-section .logo {
    font-size: 1.3rem;
    display: block;
    margin-bottom: 1rem;
}

.footer-logo-section p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

.footer-legal-text {
    text-align: left;
    margin: 0;
}

.footer-powered-by {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
    white-space: nowrap;
    color: var(--text-light);
    font-size: 0.85rem;
}

.footer-powered-by img {
    height: 300px;
    width: auto;
    display: block;
}

.footer-logo {
    display: block;
    width: 200px;
    height: 145px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.footer-logo img {
    height: 200px;
    width: auto;
    display: block;
    transform: translateY(-28px);
}

/* MODAL - APPOINTMENT BOOKING */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

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

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 1rem;
}

.modal-header h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}

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

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(4, 117, 144, 0.1);
}

.form-group input.input-error {
    border-color: #e53e3e;
}

.form-group input.input-error:focus {
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.12);
}

.form-error-msg {
    display: none;
    color: #e53e3e;
    font-size: 0.8rem;
    margin-top: 0.4rem;
}

.form-error-msg.visible {
    display: block;
}

.phone-input-group {
    display: flex;
    gap: 0.5rem;
}

.phone-input-group input {
    flex: 1;
}

/* SEARCHABLE COUNTRY CODE DROPDOWN */
.country-select {
    position: relative;
    flex: 0 0 auto;
}

.country-select-trigger {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    height: 100%;
    padding: 0.75rem 0.6rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    background: var(--bg-white);
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.country-select-trigger:hover {
    border-color: var(--primary-blue);
}

.country-select-trigger:focus,
.country-select-trigger[aria-expanded="true"] {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(4, 117, 144, 0.1);
}

.country-flag {
    font-size: 1.1rem;
    line-height: 1;
}

.country-dial {
    white-space: nowrap;
}

.country-caret {
    color: var(--text-light);
    margin-left: 0.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.country-caret svg {
    display: block;
}

.country-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 280px;
    max-width: 80vw;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(55, 52, 53, 0.15);
    z-index: 10;
    overflow: hidden;
}

.country-dropdown.open {
    display: block;
}

.country-search {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: none;
    border-bottom: 1px solid var(--border-light);
    font-family: inherit;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.country-search:focus {
    outline: none;
    background: var(--bg-light);
}

.country-list {
    list-style: none;
    margin: 0;
    padding: 0.3rem 0;
    max-height: 240px;
    overflow-y: auto;
}

.country-list-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    cursor: pointer;
    font-size: 0.88rem;
}

.country-list-item:hover,
.country-list-item:focus {
    background: var(--bg-light);
}

.country-list-item .country-name {
    flex: 1;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.country-list-item .country-dial-code {
    color: var(--text-light);
    font-size: 0.82rem;
    white-space: nowrap;
}

.country-list-empty {
    padding: 0.75rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* CALENDAR */
.calendar-container {
    margin-bottom: 1.5rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.calendar-header button {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.calendar-header button:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.calendar-month-year {
    font-weight: 700;
    color: var(--text-dark);
    min-width: 150px;
    text-align: center;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.8rem;
    padding: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.calendar-day.available {
    background: var(--bg-light);
    color: var(--text-dark);
}

.calendar-day.available:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.calendar-day.selected {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.calendar-day.busy {
    background: var(--warning-grey);
    color: white;
    cursor: not-allowed;
    opacity: 0.5;
}

.calendar-day.past {
    background: var(--warning-grey);
    color: white;
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.calendar-day.empty {
    border: none;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.modal-footer button {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    color: white;
}

.modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(4, 117, 144, 0.2);
}

.modal-footer .btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-light);
}

.modal-footer .btn-secondary:hover {
    background: var(--border-light);
}

/* NAV / LANGUAGE SWITCHER - collapses to hamburger + mobile menu at 935px */
@media (max-width: 935px) {
    header {
        padding: 0.75rem;
    }

    .nav-center {
        position: static;
        transform: none;
    }

    .lang-switch {
        display: none;
    }

    .lang-menu-row {
        display: flex !important;
        width: 100%;
        margin-top: 0.35rem;
        padding-top: 0.35rem;
        border-top: 1px solid var(--border-light);
    }

    .lang-menu-row .lang-btn {
        flex: 1;
        text-align: center;
        padding: 0.6rem 0;
        border-radius: 6px;
        font-size: 0.85rem;
    }

    .nav-right {
        gap: 0.5rem;
    }

    .btn-book {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    nav ul {
        display: none;
        position: absolute;
        top: calc(100% + 0.75rem);
        right: 0;
        left: 0;
        margin: 0 auto;
        width: max-content;
        max-width: calc(100% - 1.5rem);
        flex-direction: column;
        align-items: center;
        gap: 0;
        min-width: 10rem;
        padding: 0.35rem;
        background: var(--bg-white);
        border: 1px solid var(--border-light);
        border-radius: 8px;
        box-shadow: 0 10px 25px rgba(55, 52, 53, 0.12);
    }

    nav ul.is-open {
        display: flex;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: block;
        left: 0;
        padding: 0.65rem 0.75rem;
        text-align: center;
    }

    nav ul li a::after {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 1.5rem;
        margin-top: 60px;
    }

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

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

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

    .ecosystem-block-trio {
        grid-template-columns: 1fr;
    }

    .about {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .footer-powered-by {
        align-self: flex-start;
    }

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

/* ECOSYSTEM - VERTICAL STACK ON MOBILE ONLY */
@media (max-width: 600px) {
    .modal {
        width: 100%;
        overflow-x: hidden;
        padding: 0.5rem;
    }

    .modal-content {
        width: 100%;
        max-width: 100%;
        padding: 1rem;
        box-sizing: border-box;
    }

    .modal-header h2 {
        font-size: 1.25rem;
    }

    .phone-input-group,
    .modal-footer {
        min-width: 0;
    }

    .phone-input-group input {
        min-width: 0;
    }

    .calendar-header {
        gap: 0.35rem;
    }

    .calendar-header button {
        flex: 0 1 auto;
        padding: 0.45rem 0.5rem;
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .calendar-month-year {
        min-width: 0;
        flex: 1 1 auto;
        font-size: 0.9rem;
    }

    .ecosystem {
        margin-bottom: 0;
    }

    .ecosystem-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        align-items: stretch;
    }

    .ecosystem-row {
        display: block;
        width: 100%;
    }

    .ecosystem-row:nth-child(1) .ecosystem-block,
    .ecosystem-row:nth-child(2) .ecosystem-block,
    .ecosystem-row:nth-child(3) .ecosystem-block,
    .ecosystem-row:nth-child(4) .ecosystem-block {
        position: static;
        grid-column: auto;
        grid-row: auto;
        top: auto;
        left: auto;
        max-height: none;
        max-width: none;
        width: 100%;
    }
}

/* SMALL PHONES - tighten header row further */
@media (max-width: 420px) {
    header {
        padding: 0.6rem;
    }

    .nav-right {
        gap: 0.35rem;
    }

    .lang-menu-row .lang-btn {
        font-size: 0.8rem;
        padding: 0.5rem 0;
    }

    .btn-book {
        padding: 0.5rem 0.75rem;
        font-size: 0.78rem;
    }

    .menu-toggle {
        width: 2.1rem;
        height: 2.1rem;
    }
}