/* =========================
   🎨 THEME VARIABLES
========================= */

:root {
    --bg: #ffffff;
    --text: #111111;
    --muted: #666666;
    --card: #ffffff;
    --border: #eaeaea;
    --accent: #000000;
}

body.dark {
    --bg: #0b0c10;
    --text: #e8e8e8;
    --muted: #a0a0a0;
    --card: rgba(255,255,255,0.05);
    --border: rgba(255,255,255,0.08);
    --accent: #6c7bff;
}

/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

/* =========================
   BASE
========================= */

body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: 0.4s ease;
}

/* =========================
   HEADER
========================= */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;

    background: var(--bg);
    border-bottom: 1px solid var(--border);

    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-weight: 900;
    letter-spacing: 4px;
}

/* =========================
   NAV
========================= */

nav a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--muted);
    transition: 0.2s;
}

nav a:hover {
    color: var(--text);
}

/* =========================
   HERO
========================= */

.hero {
    text-align: center;
    padding: 120px 20px;
}

.hero h1 {
    font-size: 60px;
    font-weight: 900;
    background: linear-gradient(90deg, var(--text), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    max-width: 600px;
    margin: 20px auto;
    color: var(--muted);
}

/* =========================
   BUTTON
========================= */

.button {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 30px;
    background: var(--accent);
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    transition: 0.2s;
}

.button:hover {
    transform: translateY(-2px);
}

/* =========================
   SECTIONS
========================= */

section {
    padding: 80px 60px;
}

section h2 {
    font-size: 32px;
    margin-bottom: 25px;
}

/* =========================
   CARDS
========================= */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 25px;
    border-radius: 16px;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-6px);
}
/* =========================
   CONTACTS
========================= */

/* =========================
   CONTACT ICON BUTTONS (CIRCLES)
========================= */

.contacts-box {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.contact-item {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--card);
    border: 1px solid var(--border);

    text-decoration: none;
    color: var(--text);

    transition: 0.25s ease;

    position: relative;
}

/* hover эффект */
.contact-item:hover {
    transform: translateY(-4px) scale(1.05);
}

/* иконка */
.contact-icon {
    width: 20px;
    height: 20px;
    fill: var(--text);
}

/* tooltip (подпись при наведении) */
.contact-item::after {
    content: attr(data-label);
    position: absolute;
    bottom: -28px;

    font-size: 12px;
    color: var(--muted);

    opacity: 0;
    transition: 0.2s;
    white-space: nowrap;
}

.contact-item:hover::after {
    opacity: 1;
}

.contact-item:hover {
    transform: translateY(-4px);
}

/* SVG ICON (Telegram etc.) */
.contact-icon {
    width: 18px;
    height: 18px;
    fill: var(--text);
}

/* =========================
   FOOTER SIGNATURE
========================= */

.signature {
    margin-top: 30px;
    color: var(--muted);
    font-size: 14px;
}

/* =========================
   FLOATING CONTACT BAR
========================= */

.floating-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    gap: 10px;

    background: var(--card);
    border: 1px solid var(--border);
    padding: 10px 14px;
    border-radius: 999px;

    backdrop-filter: blur(10px);
    z-index: 999;
}

.floating-bar a {
    text-decoration: none;
    color: var(--text);
    font-size: 14px;
}

/* =========================
   COPY PHONE EFFECT
========================= */

.copy-hint {
    font-size: 12px;
    color: var(--muted);
    margin-left: 6px;
}

/* =========================
   📱 MOBILE FIX
========================= */

@media (max-width: 768px) {

    header {
        padding: 15px 20px;
    }

    .hero h1 {
        font-size: 36px;
    }

    section {
        padding: 50px 20px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .contacts-box {
        flex-direction: column;
    }

    .contact-item {
        justify-content: center;
    }

    .floating-bar {
        bottom: 10px;
        padding: 8px 12px;
        flex-wrap: wrap;
    }
}/* =========================
   📱 iOS DOCK
========================= */

.ios-dock {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    gap: 14px;

    padding: 10px 16px;
    border-radius: 24px;

    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(14px);

    border: 1px solid rgba(0,0,0,0.08);

    z-index: 999;
}

/* =========================
   DOCK ITEM
========================= */

.dock-item {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--card);
    border: 1px solid var(--border);

    position: relative;

    transition: 0.25s ease;

    animation: pulse 2.5s infinite;
}

/* hover эффект */
.dock-item:hover {
    transform: scale(1.15) translateY(-6px);
}

/* SVG */
.dock-icon {
    width: 22px;
    height: 22px;
    fill: var(--text);
}

/* tooltip */
.dock-item::after {
    content: attr(data-label);
    position: absolute;
    bottom: -26px;

    font-size: 12px;
    color: var(--muted);

    opacity: 0;
    transition: 0.2s;
}

.dock-item:hover::after {
    opacity: 1;
}

/* =========================
   🌊 PULSE ANIMATION
========================= */

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0,0,0,0.15);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0,0,0,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0,0,0,0);
    }
}

/* =========================
   DARK MODE FIX
========================= */

body.dark .ios-dock {
    background: rgba(20,20,20,0.6);
    border: 1px solid rgba(255,255,255,0.1);
}

body.dark .dock-item {
    animation: pulseDark 2.5s infinite;
}

@keyframes pulseDark {
    0% {
        box-shadow: 0 0 0 0 rgba(255,255,255,0.08);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255,255,255,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255,255,255,0);
    }
}


.dock-item {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: white;
    border: 1px solid #eee;

    text-decoration: none;
    font-size: 20px;

    transition: 0.2s;
}

.dock-item:hover {
    transform: scale(1.3);
}
/* =========================
   🌙 PREMIUM THEME BUTTON
========================= */

.theme-toggle {
    width: 46px;
    height: 26px;

    border-radius: 999px;
    border: 1px solid var(--border);

    background: var(--card);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 6px;

    cursor: pointer;
    transition: 0.3s ease;

    position: relative;
}

/* иконка */
.theme-toggle .icon {
    font-size: 12px;
    transition: 0.3s ease;
    opacity: 0.8;
}

/* ползунок */
.theme-toggle .dot {
    width: 18px;
    height: 18px;

    border-radius: 50%;

    background: var(--accent);

    position: absolute;
    left: 4px;

    transition: 0.35s cubic-bezier(.2,.8,.2,1);
}

/* DARK MODE STATE */
body.dark .theme-toggle .dot {
    left: 24px;
}

body.dark .theme-toggle .icon {
    opacity: 1;
}

/* hover */
.theme-toggle:hover {
    transform: scale(1.05);
}

/* click animation */
.theme-toggle:active {
    transform: scale(0.95);
}
/* =========================
   🌙 PREMIUM THEME BUTTON
========================= */

.theme-toggle {
    width: 46px;
    height: 26px;

    border-radius: 999px;
    border: 1px solid var(--border);

    background: var(--card);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 6px;

    cursor: pointer;
    transition: 0.3s ease;

    position: relative;
}

/* иконка */
.theme-toggle .icon {
    font-size: 12px;
    transition: 0.3s ease;
    opacity: 0.8;
}

/* ползунок */
.theme-toggle .dot {
    width: 18px;
    height: 18px;

    border-radius: 50%;

    background: var(--accent);

    position: absolute;
    left: 4px;

    transition: 0.35s cubic-bezier(.2,.8,.2,1);
}

/* DARK MODE STATE */
body.dark .theme-toggle .dot {
    left: 24px;
}

body.dark .theme-toggle .icon {
    opacity: 1;
}

/* hover */
.theme-toggle:hover {
    transform: scale(1.05);
}

/* click animation */
.theme-toggle:active {
    transform: scale(0.95);
}
/* =========================
   ⚫ DARK MODE ICONS = BLACK
========================= */

body.dark .dock-icon {
    fill: #000000;
}

/* чтобы кнопки не конфликтовали с чёрными иконками */
body.dark .dock-item {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.15);
}

/* hover эффект */
body.dark .dock-item:hover {
    background: rgba(255, 255, 255, 1);
}




/* кнопка */
.dock-btn {
    cursor: pointer;
}


/* backdrop */
.dock-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.0);
    backdrop-filter: blur(0px);
    transition: 0.3s ease;
    opacity: 0;
}



.dock-btn {
    cursor: pointer;
    color: var(--text);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
}

/* убираем “белое выделение” */
.dock-btn:active {
    background: transparent;
}




/* =========================
   📞 FLOATING PHONE BUTTON
========================= */

.fab-phone {
    position: fixed;
    bottom: 25px;
    left: 25px;

    width: 58px;
    height: 58px;

    border-radius: 50%;

    background: var(--accent);
    color: #fff;

    border: none;

    font-size: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    box-shadow: 0 10px 25px rgba(0,0,0,0.2);

    z-index: 1000;

    transition: 0.25s ease;
}




.ios-dock.hidden {
 opacity: 0;
transform: translateX(-50%) translateY(40px); pointer-events: none;
}
.ios-dock {
    opacity: 1;
    transition: 0.35s ease;
}
.callback-form{
    margin-top:20px;
    display:flex;
    flex-direction:column;
    gap:12px;
    width:100%;
    max-width:400px;
}

.callback-form input{
    padding:14px 16px;
    border:1px solid #ddd;
    border-radius:14px;
    font-size:16px;
}

.callback-form button{
    padding:14px;
    border:none;
    border-radius:14px;
    background:#111;
    color:white;
    cursor:pointer;
    font-size:16px;
    transition:.2s;
}

.callback-form button:hover{
    transform:translateY(-2px);
}
/* =========================
   DARK MODE
========================= */

body.dark .contact-note{
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: #cfcfcf;
}

body.dark .contact-card{
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
}

body.dark .callback-form input,
body.dark .callback-form textarea{
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
}

body.dark .back-link{
    color: #fff;
}
/* =========================
   MODAL FORM
========================= */

.form-toggle{
    display:none;
}

.modal{
    position:fixed;
    inset:0;

    opacity:0;
    visibility:hidden;

    transition:.3s ease;

    z-index:5000;
}

.modal-bg{
    position:absolute;
    inset:0;

    background:rgba(0,0,0,.35);
    backdrop-filter:blur(8px);

    cursor:pointer;
}

.modal-window{
    position:absolute;

    top:50%;
    left:50%;

    transform:translate(-50%,-50%) scale(.95);

    width:min(90%,600px);

    background:#fff;

    border-radius:28px;

    padding:30px;

    transition:.3s ease;
}

.modal-close{
    position:absolute;

    top:15px;
    right:18px;

    cursor:pointer;

    font-size:22px;
}

.form-toggle:checked ~ .modal{
    opacity:1;
    visibility:visible;
}

.form-toggle:checked ~ .modal .modal-window{
    transform:translate(-50%,-50%) scale(1);
}
body.dark .modal-window{
    background:#16181d;
    color:#fff;
}

body.dark .modal-close{
    color:#fff;
}

body.dark .modal-bg{
    background:rgba(0,0,0,.55);
}

body.dark .callback-form input,
body.dark .callback-form textarea{
    background:rgba(255,255,255,.05);
    color:#fff;
    border:1px solid rgba(255,255,255,.1);
}

.request-card{
    position: relative;
    overflow: hidden;
}

.request-card::before{
    content:"";
    position:absolute;
    inset:0;

    background:
    linear-gradient(
        135deg,
        rgba(108,123,255,.12),
        transparent 60%
    );

    pointer-events:none;
}

.request-btn{
    display:inline-block;

    margin-top:18px;
    padding:10px 18px;

    border-radius:12px;

    background:var(--accent);
    color:#fff;

    font-size:14px;
    font-weight:600;
}

