:root {
    --primary-color: #009662;
    --primary-color-light: rgba(0, 150, 98, 0.1);
    --background-color: #0f0f0f;
    --background-color-light: #1a1a1a;
    --text-color: #ffffff;
    --text-color-muted: #b0b0b0;
    --border-color: #2a2a2a;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --card-bg: #171717;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

/* Typography */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--primary-color);
}

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

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

/* Buttons */

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
}

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

.btn.primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

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

.btn.secondary:hover {
    background-color: var(--text-color);
    color: var(--background-color);
}

/* Header & Navigation */

header {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0;
    overflow: hidden;
}

nav {
    display: flex;
    align-items: center;
    padding: 30px 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.logo {
    z-index: 10;
    margin-right: auto;
    padding-left: 40px;
}

.logo img {
    height: 40px;
}

.logo-text {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 24px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    position: relative;
    text-transform: lowercase;
    line-height: 1;
    gap: 8px;
}

.logo-text span {
    display: flex;
    align-items: center;
    height: 32px;
}

.logo-symbol {
    height: 32px;
    width: 32px;
    flex-shrink: 0;
}

.t-dot {
    display: none;
}

.footer-logo .logo-text {
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
}

.footer-logo .logo-symbol {
    margin-right: 8px;
}

/* Специфичное решение для выравнивания в футере */
footer .logo-text {
    display: flex;
    align-items: center;
}

footer .logo-text img.logo-symbol {
    display: block;
    margin-right: 8px;
}

footer .logo-text span {
    display: block;
    height: 32px;
    line-height: 32px;
}

.nav-links {
    margin-right: 60px;
}

.nav-links ul {
    display: flex;
    align-items: center;
}

.nav-links ul li {
    position: relative;
    padding: 0 20px;
}

.nav-links ul li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 16px;
    width: 1px;
    background-color: var(--text-color);
    opacity: 0.5;
}

.nav-links ul li a {
    font-weight: 500;
}

.burger {
    display: none;
    cursor: pointer;
    z-index: 10;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: var(--transition);
}

/* Hero Section */

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--text-color-muted);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.hero-graphic {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-graphic img.accent-symbol {
    width: 400px;
    height: 400px;
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

/* Анимация для героя */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Анимация отдельных колец в SVG через CSS */
@keyframes rotate-outer {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes rotate-inner {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-360deg);
    }
}

/* Стили для анимированного SVG */
.animated-rings-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.animated-rings-container .outer-ring,
.animated-rings-container .inner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.animated-rings-container .outer-ring {
    animation: rotate-outer 30s linear infinite;
}

.animated-rings-container .inner-ring {
    animation: rotate-inner 20s linear infinite;
}

/* Добавляем эффект парения для колец */
.animated-rings-container {
    animation: float 6s ease-in-out infinite;
}

/* Sections - Alternating Colors */
section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Dark sections (default) */
section {
    background-color: var(--background-color);
    color: var(--text-color);
}

/* Light sections */
section.light-section {
    background-color: #ffffff;
    color: #121212;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Adjust text colors for light sections */
section.light-section h2 {
    color: #121212;
}

section.light-section p {
    color: #333333;
}

section.light-section .section-header p {
    color: #555555;
}

/* Adjust card backgrounds for light sections */
section.light-section .service-card,
section.light-section .expertise-card,
section.light-section .case-study-card {
    background-color: #f5f5f5;
    border-color: #e0e0e0;
}

section.light-section .service-card:hover,
section.light-section .expertise-card:hover,
section.light-section .case-study-card:hover {
    border-color: var(--primary-color);
}

/* Adjust metrics for light sections */
section.light-section .metric {
    background-color: #f5f5f5;
    border-color: #e0e0e0;
}

/* Keep the green color consistent */
section.light-section .highlight,
section.light-section .metric h3,
section.light-section .result-value {
    color: var(--primary-color);
}

/* Adjust icons and features in light sections */
section.light-section .service-icon {
    background-color: rgba(0, 150, 98, 0.1);
}

section.light-section .service-features li {
    color: #555555;
}

section.light-section .service-features li::before {
    background-color: var(--primary-color);
}

section.light-section .expertise-card h3::before {
    background-color: var(--primary-color);
}

/* Keep dots visible on light background */
section.light-section .dots-decoration svg path {
    fill: rgba(0, 150, 98, 0.3);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header p {
    color: var(--text-color-muted);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.section-header.left-align {
    text-align: left;
    margin-bottom: 30px;
}

/* Services Section */

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

.service-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Чтобы карточки были одинаковой высоты в ряду */
.services-grid .service-card {
    display: flex;
    flex-direction: column;
}

.services-grid .service-card p {
    flex-grow: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--primary-color-light);
    margin-bottom: 20px;
}

.service-icon img {
    width: 35px;
    height: 35px;
}

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

.service-features {
    margin-top: auto;
    padding-top: 20px;
}

.service-features li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--text-color-muted);
}

.service-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 2px;
    background-color: var(--primary-color);
}

/* About Section */

.about {
    /* Удаляем фон, так как он теперь устанавливается классом light-section */
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.accent-symbol-large {
    max-width: 300px;
}

/* Metrics section in About */
.metrics-container {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 30px;
}

.metric {
    text-align: center;
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    flex: 1;
}

.metric h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.metric p {
    margin-bottom: 0;
    color: var(--text-color-muted);
}

/* Case Studies Section */
.case-studies {
    padding: 120px 0;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.case-study-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.case-study-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.case-study-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.case-study-header h3 {
    margin-bottom: 0;
    font-size: 1.5rem;
}

.industry-tag {
    background-color: var(--primary-color-light);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.case-study-description {
    color: var(--text-color-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.case-study-results {
    display: flex;
    gap: 20px;
}

.result-item {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.result-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.result-label {
    font-size: 0.9rem;
    color: var(--text-color-muted);
}

.cta-center {
    text-align: center;
    margin-top: 30px;
}

/* Enhanced Footer */
.tagline {
    color: var(--text-color-muted);
    margin-top: 10px;
    max-width: 300px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 40px;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-color-muted);
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: var(--text-color-muted);
    font-size: 0.9rem;
}

.footer-legal a:hover {
    color: var(--primary-color);
}

/* Enhanced Contact Form */
.form-group select {
    width: 100%;
    padding: 12px;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-family: 'Manrope', sans-serif;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Contact Section */

.contact-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 60px;
}

.contact-form {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-family: 'Manrope', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.info-item h3 {
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--card-bg);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.social-links img {
    width: 20px;
    height: 20px;
}

/* Footer */

footer {
    background-color: #0a0a0a;
    padding: 100px 0 30px;
    position: relative;
    z-index: 2;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 20px;
}

.footer-nav ul li,
.footer-services ul li {
    margin-bottom: 15px;
}

.footer-nav h4,
.footer-services h4 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-color-muted);
}

/* Section transition effects */
section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--background-color));
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
}

section.light-section::after {
    background: linear-gradient(to bottom, transparent, white);
}

/* Last section before footer doesn't need border */
section:last-of-type {
    border-bottom: none;
}

section:last-of-type::after {
    display: none;
}

/* Enhanced styles for light-dark transitions */
section.light-section + section:not(.light-section) {
    box-shadow: inset 0 10px 20px -10px rgba(0, 0, 0, 0.1);
}

section:not(.light-section) + section.light-section {
    box-shadow: inset 0 10px 20px -10px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */

@media screen and (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .hero {
        flex-direction: column;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .metrics-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .case-studies-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--background-color-light);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
        margin-right: 0;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links ul {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-links ul li {
        margin: 15px 0;
        padding: 0;
    }
    
    .nav-links ul li:not(:last-child)::after {
        display: none;
    }
    
    .burger {
        display: block;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media screen and (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .services-grid,
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}

/* Декоративные точки */
.dots-decoration {
    position: absolute;
    z-index: 3;
    opacity: 1;
    pointer-events: none;
    filter: drop-shadow(0 0 10px white) drop-shadow(0 0 20px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 30px rgba(255, 255, 255, 0.5));
    transform-origin: center;
}

.dots-top-right {
    top: -150px;
    right: -150px;
    width: 900px;
    height: 700px;
    transform: rotate(45deg) scale(2);
}

.dots-bottom-left {
    bottom: -150px;
    left: -150px;
    width: 800px;
    height: 600px;
    transform: rotate(-30deg) scale(2);
}

.dots-services {
    top: -100px;
    right: -150px;
    width: 700px;
    height: 500px;
    transform: rotate(15deg) scale(2);
}

.dots-expertise {
    bottom: -100px;
    left: -150px;
    width: 600px;
    height: 700px;
    transform: rotate(60deg) scale(2);
}

.dots-contact {
    bottom: -100px;
    right: -150px;
    width: 600px;
    height: 700px;
    transform: rotate(-15deg) scale(2);
}

/* Стилизуем SVG элементы точек */
.dots-decoration svg {
    width: 100%;
    height: 100%;
}

.dots-decoration svg path {
    fill: white;
    filter: drop-shadow(0 0 8px white) drop-shadow(0 0 15px white);
    transition: fill 0.5s ease;
    stroke: white;
    stroke-width: 1px;
}

/* Добавляем эффект пульсации */
@keyframes pulse {
    0% { opacity: 0.8; transform: scale(1); filter: brightness(1); }
    50% { opacity: 1; transform: scale(1.1); filter: brightness(1.3); }
    100% { opacity: 0.8; transform: scale(1); filter: brightness(1); }
}

/* Применяем пульсацию ко всем точкам */
.dots-decoration svg path {
    animation: pulse 3s ease-in-out infinite;
}

/* Добавляем эффект медленного дрейфа для точек */
.dots-top-right {
    animation: drift-top-right 40s linear infinite;
}

.dots-bottom-left {
    animation: drift-bottom-left 35s linear infinite;
}

.dots-services, .dots-expertise, .dots-contact {
    animation: drift-slow 50s linear infinite;
}

@keyframes drift-top-right {
    0% {
        transform: rotate(45deg) translateY(0) scale(2);
    }
    50% {
        transform: rotate(45deg) translateY(-70px) scale(2);
    }
    100% {
        transform: rotate(45deg) translateY(0) scale(2);
    }
}

@keyframes drift-bottom-left {
    0% {
        transform: rotate(-30deg) translateX(0) scale(2);
    }
    50% {
        transform: rotate(-30deg) translateX(-60px) scale(2);
    }
    100% {
        transform: rotate(-30deg) translateX(0) scale(2);
    }
}

@keyframes drift-slow {
    0% {
        transform: translateY(0) rotate(var(--rotation, 0deg)) scale(2);
    }
    50% {
        transform: translateY(-50px) rotate(var(--rotation, 0deg)) scale(2);
    }
    100% {
        transform: translateY(0) rotate(var(--rotation, 0deg)) scale(2);
    }
}

/* Обновляем стили секций с учетом добавления точек */
header, section {
    position: relative;
    overflow: hidden;
}

/* Expertise Section */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.expertise-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.expertise-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.expertise-card h3 {
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
}

.expertise-card h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

/* Form improvements for light sections */
section.light-section .form-group input,
section.light-section .form-group textarea,
section.light-section .form-group select {
    background-color: #f5f5f5;
    border-color: #e0e0e0;
    color: #333333;
}

section.light-section .form-group input:focus,
section.light-section .form-group textarea:focus,
section.light-section .form-group select:focus {
    border-color: var(--primary-color);
}

section.light-section .form-group label {
    color: #333333;
}

/* Adjust the select dropdown arrow for light sections */
section.light-section .form-group select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

/* Специфичное решение для выравнивания в шапке */
.header-logo-text {
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
    height: 32px !important;
}

.header-logo-text .logo-symbol {
    display: flex !important;
    margin-right: 8px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    height: 32px !important;
    width: 32px !important;
}

.header-logo-text span {
    display: inline-flex !important;
    align-items: center !important;
    height: 32px !important;
}

/* Специфичное решение для выравнивания в футере */
.footer-logo-text {
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
    height: 32px !important;
}

.footer-logo-text .logo-symbol {
    display: flex !important;
    margin-right: 8px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    height: 32px !important;
    width: 32px !important;
}

.footer-logo-text span {
    display: inline-flex !important;
    align-items: center !important;
    height: 32px !important;
}

/* Модальное окно для формы */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    animation: modalIn 0.5s;
}

@keyframes modalIn {
    0% {
        transform: translateY(-30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-body {
    padding: 40px;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color-muted);
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-color);
}

.success-icon {
    margin-bottom: 20px;
}

.modal h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.modal p {
    margin-bottom: 25px;
}

.close-btn {
    min-width: 120px;
}

/* Светлая тема для модального окна */
section.light-section .modal-content {
    background-color: #ffffff;
    border-color: #e0e0e0;
}

section.light-section .modal h3 {
    color: var(--primary-color);
}

section.light-section .close-modal {
    color: #555555;
}

section.light-section .close-modal:hover {
    color: var(--primary-color);
}

/* Медиа-запрос для планшетов */
@media screen and (max-width: 1200px) and (min-width: 993px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .service-card {
        padding: 25px;
    }
} 