/* BASE RESET & FONTS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #080d1d;
    color: #e2e8f0;
    line-height: 1.6;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* TYPOGRAPHY HELPERS */
.text-center {
    text-align: center;
}

.sub-heading {
    display: block;
    color: #38bdf8;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.2rem;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-desc {
    color: #94a3b8;
    max-width: 680px;
    margin: 0 auto 40px auto;
    font-size: 1rem;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background-color: #0284c7;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #0369a1;
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #334155;
}

.btn-secondary:hover {
    background-color: #1e293b;
    border-color: #475569;
}

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

/* NAVBAR */
.navbar {
    background-color: rgba(8, 13, 29, 0.95);
    border-bottom: 1px solid #1e293b;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px; /* Немного увеличили высоту шапки под крупный круглый логотип */
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    font-size: 0.9rem;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #ffffff;
}

/* HERO SECTION */
.hero {
    padding: 80px 0;
    border-bottom: 1px solid #1e293b;
}

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

.badge {
    background-color: rgba(2, 132, 199, 0.15);
    color: #38bdf8;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 20px;
}

.hero p {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

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

.hero-ship-img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #1e293b;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* ESTIMATOR SECTION */
.estimator-section {
    padding: 80px 0;
    background-color: #0b1329;
}

.estimator-card {
    background-color: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group.full-width {
    grid-column: span 2;
    margin-bottom: 25px;
}

.form-group label {
    font-size: 0.88rem;
    color: #cbd5e1;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group select {
    background-color: #080d1d;
    border: 1px solid #334155;
    color: #ffffff;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.95rem;
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 5px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: #94a3b8;
    cursor: pointer;
}

.calc-result {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #1e293b;
}

.calc-result.hidden {
    display: none;
}

.calc-result h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.result-item {
    background-color: #080d1d;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #1e293b;
}

.result-label {
    display: block;
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 5px;
}

.result-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.result-value.highlight {
    color: #38bdf8;
}

.result-actions p {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 15px;
}

/* TECHNOLOGIES SECTION */
.tech-section {
    padding: 80px 0;
    background-color: #0b1329;
    border-top: 1px solid #1e293b;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.tech-card {
    background-color: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 10px;
    padding: 28px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: #0284c7;
}

.tech-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.tech-card h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.tech-card p {
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.6;
}

/* LIFECYCLE SECTION */
.lifecycle-section {
    padding: 80px 0;
    background-color: #080d1d;
    border-top: 1px solid #1e293b;
}

.lifecycle-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.step-card {
    background-color: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 10px;
    padding: 25px;
}

.step-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #38bdf8;
    opacity: 0.6;
    margin-bottom: 10px;
}

.step-card h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.step-card p {
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.5;
}

/* SERVICES SECTION */
.services-section {
    padding: 80px 0;
    background-color: #0b1329;
    border-top: 1px solid #1e293b;
}

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

.service-package-card {
    background-color: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.service-package-card.featured {
    border-color: #0284c7;
    box-shadow: 0 0 20px rgba(2, 132, 199, 0.2);
}

.badge-card {
    position: absolute;
    top: -12px;
    right: 20px;
    background-color: #0284c7;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.service-package-card h3 {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.package-desc {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.service-package-card ul {
    list-style: none;
    padding: 0;
    margin-top: auto;
}

.service-package-card li {
    color: #cbd5e1;
    font-size: 0.88rem;
    padding: 6px 0;
    border-top: 1px solid #1e293b;
}

.service-package-card li::before {
    content: "✓ ";
    color: #38bdf8;
    font-weight: bold;
}

/* ABOUT SECTION */
.about-section {
    padding: 80px 0;
    background-color: #080d1d;
    border-top: 1px solid #1e293b;
}

.about-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: center;
}

.profile-img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #1e293b;
}

.role-title {
    color: #38bdf8;
    font-weight: 600;
    margin-bottom: 15px;
}

.about-text {
    color: #94a3b8;
    margin-bottom: 20px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background-color: #0f172a;
    border: 1px solid #1e293b;
    color: #cbd5e1;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* LIBRARY SECTION & CLICKABLE CARDS */
.library-section {
    padding: 80px 0;
    background-color: #0b1329;
    border-top: 1px solid #1e293b;
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.library-card {
    display: flex;
    flex-direction: column;
    background-color: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 10px;
    padding: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.library-card:hover {
    transform: translateY(-5px);
    border-color: #38bdf8;
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.15);
}

.doc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.doc-type {
    font-size: 0.75rem;
    color: #38bdf8;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.doc-icon {
    font-size: 1.2rem;
}

.library-card h3 {
    color: #ffffff;
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.library-card p {
    color: #94a3b8;
    font-size: 0.88rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-link-text {
    font-size: 0.85rem;
    color: #38bdf8;
    font-weight: 600;
    transition: color 0.2s ease;
}

.library-card:hover .card-link-text {
    color: #7dd3fc;
    text-decoration: underline;
}

/* PARTNERS SECTION */
.partners-section {
    padding: 80px 0;
    background-color: #080d1d;
    border-top: 1px solid #1e293b;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.partner-card {
    background-color: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.partner-card h3 {
    color: #ffffff;
    font-size: 1.05rem;
    margin-bottom: 5px;
}

.partner-card p {
    color: #64748b;
    font-size: 0.85rem;
}

/* FOOTER */
footer {
    padding: 30px 0;
    background-color: #050814;
    border-top: 1px solid #1e293b;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
}

/* NAVBAR BRAND LOGO INTEGRATION (Крупный круглый логотип в шапке) */
.brand-logo-container {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand-logo-img {
    width: 64px;       /* Точная ширина */
    height: 64px;      /* Точная высота для идеального круга */
    border-radius: 50%; /* Превращаем в круг */
    object-fit: cover; /* Аккуратное заполнение без искажений */
    border: 2px solid #C5A059;
    box-shadow: 0 0 14px rgba(197, 160, 89, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-logo-container:hover .brand-logo-img {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.6);
}

.brand-text-block {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    color: #C5A059;
    text-transform: uppercase;
}

.brand-motto {
    font-size: 0.65rem;
    color: #C5A059;
    font-style: italic;
    letter-spacing: 0.05em;
    opacity: 0.85;
}

/* MODAL OVERLAY & CONTENT STYLES (Крупный круглый логотип в модалке) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 8, 20, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(6px);
}

.modal-content {
    background: #0f172a;
    padding: 2.5rem;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
    border: 1px solid #C5A059;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: #C5A059;
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-logo {
    width: 130px;      /* Крупный размер */
    height: 130px;     /* Равные стороны для идеального круга */
    border-radius: 50%; /* Превращаем в круг */
    object-fit: cover;  /* Заполнение без искажения */
    border: 2px solid #C5A059;
    margin-bottom: 14px;
    box-shadow: 0 0 22px rgba(197, 160, 89, 0.5);
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 700;
}

.modal-content p.modal-subtitle {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.btn-email-direct {
    display: block;
    width: 100%;
    padding: 0.9rem;
    background-color: #0284c7;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    box-sizing: border-box;
    transition: background 0.3s ease;
}

.btn-email-direct:hover {
    background-color: #0369a1;
}

.modal-divider {
    margin: 1.5rem 0 1.2rem 0;
    border: 0;
    border-top: 1px solid #1e293b;
}

.direct-contacts-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #C5A059;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.8rem;
}

.direct-contacts-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.direct-contacts-list li {
    font-size: 0.88rem;
}

.direct-contacts-list a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
}

.direct-contacts-list a:hover {
    text-decoration: underline;
    color: #38bdf8;
}

/* RESPONSIVE DESIGN ADJUSTMENTS */
@media (max-width: 902px) {
    .hero .container, .about-grid {
        grid-template-columns: 1fr;
    }
    .form-grid, .checkbox-group, .result-grid, .partners-grid {
        grid-template-columns: 1fr;
    }
    .form-group.full-width {
        grid-column: span 1;
    }
    .nav-menu {
        display: none;
    }
    .brand-motto {
        display: none;
    }
}


