:root {
    /* Dark blue theme */
    --bg: #020617; /* overall background - very dark navy */
    --surface: #020617; /* base surface */
    --card: #0b1120; /* cards, panels */
    --text: #e5e7eb; /* primary text */
    --muted: #9ca3af; /* secondary text */
    --line: rgba(148, 163, 184, 0.45); /* subtle borders */
    --accent: #1d4ed8; /* deep blue */
    --accent-2: #38bdf8; /* light blue accent */
    --success: #16a34a;
    --danger: #dc2626;
    --container: 1200px;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15,23,42,0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.main-nav a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: #f9fafb;
}

/* Mobile bottom navigation */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    border: none;
    padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
    pointer-events: none;
}

.mobile-nav-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 95%;
    margin: 0 auto;
    padding: 18px 22px;
    background: rgba(15,23,42,0.96);
    border-radius: 28px;
    border: 1px solid rgba(148,163,184,0.55);
    box-shadow: 0 18px 45px rgba(0,0,0,0.85);
    pointer-events: auto;
}

.mobile-icons-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.mobile-consultation-text {
    font-size: 14px;
    font-weight: 600;
    color: rgba(239, 246, 255, 0.9);
    text-align: center;
    letter-spacing: 0.3px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    width: 100%;
    padding-top: 10px;
    margin-top: 2px;
}

.mobile-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.25s ease;
    flex: 0 0 auto;
}

.mobile-nav-btn.social {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 0;
    overflow: hidden;
}

.mobile-social-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.mobile-nav-btn.social:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
}

.mobile-nav-btn.social:hover .mobile-social-icon {
    opacity: 1;
    transform: scale(1.1);
}

.mobile-nav-btn.social:active {
    transform: translateY(0);
}

.mobile-nav-btn.call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: linear-gradient(135deg, #38bdf8, #1d4ed8);
    border: 1px solid rgba(239,246,255,0.2);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
    flex-shrink: 0;
    padding: 0;
}

.call-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: block;
}

.mobile-nav-btn.call-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.4);
    background: linear-gradient(135deg, #4fc3f7, #2563eb);
}

.mobile-nav-btn.call-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 60px 0;
    color: #e5e7eb;
}

/* Hero section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(1200px 700px at -10% -10%, rgba(56,189,248,0.20), transparent 60%),
                radial-gradient(1100px 650px at 110% 120%, rgba(59,130,246,0.22), transparent 60%),
                linear-gradient(145deg, #020617 0%, #020617 42%, #020617 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.32) 0%, transparent 55%),
                radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.28) 0%, transparent 55%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -10%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    background-image: url('../logotip.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.08;
    pointer-events: none;
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 24px 0;
    background: linear-gradient(135deg, #f9fafb 0%, #bfdbfe 40%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--muted);
    margin: 0 0 40px 0;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-form {
    background: radial-gradient(circle at 0% 0%, rgba(56,189,248,0.22), transparent 55%),
                radial-gradient(circle at 100% 100%, rgba(37,99,235,0.24), transparent 50%),
                rgba(15,23,42,0.95);
    border: 1px solid rgba(148,163,184,0.7);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.95);
}

.consultation-form h3 {
    color: var(--text);
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 24px 0;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79, 91, 255, 0.1);
}

.privacy-notice {
    font-size: 0.875rem;
    color: var(--muted);
    text-align: center;
    margin-top: 16px;
}

.privacy-notice a {
    color: var(--accent);
    text-decoration: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    box-shadow: 0 4px 15px rgba(79, 91, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 91, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* Cards */
.result-card, .case-card, .review-card, .team-card, .who-card, .why-card, .service-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.result-card:hover, .case-card:hover, .review-card:hover, .team-card:hover, .who-card:hover, .why-card:hover, .service-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 8px 25px rgba(79, 91, 255, 0.1);
}

/* Grids */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.result-card {
    text-align: center;
    padding: 32px 24px;
}

.result-icon {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.result-icon img {
    width: 60px;
    height: 60px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.result-card:hover .result-icon img {
    opacity: 1;
    transform: scale(1.1);
}

.result-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 8px;
}

.result-label {
    color: var(--muted);
    font-size: 1rem;
    font-weight: 500;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.case-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.case-image {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--surface), var(--card));
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}

.case-image img {
    max-width: 80px;
    max-height: 80px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.1);
}

.case-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--text);
}

.case-content p {
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 16px 0;
    flex-grow: 1;
}

.case-result {
    background: linear-gradient(135deg, var(--success), #16a34a);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    margin-top: auto;
}

.reviews-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.review-card {
    position: relative;
}

.review-content {
    margin-bottom: 20px;
}

.review-content p {
    font-style: italic;
    line-height: 1.6;
    color: var(--text);
    margin: 0;
    position: relative;
}

.review-content p::before {
    content: '"';
    font-size: 3rem;
    color: var(--accent);
    position: absolute;
    top: -10px;
    left: -10px;
    opacity: 0.3;
}

.review-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-name {
    font-weight: 600;
    color: var(--text);
}

.author-case {
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 500;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.team-card {
    text-align: center;
}

.team-media {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 1;
    margin: 0 auto 20px;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid var(--accent);
    position: relative;
}

.team-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-card:hover .team-media img {
    transform: scale(1.1);
}

.team-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--text);
}

.team-role {
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 8px;
}

.team-tags {
    color: var(--muted);
    font-size: 0.875rem;
}

.who-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.who-card {
    text-align: center;
    padding: 32px 24px;
}

.who-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.who-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--text);
}

.who-card p {
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 24px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--muted);
    font-weight: 500;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.why-card {
    text-align: center;
    padding: 32px 24px;
}

.why-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.why-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--text);
}

.why-card p {
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

.process-timeline {
    margin-top: 40px;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--accent-2));
    transform: translateX(-50%);
}

.process-step {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.process-step:nth-child(odd) {
    flex-direction: row;
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    padding: 0 40px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
    margin: 0 20px;
    transition: all 0.3s ease;
}

.step-content:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--text);
}

.step-content p {
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.service-card {
    padding: 32px 24px;
    text-align: center;
}

.service-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.service-icon img {
    width: 60px;
    height: 60px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon img {
    opacity: 1;
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--text);
}

.service-card p {
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

.contacts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
    align-items: start;
}

.contact-info {
    display: grid;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--accent);
    transform: translateX(8px);
}

.contact-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 12px;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--text);
}

.contact-details p {
    color: var(--muted);
    margin: 0;
    font-size: 0.875rem;
}

.contact-form {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
}

.contact-form-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.contact-form-icon img {
    width: 60px;
    height: 60px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.contact-form:hover .contact-form-icon img {
    opacity: 1;
    transform: scale(1.1);
}

.contact-form h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--text);
}

.contact-form p {
    color: var(--muted);
    margin: 0 0 24px 0;
    line-height: 1.6;
}

.faq-list {
    margin-top: 40px;
}

.faq-item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--accent);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.125rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px 20px;
    color: var(--muted);
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 24px 20px;
}

.articles-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.article-preview-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.article-preview-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(79, 91, 255, 0.1);
}

.article-preview-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.article-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-preview-card:hover .article-preview-image img {
    transform: scale(1.1);
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--surface), var(--card));
    font-size: 3rem;
    color: var(--muted);
}

.article-preview-content {
    padding: 24px;
}

.article-preview-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.875rem;
}

.article-category {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 500;
}

.article-date {
    color: var(--muted);
}

.article-preview-title {
    margin: 0 0 12px 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

.article-preview-title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-preview-title a:hover {
    color: var(--accent);
}

.article-preview-excerpt {
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.article-preview-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.article-preview-link:hover {
    color: var(--accent-2);
}

.articles-more {
    text-align: center;
    margin-top: 40px;
}

/* Feature block */
.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 40px;
}

.feature-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 24px 0;
    color: var(--text);
    text-align: left;
}

.feature-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--muted);
    margin: 0 0 20px 0;
}

.feature-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.feature-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feature-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(46, 91, 255, 0.05), rgba(124, 36, 240, 0.05));
    pointer-events: none;
}

.no-articles {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}

.no-articles p {
    margin-bottom: 20px;
    font-size: 18px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(6px);
}

.modal-dialog {
    position: relative;
    z-index: 1;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal[aria-hidden="false"] .modal-dialog {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--surface);
    color: var(--text);
}

.modal-description {
    color: var(--muted);
    margin-bottom: 24px;
    text-align: center;
}

.form {
    display: grid;
    gap: 16px;
}

.form label {
    display: grid;
    gap: 8px;
}

.form label span {
    color: var(--text);
    font-weight: 500;
}

.form input,
.form textarea {
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form input:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79, 91, 255, 0.1);
}

.form-note {
    color: var(--success);
    text-align: center;
    font-weight: 500;
}

/* Footer */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 60px 0 40px;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-nav a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--text);
}

.legal {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.6;
}

.legal a {
    color: var(--accent);
    text-decoration: none;
}

.contact-info {
    display: grid;
    gap: 8px;
}

.contact-info div {
    color: var(--muted);
    font-size: 0.875rem;
}

/* Social links in footer */
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.social-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.15);
    border: 1px solid rgba(148, 163, 184, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    overflow: hidden;
    position: relative;
}

.social-link:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
}

.social-link img {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.social-link:hover img {
    opacity: 1;
    transform: scale(1.1);
}

/* Responsive design */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .contacts-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .process-timeline::before {
        left: 30px;
    }
    
    .process-step {
        flex-direction: row !important;
        padding-left: 60px;
    }
    
    .step-content {
        margin: 0;
    }
    
    .feature-block {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .feature-content h2 {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.125rem;
    }
    
    .results-grid, .cases-grid, .reviews-list, .team-grid, .who-grid, .why-grid, .services-grid, .articles-preview-grid {
        grid-template-columns: 1fr;
    }
    
    .team-media {
        max-width: 240px;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mobile-nav {
        display: block;
    }
    
    .main-nav {
        display: none;
    }
    
    .footer-social {
        display: none;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .hero-form {
        padding: 24px;
    }
    
    .consultation-form h3 {
        font-size: 20px;
    }
    
    .modal-dialog {
        margin: 20px;
        padding: 24px;
    }
    
    .contact-form {
        padding: 24px;
    }
    
    .contact-form h3 {
        font-size: 1.25rem;
    }
    
    .feature-content h2 {
        font-size: 2rem;
    }
    
    .feature-content p {
        font-size: 1rem;
    }
    
    .feature-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .modal-dialog {
        margin: 20px;
        padding: 24px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section h2 {
        font-size: 1.75rem;
    }
    
    .team-media {
        max-width: 200px;
    }
    
    .mobile-nav-buttons {
        padding: 16px 18px;
        gap: 10px;
        border-radius: 24px;
    }
    
    .mobile-icons-row {
        gap: 16px;
    }
    
    .mobile-nav-btn.social {
        width: 60px;
        height: 60px;
    }
    
    .mobile-social-icon {
        width: 34px;
        height: 34px;
        min-width: 34px;
        min-height: 34px;
    }
    
    .mobile-nav-btn.call-btn {
        width: 60px;
        height: 60px;
    }
    
    .call-icon {
        width: 30px;
        height: 30px;
    }
    
    .mobile-consultation-text {
        font-size: 13px;
        padding-top: 8px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-2);
}