/* style.css */
:root {
    --primary-white: #FFFFFF;
    --accent-red: #778DA9;
    --text-black: #1A1A1A;
    --text-gray: #4A4A4A;
    --bg-light: #F5F5F5;
    --border-color: #E0E0E0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-black);
    line-height: 1.6;
    background-color: var(--primary-white);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn--red {
    background-color: var(--accent-red);
    color: var(--primary-white);
    border-radius: 4px;
}

.btn--red:hover {
    background-color: #5B6D85;
    transform: translateY(-2px);
}

.btn--black {
    background-color: var(--text-black);
    color: var(--primary-white);
    border-radius: 4px;
}

.btn--black:hover {
    background-color: #333;
}

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

.btn--outline:hover {
    background: var(--text-black);
    color: white;
}

.full-width { width: 100%; }

/* Header */
.top-bar {
    background-color: var(--accent-red);
    color: white;
    padding: 8px 0;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}

.top-bar a {
    text-decoration: underline;
}

.navbar {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

.logo img {
    height: 50px;
}

.logo__text {
    font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: #0D1B2A;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1;
}

.nav-menu {
    display: flex;
    gap: 18px;
}

.nav-menu a {
    font-size: 13px;
    font-weight: 500;
}

.nav-menu a:hover {
    color: var(--accent-red);
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 15px;
}

.phone {
    font-weight: 700;
    font-size: 16px;
}

/* Hero */
.hero {
    padding: 80px 0;
    background: radial-gradient(circle at top right, #F0F2F5, #ffffff);
}

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

.hero h1 {
    font-size: 48px;
    margin-bottom: 24px;
}

.subtitle {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 32px;
}

.hero__visual img {
    max-width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
}

/* Sections Global */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 36px;
    margin-bottom: 40px;
}

.section-title.centered {
    text-align: center;
}

/* Stats */
.stats {
    background-color: var(--bg-light);
    background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 20px 20px;
}

.stats__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.stats__image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.stats__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.stats-card {
    background: white;
    padding: 30px;
    border-left: 4px solid var(--accent-red);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.stats-card__num {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-red);
    margin-bottom: 10px;
}

/* Competencies */
.competencies__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.comp-card {
    background: white;
    padding: 40px;
    border: 1px solid var(--border-color);
    position: relative;
}

.comp-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-red);
    transform: scaleX(0);
    transition: var(--transition);
}

.comp-card:hover::after {
    transform: scaleX(1);
}

.comp-card h3 {
    margin-bottom: 15px;
}

/* Tech Control */
/* Prices Section */
.prices {
    background-color: var(--bg-light);
}

.price-group {
    margin-bottom: 80px;
}

.price-group:last-child {
    margin-bottom: 0;
}

.price-group__title {
    font-size: 24px;
    margin-bottom: 30px;
    padding-left: 15px;
    border-left: 4px solid var(--accent-red);
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.price-card {
    background: white;
    padding: 30px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

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



.price-card h4 {
    font-size: 17px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.price-card p {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 25px;
    flex-grow: 1;
    line-height: 1.5;
}

.price-card__footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.price-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-gray);
    font-weight: 600;
}

.price-amount {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent-red);
}

/* Tech Control */
.tech-control {
    background: #111;
    color: white;
}

.tech-control__content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.tech-control__features {
    flex: 1.2;
}

.tech-control__visual {
    flex: 0.8;
    display: flex;
    justify-content: center;
}

.tech-control__visual img {
    max-width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
}

.feature-list {
    margin: 30px 0;
}

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

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-red);
    font-weight: 900;
}

/* Solutions */
.solutions__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.solution-card {
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.solution-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.solution-card__info {
    padding: 30px;
}

.solution-card h3 { margin-bottom: 15px; }
.solution-card p { margin-bottom: 25px; color: var(--text-gray); }

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    border: 1px solid var(--border-color);
}

.blog-card__img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card__content {
    padding: 25px;
}

.tag {
    background: var(--bg-light);
    color: var(--accent-red);
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 2px;
    display: inline-block;
    margin-bottom: 15px;
}

.read-more {
    display: block;
    margin-top: 20px;
    font-weight: 600;
    color: var(--accent-red);
}

/* Footer */
.footer {
    background: #fcfcfc;
    padding: 80px 0 20px;
    border-top: 4px solid var(--text-black);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1fr;
    gap: 60px;
}

.footer__logo {
    margin-bottom: 20px;
}

.footer__logo img {
    height: 40px;
}

.footer__logo .logo__text {
    font-size: 18px;
}
.footer__head { font-weight: 800; margin-bottom: 20px; text-transform: uppercase; font-size: 14px; }
.footer__nav { display: flex; justify-content: space-between; }
.footer__col ul li { margin-bottom: 10px; font-size: 14px; }
.footer__phone { display: block; font-size: 20px; font-weight: 800; color: var(--accent-red); margin-bottom: 10px; }
.footer__bottom { margin-top: 60px; padding-top: 20px; border-top: 1px solid var(--border-color); font-size: 13px; color: var(--text-gray); }

/* Inner Pages */
.inner-hero {
    background: var(--bg-light);
    padding: 60px 0;
}

.breadcrumbs {
    font-size: 13px;
    margin-bottom: 20px;
    color: var(--text-gray);
}

.inner-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    padding: 80px 20px;
}

.content-zone h2 { margin: 40px 0 20px; }
.content-zone p { margin-bottom: 20px; }
.main-article-img { width: 100%; border-radius: 4px; margin-bottom: 40px; }

.lead { font-size: 20px; font-weight: 500; color: var(--text-black); }

blockquote {
    border-left: 4px solid var(--accent-red);
    padding: 20px 40px;
    background: var(--bg-light);
    font-style: italic;
    margin: 40px 0;
    font-size: 18px;
}

.info-block {
    background: #F0F2F5;
    padding: 30px;
    border: 1px solid var(--accent-red);
    margin: 40px 0;
}

.sidebar-box {
    background: var(--bg-light);
    padding: 30px;
    margin-bottom: 30px;
}

.sidebar-box h4 { margin-bottom: 15px; }

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background: white;
    padding: 50px;
    max-width: 500px;
    width: 90%;
    position: relative;
    border-top: 8px solid var(--accent-red);
}

.modal-close {
    position: absolute;
    top: 20px; right: 20px;
    font-size: 30px;
    border: none; background: none; cursor: pointer;
}

.form-group { margin-bottom: 15px; }
.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
}

.form-privacy { font-size: 11px; margin-top: 15px; color: var(--text-gray); }

/* Responsive */
@media (max-width: 1150px) {
    .nav-menu, .header-contacts .phone { display: none; }
    .hero__grid, .stats__grid, .inner-content-wrapper { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; gap: 40px; }
    .competencies__grid, .blog-grid, .price-grid { grid-template-columns: 1fr; }
    .tech-control__content { flex-direction: column; text-align: center; }
}

@media (min-width: 601px) and (max-width: 1200px) {
    .price-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* --- Smart Hub Styles (Avant-Garde/Minimalism) --- */
.smart-hub {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.hub-controls {
    margin-bottom: 2rem;
}

.hub-search {
    position: relative;
    max-width: 400px;
}

.hub-search input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.hub-search input:focus {
    outline: none;
    border-color: #333;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.hub-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.hub-card {
    background: transparent;
    border: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 400px;
}

.hub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.hub-card__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.hub-card__image-wrapper {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
}

.hub-card__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Pattern Thumbnails */
.hub-card__image-wrapper.pattern-0 {
    background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 99%, #FECFEF 100%);
}

.hub-card__image-wrapper.pattern-1 {
    background: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
}

.hub-card__image-wrapper.pattern-2 {
    background: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);
}

.hub-card__image-wrapper.pattern-3 {
    background: linear-gradient(120deg, #d4fc79 0%, #96e6a1 100%);
}

.hub-card__image-wrapper.pattern-4 {
    background: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
}

.hub-card__image-wrapper.pattern-5 {
    background: linear-gradient(to right, #43e97b 0%, #38f9d7 100%);
}

.hub-card__image-wrapper.pattern-6 {
    background: linear-gradient(to top, #30cfd0 0%, #330867 100%);
}

.hub-card__image-wrapper.pattern-7 {
    background: linear-gradient(to right, #fa709a 0%, #fee140 100%);
}

.hub-card__image-wrapper.pattern-8 {
    background: linear-gradient(to top, #5ee7df 0%, #b490ca 100%);
}

.hub-card__image-wrapper.pattern-9 {
    background: linear-gradient(to right, #f78ca0 0%, #f9748f 19%, #fd868c 60%, #fe9a8b 100%);
}

.hub-card__content {
    padding: 1.5rem;
}

.hub-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: inherit;
    line-height: 1.4;
}

.hub-card__excerpt {
    font-size: 0.9rem;
    color: inherit;
    opacity: 0.8;
    line-height: 1.6;
}

.hub-footer {
    margin-top: 3rem;
    text-align: center;
}

/* Related Posts */
.related-posts {
    margin-top: 4rem;
    margin-bottom: 6rem;
    padding-top: 2rem;
    border-top: 1px solid #eaeaea;
}

.related-posts__heading {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.related-posts__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    justify-content: center;
}

.related-post-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    padding: 1rem;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.related-post-card:hover {
    background: rgba(128, 128, 128, 0.05);
}

.related-post-card__image {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #eee;
}

.related-post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-card__title {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

/* Utilities */
.btn-clean {
    background: none;
    border: 1px solid #333;
    padding: 10px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-clean:hover {
    background: #333;
    color: #fff;
}