/* Общий CSS-файл для всех страниц сайта FixByte */

/* Гарантируем, что body и html займут всю высоту */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Основной контейнер для flex-расположения */
body {
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #2d3d50 0%, #3699d9 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex: 1; /* Занимает всё свободное пространство */
    width: 100%;
    box-sizing: border-box;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 300px;
}

.logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2d3d50 0%, #3699d9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 4px 15px rgba(54, 153, 217, 0.3);
    color: white;
    font-weight: bold;
    overflow: hidden;
}

.logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.header-info {
    text-align: right;
    flex: 2;
    min-width: 300px;
}

.header-info h1 {
    color: #2d3d50;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.header-info p {
    color: rgba(54, 153, 217, 0.4);
    font-size: 1.2rem;
    margin: 4px 0;
}

.header-info a {
    color: #000;
    text-decoration: none;
    font-weight: bold;
}

.header-info a:hover {
    text-decoration: underline;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(45, 61, 80, 0.9), rgba(54, 153, 217, 0.9));
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

/* Services Section */
.services {
    background: white;
    padding: 60px 0;
}

/* Стили для карточек сервисов */
.service-card h3 a {
    color: white;
    text-decoration: none;
}

.service-card h3 a:hover {
    text-decoration: underline;
}

.service-card p {
    font-size: 1.1rem;
    line-height: 1.5;
}

.services h2 {
    text-align: center;
    color: #2d3d50;
    font-size: 2.2rem;
    margin-bottom: 50px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-card {
    background: linear-gradient(135deg, #2d3d50 0%, #3699d9 100%);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    color: white;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(54, 153, 217, 0.4);
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.service-card li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #fff;
    font-weight: bold;
}

/* Advantages Section */
.advantages {
    background: #f8f9fa;
    padding: 60px 0;
}

.advantages h2 {
    text-align: center;
    color: #2d3d50;
    font-size: 2.2rem;
    margin-bottom: 40px;
}

.advantage-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.advantage-item {
    background: white;
    padding: 25px 35px;
    border-radius: 50px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.advantage-item:hover {
    border-color: #3699d9;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #2d3d50 0%, #3699d9 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.contact h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #2d3d50;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.cta-button.phone {
    background: #3699d9;
    color: white;
}

/* Footer */
footer {
    background: #2d3d50;
    color: white;
    text-align: center;
    padding: 20px 0;
    width: 100%;
    margin-top: auto; /* Выталкивает футер вниз */
}