/* ================================
   MODERN MYSERVICE63 STYLES
   Серебристая премиум тема для ремонта iPhone
   ================================ */

/* ================================
   1. CSS VARIABLES & RESET
   ================================ */
:root {
    /* Современная серебристая палитра */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-silver: linear-gradient(135deg, #E0E7FF 0%, #CEEDFF 100%);
    --gradient-metal: linear-gradient(180deg, #C9D6FF 0%, #E2E2E2 100%);
    --gradient-dark: linear-gradient(135deg, #2D3436 0%, #000000 100%);
    --gradient-accent: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.6) 100%);
    --gradient-premium: linear-gradient(135deg, #868F96 0%, #596164 100%);

    /* Цвета */
    --color-primary: #667eea;
    --color-secondary: #764ba2;
    --color-silver: #C0C0C0;
    --color-metal: #71797E;
    --color-dark: #1a1a1a;
    --color-light: #F8F9FA;
    --color-white: #FFFFFF;
    --color-text: #4A5568;
    --color-accent: #8B5CF6;

    /* Тени */
    --shadow-xs: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --shadow-glow: 0 0 30px rgba(102, 126, 234, 0.4);

    /* Шрифты */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Montserrat', 'Inter', sans-serif;

    /* Анимации */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Montserrat:wght@400;500;600;700;800&display=swap');

/* ================================
   2. GLOBAL STYLES
   ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(to bottom, #F5F7FA 0%, #E9ECEF 100%);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--color-dark);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* ================================
   3. HEADER STYLES
   ================================ */
.myservice__header {
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.myservice__header-top {
    background: var(--gradient-dark);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.myservice__header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 0;
}

/* Logo Redesign */
.myservice__header-top-logo img {
    height: 45px;
    width: auto;
    /*filter: brightness(0) invert(1);*/
    transition: var(--transition-base);
}

.myservice__header-top-logo:hover img {
    transform: scale(1.05);
    /*filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255,255,255,0.5));*/
}

/* Search Box Redesign */
.myservice__header-top-search {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.myservice__header-top-search-mobile {
    display: none;
}

.myservice__header-top-search-mobile a {
    color: #fff;
    font-size: 22px;
    transition: all .2s ease;
}

.myservice__header-top-search-mobile a:hover {
    color: var(--color-primary);
}

.myservice__header-top-search-mobile .fantazy__header-center-search {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    top: 70px;
    z-index: 1;
}

.myservice__header-top-search input[type="text"] {
    width: 100%;
    padding: 12px 50px 12px 24px;
    border: 2px solid transparent;
    border-radius: 50px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.3px;
    transition: var(--transition-base);
}

.myservice__header-top-search input[type="text"]::placeholder {
    color: rgba(255,255,255,0.5);
}

.myservice__header-top-search input[type="text"]:focus {
    outline: none;
    background: rgba(255,255,255,0.15);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.myservice__header-top-search button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.myservice__header-top-search button:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-md);
}

/* Phone & Address Redesign */
.myservice__header-top-phone {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.myservice__header-top-phone a,
.myservice__header-top-phone p {
    color: var(--color-white);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.myservice__header-top-phone a:hover {
    color: var(--color-primary);
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.myservice__header-top-phone span[class^="icon-"] {
    font-size: 16px;
    color: var(--color-primary);
}

/* Modal & Additional Items */
.myservice__header-top-modal > span {
    background: var(--gradient-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
    color: var(--color-white);
}

.myservice__header-top-modal > span:hover {
    background: var(--gradient-primary);
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.myservice__header-top-modal-drop {
    background: var(--color-white);
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    padding: 8px;
    min-width: 250px;
    margin-top: 10px;
}

.myservice__header-top-modal-drop ul li a {
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--color-text);
    transition: var(--transition-fast);
}

.myservice__header-top-modal-drop ul li a:hover {
    background: var(--gradient-silver);
    color: var(--color-primary);
    transform: translateX(4px);
}

/* ================================
   4. NAVIGATION MENU
   ================================ */
.myservice__header-menu-wrapper {
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.2);
}

.myservice__header-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.myservice__header-menu > li {
    position: relative;
}

.myservice__header-menu > li > a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 24px;
    color: var(--color-dark);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
    transition: var(--transition-base);
    position: relative;
}

.myservice__header-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: calc(100% - 40px);
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px 3px 0 0;
    transition: var(--transition-base);
}

.myservice__header-menu > li:hover > a,
.myservice__header-menu > li.active > a {
    color: var(--color-primary);
    background: linear-gradient(to bottom, rgba(102, 126, 234, 0.05) 0%, transparent 100%);
}

.myservice__header-menu > li:hover > a::after,
.myservice__header-menu > li.active > a::after {
    transform: translateX(-50%) scaleX(1);
}

.myservice__header-menu span[class^="icon-"] {
    font-size: 18px;
    transition: var(--transition-base);
}

.myservice__header-menu > li:hover span[class^="icon-"] {
    transform: rotate(10deg);
}

/* Dropdown Menu */
.catalog-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    min-width: 280px;
    padding: 8px;
    /*margin-top: 10px;*/
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-base);
    border: 1px solid rgba(0,0,0,0.05);
}

.menu-item:hover .catalog-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.catalog-category-link,
.subcategory-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--color-text);
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.catalog-category-link:hover,
.subcategory-link:hover {
    background: var(--gradient-silver);
    color: var(--color-primary);
    transform: translateX(4px);
}

.product-count {
    background: var(--gradient-primary);
    color: var(--color-white);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ================================
   5. SLIDER/HERO SECTION
   ================================ */
.section__slider {
    position: relative;
    overflow: hidden;
    margin-top: -1px;
}

.slaider-item {
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center;
}

.slaider-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-dark);
    opacity: 0.5;
}

.slaider-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.slaider-title h2 {
    font-size: 56px;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    background: var(--gradient-glass);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

.slaider-desc span {
    font-size: 20px;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
    display: block;
    margin-bottom: 40px;
    max-width: 600px;
}

.default_btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: var(--gradient-primary);
    color: var(--color-white);
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    transition: var(--transition-base);
    box-shadow: var(--shadow-lg);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.default_btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.default_btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.default_btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Slider Dots */
.slaider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.slaider-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent;
    cursor: pointer;
    transition: var(--transition-base);
}

.slaider-dots button.slick-active {
    background: var(--color-white);
    width: 36px;
    border-radius: 20px;
}

/* ================================
   6. SERVICES SECTION
   ================================ */
.myservice__service {
    padding: 80px 0;
    background: var(--color-white);
}

.myservice__service-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.myservice__service-item {
    background: var(--gradient-glass);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 20px;
    padding: 40px 30px;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.myservice__service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-base);
}

.myservice__service-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    background: var(--color-white);
}

.myservice__service-item:hover::before {
    transform: scaleX(1);
}

.myservice__service-img {
    width: 80px;
    height: 80px;
    background: var(--gradient-silver);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 36px;
    color: var(--color-primary);
    transition: var(--transition-base);
}

.myservice__service-item:hover .myservice__service-img {
    background: var(--gradient-primary);
    color: var(--color-white);
    transform: rotate(5deg) scale(1.1);
}

.myservice__service-title h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--color-dark);
}

.myservice__service-desc p {
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 20px;
}

.myservice__service-price {
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.myservice__service-price span {
    font-size: 14px;
    color: var(--color-secondary);
    font-weight: 400;
}

/* ================================
   7. BANNER SECTION
   ================================ */
.myservice__banner {
    background: var(--gradient-primary);
    border-radius: 30px;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.myservice__banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.myservice__banner-info {
    position: relative;
    z-index: 2;
    flex: 1;
}

.myservice__banner-info h3 {
    font-size: 40px;
    color: var(--color-white);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.myservice__banner-info p {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
    line-height: 1.6;
}

.myservice__banner-btn {
    display: flex;
    gap: 20px;
}

.btn-dark,
.btn-light {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-dark {
    background: var(--color-dark);
    color: var(--color-white);
    border: 2px solid var(--color-dark);
}

.btn-dark:hover {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-light {
    background: var(--color-white);
    color: var(--color-primary);
    border: 2px solid var(--color-white);
}

.btn-light:hover {
    background: transparent;
    color: var(--color-white);
}

.myservice__banner-img {
    position: relative;
    z-index: 2;
}

.myservice__banner-img img {
    max-width: 400px;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
}

/* ================================
   8. FOOTER
   ================================ */
.myservice__footer {
    background: var(--gradient-dark);
    color: var(--color-white);
    padding-top: 60px;
    position: relative;
    overflow: hidden;
}

.myservice__footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
}

.myservice__footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.myservice__footer-contacts h4,
.myservice__footer-menu-item h4 {
    font-size: 18px;
    margin-bottom: 24px;
    color: var(--color-white);
    position: relative;
    padding-bottom: 10px;
}

.myservice__footer-contacts h4::after,
.myservice__footer-menu-item h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-primary);
}

.myservice__footer-contacts ul,
.myservice__footer-menu-item ul {
    list-style: none;
}

.myservice__footer-contacts ul li,
.myservice__footer-menu-item ul li {
    margin-bottom: 12px;
    color: rgba(255,255,255,0.7);
    transition: var(--transition-fast);
}

.myservice__footer-contacts ul li a,
.myservice__footer-menu-item ul li a {
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.myservice__footer-contacts ul li a:hover,
.myservice__footer-menu-item ul li a:hover {
    color: var(--color-primary);
    transform: translateX(4px);
}

.myservice__footer-social {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.myservice__footer-social a {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 20px;
    transition: var(--transition-base);
}

.myservice__footer-social a:hover {
    background: var(--gradient-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.myservice__footer-basement {
    background: rgba(0,0,0,0.3);
    padding: 30px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.myservice__footer-basement-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.myservice__footer-basement-copy {
    flex: 1;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
}

/* ================================
   9. ANIMATIONS
   ================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ================================
   10. RESPONSIVE DESIGN
   ================================ */
@media (max-width: 1200px) {
    .myservice__container {
        padding: 0 20px;
    }

    .slaider-title h2 {
        font-size: 48px;
    }
}

@media (max-width: 800px) {
    .myservice__header-menu > li > a {
        color: #fff;
    }
}

@media (max-width: 768px) {
    .myservice__header-top-inner {
        /*flex-direction: column;*/
        gap: 10px;
    }

    .myservice__header-top-search {
        min-width: auto;
    }

    .myservice__header-menu {
        flex-direction: column;
    }

    .slaider-title h2 {
        font-size: 32px;
    }

    .myservice__service-inner {
        grid-template-columns: 1fr;
    }

    .myservice__footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .myservice__banner {
        flex-direction: column;
        padding: 40px 30px;
    }

    .myservice__banner-img {
        display: none;
    }
}

/* ================================
   11. UTILITIES
   ================================ */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-effect {
    background: var(--gradient-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.hover-lift {
    transition: var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Scroll to top button */
#go-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
    z-index: 999;
}

#go-top:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

#go-top::before {
    content: "↑";
    font-size: 24px;
    font-weight: bold;
}