/* Общие стили */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    color: #1d1d1f;
    background-color: #f5f5f7;
}

/* Шапка */
header {
    background: url('images/hero-bg.jpg') no-repeat center center/cover;
    height: 100vh;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    z-index: 10;
}

nav .logo {
    font-size: 24px;
    font-weight: bold;
}

nav .nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav .nav-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

.hero {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    margin: 0;
}

.hero p {
    font-size: 24px;
    margin: 10px 0 20px;
}

.hero .btn {
    background-color: #007BFF;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 20px;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.hero .btn:hover {
    background-color: #005bb5;
}

/* Основной контент */
#companies {
    padding: 50px 20px;
    text-align: center;
}

#companies h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

/* Стили для Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Карточки компаний */
.company-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.company-card:hover {
    transform: translateY(-10px);
}

.company-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.company-card h3 {
    font-size: 24px;
    margin: 20px 0 10px;
}

.company-card p {
    font-size: 16px;
    color: #666;
    padding: 0 20px 20px;
}

/* Адаптивный дизайн для Grid */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

/* Подвал */
footer {
    background-color: #1d1d1f;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

/* Адаптивный дизайн */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    nav .nav-links {
        display: none; /* Скрываем меню на мобильных */
    }
}

/* Секция "О компании" */
#about {
    padding: 50px 20px;
    background-color: white;
    text-align: center;
}

#about h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.about-text {
    flex: 1;
    text-align: left;
}

.about-text p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.about-text ul {
    list-style: none;
    padding: 0;
}

.about-text ul li {
    font-size: 16px;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.about-text ul li::before {
    content: "•";
    color: #007BFF;
    font-size: 20px;
    position: absolute;
    left: 0;
    top: -2px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Адаптивный дизайн для секции "О компании" */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }

    .about-text {
        text-align: center;
    }

    .about-text ul li {
        text-align: left;
    }
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;

}


.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}


.modal-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.modal-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.modal-content ul {
    list-style: none;
    padding: 5px;
}

.modal-content ul li {
    font-size: 16px;
    margin-bottom: 10px;
    /* padding-left: 20px; */
    /* position: relative; */
}

.modal-content a {
    color: #007BFF;
    text-decoration: none;
}

.modal-content a:hover {
    text-decoration: underline;
}

.modal-container {
    display: flex;
    gap: 30px;
}

.modal-image {
    flex: 0 0 45%;
    border-radius: 8px;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-text {
    flex: 1;
    padding-right: 15px;
}

.modal-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.advantage {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
}

.advantage h4 {
    margin: 0 0 8px;
    color: #007BFF;
    font-size: 16px;
}

.modal-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.modal-links a {
    background: #007BFF;
    color: white!important;
    padding: 8px 12px;
    border-radius: 20px;
    text-align: center;
    font-size: 14px;
    transition: background 0.3s;
}

.modal-links a:hover {
    background: #0056b3;
    text-decoration: none;
}


.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.close:hover {
    color: #007BFF;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
  
.block {
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
}
  
.block h2 {
    margin-top: 0;
    font-size: 1.5rem;
}
  
.block p {
    font-size: 1rem;
    color: #555;
}

.sidebar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.box {
    width: 100%;
    background: white;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    font-weight: bold;
}
.red { background: #ff3b30; color: white; }
.gray { background: #8e8e93; color: white; }
.light-gray { background: #d1d1d6; color: black; }
.black { background: #1d1d1f; color: white; }
.content {
    max-width: 800px;
}
.section {
    background: white;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.highlight {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    color: red;
}

.law-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* max-width: 800px; */
    margin: 20px auto;;
}

.law-list {
    flex: 1;
    /* margin-right: 20px; */
}
.law-description {
    flex: 2;
}

.container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    gap: 20px;
    justify-content: center;
}
.column {
    background: white;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}
.column img, 
.sup-column img,
.starhovka-column img {
    width: 100px;
    height: auto;
    border-radius: 8px;
}
.column p {
    margin-top: 10px;
    font-size: 16px;
    color: #333;
}
.sup-container,
.starhovka-container {
    display: flex;
    max-width: 1200px;
    gap: 20px;
    justify-content: center;
}
.starhovka-container {
    flex-wrap: wrap;
}

.sup-column {
    background: white;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    flex: 1;
    max-width: 400px;
    padding: 5px 10px;
}
.starhovka-column {
    background: white;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 5px 10px;
}
.starhovka-column:not(:first-child) {
    flex: 1;
  }
  .starhovka-column:nth-child(1) {
    width: 100%;
  }



@media (max-width: 768px) {
    .modal-container,
    .law-list,
    .sup-container {
        flex-direction: column;
    }
    
    .modal-image {
        max-height: 250px;
    }
    
    .modal-text {
        padding-right: 0;
    }
}