@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* ============ FONTS ============ */
.inter-400 { font-family: "Inter", sans-serif; font-weight: 400; }
.inter-300-italic { font-family: "Inter", sans-serif; font-weight: 300; font-style: italic; }
.ibm-plex-mono-regular { font-family: "IBM Plex Mono", monospace; font-weight: 400; }
.ibm-plex-mono-semibold { font-family: "IBM Plex Mono", monospace; font-weight: 600; }
.ibm-plex-mono-regular-italic { font-family: "IBM Plex Mono", monospace; font-weight: 400; font-style: italic; }

/* ============ RESET & ROOT ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #4A9EFF;
    --primary-dark: #1E7AE8;
    --accent: #A8E86B;
    --accent-dark: #7BC93C;
    --bg: #F4F4F4;
    --white: #FFFFFF;
    --text: #1A1A1A;
    --text-muted: rgba(26,26,26,0.65);
    --border: rgba(0,0,0,0.08);
    --shadow-sm: 0 4px 15px rgba(0,0,0,0.06);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.10);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.15);
    --radius: 20px;
    --radius-lg: 32px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

input, button, textarea, select { font: inherit; }
img { display: block; max-width: 100%; }

section { width: 100%; display: flex; justify-content: center; align-items: center; }

.content {
    width: min(1300px, 92%);
    margin-inline: auto;
}

section[id] { scroll-margin-top: 80px; }

/* ============ REVEAL ANIMATIONS ============ */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25, 0.8, 0.3, 1);
    will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============ HEADER ============ */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 0;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    color: var(--text);
    font-size: clamp(20px, 2.4vw, 34px);
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: color var(--transition);
}
.logo:hover { color: var(--primary-dark); }

.svyaz {
    background: linear-gradient(135deg, #E8FFD4 0%, #C6F5A0 100%);
    padding: 10px 22px;
    border-radius: 40px;
    font-size: clamp(13px, 1.2vw, 17px);
    text-align: center;
    box-shadow: 0 4px 15px rgba(100, 180, 60, 0.15);
    transition: transform var(--transition), box-shadow var(--transition);
    white-space: nowrap;
}
.svyaz:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(100, 180, 60, 0.3); }
.svyaz a { color: #1a1a1ade; text-decoration: none; }

/* ============ HERO ============ */
.vizitka {
    position: relative;
    min-height: 94vh;
    min-height: 94svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
    padding: 60px 0;
}

.vizitka::before {
    content: '';
    position: absolute;
    inset: -30px;
    background: url('img/2151589539.jpg') center/cover no-repeat;
    filter: blur(3px) brightness(0.9);
    z-index: -2;
}

.vizitka::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,30,55,0.82) 0%, rgba(15,30,55,0.45) 60%, rgba(15,30,55,0.75) 100%);
    z-index: -1;
}

.hero-content {
    color: #fff;
    text-align: left;
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(8px);
    border-radius: 40px;
    font-size: clamp(12px, 1.2vw, 15px);
    letter-spacing: 0.5px;
    margin-bottom: 28px;
    animation: heroFadeUp 0.8s ease-out 0.1s both;
}

.hero-title {
    font-size: clamp(32px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    animation: heroFadeUp 0.9s ease-out 0.25s both;
}

.hero-accent {
    color: var(--accent);
    position: relative;
    display: inline-block;
}
.hero-accent::after {
    content: '';
    position: absolute;
    left: 0; bottom: 4px;
    width: 100%; height: 6px;
    background: var(--accent);
    opacity: 0.25;
    border-radius: 4px;
    z-index: -1;
}

.hero-subtitle {
    font-size: clamp(15px, 1.5vw, 20px);
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
    max-width: 720px;
    margin-bottom: 20px;
    animation: heroFadeUp 0.9s ease-out 0.4s both;
}

.hero-location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(14px, 1.3vw, 18px);
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 40px;
    animation: heroFadeUp 0.9s ease-out 0.5s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 56px;
    animation: heroFadeUp 0.9s ease-out 0.65s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: clamp(15px, 1.3vw, 17px);
    font-weight: 600;
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn-primary {
    background: var(--accent);
    color: #173000;
    box-shadow: 0 8px 30px rgba(168, 232, 107, 0.35);
}
.btn-primary:hover {
    background: #b9ff7a;
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(168, 232, 107, 0.5);
}
.btn-secondary {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(8px);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.22);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: clamp(24px, 4vw, 64px);
    flex-wrap: wrap;
    animation: heroFadeUp 0.9s ease-out 0.8s both;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
    font-size: clamp(26px, 3vw, 44px);
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 6px;
}
.stat-label {
    font-size: clamp(12px, 1.1vw, 14px);
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.3px;
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    width: 26px;
    height: 44px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 8px;
    text-decoration: none;
    animation: heroFadeUp 1s ease-out 1s both;
}
.scroll-hint span {
    width: 4px; height: 10px;
    background: rgba(255,255,255,0.7);
    border-radius: 4px;
    animation: scrollBounce 1.6s ease-in-out infinite;
}
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50%      { transform: translateY(10px); opacity: 1; }
}

/* ============ QUOTE ============ */
.citata {
    padding: 90px 20px;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
    position: relative;
    overflow: hidden;
}
.citata::before {
    content: '"';
    position: absolute;
    font-family: Georgia, serif;
    font-size: 320px;
    line-height: 1;
    top: -80px;
    left: 8%;
    color: rgba(74, 158, 255, 0.06);
    pointer-events: none;
}
.quote-text {
    font-size: clamp(18px, 2.2vw, 30px);
    line-height: 1.5;
    max-width: 900px;
    margin: 0 auto 20px;
}
.quote-author {
    font-size: clamp(15px, 1.5vw, 20px);
    color: var(--text-muted);
}

/* ============ ABOUT ME ============ */
.ame {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    background: var(--white);
    border-radius: var(--radius-lg);
    margin: 100px 0 140px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}
.ame::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 8px; height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--accent));
}
.ame-image-wrap {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.ame-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.ame-image-wrap img:hover { transform: scale(1.03); }
.ame-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255,255,255,0.9);
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.ame-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ame-greeting {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 8px;
}
.ame-name {
    font-size: clamp(17px, 2vw, 26px);
    margin-bottom: 24px;
    line-height: 1.5;
}
.u { text-decoration: underline; text-decoration-color: var(--primary); text-underline-offset: 4px; }
.ame-text p:not(.ame-greeting):not(.ame-name):not(.ame-signature) {
    font-size: clamp(15px, 1.3vw, 18px);
    line-height: 1.65;
    margin-bottom: 14px;
    color: var(--text);
}
.ame-principles {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0 24px;
}
.principle {
    background: #f0f7ff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-dark);
}
.ame-signature {
    font-size: clamp(15px, 1.4vw, 18px);
    font-style: italic;
    color: var(--text-muted);
    text-align: right;
    margin-top: auto;
    padding-top: 20px;
}

/* ============ VITRINA ============ */
.vitrina {
    background: linear-gradient(180deg, #ffffff 60%, #ededed 100%);
    padding-bottom: 60px;
}
.vitrina h2 {
    text-align: center;
    font-size: clamp(32px, 5vw, 64px);
    margin: 60px 0 50px;
    letter-spacing: -0.5px;
}
.vimg {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 140px;
}
.vimg img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 20px;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-sm);
    transition: transform 0.5s cubic-bezier(0.075, 0.82, 0.165, 1), box-shadow 0.5s ease;
    cursor: pointer;
}
.vimg img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
    z-index: 5;
}

/* ============ USLUGI ============ */
.uslugi {
    background-color: #EDEDED;
    background-image: url('img/backinstr.png');
    background-position: top center;
    background-repeat: no-repeat;
    padding-bottom: 60px;
}
.uslugi h2 {
    font-size: clamp(32px, 5vw, 64px);
    margin-top: 60px;
    text-align: center;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}
.polosochka {
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.15), transparent);
    width: 60%;
    height: 3px;
    margin: 0 auto 40px;
    border-radius: 4px;
}
.usplit {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 140px;
}

.oneplit {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.oneplit:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}
.oneplit.wide { grid-column: span 2; }

.plithead {
    padding: 16px 20px;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: filter var(--transition);
}
.oneplit:hover .plithead { filter: brightness(1.05); }
.plithead h3 {
    font-size: clamp(14px, 1.15vw, 17px);
    font-weight: 600;
    line-height: 1.3;
}
.plithead-1  { background: linear-gradient(135deg, #e3f1ff 0%, #6eb9ff 100%); }
.plithead-2  { background: linear-gradient(135deg, #71baff 0%, #e4f2ff 100%); }
.plithead-3  { background: linear-gradient(135deg, #e3f1ff 0%, #ffd8a2 100%); }
.plithead-4  { background: linear-gradient(135deg, #ffd9a2 0%, #dedede 100%); }
.plithead-5  { background: linear-gradient(135deg, #e3f1ff 0%, #ffbd7c 100%); }
.plithead-6  { background: linear-gradient(135deg, #ffbe7d 0%, #e3f1ff 100%); }
.plithead-7  { background: linear-gradient(135deg, #e3f1ff 0%, #d4e9ff 100%); }
.plithead-8  { background: linear-gradient(135deg, #e3f1ff 0%, #ffe8b5 100%); }
.plithead-9  { background: linear-gradient(135deg, #ffe8b6 0%, #b8ddff 100%); }
.plithead-10 { background: linear-gradient(135deg, #b8ddff 0%, #a2ffbe 100%); }

.oneplit ul {
    list-style-position: inside;
    font-size: clamp(13px, 1.05vw, 16px);
    line-height: 1.5;
    padding: 16px 18px 20px;
    text-wrap: balance;
    color: var(--text);
}
.oneplit li { margin-bottom: 4px; }

/* ============ DIVIDER ============ */
.lineper {
    background: linear-gradient(90deg, transparent, #A4A4A4 20%, #A4A4A4 80%, transparent);
    width: 100%;
    height: 2px;
}

/* ============ FAQ ============ */
.faq { background-color: #F7F7F7; padding: 60px 0 100px; }
.faq h2 {
    text-align: center;
    font-size: clamp(30px, 4.5vw, 56px);
    margin-bottom: 50px;
    letter-spacing: -0.5px;
}
.qa {
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.qa:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.qahead {
    background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
    padding: 22px 28px;
    display: flex;
    align-items: center;
}
.qahead li {
    font-size: clamp(17px, 1.9vw, 26px);
    font-weight: 600;
    line-height: 1.35;
    list-style: none;
}
.faq .qa > p {
    font-size: clamp(14px, 1.35vw, 18px);
    line-height: 1.65;
    padding: 24px 28px 28px;
    color: var(--text);
}

/* ============ CONTACTS ============ */
.howsvyaz {
    padding: 80px 0 140px;
    background: linear-gradient(180deg, #f7f7f7 0%, #ffffff 100%);
}
.howsvyaz h2 {
    font-size: clamp(30px, 4.5vw, 56px);
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: -0.5px;
}
.gosvyaz {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--white);
}
.gosvyaz-visual {
    position: relative;
    background: #f0f4f8;
    min-height: 100%;
}
.gosvyaz-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.contact-benefits {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255,255,255,0.92);
    padding: 16px;
    border-radius: 16px;
    backdrop-filter: blur(6px);
    font-size: clamp(13px, 1.1vw, 15px);
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.gosvyaz-info {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.contact-title {
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.3;
}
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--text);
    font-size: clamp(16px, 1.5vw, 20px);
    font-weight: 500;
    transition: color var(--transition);
}
a.contact-item:hover { color: var(--primary-dark); }
.contact-item .icon {
    font-size: 22px;
    background: #f0f7ff;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    flex-shrink: 0;
    transition: background var(--transition), transform var(--transition);
}
a.contact-item:hover .icon {
    background: #e0efff;
    transform: scale(1.05);
}
.contact-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.contact-actions .btn {
    flex: 1;
    justify-content: center;
    white-space: nowrap;
}

/* ============ FOOTER ============ */
footer {
    color: rgba(255,255,255,0.4);
    background: #14171c;
    padding: 48px 0;
    text-align: center;
}
footer h3 {
    color: rgba(255,255,255,0.85);
    font-size: clamp(16px, 1.4vw, 20px);
    padding-bottom: 18px;
    font-weight: 600;
}
footer p { padding-bottom: 12px; font-size: 14px; }
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
footer a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    padding: 4px 12px;
    font-size: 14px;
    transition: color var(--transition);
}
footer a:hover { color: rgba(255,255,255,0.9); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
    .usplit { grid-template-columns: repeat(2, 1fr); }
    .oneplit.wide { grid-column: span 2; }
    .vimg { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

@media (max-width: 950px) {
    .ame { grid-template-columns: 1fr; padding: 30px; gap: 24px; margin: 60px 0 100px; }
    .ame-image-wrap { max-height: 460px; }
    .ame::before { width: 100%; height: 8px; top: 0; left: 0; background: linear-gradient(90deg, var(--primary), var(--accent)); }
    .ame-signature { text-align: left; }
    .gosvyaz { grid-template-columns: 1fr; }
    .gosvyaz-visual { min-height: 280px; }
}

@media (max-width: 700px) {
    .vimg { grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 90px; }
    .vitrina h2 { margin: 40px 0 32px; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .btn { justify-content: center; }
    .hero-stats { gap: 28px; }
    .usplit { grid-template-columns: 1fr; margin-bottom: 90px; }
    .oneplit.wide { grid-column: span 1; }
    .polosochka { width: 80%; }
    .citata { padding: 60px 16px; }
    .citata::before { font-size: 200px; top: -40px; }
    .qahead { padding: 18px 20px; }
    .faq .qa > p { padding: 18px 20px 22px; }
    header { padding: 10px 0; }
    .svyaz { padding: 8px 16px; }
    
    .gosvyaz-info { padding: 30px 24px; }
    .contact-actions { flex-direction: column; }
    .contact-actions .btn { width: 100%; }
}

@media (max-width: 420px) {
    .content { width: 94%; }
    .hero-title { letter-spacing: -1px; }
    .hero-stats { gap: 20px; }
    .stat-num { font-size: 24px; }
    .oneplit ul { padding: 14px 16px 16px; }
    .ame { padding: 20px; }
    .contact-item { font-size: 15px; }
    .contact-item .icon { width: 44px; height: 44px; font-size: 18px; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}