/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --deep-blue: #0A1F44;
    --ocean-blue: #1A3A6C;
    --accent-blue: #2D5BA9;
    --light-blue: #4A90E2;
    --sky-blue: #E8F4FF;
    --gold: #D4AF37;
    --silver: #C0C0C0;
    --ice: #F5F9FF;
    --dark: #111827;
    --gray: #6B7280;
    --light-gray: #F3F4F6;
    --white: #FFFFFF;
    --shadow: 0 10px 25px rgba(10, 31, 68, 0.08);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--ice);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Типография */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--gray);
    font-size: 1.125rem;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 60px;
    padding: 0 2.5rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--light-blue));
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1.125rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.7s;
}

.btn:hover:before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(45, 91, 169, 0.2);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--accent-blue);
    color: var(--white);
}

/* Хедер */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(10, 31, 68, 0.1);
    transition: var(--transition);
}

header.scrolled {
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-blue), var(--light-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--deep-blue);
    letter-spacing: -0.5px;
}

.logo-sub {
    font-size: 0.875rem;
    color: var(--gray);
    margin-top: 2px;
}

.murmansk-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #1A3A6C, #2D5BA9);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 10px;
}

nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

nav a {
    text-decoration: none;
    color: var(--deep-blue);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transform: translateY(17px);
    display: inline-block;
    transition: var(--transition);
}

nav a.btn {
    transform: translateY(0);
}

nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--light-blue));
    transition: width 0.3s;
}

nav a:hover {
    color: var(--accent-blue);
}

nav a:hover:after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--deep-blue);
    cursor: pointer;
}

/* Герой секция */
.hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--ocean-blue) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%232D5BA9' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #E8F4FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: scale(1.05);
}

.hero-image:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 91, 169, 0.2), transparent);
    pointer-events: none;
}

/* Секция услуг */
.services {
    padding: 100px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(10, 31, 68, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--accent-blue), var(--light-blue));
    transition: height 0.3s;
}

.service-card:hover:before {
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(10, 31, 68, 0.15);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--sky-blue), var(--light-blue));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-size: 1.5rem;
}

/* ===== СТИЛИ ДЛЯ БЛОКА СЕРТИФИКАТОВ ===== */
.certificates-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2.5rem 4rem;
    margin: 2rem auto;
    padding: 0;
    max-width: 1200px;
}

.certificate-item {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.certificate-item:hover {
    transform: translateY(-2px);
}

.certificate-item img {
    height: 55px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.certificate-item:hover img {
    transform: scale(1.08);
}

.certificate-item span {
    font-size: 1.05rem;
    color: #2c3e50;
    font-weight: 400;
    white-space: nowrap;
}

.certificate-item:last-child {
    gap: 12px;
}

.certificate-item:last-child img {
    height: 50px;
}

.certificate-item:last-child span {
    color: #0A1F44;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
    background: linear-gradient(135deg, #0A1F44 0%, #1A3A6C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* О компании */
.about {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--ocean-blue) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    color: #ffffff;
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.about-image:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 91, 169, 0.2), transparent);
    z-index: 1;
}

.about-image img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.about-image:hover img {
    transform: scale(1.05); /* Увеличение на 5% при наведении */
}

.features {
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: center; /* РАБОТАЕТ ТОЧНО КАК В КОНТАКТАХ */
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--sky-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    flex-shrink: 0;
    align-self: center; /* Явно указываем центрирование */
}

.feature-item div:last-child {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Центрируем текст по вертикали */
}

.feature-item h4 {
    margin-bottom: 0.25rem; /* Уменьшаем отступ если нужно */
    line-height: 1.3;
}

.feature-item p {
    margin-bottom: 0; /* Убираем нижний отступ у параграфа */
    line-height: 1.4;
}

/* Контакты */
.contact {
    padding: 100px 0;
    background: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 3rem;
}

.contact-info h3 {
    margin-bottom: 2rem;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--sky-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    flex-shrink: 0;
}

.contact-item > div:last-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 40px;
}

.contact-item p, 
.contact-item h4 {
    margin: 0;
    line-height: 1.4;
}

.address-box {
    background: var(--ice);
    padding: 1.5rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--accent-blue);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(10, 31, 68, 0.1);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--ice);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(45, 91, 169, 0.1);
}

.contact-item a {
    color: inherit;
    text-decoration: none;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    color: var(--dark);
}


/* Стили для чекбокса */
.checkbox-group {
    margin: 15px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: normal;
    font-size: 14px;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    margin-top: 3px;
    flex-shrink: 0;
}

.checkbox-text {
    color: #666;
}

.checkbox-text a {
    color: #007bff;
    text-decoration: none;
}

.checkbox-text a:hover {
    text-decoration: underline;
}

/* Стиль для обязательного чекбокса */
.checkbox-label input[type="checkbox"]:required {
    border-color: #ff0000;
}


/* Футер */
footer {
    background: var(--deep-blue);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-content > div:first-child h4 {
    margin-bottom: 1rem;
}

.footer-content > div:first-child p {
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
    max-width: 300px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.user-agreement {
    margin-top: 5px;
    font-size: 12px;  /* Уменьшенный шрифт */
    opacity: 0.7;      /* Немного прозрачности */
}

.user-agreement a {
    color: inherit;    /* Наследует цвет от родителя */
    text-decoration: none;
    border-bottom: 1px dotted rgba(255,255,255,0.3); /* Пунктирное подчеркивание */
    transition: border-color 0.3s ease;
}

.user-agreement a:hover {
    border-bottom-color: #fff; /* Подчеркивание становится ярче при наведении */
}

/* Если у вас светлый фон в футере, используйте эти стили */
.footer .user-agreement a {
    color: #666;
    border-bottom-color: #ccc;
}

.footer .user-agreement a:hover {
    border-bottom-color: #333;
}



/* Адаптивность */
@media (max-width: 1100px) {
    .certificates-row {
        gap: 2rem 2.5rem;
    }
    
    .certificate-item:last-child span {
        font-size: 0.9rem;
    }
}

@media (max-width: 1024px) {
    h1 {
        font-size: 2.75rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-image {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .hero-image img {
        height: 350px;
    }
}

@media (max-width: 950px) {
    .certificates-row {
        gap: 2rem;
    }
    
    .certificate-item {
        gap: 12px;
    }
    
    .certificate-item img {
        height: 45px;
    }
    
    .certificate-item:last-child span {
        font-size: 0.85rem;
    }
}

@media (max-width: 800px) {
    .certificates-row {
        flex-direction: column;
        align-items: center;
        gap: 1.8rem;
        padding: 1.5rem;
    }
    
    .certificate-item {
        width: 100%;
        justify-content: center;
    }
    
    .certificate-item:last-child span {
        white-space: normal;
        text-align: left;
        font-size: 0.95rem;
        background: none;
        -webkit-text-fill-color: #0A1F44;
        color: #0A1F44;
    }
}


/* Только для десктопа - уменьшаем расстояние между кнопками */
@media (min-width: 769px) {
    nav ul li:nth-last-child(2) {
        margin-right: -30px; /* Отступ между телефоном и почтой */
    }
    
    nav ul li:last-child {
        margin-left: 0;
    }
}


@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    nav ul {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
        gap: 1rem;
    }
    
    nav ul.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    nav ul li {
        width: 100%;
        text-align: center;
    }
    
    nav ul li a {
        transform: translateY(0) !important;
        display: block;
        padding: 0.75rem 0;
        font-size: 1.1rem;
    }
    
    nav ul li a.btn {
        width: 100%;
        height: 50px;
        font-size: 1rem;
        padding: 0 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    
    /* Исправленная кнопка с конвертом */
    nav ul li:last-child a.btn::after {
        content: "Написать";
        font-family: 'Inter', sans-serif;
        font-weight: 600;
        font-size: 1rem;
    }
    
    .hero {
        padding: 140px 0 80px;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        padding: 2rem;
    }
    
    .hero-image img {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-image img {
        height: 220px;
    }
    
    .certificate-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .certificate-item span {
        white-space: normal;
    }
    
    .certificate-item:last-child span {
        text-align: center;
    }
}