/* ==========================================================================
   НАЧАЛО КОДА STYLE.CSS
   ========================================================================== */

/* --- ОБЩИЕ СТИЛИ И ПЕРЕМЕННЫЕ --- */
:root {
    --primary-blue: #0D2C54;
    --accent-orange: #FF6700;
    --light-gray-bg: #F4F6F8;
    --medium-gray: #BCC1C9;
    --dark-gray-text: #212529;
    --white: #FFFFFF;

    --font-main: 'Roboto', sans-serif;
    --font-headings: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--dark-gray-text);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3 {
    font-family: var(--font-headings);
    font-weight: 700;
    color: var(--dark-gray-text);
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
}

section {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

/* --- СТИЛИ КНОПОК --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: var(--white);
    border-color: var(--accent-orange);
}
.btn-primary:hover {
    background-color: #e65c00;
    border-color: #e65c00;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}
.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

.btn-outline {
    padding: 8px 20px;
    color: var(--white);
    border-color: var(--accent-orange);
}
.btn-outline:hover {
    background-color: var(--accent-orange);
    color: var(--white);
}

.btn-dark {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}
.btn-dark:hover {
    background-color: #0a2242;
    border-color: #0a2242;
}

/* --- [Блок 1: Первый экран] --- */
.hero-section {
    background-image: linear-gradient(rgba(13, 44, 84, 0.8), rgba(13, 44, 84, 0.8)), url('bg.jpg'); /* Замените на свое фото */
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding-bottom: 120px;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--accent-orange);
}

.nav-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-number {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
}

.hero-content {
    text-align: center;
    padding-top: 100px;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.2;
}

.hero-content .subtitle {
    font-size: 1.2rem;
    color: var(--medium-gray);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* --- [Блок 2: Преимущества] --- */
.advantages-section {
    background-color: var(--light-gray-bg);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.advantage-card {
    background: var(--white);
    padding: 30px;
    border-radius: 5px;
    text-align: center;
    border: 1px solid #eee;
}

.advantage-card .icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.advantage-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* --- [Блок 3: Услуги] --- */
.services-section {
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.service-card-content {
    padding: 25px;
}

.service-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.service-card a {
    text-decoration: none;
    color: var(--primary-blue);
}
.service-card a:hover h3 {
    text-decoration: underline;
}

/* --- [Блок 4: Портфолио] --- */
.portfolio-section {
    background-color: var(--light-gray-bg);
}

.portfolio-slider {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.portfolio-item {
    background: var(--white);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    flex: 1 1 400px;
    max-width: 550px;
}

.portfolio-item img {
    width: 50%;
    object-fit: cover;
}

.portfolio-info {
    padding: 30px;
    width: 50%;
}

.portfolio-info h3 {
    margin-bottom: 20px;
}

.portfolio-info p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}
.portfolio-info p span {
    font-weight: 500;
    color: #555;
}

/* --- [Блок 5: Схема работы] --- */
.workflow-section {
    background-color: var(--white);
}

.workflow-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.step {
    text-align: center;
    max-width: 180px;
    flex: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--accent-orange);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-family: var(--font-headings);
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.step-arrow {
    font-size: 2.5rem;
    color: var(--medium-gray);
    margin-top: 50px;
    flex-shrink: 0;
}

/* --- [Блок 6: Форма заявки] --- */
.cta-section {
    background-color: var(--primary-blue);
    color: var(--white);
}

.cta-section h2 {
    color: var(--white);
}

.cta-section .subtitle {
    text-align: center;
    color: var(--medium-gray);
    max-width: 600px;
    margin: -40px auto 40px;
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cta-form input, .cta-form textarea {
    width: 100%;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid var(--medium-gray);
    font-family: var(--font-main);
    font-size: 1rem;
}

.cta-form textarea {
    grid-column: 1 / -1; /* Растянуть на всю ширину */
    resize: vertical;
    min-height: 100px;
}

.form-row.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    grid-column: 1 / -1;
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload {
    padding: 12px 20px;
    background-color: #4a6382;
    color: var(--white);
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.file-upload:hover {
    background-color: #5f7a9b;
}

/* --- [Блок 7: Подвал (Footer)] --- */
.main-footer {
    background-color: var(--dark-gray-text);
    color: var(--medium-gray);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--medium-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}
/* --- Адаптивность (базовая) --- */
@media (max-width: 992px) {
    h2 { font-size: 2.2rem; }
    .nav-menu { display: none; } /* Для простоты скрываем меню, в реальности нужен "бургер" */
    .nav-contact .phone-number { display: none; } /* Скрываем номер, оставляем кнопку */
    .workflow-steps { flex-direction: column; align-items: center; }
    .step-arrow { transform: rotate(90deg); margin: 10px 0; }
    .portfolio-slider { flex-direction: column; align-items: center; }
    .portfolio-item { flex-direction: column; max-width: 400px; }
    .portfolio-item img, .portfolio-item .portfolio-info { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    section { padding: 60px 0; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; gap: 15px; align-items: center; }
    .form-row { grid-template-columns: 1fr; }
    .form-row.form-footer { flex-direction: column; gap: 20px; }
    .main-nav { flex-direction: column; gap: 20px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 10px; }
}

@media (max-width: 576px) {
    .hero-content h1 { font-size: 2rem; }
    .hero-content .subtitle { font-size: 1rem; }
    h2 { font-size: 1.8rem; margin-bottom: 40px; }
    .btn { padding: 10px 20px; font-size: 0.9rem; }
}



/* ==========================================================================
   КОНЕЦ КОДА STYLE.CSS
   ========================================================================== */


   /* --- Стили для модального окна изображений --- */

/* Указатель для кликабельных изображений в портфолио */
.portfolio-image {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.portfolio-image:hover {
    opacity: 0.8;
}

/* Контейнер модального окна (фон) */
.modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed; /* Оставаться на месте */
    z-index: 1000; /* Поверх всего остального */
    padding-top: 60px; /* Отступ сверху */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Прокрутка, если изображение большое */
    background-color: rgba(0, 0, 0, 0.9); /* Черный фон с прозрачностью */
}

/* Содержимое модального окна (изображение) */
.modal-content {
    margin: auto;
    display: block;
    width: auto;
    max-width: 85%;
    max-height: 85vh; /* Максимальная высота - 85% от высоты экрана */
    animation-name: zoom;
    animation-duration: 0.4s;
}

/* Анимация появления */
@keyframes zoom {
    from {transform: scale(0.1)}
    to {transform: scale(1)}
}

/* Кнопка закрытия (крестик) */
.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}