/* =========================================
   ARTTONER BIKIN - style.css (полный файл)
   ========================================= */

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1d1d1f;
    line-height: 1.5;
    background-color: #fbfbfd;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

/* ЖИВОЙ ФОН (плавающие градиентные пятна) */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}

/* Первое пятно (синее) */
body::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #0071e3, transparent 70%);
    top: -200px;
    left: -200px;
    animation: float1 20s infinite ease-in-out alternate;
}

/* Второе пятно (фиолетовое) */
body::after {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #af52de, transparent 70%);
    bottom: -150px;
    right: -150px;
    animation: float2 25s infinite ease-in-out alternate;
}

/* Анимации для пятен */
@keyframes float1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(100px, 150px) scale(1.2); }
    100% { transform: translate(50px, 50px) scale(1); }
}

@keyframes float2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-80px, -120px) scale(1.1); }
    100% { transform: translate(-30px, -50px) scale(1); }
}

/* Контейнер */
.container {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Типографика */
h1, h2, h3 { 
    font-weight: 600; 
    letter-spacing: -0.02em; 
}

h2 { 
    font-size: 2.5rem; 
    text-align: center; 
    margin-bottom: 40px; 
    color: #1d1d1f; 
}

/* Шапка сайта */
header {
    background-color: rgba(251, 251, 253, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 48px;
    font-size: 0.85rem;
}

.logo { 
    font-weight: 700; 
    letter-spacing: 0.5px; 
    color: #1d1d1f;
}

.logo span {
    color: #0071e3;
}

nav a { 
    color: #1d1d1f; 
    text-decoration: none; 
    margin: 0 15px; 
    opacity: 0.8; 
    transition: opacity 0.3s; 
}

nav a:hover { 
    opacity: 1; 
}

.nav-phone { 
    color: #1d1d1f; 
    text-decoration: none; 
    font-weight: 500; 
    transition: color 0.3s;
}

.nav-phone:hover {
    color: #0071e3;
}

/* Ссылки */
.link-blue { 
    color: #0066cc; 
    text-decoration: none; 
    font-size: 1.05rem; 
    transition: color 0.2s; 
}

.link-blue:hover { 
    color: #004499; 
}

.link-blue-light { 
    color: #2997ff; 
    text-decoration: none; 
    font-size: 1.05rem; 
}

/* Первый экран (Hero) */
.hero {
    position: relative;
    padding-top: 120px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.6); /* Полупрозрачный фон, чтобы просвечивал живой градиент */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://images.unsplash.com/photo-1549317661-bd32c8ce0db2?q=80&w=1920&auto=format&fit=crop') center/cover no-repeat;
    opacity: 0.1;
    z-index: 0;
    will-change: transform;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 { 
    font-size: 4rem; 
    line-height: 1.05; 
    margin-bottom: 15px; 
}

.hero-content .subtitle { 
    font-size: 1.5rem; 
    color: #86868b; 
    margin-bottom: 25px; 
    max-width: 700px; 
    margin-left: auto; 
    margin-right: auto; 
}

.hero-links { 
    display: flex; 
    justify-content: center; 
    gap: 30px; 
    margin-bottom: 40px; 
}

/* Преимущества */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    padding: 80px 20px;
    text-align: center;
}

.feature-item {
    transition: transform 0.3s ease;
    background: rgba(255, 255, 255, 0.5);
    padding: 30px 20px;
    border-radius: 18px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.feature-item:hover {
    transform: translateY(-5px);
}

.icon-box {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.feature-item h3 { 
    font-size: 1.3rem; 
    margin-bottom: 10px; 
}

.feature-item p { 
    color: #86868b; 
    font-size: 1rem; 
}

/* Услуги */
.services { 
    padding: 80px 0; 
    background-color: rgba(245, 245, 247, 0.7); /* Полупрозрачный фон для эффекта стекла */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
    margin: 0 20px;
}

.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 20px; 
}

/* 3D Эффект для карточек */
.service-card {
    padding: 50px 30px;
    border-radius: 18px;
    text-align: center;
    transition: box-shadow 0.3s ease, transform 0.1s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.service-card.light { 
    background-color: #fff; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.03); 
}

.service-card.dark { 
    background-color: #1d1d1f; 
    color: #fff; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.15); 
}

.service-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    z-index: 10;
}

.service-card.dark h3, 
.service-card.dark p { 
    color: #f5f5f7; 
}

.service-card h3 { 
    font-size: 1.5rem; 
    margin-bottom: 10px; 
    transform: translateZ(20px); 
}

.service-card .price { 
    font-size: 2rem; 
    font-weight: 700; 
    margin-bottom: 15px; 
    transform: translateZ(30px); 
}

.service-card p { 
    color: #86868b; 
    margin-bottom: 25px; 
    font-size: 0.95rem; 
    transform: translateZ(20px); 
}

/* Галерея */
.portfolio { 
    padding: 80px 20px; 
}

.gallery { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 20px; 
}

.gallery-item {
    overflow: hidden;
    border-radius: 18px;
    cursor: pointer;
}

.gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Отзывы */
.reviews {
    padding: 80px 0;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
    margin: 0 20px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.review-card {
    background: #f5f5f7;
    padding: 30px;
    border-radius: 18px;
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.stars {
    color: #ff9f0a;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.review-card p {
    font-size: 1rem;
    margin-bottom: 15px;
    font-style: italic;
}

.author {
    font-weight: 600;
    font-size: 0.9rem;
    color: #86868b;
}

/* Контакты */
.contacts { 
    padding: 100px 0; 
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center; 
}

.contact-sub { 
    font-size: 1.2rem; 
    color: #86868b; 
    margin-bottom: 40px; 
}

.contact-form {
    max-width: 400px;
    margin: 0 auto 50px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input {
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #d2d2d7;
    background-color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.contact-form input:focus {
    outline: none;
    border-color: #0071e3;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.btn-apple {
    background-color: #0071e3;
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-apple:hover { 
    background-color: #0077ed; 
}

.btn-apple:active { 
    transform: scale(0.97); 
}

/* Блок с контактной информацией */
.address-info { 
    color: #86868b; 
    font-size: 0.9rem; 
    line-height: 1.8;
}

.address-info strong {
    color: #1d1d1f;
}

.address-info a {
    color: #0071e3;
    text-decoration: none;
    transition: color 0.3s;
}

.address-info a:hover {
    color: #004499;
    text-decoration: underline;
}

/* Подвал */
footer {
    background-color: rgba(245, 245, 247, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px 0;
    font-size: 0.75rem;
    color: #86868b;
    border-top: 1px solid #d2d2d7;
}

.footer-inner { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.footer-links a { 
    color: #424245; 
    text-decoration: none; 
    margin-left: 15px; 
}

.footer-links a:hover { 
    text-decoration: underline; 
}

/* Анимация появления при скролле */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .header-inner { 
        justify-content: center; 
    }
    nav, .nav-phone { 
        display: none; 
    }
    .hero-content h1 { 
        font-size: 2.5rem; 
    }
    .hero-content .subtitle { 
        font-size: 1.2rem; 
    }
    .footer-inner { 
        flex-direction: column; 
        gap: 10px; 
        text-align: center; 
    }
    .footer-links a { 
        margin: 0 10px; 
    }
    /* На мобильных уменьшаем размер пятен */
    body::before, body::after {
        width: 300px;
        height: 300px;
        filter: blur(60px);
    }
}