.contact-main {
    padding-top: 100px;
    min-height: 100vh;
}

.page-header {
    text-align: center;
    margin-bottom: 4rem;
}

.page-title {
    font-family: 'Fredoka One', cursive;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

.page-description {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: var(--white);
    border-radius: 15px;
    padding: 1.2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.3rem;
    color: var(--white);
}

.contact-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--dark-color);
    font-family: 'Fredoka One', cursive;
}

.contact-card p {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.contact-card p a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-card p a:hover {
    color: var(--dark-color);
}

.contact-card span {
    color: #666;
    font-size: 0.8rem;
}

.contact-form-section {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow);
}

.contact-form-section h2 {
    font-family: 'Fredoka One', cursive;
    color: var(--dark-color);
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
}

.contact-form {
    max-width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.working-hours {
    background: var(--light-color);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
}

.working-hours h2 {
    font-family: 'Fredoka One', cursive;
    color: var(--dark-color);
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hours-item.highlight {
    background: var(--gradient-primary);
    color: var(--white);
}

.hours-item .day {
    font-weight: 600;
}

.hours-item .time {
    color: var(--primary-color);
    font-weight: 600;
}

.hours-item.highlight .time {
    color: var(--white);
}

.service-area {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.service-area h2 {
    font-family: 'Fredoka One', cursive;
    color: var(--dark-color);
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
}

.area-content p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-align: center;
}

.area-content ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.area-content li {
    padding: 1rem;
    background: var(--light-color);
    border-radius: 10px;
    text-align: center;
    color: #666;
    position: relative;
    padding-left: 2rem;
}

.area-content li::before {
    content: '✓';
    position: absolute;
    left: 1rem;
    color: var(--primary-color);
    font-weight: bold;
}

@media (max-width: 768px) {
    .contact-main {
        padding-top: 80px;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .contact-card {
        padding: 1rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .contact-card h3 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .contact-card p {
        font-size: 0.85rem;
    }
    
    .contact-card span {
        font-size: 0.75rem;
    }
    
    .contact-form-section {
        padding: 2rem 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .working-hours,
    .service-area {
        padding: 2rem 1.5rem;
        margin: 0 1rem 3rem;
    }
    
    .hours-grid {
        grid-template-columns: 1fr;
    }
    
    .area-content ul {
        grid-template-columns: 1fr;
    }
}

/* Секция команды на странице контактов */
.team-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 4rem 0;
    margin: 4rem 0;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="%23ffffff" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.team-section .section-title {
    text-align: center;
    font-family: 'Fredoka One', cursive;
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

.team-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

.team-section .section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.team-section .team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.team-section .team-member {
    background: var(--white);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.team-section .team-member:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.team-section .member-photo {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: var(--gradient-primary);
}

.team-section .member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.team-section .team-member:hover .member-photo img {
    transform: scale(1.1);
}

.team-section .member-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.team-section .team-member:hover .member-overlay {
    transform: translateY(0);
}

.team-section .member-role {
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.team-section .member-info {
    padding: 2rem 1.5rem;
    text-align: center;
}

.team-section .member-info h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 700;
}

.team-section .member-position {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.team-section .member-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.team-section .member-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.team-section .skill {
    background: var(--gradient-secondary);
    color: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-section .member-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.team-section .member-social a {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.team-section .member-social a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
}

/* Адаптивность для команды на странице контактов */
@media (max-width: 1024px) {
    .team-section .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .team-section {
        padding: 3rem 0;
        margin: 3rem 0;
    }
    
    .team-section .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .team-section .member-photo {
        height: 250px;
    }
    
    .team-section .member-info {
        padding: 1.5rem;
    }
    
    .team-section .member-info h3 {
        font-size: 1.4rem;
    }
    
    .team-section .member-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .team-section .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .team-section .member-photo {
        height: 220px;
    }
    
    .team-section .member-info {
        padding: 1rem;
    }
    
    .team-section .member-skills {
        gap: 0.3rem;
    }
    
    .team-section .skill {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Секция с информацией о преимуществах */
.contact-info-section {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.contact-info-section h2 {
    text-align: center;
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.contact-info-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.info-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-weight: 700;
}

.info-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Адаптивность для info-grid */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .info-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .info-card h3 {
        font-size: 1.1rem;
    }
    
    .info-card p {
        font-size: 0.9rem;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
        margin-bottom: 2rem;
    }
    
    .contact-card {
        padding: 0.6rem;
    }
    
    .contact-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .contact-card h3 {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    .contact-card p {
        font-size: 0.75rem;
    }
    
    .contact-card span {
        font-size: 0.65rem;
    }
    
    .contact-info-section {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .working-hours {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .service-area {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .hours-item {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .hours-item .day {
        font-size: 0.85rem;
    }
    
    .hours-item .time {
        font-size: 0.8rem;
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .info-card {
        padding: 0.8rem;
    }
    
    .info-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .info-card h3 {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }
    
    .info-card p {
        font-size: 0.75rem;
        line-height: 1.3;
    }
}

/* Очень узкие экраны (iPhone 12 Pro, XR и меньше) */
@media (max-width: 390px) {
    .contact-info {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .contact-card {
        padding: 0.5rem;
    }
    
    .contact-icon {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    .contact-card h3 {
        font-size: 0.75rem;
        margin-bottom: 0.3rem;
    }
    
    .contact-card p {
        font-size: 0.7rem;
    }
    
    .contact-card span {
        font-size: 0.6rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    
    .info-card {
        padding: 0.6rem;
    }
    
    .info-icon {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
        margin-bottom: 0.6rem;
    }
    
    .info-card h3 {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .info-card p {
        font-size: 0.7rem;
        line-height: 1.2;
    }
    
    .contact-info-section,
    .working-hours,
    .service-area {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hours-item {
        padding: 0.5rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .hours-item .day {
        font-size: 0.75rem;
    }
    
    .hours-item .time {
        font-size: 0.7rem;
    }
}