@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700&display=swap');

:root {
    --bg: #0b1012;
    --bg-overlay: rgba(11, 16, 18, 0.7);
    --panel: rgba(22, 31, 35, 0.7);
    --accent: #F5A623;
    --accent-2: #5BC0EB;
    --text: #f5f7fa;
    --muted: #cfd6dc;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --nav-height: 88px;
    --footer-height: 190px;
}

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

body {
    font-family: 'Manrope', 'Open Sans', sans-serif;
    color: var(--text);
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    padding-bottom: var(--footer-height);
    zoom: 0.93;
}

body.contact-page {
    overflow: hidden;
}

.team-page {
    overflow-y: auto;
}

html {
    scroll-behavior: smooth;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(12, 20, 24, 0.9), rgba(17, 28, 32, 0.7)), url('../images/header-bg.jpg') no-repeat center center/cover;
    z-index: -2;
}

.background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(15, 21, 23, 0.7));
    z-index: -1;
}

header {
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    min-height: var(--nav-height);
    flex: 0 0 auto;
}

nav {
    display: flex;
    align-items: center;
    padding: 12px 28px;
    position: sticky;
    top: 0;
    z-index: 5;
    background: linear-gradient(90deg, rgba(16, 24, 28, 0.95), rgba(16, 24, 28, 0.75));
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow);
    gap: 16px;
}

nav .logo img {
    height: 64px;
    width: auto;
}

nav .logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(5, 9, 11, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    box-shadow: var(--shadow);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 16px;
    margin-left: auto;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--bg);
    background: var(--accent);
}

.lang-switcher select {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 14px;
    outline: none;
}

.lang-switcher {
    margin-left: 8px;
}

.nav-quote-btn {
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-quote-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.35);
}

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

.hero {
    text-align: center;
    padding: 36px 18px 26px;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeUp 0.6s ease both;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: var(--accent);
}

.hero p {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--muted);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin: 14px 0 18px;
}

.feature-list .pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 12px;
    text-align: left;
    color: var(--text);
    box-shadow: var(--shadow);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin: 10px auto 6px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 12px;
    text-align: center;
}

.stat-card .value {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
}

.stat-card .label {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.3;
}

.cta-row {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent);
    color: var(--bg);
    padding: 12px 22px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-shadow: none;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.cta-button:hover {
    background-color: #eaa01f;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 20px 16px;
    position: relative;
    flex: 1 0 auto;
}

.snap-container {
    flex: 1 1 auto;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    margin-top: var(--nav-height);
    padding-bottom: var(--footer-height);
}

.snap-section {
    min-height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    padding: 30px 0;
}

.hero-section {
    padding: 50px 0 40px;
}

.services, .about, .contact {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(6px);
    padding: 20px 16px;
    margin: 12px 0;
    border-radius: 14px;
    box-shadow: var(--shadow);
    animation: fadeUp 0.5s ease both;
}

.services h2, .about h2, .contact h2, .contact h3 {
    color: var(--accent);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.2px;
}

.services p, .about p, .contact p {
    color: var(--text);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 14px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.service-card .icon {
    font-size: 20px;
    margin-bottom: 8px;
}

.service-card h3 {
    color: var(--accent);
    margin-bottom: 6px;
    font-size: 18px;
}

.services .cta-button {
    margin-top: 10px;
}

.contact a {
    color: var(--accent);
    text-decoration: none;
}

.contact a:hover {
    text-decoration: underline;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 12px;
    align-items: start;
}

.contact-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 8px 0 12px;
}

.contact-actions a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s ease;
}

.contact-actions a:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--accent);
}

.contact form {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 4px;
}

.contact form label {
    margin: 6px 0 3px;
    color: var(--text);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.contact form input, .contact form textarea {
    padding: 9px;
    margin-bottom: 6px;
    border: 1px solid #47545c;
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
    color: #0d1214;
}

.contact form textarea {
    height: 90px;
}

.contact form button {
    background-color: var(--accent);
    color: var(--bg);
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact form button:hover {
    background-color: #eaa01f;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}

.map-embed {
    width: 100%;
    height: 160px;
    border: 0;
}

footer {
    background: rgba(8, 12, 14, 0.92);
    color: white;
    text-align: left;
    padding: 12px 16px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
}

footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px 28px;
    align-items: start;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
}

footer .footer-grid > div:nth-child(1),
footer .footer-grid > div:nth-child(2) {
    text-align: center;
}

footer .footer-grid > div:nth-child(3) h4 {
    text-align: center;
}

footer h4 {
    color: var(--accent);
    margin-bottom: 6px;
    font-size: 15px;
}

footer p, footer a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
}

footer a:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 10px;
    }

    nav ul {
        gap: 12px;
    }

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

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

/* Контакты — компактный экран */
body.contact-page header {
    min-height: 120px;
}

body.contact-page nav {
    padding: 12px 28px;
}

body.contact-page .container {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    padding: 8px 14px 6px;
}

body.contact-page .contact {
    width: 100%;
    padding: 12px 10px;
    margin: 0;
}

body.contact-page .contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
    align-items: start;
}

body.contact-page .contact h2,
body.contact-page .contact h3 {
    margin-bottom: 6px;
}

body.contact-page .contact p {
    margin-bottom: 4px;
}

body.contact-page .contact form {
    margin-top: 2px;
}

body.contact-page .contact form textarea {
    height: 80px;
}

body.contact-page footer {
    padding: 10px;
}

.contact-line {
    white-space: nowrap;
}

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

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20;
    padding: 16px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: rgba(15, 21, 23, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 20px 20px 16px;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow);
    position: relative;
}

.modal h3 {
    margin-bottom: 8px;
    color: var(--accent);
}

.modal p {
    margin-bottom: 12px;
    color: var(--muted);
}

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

.modal-form input,
.modal-form textarea {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #47545c;
    font-size: 14px;
}

.modal-form textarea {
    min-height: 110px;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 22px;
    cursor: pointer;
}

.team {
    padding: 60px 0 100px;
}

.team-page .team {
    padding-top: calc(var(--nav-height) + 40px);
}

.team-header h2 {
    color: var(--accent);
    margin-bottom: 6px;
}

.team-header p {
    color: var(--muted);
    margin-bottom: 10px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.team-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    box-shadow: var(--shadow);
}

.team-card h3 {
    color: var(--accent);
    margin: 6px 0 4px;
    font-size: 15px;
}

.team-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.avatar-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.3), rgba(91, 192, 235, 0.3));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.team-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: rgba(255, 255, 255, 0.06);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-photo.photo-cat img {
    object-fit: contain;
    transform: scale(1.12) translateY(8px);
    object-position: center bottom;
}

.team-name {
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 6px;
}


@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 10px;
    }

    nav ul {
        gap: 12px;
    }

    .services {
        columns: 1;
    }
}

footer p {
    margin: 5px 0;
}

footer a {
    color: #F5A623; /* Оранжевый для ссылок в футере */
    text-decoration: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Тень для читаемости */
}

footer a:hover {
    text-decoration: underline;
}
.team-page header {
    position: sticky;
    top: 0;
    z-index: 10;
}

.team-page .snap-container {
    margin-top: var(--nav-height);
}
