/* Сброс стилей и общие настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Шапка и навигация */
header {
    padding: 1rem 2rem;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links img {
    width: 24px;
    height: 24px;
}

/* Главная секция */
.hero {
    display: flex;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    gap: 2rem;
    align-items: center;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.title-main {
    display: block;
    color: #333;
}

.title-secondary {
    display: block;
    color: #02AEEC;
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.hero-subtext {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.4;
}

/* Преимущества */
.features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature img {
    width: 24px;
    height: 24px;
}

/* Кнопки */
.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 300px;
}

.btn {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    width: 100%;
}

.btn.primary {
    background: #00A1FF;
    color: white;
}

.btn.secondary {
    background: white;
    color: #00A1FF;
    border: 2px solid #00A1FF;
}

/* Изображение героя */
.hero-image {
    flex: 1;
}

.hero-image img {
    max-width: 400px;
    height: auto;
    border-radius: 50%;
}

/* Адаптивность */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }
    
    .hero {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }
    
    .hero {
        flex-direction: column;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 0 1rem;
        margin: 1rem auto;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .hero-text {
        font-size: 1.2rem;
    }
}

/* Секция услуг */
.services {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    text-align: center;
}

.services h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 0 auto;
    max-width: 800px;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: #00A1FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.service-item span {
    font-size: 1.1rem;
    color: #333;
}

/* Адаптивность для секции услуг */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .services {
        margin: 2rem auto;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon img {
        width: 30px;
        height: 30px;
    }
}

/* Секция "Почему мы?" */
.why-us {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    text-align: center;
}

.why-us h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.why-us .highlight {
    color: #00A1FF;
}

/* Контейнер для карточек */
.advantages-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Стили для всех карточек */
.advantage-item {
    background: #00A1FF;
    color: white;
    border-radius: 10px;
    text-align: left;
    padding: 1.2rem;
    width: calc(25% - 20px);
    box-sizing: border-box;
}

/* Стили для иконок */
.advantage-item img {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
    filter: brightness(0) invert(1);
}

.advantage-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.advantage-item p {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Нижний ряд карточек */
.advantage-item:nth-child(n+5) {
    margin-top: 10px;
}

/* Первая карточка нижнего ряда */
.advantage-item:nth-child(5) {
    margin-left: calc(1% + 10px);
}

/* Удаляем ненужный элемент */
.arrow-connector {
    display: none;
}

/* Адаптивность для секции "Почему мы?" */
@media (max-width: 768px) {
    .advantage-item {
        width: calc(50% - 20px);
    }
    
    .advantage-item:nth-child(5) {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .advantage-item {
        width: 100%;
    }
}


/* Секция скидок */
.discounts {
    background: #00A1FF;
    color: white;
    padding: 2rem;
    border-radius: 25px;
    margin: 2rem auto;
    max-width: 1200px;
}

.discounts-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
}

.discounts h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.discounts-info {
    text-align: left;
}

.discounts-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.discounts-info p {
    font-size: 1rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.discounts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.discount-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.discount-item img {
    width: 70px;
    height: 70px;
    padding: 12px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.discount-item span {
    font-size: 0.9rem;
    line-height: 1.1;
    max-width: 120px;
    color: white;
}

/* Специфичные стили для иконок скидок */
.discount-item.family img {
    padding: 1px;
}

.discount-item.invalid img {
    padding: 10px;
}

.discount-item.elderly img {
    padding: 6px;
}

.discount-item.holiday img {
    padding: 8px;
    width: 100%;
    height: 100%;
}

.discount-item.card img {
    padding: 15px;
}

.discount-item.referral img {
    padding: 5px;
    width: 100%;
    height: 100%;
}

/* Размеры иконок */
.discount-item img {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    object-fit: contain;
}

/* Адаптивность для секции скидок */
@media (max-width: 768px) {
    .discounts-content {
        grid-template-columns: 1fr;
    }
    
    .discounts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .discounts h2 {
        font-size: 2.2rem;
    }
}

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

/* Адаптивность для новых секций */
@media (max-width: 1024px) {
    .advantages-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .discounts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .advantages-grid,
    .discounts-grid {
        grid-template-columns: 1fr;
    }
    
    .why-us h2,
    .discounts h2 {
        font-size: 2rem;
    }
}

/* Секция мастеров */
.masters {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    text-align: center;
}

.masters h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.masters-description {
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.masters-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.master-card {
    width: 250px;
    text-align: center;
}

.master-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 1rem;
    border-radius: 10px;
    overflow: hidden;
    background: #f0f0f0;
}

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

.master-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.master-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.master-card .btn {
    width: auto;
    padding: 0.5rem 2rem;
}

/* Адаптивность для секции мастеров */
@media (max-width: 1024px) {
    .masters-grid {
        gap: 1.5rem;
    }
    
    .master-card {
        width: 220px;
    }
}

@media (max-width: 768px) {
    .master-card {
        width: calc(50% - 1rem);
    }
}

@media (max-width: 480px) {
    .master-card {
        width: 100%;
    }
    
    .master-image {
        width: 180px;
        height: 180px;
    }
}

/* Секция "Скупаем и продаем" */
.buy-sell {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 2rem;
    background: #00A1FF;
    border-radius: 25px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.buy-sell-content {
    flex: 1;
}

.buy-sell h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.buy-sell p {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    max-width: 500px;
    line-height: 1.3;
}

.buy-sell .btn.primary {
    background: white;
    color: #00A1FF;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    width: auto;
}

.buy-sell-image {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    background: #f0f0f0;
}

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

/* Адаптивность */
@media (max-width: 768px) {
    .buy-sell {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .buy-sell h2 {
        font-size: 2rem;
    }

    .buy-sell p {
        font-size: 1.4rem;
        margin-left: auto;
        margin-right: auto;
    }

    .buy-sell-image {
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .buy-sell h2 {
        font-size: 1.8rem;
    }

    .buy-sell p {
        font-size: 1.2rem;
    }
}

/* Форма заявки */
.request-form {
    max-width: 500px;
    margin: 4rem auto;
    padding: 2rem;
}

.form-container {
    background: #00A1FF;
    padding: 2rem;
    border-radius: 15px;
    color: white;
}

.form-container h2 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
}

.form-container form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-container input,
.form-container select,
.form-container textarea {
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.form-container textarea {
    height: 120px;
    resize: none;
}

.form-container button {
    background: white;
    color: #00A1FF;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 0.5rem;
}

/* Футер */
footer {
    background: #00A1FF;
    padding: 2rem;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
    z-index: 10;
}

.footer-nav ul {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.footer-contacts {
    display: flex;
    justify-content: center;
    gap: 3rem;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-item img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.contact-item a,
.contact-item span {
    color: white;
    text-decoration: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .footer-nav ul {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .footer-contacts {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .request-form {
        padding: 1rem;
    }

    .form-container {
        padding: 1.5rem;
    }
}

/* Добавляем стили для секций */
section {
    scroll-margin-top: 100px;
    padding: 60px 0;
}

/* Обновляем стили навигации */
.footer-nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Убедимся, что футер не перекрывает контент */
footer {
    margin-top: 2rem;
    position: relative;
    z-index: 10;
} 