/* =============================================
   STUDIO85 IT — Основные стили
   st85.ru
   ============================================= */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, sans-serif;
    color: #1d1d1f;
    background: #fff;
    line-height: 1.5;
}

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

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

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

/* --- Section --- */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 48px;
    text-align: center;
}

.section-action {
    text-align: center;
    margin-top: 40px;
}

/* --- Header --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 32px;
    width: auto;
}

.footer-logo-img {
    height: 28px;
    width: auto;
}

.main-nav {
    display: flex;
    gap: 32px;
}

.main-nav a {
    font-size: 15px;
    color: #86868b;
    transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    color: #1d1d1f;
}

.nav-login-link,
.nav-admin-link {
    padding: 6px 16px !important;
    border-radius: 980px;
    font-size: 14px !important;
    font-weight: 500;
    transition: all 0.2s !important;
}

.nav-login-link {
    background: #0071e3;
    color: #fff !important;
}

.nav-login-link:hover {
    background: #0058b0;
    color: #fff !important;
}

.nav-admin-link {
    background: #f5f5f7;
    color: #1d1d1f !important;
}

.nav-admin-link:hover {
    background: #e8e8ed;
    color: #1d1d1f !important;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    z-index: 110;
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #1d1d1f;
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero (статичный, как на сайте недвижимости) --- */
.hero {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 480px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #f5f5f7;
}

/* Background — полноценный дашборд аналитики */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* Hero-bg как zoom-viewer (showcase): сброс конфликтующих стилей */
.hero-bg.zoom-viewer {
    margin: 0;
}

.hero-bg .zoom-viewport {
    position: absolute;
    inset: 0;
    border-radius: 0;
    background: transparent;
}

.hero-bg .zoom-image {
    display: block;
    width: 100%;
    height: auto;
}

/* Скрываем caption и progress на hero (не нужны в фоне) */
.hero-bg .zoom-caption {
    display: none;
}

.hero-bg .showcase-progress {
    display: none;
}

.hero-bg svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Gradient overlay — текст чёткий слева, дашборд виден справа */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, #f5f5f7 35%, rgba(245,245,247,0.6) 55%, transparent 75%);
    pointer-events: none;
}

/* Контент — левое выравнивание */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1120px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    max-width: 800px;
    text-align: left;
    color: #1d1d1f;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.8;
    max-width: 600px;
    color: #86868b;
    text-align: left;
    margin: 0;
}

.hero-actions {
    margin-top: 2rem;
}

.hero-actions .btn-primary {
    padding: 12px 32px;
    background: #3B82F6;
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.hero-actions .btn-primary:hover {
    background: #2563EB;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: #1d1d1f;
    color: #fff;
}

.btn-primary:hover {
    background: #333;
}

.btn-secondary {
    background: #f5f5f7;
    color: #1d1d1f;
}

.btn-secondary:hover {
    background: #e8e8ed;
}

.link-arrow {
    font-size: 16px;
    font-weight: 500;
    color: #0071e3;
    transition: opacity 0.2s;
}

.link-arrow:hover {
    opacity: 0.7;
}

/* --- Grid --- */
.grid {
    display: grid;
    gap: 24px;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* --- Cards --- */
.card {
    background: #f5f5f7;
    border-radius: 20px;
    padding: 40px 32px;
}

.card-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

/* Colored icon circles (cards) */
.card-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.card-icon-blue {
    background: rgba(0, 113, 227, 0.1);
    color: #0071e3;
}

.card-icon-purple {
    background: rgba(120, 71, 229, 0.1);
    color: #7847e5;
}

.card-icon-green {
    background: rgba(52, 199, 89, 0.1);
    color: #34c759;
}

.card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.card p {
    color: #86868b;
    font-size: 15px;
    line-height: 1.6;
}

/* --- Case Preview --- */
.case-preview {
    background: #f5f5f7;
}

.case-card {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.case-card-wide {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: center;
}

.case-card-wide .case-info {
    text-align: left;
}

.case-screenshot {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.case-screenshot img {
    display: block;
    width: 100%;
    height: auto;
}

.case-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #86868b;
    margin-bottom: 12px;
}

.case-info h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.case-info p {
    font-size: 17px;
    color: #86868b;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* --- Tech Tags --- */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.tag {
    display: inline-block;
    padding: 10px 20px;
    background: #f5f5f7;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 500;
    color: #1d1d1f;
}

/* --- CTA --- */
.cta {
    text-align: center;
    background: #1d1d1f;
    color: #fff;
    padding: 80px 0;
}

.cta h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta p {
    font-size: 17px;
    color: #a1a1a6;
    margin-bottom: 32px;
}

.cta .btn-primary {
    background: #fff;
    color: #1d1d1f;
}

.cta .btn-primary:hover {
    background: #f5f5f7;
}

/* --- Footer --- */
.site-footer {
    padding: 48px 0 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 4px;
}

.footer-brand p {
    font-size: 14px;
    color: #86868b;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 14px;
    color: #86868b;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #1d1d1f;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 16px;
}

.footer-bottom p {
    font-size: 13px;
    color: #86868b;
}

/* --- Page Hero --- */
.page-hero {
    padding: 100px 0 48px;
    text-align: center;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.page-subtitle {
    font-size: 19px;
    color: #86868b;
    max-width: 560px;
    margin: 0 auto;
}

/* --- Services --- */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.service-block {
    background: #f5f5f7;
    border-radius: 20px;
    padding: 40px;
}

.service-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 28px;
}

.service-icon {
    font-size: 36px;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Colored icon circles (services) */
.service-icon-circle {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.svc-icon-blue {
    background: rgba(0, 113, 227, 0.1);
    color: #0071e3;
}

.svc-icon-purple {
    background: rgba(120, 71, 229, 0.1);
    color: #7847e5;
}

.svc-icon-orange {
    background: rgba(255, 149, 0, 0.1);
    color: #ff9500;
}

.svc-icon-green {
    background: rgba(52, 199, 89, 0.1);
    color: #34c759;
}

.svc-icon-teal {
    background: rgba(0, 199, 190, 0.1);
    color: #00c7be;
}

.svc-icon-indigo {
    background: rgba(88, 86, 214, 0.1);
    color: #5856d6;
}

.service-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 6px;
}

.service-desc {
    font-size: 16px;
    color: #86868b;
    line-height: 1.5;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
}

.feature-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature-text {
    display: block;
    font-size: 14px;
    color: #86868b;
    line-height: 1.5;
}

.service-link {
    margin-top: 16px;
    text-align: right;
}
.service-link a {
    color: #0071e3;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}
.service-link a:hover {
    text-decoration: underline;
}

/* --- Case Detail --- */
.case-hero {
    text-align: center;
    margin-bottom: 64px;
}

.case-hero-screenshot {
    margin-top: 40px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.case-hero-screenshot img {
    display: block;
    width: 100%;
    height: auto;
}

.case-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0071e3;
    background: rgba(0, 113, 227, 0.08);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.case-name {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.case-tagline {
    font-size: 21px;
    color: #86868b;
}

.case-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 80px;
}

.summary-block {
    background: #f5f5f7;
    border-radius: 20px;
    padding: 32px;
}

.summary-block h3 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #86868b;
    margin-bottom: 12px;
}

.summary-block p {
    font-size: 16px;
    line-height: 1.6;
}

.case-section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.case-section-desc {
    font-size: 17px;
    color: #86868b;
    text-align: center;
    margin-bottom: 40px;
}

.case-modules {
    margin-bottom: 80px;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.module-card {
    background: #f5f5f7;
    border-radius: 20px;
    padding: 32px;
}

.module-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.module-card h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.module-card p {
    font-size: 15px;
    color: #86868b;
    line-height: 1.6;
}

.module-demo-placeholder {
    margin-top: 20px;
    background: #e8e8ed;
    border-radius: 12px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.module-demo-placeholder span {
    font-size: 14px;
    color: #a1a1a6;
}

/* Интерактивные демо внутри карточек модулей */
.module-demo {
    margin-top: 20px;
}

.module-demo.video-demo.device-phone {
    max-width: 260px;
    margin-left: 0;
}

.case-stack {
    text-align: center;
}

/* --- Technologies --- */
.section-subtitle {
    font-size: 17px;
    color: #86868b;
    text-align: center;
    max-width: 560px;
    margin: -32px auto 48px;
}

.principle-card {
    background: #f5f5f7;
    border-radius: 20px;
    padding: 40px 32px;
}

.principle-number {
    font-size: 48px;
    font-weight: 700;
    color: #e8e8ed;
    margin-bottom: 12px;
    line-height: 1;
}

.principle-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.principle-card p {
    font-size: 15px;
    color: #86868b;
    line-height: 1.6;
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stack-item {
    background: #f5f5f7;
    border-radius: 20px;
    padding: 32px;
}

.stack-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 2px;
}

.stack-role {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #86868b;
    margin-bottom: 12px;
}

.stack-item p {
    font-size: 15px;
    color: #86868b;
    line-height: 1.6;
}

/* Architecture Diagram */
.architecture-section {
    background: #f5f5f7;
}

.arch-diagram {
    max-width: 720px;
    margin: 0 auto 64px;
}

.arch-layer {
    background: #fff;
    border-radius: 16px;
    padding: 24px 32px;
    text-align: center;
}

.arch-layer-label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.arch-layer-label small {
    font-weight: 400;
    color: #86868b;
}

.arch-layer-items {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.arch-layer-items span {
    font-size: 14px;
    background: #f5f5f7;
    padding: 6px 14px;
    border-radius: 8px;
    font-family: 'SF Mono', 'Menlo', monospace;
}

.arch-arrow {
    text-align: center;
    padding: 12px 0;
    font-size: 14px;
    color: #86868b;
}

.arch-modules-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.arch-module {
    background: #f5f5f7;
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
}

.arch-module strong {
    display: block;
    font-size: 13px;
    font-family: 'SF Mono', 'Menlo', monospace;
    margin-bottom: 2px;
}

.arch-module span {
    font-size: 12px;
    color: #86868b;
}

.arch-db {
    background: #1d1d1f;
    color: #fff;
}

.arch-db .arch-layer-items span {
    background: rgba(255, 255, 255, 0.1);
    color: #a1a1a6;
}

/* Code Block */
.arch-how {
    max-width: 640px;
    margin: 0 auto;
}

.arch-how h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}

.code-block {
    background: #1d1d1f;
    border-radius: 12px;
    padding: 24px 28px;
    overflow-x: auto;
}

.code-line {
    font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
    font-size: 14px;
    color: #f5f5f7;
    line-height: 1.8;
}

.code-comment {
    color: #6e6e73;
}

/* Deploy Flow */
.deploy-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.deploy-step {
    text-align: center;
    flex: 0 0 auto;
}

.deploy-step-number {
    width: 48px;
    height: 48px;
    background: #1d1d1f;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    margin: 0 auto 12px;
}

.deploy-step-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.deploy-step-content p {
    font-size: 13px;
    color: #86868b;
    max-width: 140px;
}

.deploy-connector {
    font-size: 20px;
    color: #d2d2d7;
    padding: 0 16px;
    padding-bottom: 40px;
}

/* --- Contacts --- */
.contacts-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 64px;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group label {
    font-size: 14px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    font-family: inherit;
    font-size: 16px;
    padding: 14px 16px;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    background: #fff;
    color: #1d1d1f;
    transition: border-color 0.2s;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0071e3;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a1a1a6;
}

.btn-full {
    width: 100%;
    text-align: center;
}

.form-error {
    background: #fff2f2;
    color: #ff3b30;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    margin-bottom: 8px;
}

.form-success {
    text-align: center;
    padding: 64px 32px;
    background: #f5f5f7;
    border-radius: 20px;
}

.form-success-icon {
    width: 56px;
    height: 56px;
    background: #34c759;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 16px;
}

.form-success h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-success p {
    font-size: 15px;
    color: #86868b;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-item-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #86868b;
    margin-bottom: 4px;
}

.contact-item-value {
    font-size: 18px;
    font-weight: 500;
    color: #0071e3;
    transition: opacity 0.2s;
}

.contact-item-value:hover {
    opacity: 0.7;
}

.contact-note {
    padding-top: 8px;
}

.contact-note p {
    font-size: 14px;
    color: #86868b;
    line-height: 1.5;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    /* Mobile Menu */
    .main-nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 105;
        align-items: center;
        justify-content: center;
        gap: 0;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
    }

    .main-nav.open {
        opacity: 1;
        visibility: visible;
    }

    .main-nav a {
        font-size: 28px;
        font-weight: 600;
        color: #1d1d1f;
        padding: 16px 0;
    }

    .main-nav a.active {
        color: #0071e3;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Hero — mobile */
    .hero {
        height: auto;
        min-height: auto;
        padding: 100px 24px 60px;
    }

    .hero-bg {
        display: none;
    }

    .hero-content {
        padding: 0;
    }

    .hero-title {
        font-size: 2rem;
        text-align: left;
    }

    .hero-title span,
    .hero-subtitle span {
        background: none;
        padding: 0;
    }

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

    .hero-actions {
        margin-top: 1.5rem;
    }

    /* Sections */
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 32px;
    }

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

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

    /* Pages */
    .page-hero {
        padding: 80px 0 32px;
    }

    .page-title {
        font-size: 32px;
    }

    .page-subtitle {
        font-size: 17px;
    }

    /* Cases */
    .case-card-wide {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .case-card-wide .case-info {
        text-align: center;
    }

    .case-info h2 {
        font-size: 32px;
    }

    .case-name {
        font-size: 36px;
    }

    .case-tagline {
        font-size: 17px;
    }

    .case-summary {
        grid-template-columns: 1fr;
        margin-bottom: 48px;
    }

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

    .case-section-title {
        font-size: 24px;
    }

    .case-modules {
        margin-bottom: 48px;
    }

    /* Services */
    .service-header {
        flex-direction: column;
        gap: 12px;
    }

    .service-block {
        padding: 28px 20px;
    }

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

    /* Technologies */
    .stack-grid {
        grid-template-columns: 1fr;
    }

    .arch-modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .arch-diagram {
        margin-bottom: 40px;
    }

    .arch-layer {
        padding: 20px 16px;
    }

    .deploy-flow {
        flex-direction: column;
        gap: 8px;
    }

    .deploy-connector {
        transform: rotate(90deg);
        padding: 0;
    }

    .code-block {
        padding: 16px;
    }

    .code-line {
        font-size: 12px;
    }

    /* Contacts */
    .contacts-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    /* CTA */
    .cta {
        padding: 60px 0;
    }

    .cta h2 {
        font-size: 28px;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 24px;
    }

    .footer-links {
        flex-wrap: wrap;
    }
}
