

/* Start:/local/templates/rnstyle/styles.css?177134638915548*/
/* style.css */
:root {
    --bg: #f9fafc;
    --surface: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --border: #e2e8f0;
    --shadow: 0 20px 30px -10px rgba(0,0,0,0.05);
    --radius: 16px;
    --transition: 0.2s ease;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* вся высота окна браузера */
}

main {
  flex: 1; /* занимает всё доступное пространство */
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* header */
.header {
    background: var(--surface);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.8);
}
.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.logo {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -0.02em;
}
.nav__list {
    display: flex;
    gap: 2rem;
    list-style: none;
}
.nav__link {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color var(--transition);
    position: relative;
}
.nav__link:hover,
.nav__link.active {
    color: var(--accent);
}
.nav__link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}
.nav__toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
}
/* footer */
.footer {
    background: var(--surface);
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}
.footer__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.socials a {
    color: var(--text-light);
    font-size: 1.3rem;
    margin-left: 1rem;
    transition: color var(--transition);
}
.socials a:hover {
    color: var(--accent);
}
/* кнопки */
.btn {
    display: inline-block;
    padding: 0.75rem 1.8rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: background var(--transition), color var(--transition);
    border: 2px solid transparent;
}
.btn--primary {
    background: var(--accent);
    color: white;
}
.btn--primary:hover {
    background: var(--accent-hover);
}
.btn--outline {
    border-color: var(--accent);
    color: var(--accent);
}
.btn--outline:hover {
    background: var(--accent);
    color: white;
}
/* секции */
section {
    padding: 4rem 0;
}
.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}
.page-header {
    padding: 2rem 0 0;
}
.page-title {
    font-size: 2.5rem;
    font-weight: 700;
}
/* главная hero */
.hero {
    min-height: 600px;
    display: flex;
    align-items: center;
}
.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.hero__title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.hero__title .accent {
    color: var(--accent);
}
.hero__subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}
.hero__actions {
    display: flex;
    gap: 1rem;
}
.hero__avatar {
    width: 100%;
    aspect-ratio: 1/1;
    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    box-shadow: var(--shadow);
}
/* услуги */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.service-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform var(--transition);
}
.service-card:hover {
    transform: translateY(-5px);
}
.service-card__icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}
.service-card h3 {
    margin-bottom: 0.5rem;
}
/* быстрые контакты */
.quick-contact__links {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}
.contact-link {
    background: var(--surface);
    padding: 0.5rem 2rem;
    border-radius: 40px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    box-shadow: var(--shadow);
    transition: background var(--transition);
}
.contact-link i {
    margin-right: 0.5rem;
    color: var(--accent);
}
.contact-link:hover {
    background: var(--border);
}
/* резюме (таймлайн) */
.timeline-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}
.timeline__period {
    font-weight: 600;
    color: var(--accent);
}
.timeline__content {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.timeline__place {
    color: var(--text-light);
    margin: 0.5rem 0;
}
/* навыки */
.skills__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}
.skill-category {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.skill-category h3 {
    margin-bottom: 1rem;
    color: var(--accent);
}
.skill-list {
    list-style: none;
}
.skill-list li {
    padding: 0.4rem 0;
    border-bottom: 1px dashed var(--border);
}
/* образование */
.education-item {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}
/* портфолио */
.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.project-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition);
}
.project-card:hover {
    transform: scale(1.02);
}
.project-card__image {
    height: 200px;
    background-size: cover;
    background-position: center;
}
.project-card__content {
    padding: 1.5rem;
}
.project-card__tech {
    color: var(--text-light);
    margin: 0.5rem 0;
}
.project-card__link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}
/* контакты */
.contacts__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
.contacts__list {
    list-style: none;
    margin-top: 1.5rem;
}
.contacts__list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.contacts__list i {
    width: 2rem;
    color: var(--accent);
}
/* форма */
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}
/* адаптив */
@media (max-width: 768px) {
    .nav__toggle {
        display: block;
    }
    .nav__list {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--surface);
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        gap: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    }
    .nav__list.show {
        display: flex;
    }
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero__actions {
        justify-content: center;
    }
    .hero__avatar {
        max-width: 300px;
        margin: 0 auto;
    }
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .timeline__period {
        background: var(--surface);
        padding: 0.5rem 1rem;
        border-radius: 20px;
        display: inline-block;
        margin-bottom: 0.5rem;
    }
    .contacts__container {
        grid-template-columns: 1fr;
    }
}
/* style.css (существующие стили остаются, добавляем ниже) */

/* ===== ДОБАВЛЕНО: переменные для тёмной темы ===== */
:root {
    --bg: #f9fafc;
    --surface: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --border: #e2e8f0;
    --shadow: 0 20px 30px -10px rgba(0,0,0,0.05);
    --radius: 16px;
    --transition: 0.2s ease;
}
[data-theme="dark"] {
    --bg: #0f172a;
    --surface: #1e293b;
    --text: #e2e8f0;
    --text-light: #94a3b8;
    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --border: #334155;
    --shadow: 0 20px 30px -10px rgba(0,0,0,0.5);
}

/* ===== ДОБАВЛЕНО: переключатель темы ===== */
.theme-toggle {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--text);
    cursor: pointer;
    margin-left: 1rem;
    transition: color var(--transition);
}
.theme-toggle:hover {
    color: var(--accent);
}

/* ===== ДОБАВЛЕНО: параллакс-эффект для hero ===== */
.parallax {
    position: relative;
    overflow: hidden;
}
.parallax::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* чуть больше, чтобы было место для движения */
    background: radial-gradient(circle at 20% 30%, rgba(37,99,235,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(37,99,235,0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    transform: translateY(0);
    will-change: transform;
}
.hero__container {
    position: relative;
    z-index: 1;
}

/* ===== ДОБАВЛЕНО: стили для счётчиков ===== */
.stats {
    background: var(--surface);
    padding: 3rem 0;
    margin: 2rem 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.stats__container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: center;
}
.stat-item {
    flex: 1 1 150px;
}
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
    line-height: 1.2;
}
.stat-label {
    font-size: 1rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== ДОБАВЛЕНО: 3D-эффект для карточек портфолио ===== */
.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}
.project-card:hover {
    transform: rotateY(2deg) rotateX(2deg) scale(1.02);
    box-shadow: 0 30px 40px -20px rgba(0,0,0,0.3);
}

/* ===== ДОБАВЛЕНО: адаптация для тёмной темы ===== */
[data-theme="dark"] .hero__avatar {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}
[data-theme="dark"] .contact-link,
[data-theme="dark"] .service-card,
[data-theme="dark"] .timeline__content,
[data-theme="dark"] .skill-category,
[data-theme="dark"] .education-item,
[data-theme="dark"] .project-card {
    background: var(--surface);
    border: 1px solid var(--border);
}

/* ===== Детальная страница портфолио ===== */

/* подзаголовок проекта */
.project-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* галерея */
.project-gallery {
    margin: 2rem 0;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.gallery-item.main {
    grid-column: span 2;
}
.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}
.gallery-item img:hover {
    transform: scale(1.02);
    cursor: pointer;
}

/* детали проекта */
.details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}
.details-description h2,
.details-description h3 {
    margin: 1.5rem 0 0.5rem;
}
.details-description ul {
    margin-left: 1.5rem;
    color: var(--text-light);
}
.info-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}
.info-card h3 {
    margin-bottom: 1rem;
    color: var(--accent);
}
.tech-list {
    list-style: none;
    padding: 0;
}
.tech-list li {
    padding: 0.4rem 0;
    border-bottom: 1px dashed var(--border);
}
.info-card a {
    color: var(--accent);
    text-decoration: none;
}
.info-card a:hover {
    text-decoration: underline;
}

/* навигация между проектами */
.project-navigation {
    margin: 3rem 0;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}
.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.2s;
}
.nav-link i {
    font-size: 1.2rem;
    color: var(--accent);
}
.nav-link:hover {
    color: var(--accent);
}
.nav-link.all {
    background: var(--surface);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    box-shadow: var(--shadow);
}
.nav-link.all i {
    margin-right: 0.3rem;
}

/* адаптация для мобильных */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-item.main {
        grid-column: span 1;
    }
    .details-grid {
        grid-template-columns: 1fr;
    }
    .nav-links {
        flex-direction: column;
        align-items: stretch;
    }
    .nav-link {
        justify-content: center;
    }
}

/* Lightbox */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s;
}
.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
}
.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 1rem;
}
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}
.lightbox-close:hover {
    color: var(--accent);
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* End */
/* /local/templates/rnstyle/styles.css?177134638915548 */
