/**
 * Key Master - Основні стилі
 * Mobile-first підхід
 */

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ============================================
   Container
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-secondary);
}

h1 {
    font-size: 2rem;
    font-weight: 800;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.25rem;
}

@media (min-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn__icon {
    width: 20px;
    height: 20px;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.btn--primary:active {
    transform: translateY(0);
}

.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn--outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn--large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn--call {
    animation: pulse-call 2s infinite;
}

@keyframes pulse-call {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* ============================================
   Header
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo__icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.logo__icon svg {
    width: 100%;
    height: 100%;
}

.logo__text {
    display: flex;
    flex-direction: column;
}

.logo__name {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-secondary);
    line-height: 1.2;
}

.logo__name strong {
    font-weight: 800;
    color: var(--color-primary);
}

.logo__city {
    font-size: 0.75rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navigation */
.nav {
    display: none;
}

@media (min-width: 1024px) {
    .nav {
        display: block;
    }
}

.nav__list {
    display: flex;
    gap: 32px;
}

.nav__link {
    font-weight: 500;
    color: var(--color-text);
    padding: 8px 0;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__link.active {
    color: var(--color-primary);
}

/* Header Phone Button */
.header__phone {
    display: none;
}

@media (min-width: 768px) {
    .header__phone {
        display: inline-flex;
    }
}

/* Burger Menu */
.burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    padding: 4px;
}

.burger__line {
    width: 100%;
    height: 3px;
    background: var(--color-secondary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger.active .burger__line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active .burger__line:nth-child(2) {
    opacity: 0;
}

.burger.active .burger__line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (min-width: 1024px) {
    .burger {
        display: none;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-white);
    padding: 24px 16px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 999;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-nav__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    font-size: 1.125rem;
    font-weight: 500;
    border-radius: 12px;
    background: var(--color-gray-light);
    transition: all 0.3s ease;
}

.mobile-nav__link svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
}

.mobile-nav__link:hover,
.mobile-nav__link.active {
    background: var(--color-primary-bg);
    color: var(--color-primary);
}

.mobile-menu__call {
    width: 100%;
    margin-top: 24px;
    padding: 20px;
    font-size: 1.25rem;
}

.mobile-menu__call svg {
    width: 24px;
    height: 24px;
}

@media (min-width: 1024px) {
    .mobile-menu {
        display: none;
    }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, var(--color-primary-bg) 0%, var(--color-white) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 200%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-gradient-end) 100%);
    opacity: 0.05;
    border-radius: 50%;
    transform: rotate(-15deg);
}

.hero__inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.hero__content {
    text-align: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--color-white);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.hero__badge svg {
    width: 18px;
    height: 18px;
}

.hero__title {
    font-size: 2rem;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero__title span {
    color: var(--color-primary);
    display: block;
}

.hero__subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero__cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.hero__phone-big {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero__phone-big svg {
    width: 28px;
    height: 28px;
}

.hero__features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.hero__feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.hero__feature-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero__feature-icon svg {
    width: 22px;
    height: 22px;
    color: var(--color-white);
}

.hero__feature-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-secondary);
    line-height: 1.3;
}

@media (min-width: 768px) {
    .hero {
        padding: 120px 0 80px;
    }

    .hero__inner {
        flex-direction: row;
        align-items: center;
    }

    .hero__content {
        flex: 1;
        text-align: left;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        margin-left: 0;
        margin-right: 0;
    }

    .hero__cta {
        flex-direction: row;
        justify-content: flex-start;
    }

    .hero__features {
        flex: 1;
    }
}

@media (min-width: 1024px) {
    .hero__title {
        font-size: 3rem;
    }

    .hero__features {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero__feature {
        padding: 20px;
    }
}

/* ============================================
   Services Section
   ============================================ */
.services {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header__badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--color-primary-bg);
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 12px;
}

.section-header h2 {
    margin-bottom: 12px;
}

.section-header p {
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

.services__grid {
    display: grid;
    gap: 20px;
}

.service-card {
    background: var(--color-white);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--color-gray);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--color-primary-light);
}

.service-card__icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-card__icon svg {
    width: 30px;
    height: 30px;
    color: var(--color-white);
}

.service-card__title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.service-card__desc {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-weight: 600;
}

.service-card__link svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.service-card__link:hover svg {
    transform: translateX(4px);
}

@media (min-width: 768px) {
    .services {
        padding: 80px 0;
    }

    .services__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

/* ============================================
   Prices Section
   ============================================ */
.prices {
    padding: 60px 0;
    background: var(--color-gray-light);
}

.prices__grid {
    display: grid;
    gap: 12px;
}

.price-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.price-card--highlight {
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    color: var(--color-white);
}

.price-card--highlight .price-card__name,
.price-card--highlight .price-card__value {
    color: var(--color-white);
}

.price-card__name {
    font-weight: 500;
    flex: 1;
    padding-right: 16px;
    font-size: 0.95rem;
}

.price-card__value {
    font-weight: 700;
    color: var(--color-primary);
    white-space: nowrap;
    font-size: 1rem;
}

.price-card__note {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-left: 8px;
}

.prices__note {
    text-align: center;
    margin-top: 24px;
    padding: 16px;
    background: var(--color-white);
    border-radius: 12px;
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.prices__note strong {
    color: var(--color-primary);
}

@media (min-width: 768px) {
    .prices {
        padding: 80px 0;
    }

    .prices__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .price-card {
        padding: 20px 24px;
    }
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
    padding: 60px 0;
}

.cta__box {
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    border-radius: 24px;
    padding: 40px 24px;
    text-align: center;
    color: var(--color-white);
}

.cta__icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.cta__icon svg {
    width: 40px;
    height: 40px;
}

.cta__title {
    color: var(--color-white);
    margin-bottom: 12px;
    font-size: 1.75rem;
}

.cta__text {
    opacity: 0.9;
    margin-bottom: 24px;
    font-size: 1rem;
}

.cta__phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--color-white);
    color: var(--color-primary);
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.cta__phone:hover {
    transform: scale(1.05);
}

.cta__phone svg {
    width: 28px;
    height: 28px;
}

@media (min-width: 768px) {
    .cta {
        padding: 80px 0;
    }

    .cta__box {
        padding: 60px 40px;
    }

    .cta__title {
        font-size: 2rem;
    }
}

/* ============================================
   Features Section
   ============================================ */
.features {
    padding: 60px 0;
    background: var(--color-gray-light);
}

.features__grid {
    display: grid;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--color-white);
    border-radius: 16px;
}

.feature-item__icon {
    width: 50px;
    height: 50px;
    background: var(--color-primary-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-item__icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
}

.feature-item__content h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.feature-item__content p {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

@media (min-width: 768px) {
    .features {
        padding: 80px 0;
    }

    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   Service Page Styles
   ============================================ */
.page-hero {
    padding: 100px 0 40px;
    background: linear-gradient(135deg, var(--color-primary-bg) 0%, var(--color-white) 100%);
}

.page-hero__inner {
    display: flex;
    align-items: center;
    gap: 24px;
}

.page-hero__icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.page-hero__icon svg {
    width: 36px;
    height: 36px;
    color: var(--color-white);
}

.page-hero__content h1 {
    margin-bottom: 8px;
}

.page-hero__content p {
    color: var(--color-text-light);
}

.page-content {
    padding: 40px 0;
}

.page-content h2 {
    margin-top: 32px;
    margin-bottom: 16px;
}

.page-content p {
    margin-bottom: 16px;
    color: var(--color-text);
}

.page-content ul {
    margin-bottom: 24px;
    padding-left: 24px;
}

.page-content li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
}

.page-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
}

@media (min-width: 768px) {
    .page-hero {
        padding: 120px 0 60px;
    }

    .page-hero__icon {
        width: 90px;
        height: 90px;
    }

    .page-hero__icon svg {
        width: 46px;
        height: 46px;
    }

    .page-content {
        padding: 60px 0;
    }
}

/* ============================================
   Floating Call Button
   ============================================ */
.floating-call {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.4);
    z-index: 900;
    transition: all 0.3s ease;
}

.floating-call:hover {
    transform: scale(1.1);
}

.floating-call svg {
    width: 28px;
    height: 28px;
    color: var(--color-white);
}

.floating-call__pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--color-primary);
    opacity: 0.3;
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.5); opacity: 0; }
}

@media (min-width: 768px) {
    .floating-call {
        display: none;
    }
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--color-secondary);
    color: var(--color-white);
    padding: 40px 0 100px;
}

.footer__inner {
    display: grid;
    gap: 32px;
}

.footer__brand {
    max-width: 280px;
}

.logo--footer .logo__name {
    color: var(--color-white);
}

.footer__slogan {
    margin-top: 12px;
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.5;
}

.footer__title {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--color-white);
}

.footer__list a,
.footer__contacts span,
.footer__contacts a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer__list a:hover,
.footer__contacts a:hover {
    color: var(--color-primary-light);
}

.footer__list li {
    margin-bottom: 10px;
}

.footer__contacts li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer__contacts svg {
    width: 18px;
    height: 18px;
    color: var(--color-primary-light);
    flex-shrink: 0;
}

.footer__bottom {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.7;
}

.footer__note {
    margin-top: 8px;
    font-size: 0.8rem;
}

@media (min-width: 768px) {
    .footer {
        padding: 60px 0 40px;
    }

    .footer__inner {
        grid-template-columns: 1.5fr 1fr 1fr;
    }

    .footer__bottom {
        display: flex;
        justify-content: space-between;
        text-align: left;
    }

    .footer__note {
        margin-top: 0;
    }
}

/* ============================================
   Utilities
   ============================================ */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* Body padding for fixed header */
body {
    padding-top: 70px;
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}
