/* Reset and Base Styles - Apple Inspired */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    background-color: #ffffff;
    letter-spacing: -0.022em;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header - Apple Style */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.18);
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.header__nav {
    padding: 0;
    height: 44px;
    display: flex;
    align-items: center;
}

.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.header__logo {
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -0.022em;
}

.header__logo-text {
    color: #1d1d1f;
    transition: color 0.3s ease;
}

.header__logo:hover .header__logo-text {
    color: #0071e3;
}

.header__menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.header__menu-line {
    width: 2rem;
    height: 0.25rem;
    background: #333;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.header__menu {
    display: none;
    list-style: none;
}

.header__menu-item {
    margin: 0;
}

.header__menu-link {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.header__menu-link:hover,
.header__menu-link:focus {
    color: #2c5aa0;
}

/* Main */
.main {
    padding-top: 44px;
}

/* Hero Section - Apple Style */
.hero {
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, #000000 0%, #1d1d1f 100%);
    color: #f5f5f7;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(0, 113, 227, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(175, 82, 222, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero__content {
    max-width: 980px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero__title {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.0834933333;
    letter-spacing: -0.003em;
    margin-bottom: 0.4em;
    color: #f5f5f7;
}

.hero__description {
    font-size: 21px;
    font-weight: 400;
    line-height: 1.381;
    letter-spacing: 0.011em;
    margin-bottom: 1.9em;
    color: #a1a1a6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero__cta-button {
    display: inline-block;
    padding: 12px 24px;
    background: #0071e3;
    color: #ffffff;
    text-decoration: none;
    border-radius: 980px;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.24;
    letter-spacing: -0.022em;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    border: none;
    cursor: pointer;
    min-width: 23px;
}

.hero__cta-button:hover,
.hero__cta-button:focus {
    background: #0077ed;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 113, 227, 0.4);
}

/* Mission Section - Apple Style */
.mission {
    padding: 110px 0;
    background-color: #f5f5f7;
}

.mission__grid {
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr;
    max-width: 1200px;
    margin: 0 auto;
}

.mission__item {
    text-align: center;
    padding: 60px 40px;
    background: #ffffff;
    border-radius: 18px;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.mission__item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.mission__number {
    font-size: 64px;
    font-weight: 600;
    color: #0071e3;
    margin-bottom: 16px;
    line-height: 1;
    letter-spacing: -0.009em;
}

.mission__title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1d1d1f;
    line-height: 1.14;
    letter-spacing: 0.007em;
}

.mission__text {
    font-size: 19px;
    color: #86868b;
    line-height: 1.42;
    letter-spacing: 0.012em;
}

/* Services Section - Apple Style */
.services {
    padding: 110px 0;
    background: #000000;
    color: #f5f5f7;
}

.services__grid {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr;
    max-width: 1200px;
    margin: 0 auto;
}

.services__item {
    padding: 48px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.services__item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.services__title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.16;
    letter-spacing: 0.009em;
    color: #f5f5f7;
}

/* Process Section - Apple Style */
.process {
    padding: 110px 0;
    background-color: #ffffff;
}

.process__main-title {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.003em;
    text-align: center;
    margin-bottom: 80px;
    color: #1d1d1f;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.process__content {
    max-width: 980px;
    margin: 0 auto;
}

.process__intro {
    margin-bottom: 60px;
    font-size: 21px;
    line-height: 1.381;
    letter-spacing: 0.011em;
    color: #1d1d1f;
}

.process__intro p {
    margin-bottom: 20px;
}

.process__step {
    margin-bottom: 40px;
    padding: 48px;
    background-color: #f5f5f7;
    border-radius: 18px;
    border-left: 4px solid #0071e3;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.process__step:hover {
    background-color: #f0f0f2;
    transform: translateX(2px);
}

.process__step-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1d1d1f;
    line-height: 1.14;
    letter-spacing: 0.007em;
}

.process__step p {
    margin-bottom: 16px;
    color: #86868b;
    font-size: 17px;
    line-height: 1.47;
    letter-spacing: -0.022em;
}

.process__list {
    list-style: none;
    padding-left: 20px;
}

.process__list li {
    position: relative;
    margin-bottom: 12px;
    color: #86868b;
    font-size: 17px;
    line-height: 1.47;
    letter-spacing: -0.022em;
}

.process__list li::before {
    content: "•";
    color: #0071e3;
    font-weight: bold;
    position: absolute;
    left: -20px;
    font-size: 20px;
}

/* Pricing Section - Apple Style */
.pricing {
    padding: 110px 0;
    background-color: #f5f5f7;
}

.pricing__main-title {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.003em;
    text-align: center;
    margin-bottom: 80px;
    color: #1d1d1f;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.pricing__grid {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr;
    max-width: 1400px;
    margin: 0 auto;
}

.pricing__card {
    background: #ffffff;
    border-radius: 18px;
    padding: 48px 40px;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.pricing__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.pricing__card--light {
    border-top: 4px solid #34c759;
}

.pricing__card--start {
    border-top: 4px solid #007aff;
}

.pricing__card--optimal {
    border-top: 4px solid #ff9500;
    position: relative;
}

.pricing__card--optimal::before {
    content: 'Популярный';
    position: absolute;
    top: -1px;
    right: 40px;
    background: #ff9500;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 0 0 12px 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pricing__card--business {
    border-top: 4px solid #af52de;
}

.pricing__card--ai {
    border-top: 4px solid #1d1d1f;
    background: linear-gradient(135deg, #1d1d1f 0%, #000000 100%);
    color: #f5f5f7;
    position: relative;
}

.pricing__card--ai::before {
    content: 'Премиум';
    position: absolute;
    top: -1px;
    right: 40px;
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 0 0 12px 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pricing__card-header {
    text-align: center;
    margin-bottom: 40px;
}

.pricing__emoji {
    font-size: 48px;
    display: block;
    margin-bottom: 20px;
    line-height: 1;
}

.pricing__card-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1d1d1f;
    line-height: 1.16;
    letter-spacing: 0.009em;
}

.pricing__card--ai .pricing__card-title {
    color: #f5f5f7;
}

.pricing__card-subtitle {
    font-size: 17px;
    color: #86868b;
    font-weight: 400;
    line-height: 1.47;
    letter-spacing: -0.022em;
}

.pricing__card--ai .pricing__card-subtitle {
    color: #a1a1a6;
}

.pricing__price {
    margin-bottom: 32px;
    text-align: center;
}

.pricing__price-setup,
.pricing__price-monthly {
    margin-bottom: 16px;
}

.pricing__price-label {
    font-size: 14px;
    color: #86868b;
    display: block;
    margin-bottom: 4px;
    font-weight: 400;
    line-height: 1.43;
    letter-spacing: -0.016em;
}

.pricing__card--ai .pricing__price-label {
    color: #a1a1a6;
}

.pricing__price-value {
    font-size: 32px;
    font-weight: 600;
    color: #1d1d1f;
    line-height: 1.12;
    letter-spacing: 0.004em;
    display: block;
}

.pricing__card--ai .pricing__price-value {
    color: #f5f5f7;
}

.pricing__price-old {
    text-decoration: line-through;
    color: #86868b;
    margin-right: 8px;
    font-size: 24px;
    font-weight: 400;
}

.pricing__target {
    margin-bottom: 32px;
    padding: 24px;
    background-color: #f5f5f7;
    border-radius: 12px;
    font-size: 17px;
    line-height: 1.47;
    letter-spacing: -0.022em;
    color: #1d1d1f;
}

.pricing__card--ai .pricing__target {
    background-color: rgba(255, 255, 255, 0.1);
    color: #f5f5f7;
}

.pricing__features {
    margin-bottom: 40px;
}

.pricing__features h4 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1d1d1f;
    line-height: 1.21;
    letter-spacing: 0.012em;
}

.pricing__card--ai .pricing__features h4 {
    color: #f5f5f7;
}

.pricing__features ul {
    list-style: none;
    margin-bottom: 24px;
}

.pricing__feature {
    margin-bottom: 12px;
    font-size: 17px;
    line-height: 1.47;
    letter-spacing: -0.022em;
    padding-left: 24px;
    position: relative;
}

.pricing__feature::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: center;
}

.pricing__feature--included {
    color: #1d6f42;
}

.pricing__feature--included::before {
    background: #34c759;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="white" d="M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z"/></svg>');
}

.pricing__feature--excluded {
    color: #d70015;
}

.pricing__feature--excluded::before {
    background: #ff3b30;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="white" d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"/></svg>');
}

.pricing__feature--added {
    color: #007aff;
    font-weight: 500;
}

.pricing__feature--added::before {
    background: #007aff;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="white" d="M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z"/></svg>');
}

.pricing__feature--premium {
    color: #af52de;
    font-weight: 500;
}

.pricing__feature--premium::before {
    background: linear-gradient(45deg, #af52de, #ff6b6b);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="white" d="M9.669.864L8 0 6.331.864a2 2 0 0 0-1.055.668L4.069 2.56a2 2 0 0 0-.665 1.093L3.03 5.01a2 2 0 0 0-.23 1.242l.302 1.776a2 2 0 0 0 .377 1.166l.997 1.392a2 2 0 0 0 .925.64l1.652.548a2 2 0 0 0 1.22 0l1.652-.548a2 2 0 0 0 .925-.64l.997-1.392a2 2 0 0 0 .377-1.166l.302-1.776a2 2 0 0 0-.23-1.242l-.375-1.357a2 2 0 0 0-.665-1.093L9.925 1.532a2 2 0 0 0-1.055-.668z"/></svg>');
}

.pricing__button {
    display: block;
    width: 100%;
    padding: 16px 24px;
    background: #0071e3;
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    border-radius: 980px;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.24;
    letter-spacing: -0.022em;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    border: none;
    cursor: pointer;
    min-width: 23px;
    white-space: normal;
    margin: 0 auto;
}

.pricing__button:hover,
.pricing__button:focus {
    background: #0077ed;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 113, 227, 0.4);
}

.pricing__button--premium {
    background: linear-gradient(45deg, #af52de, #ff6b6b);
    box-shadow: 0 4px 20px rgba(175, 82, 222, 0.4);
}

.pricing__button--premium:hover,
.pricing__button--premium:focus {
    background: linear-gradient(45deg, #9f47ce, #ff5555);
    box-shadow: 0 6px 25px rgba(175, 82, 222, 0.6);
}

/* Contact Section - Apple Style */
.contact {
    padding: 110px 0;
    background: #000000;
    color: #f5f5f7;
    text-align: center;
}

.contact__title {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.003em;
    margin-bottom: 32px;
    color: #f5f5f7;
}

.contact__description {
    font-size: 21px;
    line-height: 1.381;
    letter-spacing: 0.011em;
    margin-bottom: 60px;
    color: #a1a1a6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact__methods {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.contact__method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 980px;
    text-decoration: none;
    color: #f5f5f7;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 17px;
    line-height: 1.47;
    letter-spacing: -0.022em;
}

.contact__method:hover,
.contact__method:focus {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.contact__method-icon {
    font-size: 24px;
}

.contact__method-text {
    font-weight: 400;
}

/* Footer - Apple Style */
.footer {
    padding: 40px 0;
    background-color: #f5f5f7;
    color: #86868b;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer__logo-text {
    font-size: 17px;
    font-weight: 400;
    color: #1d1d1f;
    line-height: 1.47;
    letter-spacing: -0.022em;
}

.footer__info {
    font-size: 12px;
    color: #86868b;
    line-height: 1.33;
    letter-spacing: -0.01em;
}

/* Responsive Design - Apple Breakpoints */
@media (min-width: 734px) {
    .container {
        padding: 0 40px;
    }

    .header__menu-toggle {
        display: none;
    }

    .header__menu {
        display: flex;
        gap: 32px;
        align-items: center;
    }

    .header__menu-link {
        padding: 0;
        font-size: 17px;
        line-height: 1.47;
        letter-spacing: -0.022em;
        color: #1d1d1f;
        font-weight: 400;
    }

    .header__menu-link:hover,
    .header__menu-link:focus {
        color: #0071e3;
    }

    .hero__title {
        font-size: 56px;
        line-height: 1.07;
    }

    .hero__description {
        font-size: 24px;
        line-height: 1.33;
    }

    .mission__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .services__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .pricing__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .process__main-title {
        font-size: 56px;
        line-height: 1.07;
    }

    .pricing__main-title {
        font-size: 56px;
        line-height: 1.07;
    }

    .contact__title {
        font-size: 56px;
        line-height: 1.07;
    }

    .footer__content {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    .hero {
        padding: 120px 0 80px;
    }

    .hero__title {
        font-size: 64px;
        line-height: 1.05;
    }

    .hero__description {
        font-size: 28px;
        line-height: 1.29;
    }

    .pricing__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pricing__card--ai {
        grid-column: 1 / -1;
        max-width: 600px;
        margin: 40px auto 0;
    }
}

@media (min-width: 1440px) {
    .container {
        max-width: 1440px;
        padding: 0 80px;
    }

    .hero__title {
        font-size: 80px;
        line-height: 1.05;
    }

    .pricing__grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .pricing__card--ai {
        grid-column: auto;
        max-width: none;
        margin: 0;
    }
}

@media (max-width: 733px) {
    .container {
        padding: 0 8px;
    }
    .header__menu {
        display: none;
        position: fixed !important;
        top: 44px;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: calc(100vh - 44px);
        background: rgba(255,255,255,0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        overflow-y: auto;
        z-index: 2000;
        padding: 1.5rem 0 2rem 0;
        box-shadow: 0 4px 20px rgba(0,0,0,0.12);
        border-radius: 0 0 18px 18px;
        transition: all 0.3s;
    }
    .header__menu-link {
        font-size: 20px;
        padding: 1.2rem 2rem;
        text-align: left;
        min-width: 44px;
        min-height: 44px;
    }
    .header__menu-toggle {
        z-index: 2100;
    }
    .hero {
        padding: 3.5rem 0 2rem;
    }
    .mission, .services, .process, .pricing, .contact {
        padding: 48px 0;
    }
    .pricing__button, .hero__cta-button {
        font-size: 18px;
        min-height: 48px;
        min-width: 48px;
        padding: 16px 0;
    }
    html, body {
        max-width: 100vw;
        overflow-x: hidden;
    }
}

/* Accessibility - Apple Style */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid #0071e3;
    outline-offset: 2px;
    border-radius: 4px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero {
        background: #000000;
        color: #ffffff;
    }
    
    .services {
        background: #000000;
        color: #ffffff;
    }
    
    .contact {
        background: #000000;
        color: #ffffff;
    }

    .pricing__card {
        border: 2px solid #000000;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #000000;
        color: #f5f5f7;
    }

    .header {
        background-color: rgba(0, 0, 0, 0.72);
        border-bottom-color: rgba(255, 255, 255, 0.18);
    }

    .header__logo-text {
        color: #f5f5f7;
    }

    .header__logo:hover .header__logo-text {
        color: #0a84ff;
    }
}

/* Print styles */
@media print {
    .header,
    .footer {
        display: none;
    }
    
    .main {
        padding-top: 0;
    }
    
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
}