/* Base Styles - улучшенные с медиазапросами */
:root {
    --color-primary: #0d2f52;
    --color-secondary: #00abc2;
    --color-accent: #7b68ee;
    --color-light: #f5f7fa;
    --color-dark: #1a1a1a;
    --color-gray: #6b7280;
    --color-light-gray: #e5e7eb;
    
    --font-family: 'Inter', sans-serif;
    --font-size-base: 16px;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    --border-radius: 8px;
    --border-radius-lg: 12px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-dark);
    background-color: #fff;
    min-width: 360px;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-semibold);
    line-height: 1.2;
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.section--gray {
    background-color: var(--color-light);
}

.section--accent {
    background-color: var(--color-primary);
    color: white;
}

.section__title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.section__title:after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--color-secondary);
    margin: 1rem auto;
    border-radius: 2px;
}

.section__actions {
    text-align: center;
    margin-top: 2rem;
}

.section__header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section__subtitle {
    font-size: 1.05rem;
    color: var(--color-gray);
    max-width: 720px;
    margin: 0.25rem auto 0;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 10px;
    border-radius: var(--border-radius);
    font-weight: var(--font-weight-medium);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn--primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: var(--shadow);
}

.btn--primary:hover {
    background-color: #083056;
    color: white;
    transform: translateY(-2px);
}

.btn--secondary {
    background-color: var(--color-secondary);
    color: white;
    box-shadow: var(--shadow);
}

.btn--secondary:hover {
    background-color: #00c0da;
    color: white;
    transform: translateY(-2px);
}

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

.btn--outline:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

.btn--outline-light {
    background-color: transparent;
    border-color: white;
    color: white;
}

.btn--outline-light:hover {
    background-color: white;
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn--light {
    background-color: white;
    color: var(--color-primary);
}

.btn--light:hover {
    background-color: var(--color-light);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn--small {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* Header Styles */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header--scrolled {
    box-shadow: var(--shadow-lg);
    background-color: rgba(255, 255, 255, 0.98);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: var(--font-weight-bold);
    font-size: 1.25rem;
    color: var(--color-primary);
}

.logo__image {
    height: 35px;
    margin-right: 8px;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav__link {
    font-weight: var(--font-weight-medium);
    color: var(--color-dark);
    font-size: 0.95rem;
}

.nav__link:hover {
    color: var(--color-secondary);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__toggle-line {
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Content */
.main {
    margin-top: 70px; /* Offset for fixed header */
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(10, 37, 64, 0.8), rgba(10, 37, 64, 0.8)), url('../images/project/block2.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), #ffffff);
    opacity: 0.6;
}

.hero__content {
    max-width: 800px;
    margin: 0 auto;
}

.hero__title {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.hero__subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.5;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Benefits Section */
.benefits__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.benefit-card {
    text-align: center;
    padding: 1.8rem;
    border-radius: var(--border-radius);
    background: white;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.benefit-card__icon {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.benefit-card__title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.benefit-card__text {
    color: var(--color-gray);
    line-height: 1.5;
}

/* Form Elements - улучшенные стили */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-dark);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-family);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(0, 194, 179, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Checkbox and Radio improved styles */
.checkbox,
.radio {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0.75rem;
}

.checkbox input,
.radio input {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    accent-color: var(--color-secondary);
}

/* Services Preview */
.services-preview__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-preview-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-preview-card__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.service-preview-card__text {
    margin-bottom: 1rem;
    color: var(--color-gray);
}

.service-preview-card__price {
    font-weight: var(--font-weight-bold);
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.service-preview-card__link {
    font-weight: var(--font-weight-medium);
    color: var(--color-primary);
}

/* Portfolio Preview */
.portfolio-preview__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-preview-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.portfolio-preview-card__image {
    height: 200px;
    overflow: hidden;
}

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

.portfolio-preview-card:hover .portfolio-preview-card__image img {
    transform: scale(1.05);
}

.portfolio-preview-card__content {
    padding: 1.5rem;
}

.portfolio-preview-card__title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.portfolio-preview-card__type {
    color: var(--color-secondary);
    font-weight: var(--font-weight-medium);
    margin-bottom: 0.5rem;
}

.portfolio-preview-card__area {
    color: var(--color-gray);
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: white;
    padding: 50px 0 25px;
}

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

.footer__title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.footer__subtitle {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

.footer__text {
    margin-bottom: 0.5rem;
    opacity: 0.8;
    line-height: 1.5;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer__copyright {
    opacity: 0.7;
}

/* Responsive Design - улучшенная адаптивность */
@media (max-width: 992px) {
    .section__title {
        font-size: 1.8rem;
    }
    
    .hero__title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .nav__list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        gap: 0;
    }
    
    .nav__list.active {
        display: flex;
    }
    
    .nav__item {
        width: 100%;
    }
    
    .nav__link {
        display: block;
        padding: 0.8rem 1rem;
        border-bottom: 1px solid var(--color-light-gray);
    }
    
    .nav__toggle {
        display: flex;
    }
    
    .hero__title {
        font-size: 1.8rem;
    }
    
    .hero__actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section__title {
        font-size: 1.6rem;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cta__actions {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .cta__actions .btn {
        margin: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero__title {
        font-size: 1.6rem;
    }
    
    .hero__subtitle {
        font-size: 1rem;
    }
    
    .section__title {
        font-size: 1.5rem;
    }
    
    .benefits__grid {
        grid-template-columns: 1fr;
    }
    
    .benefit-card {
        padding: 1.5rem;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .hero__title {
        font-size: 1.5rem;
    }
    
    .section__title {
        font-size: 1.4rem;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .form-input,
    .form-textarea,
    .form-select {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
}