/* ===== ОБЩИЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
	scrollbar-width: thin;
	scrollbar-color: #466586 #0b1b31;
}

:root {
    --color-primary: #0a192f;
    --color-secondary: #1a2d4a;
    --color-accent: #4a90d9;
    --color-accent-hover: #5ca0e9;
    --color-text: #e6f1ff;
    --color-text-muted: #a8b2d1;
    --color-card-bg: #112240;
    --color-border: #233554;
    --color-white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --radius: 12px;
    --transition: all 0.5s;
    --max-width: 1200px;
    --font: 'Plus Jakarta Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background-color: var(--color-primary);
    color: var(--color-text);
    line-height: 1.8;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 40px 0px 40px 0px;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 24px;
	margin-top: -12px;
}

.section-title i {
    color: var(--color-accent);
    margin-right: 12px;
}

.section-subtitle {
    font-size: 18px;
    color: #e6f1ff;
    max-width: 640px;
}

#section-subtitle {
    max-width: 820px;
}

.text-center {
    text-align: center;
}

/* ===== КНОПКИ ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.5s;
    font-family: var(--font);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: transparent;
    color: var(--color-accent);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid var(--color-accent);
    cursor: pointer;
    transition: all 0.5s;
    font-family: var(--font);
}

.btn-outline:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
}

/* ===== ШАПКА (HEADER) ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 25, 47, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(35, 53, 84, 0.5);
    padding: 16px 0;
    transition: all 0.5s;
}

.header.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--color-white);
}

.logo i {
    color: var(--color-accent);
    font-size: 26px;
}

.logo span {
    color: var(--color-accent);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-nav a {
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 15px;
    transition: all 0.5s;
    position: relative;
}

.header-nav a:hover {
    color: var(--color-accent);
}

.header-nav a i {
    margin-right: 6px;
}

.header-nav .btn-primary {
    padding: 10px 24px;
    font-size: 14px;
}

/* ===== ГЛАВНЫЙ ЭКРАН (HERO) ===== */
.hero {
    padding: 150px 0px 80px 0px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(74, 144, 217, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-white);
    margin-bottom: 14px;
}

.hero-content h1 .highlight {
    color: var(--color-accent);
    position: relative;
}

.hero-content p {
    font-size: 18px;
    color: #e6f1ff;
    max-width: 540px;
    line-height: 1.7;
}

.hero-buttons {
    display: none;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-wrapper {
    position: relative;
    width: 340px;
    height: 340px;
}

.avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--color-accent);
    box-shadow: 0 0 60px rgba(74, 144, 217, 0.2);
}

.avatar-wrapper .ring {
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    border-radius: 50%;
    border: 2px solid rgba(74, 144, 217, 0.2);
}

.avatar-wrapper .ring:nth-child(2) {
    top: -24px;
    left: -24px;
    right: -24px;
    bottom: -24px;
    border-color: rgba(74, 144, 217, 0.1);
}

/* ===== ОБО МНЕ ===== */
.about {
    background-color: var(--color-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 0px;
}

.about-text {
    font-size: 17px;
    color: var(--color-text-muted);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.stat-card {
    background-color: var(--color-card-bg);
    padding: 30px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    text-align: center;
    transition: all 0.5s;
}

.stat-card .number {
    font-size: 40px;
    font-weight: 800;
    color: var(--color-accent);
    display: block;
    line-height: 1.2;
}

.stat-card .label {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-top: 6px;
}

/* ===== НАВЫКИ ===== */
.skills {
    background-color: var(--color-primary);
}

#skills {
    padding: 40px 0px 50px 0px;
}

#pricing {
    padding: 40px 0px 50px 0px;
}

#projects {
    padding: 40px 0px 48px 0px;
}

#pricing-grid {
    margin-top: 42px;
}

#workflow {
    padding: 40px 0px 48px 0px;
}

#workflow-steps {
    margin-top: 42px;
}

#faq {
	padding: 40px 0px 34px 0px;
}

#contacts {
	padding: 40px 0px 32px 0px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 42px;
}

.skill-card {
    background-color: var(--color-card-bg);
    padding: 30px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    transition: all 0.5s;
}

.skill-card i {
    font-size: 32px;
    color: var(--color-accent);
    margin-bottom: 16px;
    display: block;
}

.skill-card h3 {
    font-size: 18px;
    color: var(--color-white);
    margin-bottom: 8px;
}

.skill-card p {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* ===== ПРОЕКТЫ ===== */
.projects {
    background-color: var(--color-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.project-card {
    background-color: var(--color-card-bg);
    border-radius: var(--radius);
    padding: 20px 32px 36px 32px;
    border: 1px solid var(--color-border);
    transition: all 0.5s;
}

.project-card .project-icon {
    font-size: 36px;
    color: var(--color-accent);
    margin-bottom: 0px;
}

.project-card h3 {
    font-size: 22px;
    color: var(--color-white);
    margin-bottom: 6px;
}

.project-card .project-meta {
    font-size: 14px;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 10px;
}

.project-card .project-meta i {
    margin-right: 6px;
}

.project-card p {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.project-card .project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.project-card .project-tags span {
    background-color: rgba(74, 144, 217, 0.12);
    color: var(--color-accent);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ===== ЦЕНЫ ===== */
.pricing {
    background-color: var(--color-primary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 36px;
}

.pricing-card {
    background-color: var(--color-card-bg);
    padding: 32px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    text-align: center;
    transition: all 0.5s;
}

.pricing-card .pricing-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 4px;
}

.pricing-card .pricing-duration {
    font-size: 14px;
    color: var(--color-text-muted);
}

.pricing-card .pricing-price {
    font-size: 33px;
    font-weight: 800;
    color: var(--color-accent);
    margin: 16px 0;
}

.pricing-card .pricing-price small {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text-muted);
}

.pricing-card .pricing-note {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* ===== КАК МЫ РАБОТАЕМ ===== */
.workflow {
    background-color: var(--color-secondary);
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 36px;
    counter-reset: step;
}

.workflow-step {
    background-color: var(--color-card-bg);
    padding: 32px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    position: relative;
    transition: all 0.5s;
}

.workflow-step .step-number {
    counter-increment: step;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.workflow-step .step-number::before {
    content: "0" counter(step);
    font-size: 28px;
    font-weight: 800;
    color: rgba(74, 144, 217, 0.3);
    line-height: 1;
}

.workflow-step h4 {
    font-size: 18px;
    color: var(--color-white);
    margin-bottom: 6px;
}

.workflow-step p {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* ===== FAQ ===== */
.faq {
    background-color: var(--color-primary);
}

.faq-list {
    width: 100%;
    margin: 36px auto 0;
}

.faq-item {
    background-color: var(--color-card-bg);
    padding: 20px 32px 24px 32px;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    margin-bottom: 16px;
	transition: all 0.5s;
}

.faq-item .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-item .faq-question h4 {
    font-size: 18px;
    color: var(--color-white);
    font-weight: 600;
}

.faq-item .faq-question i {
    color: var(--color-accent);
    font-size: 18px;
    transition: all 0.5s;
}

.faq-item.active .faq-question i {
    rotate: 180deg;
}

.faq-item .faq-answer {
	max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease, margin-top 0.5s ease;
    opacity: 0;
    margin-top: 0;
    color: var(--color-text-muted);
    font-size: 16px;
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
    margin-top: 14px;
}

/* ===== КОНТАКТЫ ===== */
.contacts {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
}

.contacts-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: -4px;
    align-items: start;
}

.contacts-info h3 {
    font-size: 24px;
    color: var(--color-white);
    margin-bottom: 8px;
}

.contacts-info .sub {
    color: var(--color-text-muted);
    font-size: 16px;
    margin-bottom: 22px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding: 14px 20px 12px 20px;
    background-color: var(--color-card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    transition: all 0.5s;
}

.contact-item i {
    font-size: 20px;
    color: var(--color-accent);
    width: 24px;
    text-align: center;
}

.contact-item .info {
    display: flex;
    flex-direction: column;
}

.contact-item .info .label {
    font-size: 12px;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.contact-item .info .value {
    font-size: 16px;
    color: var(--color-white);
    font-weight: 500;
}

.contact-item .info .value a {
    transition: all 0.5s;
}

.contact-item .info .value a:hover {
    color: var(--color-accent);
}

.contacts-cta {
    background-color: var(--color-card-bg);
    padding: 32px 40px 48px 40px;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    text-align: center;
}

.contacts-cta h4 {
    font-size: 22px;
    color: var(--color-white);
    margin-bottom: 8px;
}

.contacts-cta p {
    color: var(--color-text-muted);
    font-size: 16px;
    margin-bottom: 26px;
	margin-top: 10px;
}

.contacts-cta .btn-primary {
    font-size: 18px;
    padding: 16px 40px;
}

/* ===== ПОДВАЛ (FOOTER) ===== */
.footer {
    background-color: var(--color-primary);
    border-top: 1px solid var(--color-border);
    padding: 40px 0;
}

.footer .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer .logo {
    font-size: 18px;
}

.footer-copy {
    font-size: 14px;
    color: var(--color-text-muted);
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    transition: all 0.5s;
    font-size: 16px;
}

.footer-social a:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* ===== СТРАНИЦА 404 ===== */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    padding: 40px 20px;
}

.error-container {
    text-align: center;
    max-width: 500px;
}

.error-icon {
    font-size: 64px;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.error-container h1 {
    font-size: 80px;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1;
    margin-bottom: 8px;
}

.error-container h2 {
    font-size: 28px;
    color: var(--color-white);
    margin-bottom: 12px;
}

.error-container p {
    color: var(--color-text-muted);
    font-size: 17px;
    margin-bottom: 32px;
}

/* ===== КАСТОМНАЯ ПОЛОСА ПРОКРУТКИ ===== */

/* Для Chrome, Safari, Edge */
::-webkit-scrollbar {
    width: 10px;          /* Ширина полосы */
    height: 10px;         /* Высота для горизонтальной */
}

::-webkit-scrollbar-track {
    background: var(--color-primary);  /* Цвет фона */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--color-accent);   /* Цвет бегунка */
    border-radius: 10px;
    border: 2px solid var(--color-primary); /* Отступ внутри */
    transition: all 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-hover); /* При наведении */
    border-color: var(--color-secondary);
}

/* Специфичность ссылки */
a.project-preview.project-preview {
    color: #a8b2d1;
    text-decoration: none;
    transition: color 0.5s;
}

a.project-preview.project-preview:hover {
    color: #4a90d9;
}

/* ===== СТРАНИЦА КАЛЬКУЛЯТОРА ===== */

.calculator-page {
    background-color: var(--color-primary);
    padding: 102px 0 30px 0;
    min-height: 100vh;
}

.calculator-page .section-title {
    margin-top: 0;
    margin-bottom: 8px;
	text-align: center;
	line-height: 1.2;
}

.calculator-page .section-title i {
    margin-right: 12px;
}

.calculator-page .section-subtitle {
    margin-top: 14px;
	margin-bottom: 42px;
	text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* ===== КАЛЬКУЛЯТОР ===== */

.calculator-wrapper {
    background-color: var(--color-card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    padding: 40px;
    max-width: 820px;
    margin: 0 auto 0px;
}

.calc-group {
    margin-bottom: 28px;
}

.calc-group:last-of-type {
    margin-bottom: 32px;
}

.calc-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 10px;
}

.calc-label i {
    color: var(--color-accent);
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.calc-select {
    width: 100%;
    padding: 14px 18px;
    background-color: var(--color-primary);
    color: var(--color-text);
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 16px;
    font-family: var(--font);
    outline: none;
    cursor: pointer;
    transition: all 0.5s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a90d9' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.calc-select option {
    background-color: var(--color-primary);
    color: var(--color-text);
}

.calc-hint {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: 6px;
    padding-left: 4px;
}

/* Toggle кнопки */
.calc-toggle {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.toggle-btn {
    padding: 12px 28px;
    background-color: var(--color-primary);
    color: var(--color-text-muted);
    border: 2px solid #4a90d9;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.5s;
}

.toggle-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-text);
}

.toggle-btn.active {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
}

/* Чекбоксы */
.calc-checkboxes {
    display: flex;
    flex-direction: column;
    padding-top: 4px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: var(--color-text);
    cursor: pointer;
    user-select: none;
    padding: 8px 0;
	gap: 10px;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-label .checkmark {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    background-color: var(--color-primary);
    border: 2px solid var(--color-border);
    border-radius: 6px;
    position: relative;
    transition: all 0.5s;
	display: inline-flex;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    top: 0px;
    left: 5px;
    width: 6px;
    height: 12px;
    border: solid var(--color-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label:hover .checkmark {
    border-color: var(--color-accent);
}

/* Кнопки действий */
.calc-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 8px;
	align-items: center;
	justify-content: center;
}

.calc-actions .btn-primary {
    padding: 14px 36px;
	font-size: 17px;
	width: 190px;
	height: 50px;
}

.calc-actions .btn-outline {
    padding: 14px 36px;
	font-size: 17px;
	width: 190px;
	height: 50px;
}

/* ===== РЕЗУЛЬТАТ ===== */

.calc-result {
    max-width: 820px;
    margin: 32px auto 2px;
}

.result-card {
    background-color: var(--color-card-bg);
    border-radius: var(--radius);
    border: 2px solid var(--color-accent);
    overflow: hidden;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-header {
    background-color: rgba(74, 144, 217, 0.1);
    padding: 18px 32px;
    border-bottom: 1px solid var(--color-border);
}

.result-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-white);
}

.result-header h2 i {
    color: var(--color-accent);
    margin-right: 10px;
}

.result-body {
    padding: 28px 32px 20px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(35, 53, 84, 0.4);
}

.result-row:last-child {
    border-bottom: none;
}

.result-label {
    font-size: 16px;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-label i {
    color: var(--color-accent);
    width: 20px;
    text-align: center;
}

.result-value {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-white);
    text-align: right;
}

.result-price-row .result-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--color-accent);
}

.result-extras .result-value {
    font-size: 15px;
    font-weight: 400;
    color: var(--color-text-muted);
    text-align: right;
	display: grid;
}

.result-footer {
    padding: 32px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: center;
}

.result-footer .btn-primary {
    font-size: 17px;
    padding: 14px 36px;
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-container {
    background-color: var(--color-card-bg);
    border-radius: var(--radius);
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--color-border);
    animation: fadeInUp 0.4s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid var(--color-border);
}

.modal-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-white);
    text-align: center;
    width: 100%;
}

.modal-header h2 i {
    color: var(--color-accent);
    margin-right: 10px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 28px;
    cursor: pointer;
    transition: all 0.5s;
    padding: 4px 8px;
    border-radius: 6px;
}

.modal-close:hover {
    color: var(--color-white);
    background-color: rgba(74, 144, 217, 0.1);
}

.modal-body {
    padding: 40px;
}

/* ===== ФОРМА В МОДАЛЬНОМ ОКНЕ ===== */

.form-group {
    margin-bottom: 20px;
}

#form-group {
    margin-bottom: 0px;
}

.form-group label {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-white);
}

.form-group .required {
    color: #e74c3c;
}

#required {
    margin-left: 2px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--color-primary);
    color: var(--color-text);
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 16px;
    font-family: var(--font);
    transition: all 0.5s;
    outline: none;
}

.form-group input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.2);
}

.form-group input::placeholder {
    color: var(--color-text-muted);
    opacity: 0.6;
}

.form-error {
    display: none;
    color: #e74c3c;
    font-size: 13px;
    margin-top: 4px;
	margin-bottom: 4px;
}

.form-hint {
    display: block;
    color: var(--color-text-muted);
    font-size: 12px;
    margin-top: 4px;
}

.checkbox-group .checkbox-label {
	padding: 4px 0;
	font-style: oblique;
	font-size: 13px;
	line-height: 1.1;
}

.form-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
	align-items: center;
	justify-content: center;
}

.form-actions .btn-primary {
    padding: 14px 32px;
    font-size: 16px;
}

.form-actions .btn-outline {
    padding: 12px 28px;
    font-size: 16px;
}

/* ===== ДОГОВОР ===== */

.contract-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 25, 47, 0.9);
    backdrop-filter: blur(8px);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
	overflow-y: auto;
}

.contract-container {
    background-color: var(--color-card-bg);
    border-radius: var(--radius);
    max-width: 820px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
    animation: fadeInUp 0.4s ease;
}

.contract-header {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 20px;
	border-bottom: 1px solid var(--color-border);
	flex-shrink: 0;
}

.contract-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-white);
}

.contract-header h2 i {
    color: var(--color-accent);
    margin-right: 10px;
}

.contract-close {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 28px;
    cursor: pointer;
    transition: all 0.5s;
    padding: 4px 8px;
    border-radius: 6px;
}

.contract-close:hover {
    color: var(--color-white);
    background-color: rgba(74, 144, 217, 0.1);
}

.contract-body {
    padding: 32px 40px;
    overflow-y: auto;
    flex: 1;
    color: var(--color-text);
    line-height: 1.8;
    font-size: 15px;
}

.contract-body .contract-document h1 {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 8px;
}

.contract-body .contract-place {
    text-align: center;
    font-size: 16px;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.contract-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-white);
    margin-top: 24px;
    margin-bottom: 10px;
}

.contract-body h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-white);
    margin-top: 18px;
    margin-bottom: 8px;
}

.contract-body p {
    margin-bottom: 12px;
    color: var(--color-text-muted);
}

.contract-body ul {
    list-style: none;
    padding-left: 4px;
    margin-bottom: 12px;
}

.contract-body ul li {
    padding: 4px 0;
    color: var(--color-text-muted);
    position: relative;
    padding-left: 20px;
	display: grid;
}

.contract-body ul li::before {
    content: '•';
    color: var(--color-accent);
    position: absolute;
    left: 0;
}

.contract-body .contract-signatures {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.contract-signatures .signatures-title {
    text-align: left;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 20px;
}

.contract-signatures .signatures-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.contract-signatures .signature-left,
.contract-signatures .signature-right {
    flex: 1;
    min-width: 200px;
}

.contract-signatures .signature-left p,
.contract-signatures .signature-right p {
    margin-bottom: 4px;
    color: var(--color-text-muted);
    font-size: 15px;
    white-space: nowrap;
}

.contract-signatures .signature-name {
    padding-left: 20px;
    font-style: italic;
    color: var(--color-text-muted);
    font-size: 14px;
    white-space: nowrap;
}

.contract-body .contract-signatures p {
    margin-bottom: 6px;
}

/* Стили для печати */
@media print {
    .contract-signatures .signature-left p,
    .contract-signatures .signature-right p {
        color: #000;
        font-size: 14px;
    }
    
    .contract-signatures .signature-name {
        color: #333;
        font-size: 13px;
    }
    
    .contract-signatures .signatures-title {
        color: #000;
    }
}

.contract-footer {
    padding: 20px;
    border-top: 1px solid var(--color-border);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    flex-shrink: 0;
	width: 100%;
}

.contract-footer .btn-primary {
    padding: 12px 32px;
	font-size: 16px;
	width: 190px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.contract-footer .btn-outline {
    padding: 12px 32px;
	font-size: 16px;
	width: 190px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ===== АКТИВНАЯ ССЫЛКА В ШАПКЕ ===== */
.header-nav a.active {
    color: var(--color-accent);
}

/* ===== НЕАКТИВНЫЕ ЭЛЕМЕНТЫ ===== */
.toggle-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    border-color: var(--color-border);
}

.toggle-btn.disabled:hover {
    border-color: var(--color-border);
    color: var(--color-text-muted);
}

.checkbox-label.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.checkbox-label.disabled:hover .checkmark {
    border-color: var(--color-border);
}

/* ===== УВЕДОМЛЕНИЕ (TOAST) ===== */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--color-card-bg);
    border: 1px solid var(--color-accent);
    border-radius: var(--radius);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    transform: translateX(calc(100% + 40px));
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-notification .toast-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(74, 144, 217, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--color-accent);
}

.toast-notification .toast-content {
    flex: 1;
}

.toast-notification .toast-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 2px;
}

.toast-notification .toast-content p {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0;
}

.toast-notification .toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.3s;
}

.toast-notification .toast-close:hover {
    color: var(--color-white);
    background: rgba(74, 144, 217, 0.1);
}

body.no-scroll {
    overflow: hidden !important;
}

/* ===== СТРАНИЦА ДОГОВОРА (AGREEMENT) ===== */

.agreement-page {
    background-color: var(--color-primary);
    padding: 100px 0 60px 0;
    min-height: 100vh;
}

.agreement-wrapper {
    max-width: 820px;
    margin: 0 auto;
}

.agreement-header {
    text-align: center;
    margin-bottom: 40px;
}

.agreement-header h1 {
    font-size: 30px;
    font-weight: 800;
    color: var(--color-white);
}

.agreement-header h1 i {
    color: var(--color-accent);
    margin-right: 14px;
}

.agreement-subtitle {
	font-size: 18px;
	color: var(--color-text-muted);
	margin-top: 6px;
	margin-bottom: 40px;
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}

.agreement-content {
    background-color: var(--color-card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    padding: 40px;
}

.agreement-content .contract-document h1 {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 8px;
}

.agreement-content .contract-place {
    text-align: center;
    font-size: 16px;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.agreement-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-white);
    margin-top: 24px;
    margin-bottom: 10px;
}

.agreement-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-white);
    margin-top: 18px;
    margin-bottom: 8px;
}

.agreement-content p {
    margin-bottom: 12px;
    color: var(--color-text-muted);
}

.agreement-content ul {
    list-style: none;
    padding-left: 4px;
    margin-bottom: 12px;
}

.agreement-content ul li {
    padding: 4px 0;
    color: var(--color-text-muted);
    position: relative;
    padding-left: 20px;
}

.agreement-content ul li::before {
    content: '•';
    color: var(--color-accent);
    position: absolute;
    left: 0;
}

.agreement-content .contract-signatures {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.agreement-content .signatures-title {
    text-align: left;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 20px;
}

.agreement-content .signatures-row {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.agreement-content .signature-left,
.agreement-content .signature-right {
    flex: 1;
    min-width: 200px;
}

.agreement-content .signature-left p,
.agreement-content .signature-right p {
    margin-bottom: 4px;
    color: var(--color-text-muted);
    font-size: 15px;
    white-space: nowrap;
}

.agreement-content .signature-name {
    padding-left: 20px;
    font-style: italic;
    color: var(--color-text-muted);
    font-size: 14px;
    white-space: nowrap;
}

/* ===== ССЫЛКА НА ДОГОВОР В ФОРМЕ ===== */
.agreement-link {
    color: var(--color-accent);
    text-decoration: none;
    transition: all 0.5s;
}

.agreement-agree {
	padding: 0px 4px
}

/* ===== ОПИСАНИЕ САЙТА ===== */
.calc-site-description {
    display: none;
    margin-top: 20px;
	margin-bottom: 34px;
    padding: 24px;
    background-color: rgba(74, 144, 217, 0.06);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    border-left: 4px solid var(--color-accent);
}

.calc-site-description h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 10px;
}

.calc-site-description p {
    font-size: 15px;
    color: var(--color-text-muted);
	margin-bottom: 10px;
}

.calc-site-description p:last-child {
    margin-bottom: 0;
}

.calc-site-description em {
    color: var(--color-text-muted);
    font-style: italic;
    font-size: 15px;
}

/* ===== СПИСОК ДОПОЛНИТЕЛЬНЫХ ФУНКЦИЙ ===== */
.extra-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(74, 144, 217, 0.08);
    padding: 4px 12px 4px 8px;
    border-radius: 20px;
    margin: 3px 4px 3px 0;
    font-size: 14px;
    color: var(--color-text);
    white-space: nowrap;
}

.extra-item i {
    color: var(--color-accent);
    font-size: 14px;
    flex-shrink: 0;
}

/* ===== АДАПТИВНОСТЬ ===== */

/* Планшеты и ноутбуки */
@media (max-width: 1024px) {
    .hero .container {
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .avatar-wrapper {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 900px) {
    section {
        padding: 60px 0;
    }

    .hero {
        padding: 140px 0 60px;
        min-height: auto;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p {
        margin: 0 auto 0px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .avatar-wrapper {
        width: 220px;
        height: 220px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contacts-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-title {
        font-size: 30px;
    }
}

/* Мобильные устройства */
@media (max-width: 600px) {
    body {
        font-size: 15px;
    }

	.extra-item {
        font-size: 13px;
        padding: 3px 10px 3px 6px;
        white-space: normal;
    }
    
    .extra-item i {
        font-size: 12px;
    }

    .calc-site-description {
        padding: 24px;
    }
    
    .calc-site-description h3 {
        font-size: 16px;
    }
    
    .calc-site-description p {
        font-size: 14px;
    }
	
	.calc-site-description em {
		font-size: 14px;
	}
	
	.calc-site-description {
		margin-bottom: 12px;
	}

    .calculator-page {
        padding: 112px 0 30px;
    }

    .calculator-wrapper {
        padding: 28px 20px;
    }

    .calc-label {
        font-size: 16px;
    }

    .calc-select {
        padding: 12px 16px;
        font-size: 15px;
    }

    .toggle-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .calc-actions {
        flex-direction: column;
    }

    .calc-actions .btn-primary,
    .calc-actions .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .result-body {
        padding: 20px;
    }

    .result-header {
        padding: 14px 20px;
    }

    .result-header h2 {
        font-size: 18px;
    }

    .result-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 10px 0;
    }

    .result-value {
        text-align: left;
        width: 100%;
    }

    .result-price-row .result-value {
        font-size: 22px;
    }

    .result-footer {
        padding: 20px;
        justify-content: center;
    }

    .result-footer .btn-primary {
        width: 100%;
        justify-content: center;
    }

    .modal-container {
        max-width: 100%;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-header h2 {
        font-size: 19px;
    }

    .modal-body {
        padding: 20px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn-primary,
    .form-actions .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .contract-container {
        max-width: 100%;
        margin: 10px;
    }

    .contract-header {
        padding: 16px 20px 12px;
    }

    .contract-header h2 {
        font-size: 19px;
    }

    .contract-body {
        padding: 20px 20px;
        font-size: 14px;
    }

    .contract-body .contract-document h1 {
        font-size: 20px;
    }

    .contract-footer {
        padding: 14px 20px 20px;
        flex-direction: column;
    }

    .contract-footer .btn-primary,
    .contract-footer .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .calc-checkboxes {
        gap: 8px;
    }

    .checkbox-label {
        font-size: 15px;
        padding: 6px 0;
    }

	#skills {
		padding: 32px 0px 50px 0px;
	}

	.project-card .project-tags {
		display: grid;
		gap: 8px;
		margin-top: 16px;
		align-items: center;
		text-align: center;
	}

    .container {
        padding: 0 16px;
    }

    section {
        padding: 30px 0px 48px 0px;
    }

    .header {
        padding: 12px 0;
    }

    .logo {
        font-size: 18px;
    }

    .logo i {
        font-size: 20px;
    }

    .header-nav .btn-primary {
        padding: 8px 18px;
        font-size: 13px;
    }

    .hero {
        padding: 144px 0 26px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .avatar-wrapper {
        width: 160px;
        height: 160px;
    }

    .section-title {
        font-size: 22px;
		margin-top: 2px;
		margin-bottom: 26px;
    }

	.contacts-info .sub {
		margin-bottom: 26px;
	}

    .section-subtitle {
        font-size: 16px;
    }

    .about-text {
        font-size: 16px;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 20px 16px;
    }

    .stat-card .number {
        font-size: 30px;
    }

    .skills-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .skill-card {
        padding: 20px 16px;
    }

    .skill-card i {
        font-size: 24px;
		margin-top: 2px;
    }

	#projects {
		padding: 32px 0px 48px 0px;
	}

	#pricing {
		padding: 32px 0px 50px 0px;
	}

	#workflow {
	  padding: 30px 0px 48px 0px;
	}

	.project-card .project-icon {
		margin-bottom: 2px;
	}

	.project-card {
		padding: 16px 32px 34px 32px;
	}

    .skill-card h3 {
        font-size: 15px;
    }

    .skill-card p {
        font-size: 13px;
    }

    .pricing-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .pricing-card {
        padding: 20px 16px 27px 16px;
    }

    .pricing-card .pricing-price {
        font-size: 26px;
    }

    .workflow-steps {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .workflow-step {
        padding: 28px 20px 27px 20px;
    }

	.faq-list {
		margin: 38px 0px 20px 0px;
	}

    .faq-item {
        padding: 20px;
    }

    .faq-item .faq-question h4 {
        font-size: 16px;
    }

    .contact-item {
        padding: 14px 16px;
    }

    .contacts-cta {
        padding: 35px 20px 48px 20px;
		margin-top: -8px;
    }

    .contacts-cta h4 {
        font-size: 20px;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
	
	.faq-item.active .faq-answer {
		margin-bottom: 4px;
	}
	
	.faq-item .faq-question {
	  margin-bottom: 4px;
	}
	
	.contacts-info h3 {
		margin-bottom: 12px;
	}
	
	#faq {
		padding: 32px 0px 30px 0px;
	}
	
	#contacts {
	  padding: 32px 0px 48px 0px;
	}
	
	.toast-notification {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
        padding: 16px;
    }
    
    .toast-notification .toast-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .toast-notification .toast-content h4 {
        font-size: 15px;
    }
    
    .toast-notification .toast-content p {
        font-size: 13px;
    }
	
	.agreement-content .contract-document h1 {
		font-size: 17px;
	}
	
	.agreement-subtitle {
		margin-top: 12px;
		margin-bottom: -14px;
	}
	
	.agreement-header h1 {
		font-size: 22px;
	}

	.agreement-header h1 i {
		color: var(--color-accent);
		margin-right: 14px;
	}
	
	.agreement-page {
		padding: 74px 0 34px;
	}
	
	.agreement-content {
		padding: 20px;
	}
	
	.form-error {
		margin-bottom: 4px;
		line-height: 1.1;
	}
	
	.toast-content {
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.toast-content h4 {
	  margin: 0;
	  line-height: 1;
	}
	
	.header .container {
        flex-direction: column;
        gap: 8px;
    }

    .header-nav {
        gap: 10px;
    }

    .header-nav a {
        font-size: 13px;
    }
}

@media (max-width: 400px) {
	
	.calculator-wrapper {
        padding: 20px;
    }

    .calc-group {
        margin-bottom: 20px;
    }

    .calc-label {
        font-size: 14px;
        gap: 6px;
    }

    .calc-label i {
        font-size: 16px;
        width: 20px;
    }

    .calc-select {
        padding: 10px 14px;
        font-size: 14px;
        background-size: 10px;
        background-position: right 12px center;
    }

    .toggle-btn {
        padding: 8px 16px;
        font-size: 13px;
        flex: 1;
        text-align: center;
        min-width: 60px;
    }

    .calc-actions .btn-primary {
        font-size: 15px;
        padding: 12px 24px;
    }

    .calc-actions .btn-outline {
        font-size: 14px;
        padding: 10px 20px;
    }

    .result-price-row .result-value {
        font-size: 20px;
    }

    .result-footer .btn-primary {
        font-size: 15px;
        padding: 12px 24px;
    }

    .modal-header h2 {
        font-size: 17px;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"] {
        padding: 10px 14px;
        font-size: 15px;
    }

    .contract-body .contract-document h1 {
        font-size: 18px;
    }

    .contract-body h3 {
        font-size: 16px;
    }

    .calculator-page .section-subtitle {
        font-size: 16px;
		margin-bottom: 26px;
		margin-top: 18px;
		line-height: 1.7;
    }

    .calc-toggle {
        flex-direction: column;
    }
	
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }
	
	.header .container {
		justify-content: space-between;
	}
	
	.hero-content h1 {
		font-size: 22px;
		margin-top: 6px;
		margin-bottom: 18px;
	}
}