/* ===========================
   Таксофт (tuxoft.ru) — Styles
   Цвета: фиолетовый #564FB0,
          серый фон #DBDBD7,
          текст #3B3B3A,
          белый #FFFFFF
   =========================== */

@font-face {
    font-family: 'Inter';
    src: url('resource/fonts/Inter-VariableFont_slnt,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #3B3B3A;
    background-color: #FFFFFF;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* Container */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===========================
   Header
   =========================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 74px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(86, 79, 176, 0.08);
    z-index: 1000;
    transition: background 0.3s ease;
}

.navbar {
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo img {
    width: 36px;
    height: 36px;
}

.nav-logo span {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 22px;
    color: #3B3B3A;
    letter-spacing: -0.3px;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #3B3B3A;
    transition: color 0.25s ease;
    padding: 4px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #564FB0;
    transition: width 0.25s ease;
}

.nav-link:hover {
    color: #564FB0;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #3B3B3A;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Scroll offset for anchor links */
:target::before {
    content: "";
    display: block;
    height: 80px;
    margin: -80px 0 0;
    pointer-events: none;
}

.section-anchor {
    scroll-margin-top: 80px;
}

/* ===========================
   Hero
   =========================== */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(86, 79, 176, 0.85), rgba(59, 59, 58, 0.7)), url('resource/img/background.png') center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 24px 60px;
    position: relative;
}

.hero-content {
    max-width: 900px;
    animation: fadeInUp 0.8s ease-out;
}

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

.hero-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 5vw, 48px);
    line-height: 1.2;
    color: #FFFFFF;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.92);
    max-width: 800px;
    margin: 0 auto;
}

/* ===========================
   Section styling
   =========================== */
.section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.section-alt {
    background-color: #DBDBD7;
}

.section-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: clamp(24px, 3.5vw, 36px);
    color: #564FB0;
    text-align: center;
    margin-bottom: 48px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #564FB0;
    margin: 16px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #564FB0;
    text-align: center;
    margin-bottom: 32px;
}

/* ===========================
   About
   =========================== */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.8;
    color: #3B3B3A;
    margin-bottom: 16px;
}

.about-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.about-detail-item {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 20px 24px;
    border: 1px solid rgba(86, 79, 176, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.about-detail-item:hover {
    box-shadow: 0 4px 16px rgba(86, 79, 176, 0.12);
    transform: translateY(-2px);
}

.about-detail-item strong {
    color: #564FB0;
    display: block;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.about-detail-item span {
    font-size: 15px;
    color: #3B3B3A;
    line-height: 1.5;
}

/* ===========================
   Services / Cards
   =========================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(86, 79, 176, 0.06);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(86, 79, 176, 0.12);
}

.card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, #564FB0, #7B73D0);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 24px;
}

.card h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #3B3B3A;
    margin-bottom: 12px;
}

.card p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.7;
    color: #5a5a59;
}

.card hr {
    width: 50px;
    border: none;
    border-top: 3px solid #564FB0;
    margin: 16px auto;
    border-radius: 2px;
}

/* ===========================
   Deliberatio (Product)
   =========================== */
.deliberatio-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #564FB0, #7B73D0);
    color: #FFFFFF;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
}

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

.deliberatio-feature {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 24px 20px;
    border: 1px solid rgba(86, 79, 176, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.deliberatio-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(86, 79, 176, 0.10);
}

.deliberatio-feature h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #564FB0;
    margin-bottom: 8px;
}

.deliberatio-feature p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
    color: #5a5a59;
}

.deliberatio-price {
    background: #FFFFFF;
    border: 2px solid rgba(86, 79, 176, 0.15);
    border-radius: 12px;
    padding: 28px;
    text-align: center;
    max-width: 500px;
    margin: 0 auto 32px;
}

.deliberatio-price .price {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: #564FB0;
    display: block;
    margin-bottom: 4px;
}

.deliberatio-price .price-desc {
    font-size: 14px;
    color: #5a5a59;
    margin-bottom: 12px;
}

.deliberatio-price .price-note {
    font-size: 13px;
    color: #7a7a79;
    line-height: 1.5;
}

.deliberatio-registry {
    background: rgba(86, 79, 176, 0.06);
    border-radius: 10px;
    padding: 20px 24px;
    text-align: center;
    max-width: 650px;
    margin: 0 auto 32px;
    font-size: 14px;
    line-height: 1.7;
    color: #3B3B3A;
}

.deliberatio-registry a {
    color: #564FB0;
    font-weight: 500;
    text-decoration: underline;
    transition: color 0.2s;
}

.deliberatio-registry a:hover {
    color: #3B3B3A;
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 15px;
    padding: 14px 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #564FB0, #6F68C0);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(86, 79, 176, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(86, 79, 176, 0.35);
}

.btn-secondary {
    background: #FFFFFF;
    color: #564FB0;
    border: 2px solid #564FB0;
}

.btn-secondary:hover {
    background: #564FB0;
    color: #FFFFFF;
}

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

/* ===========================
   Contacts
   =========================== */
.contacts-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(86, 79, 176, 0.08);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item img {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.contact-text {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #3B3B3A;
}

.contact-link {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #3B3B3A;
    text-decoration: underline;
    text-decoration-color: #564FB0;
    text-underline-offset: 4px;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: #564FB0;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background-color: #3B3B3A;
    color: rgba(255, 255, 255, 0.85);
    padding: 40px 0;
    text-align: center;
    font-size: 14px;
    line-height: 1.8;
}

.footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.footer a:hover {
    color: #FFFFFF;
    text-decoration-color: #FFFFFF;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 12px;
    flex-wrap: wrap;
}

/* ===========================
   Media Queries
   =========================== */

/* Tablet & small desktop */
@media (max-width: 992px) {
    .about-details {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    /* Mobile nav */
    .nav-toggle {
        display: flex;
    }

    .nav-list {
        position: fixed;
        top: 74px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, padding 0.35s ease;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    }

    .nav-list.active {
        max-height: 300px;
        padding: 12px 0;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 14px 24px;
        font-size: 16px;
        border-bottom: 1px solid rgba(86, 79, 176, 0.06);
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover {
        background: rgba(86, 79, 176, 0.05);
    }

    .hero {
        min-height: 80vh;
        padding: 90px 20px 40px;
    }

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

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

    .deliberatio-price .price {
        font-size: 28px;
    }

    .about-detail-item {
        padding: 16px 18px;
    }

    .contacts-wrapper {
        padding: 0 8px;
    }

    .footer-links {
        flex-direction: column;
        gap: 8px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .nav-logo span {
        font-size: 18px;
    }

    .nav-logo img {
        width: 30px;
        height: 30px;
    }

    .hero-title {
        font-size: 24px;
    }

    .section-title {
        font-size: 22px;
    }

    .card {
        padding: 24px 18px;
    }

    .contact-item {
        gap: 14px;
    }

    .contact-text,
    .contact-link {
        font-size: 14px;
    }
}
