/* Reset и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav__logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav__logo a:hover {
    color: #1d4ed8;
}

.nav__menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav__menu a {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav__menu a:hover {
    color: #2563eb;
}

.nav__menu a.active {
    color: #2563eb;
    font-weight: 600;
}

.nav__mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav__mobile-toggle span {
    width: 25px;
    height: 3px;
    background: #64748b;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero__title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero__subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.hero__content {
    max-width: 800px;
    margin: 0 auto;
}

.hero__content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: white;
}

.hero__content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: white;
}

.hero__content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: white;
}

.hero__content p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.hero__content ul {
    text-align: left;
    max-width: 500px;
    margin: 1rem auto;
    list-style: none;
}

.hero__content ul li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.hero__content ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.hero__content ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #fbbf24;
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1;
}

/* Main content */
.main {
    padding: 3rem 0;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #64748b;
}

.breadcrumbs a {
    color: #2563eb;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    margin: 0 0.5rem;
}

/* Section titles */
.section-title, .page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1e293b;
    text-align: center;
}

/* Calculator cards */
.calculators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.calculator-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calculator-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.calculator-card__content {
    padding: 1.5rem;
}

.calculator-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.calculator-card__title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.calculator-card__title a:hover {
    color: #2563eb;
}

.calculator-card__description {
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.calculator-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #94a3b8;
}

.calculator-card__category {
    background: #e0e7ff;
    color: #3730a3;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

/* Category cards */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.category-card__content {
    padding: 1.5rem;
}

.category-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.category-card__title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-card__title a:hover {
    color: #2563eb;
}

.category-card__description {
    color: #64748b;
    line-height: 1.5;
}

.category-card__meta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.category-card__count {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.category-count {
    font-size: 1rem;
    font-weight: 400;
    color: #64748b;
    margin-left: 0.5rem;
}

/* Calculator page */
.calculator-page {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.calculator-page__header {
    padding: 2rem;
    background: #f8fafc;
}

.calculator-page__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
}

.calculator-page__meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.calculator-page__description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 2rem;
    padding: 2rem;
    font-size: 1.125rem;
}

.calculator-page__description p {
    margin-bottom: 1rem;
}

.calculator-page__description p:last-child {
    margin-bottom: 0;
}

.calculator-page__content {
    padding: 2rem;
}

/* Forms */
.calculator-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-group input[type="number"],
.form-group input[type="text"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input[type="number"]:focus,
.form-group input[type="text"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

/* Results */
.result-box {
    background: #f0f9ff;
    border: 2px solid #0ea5e9;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.result-box h3 {
    color: #0c4a6e;
    margin-bottom: 1rem;
}

.result-box p {
    color: #0c4a6e;
    font-size: 1.125rem;
    font-weight: 500;
}

/* Page content */
.page-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-content__header {
    padding: 2rem;
    background: #f8fafc;
}

.page-content__title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
}

.page-content__body {
    padding: 2rem;
    line-height: 1.7;
}

.page-content__body h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: #1e293b;
}

.page-content__body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
    color: #1e293b;
}

.page-content__body p {
    margin-bottom: 1rem;
}

.page-content__body ul, .page-content__body ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

/* Category page */
.category-page__header {
    text-align: center;
    margin-bottom: 3rem;
}

.category-page__title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
}

.category-page__description {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #64748b;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer__section h3,
.footer__section h4 {
    margin-bottom: 1rem;
    color: #f1f5f9;
}

.footer__section p {
    color: #94a3b8;
    line-height: 1.6;
}

.footer__section ul {
    list-style: none;
}

.footer__section ul li {
    margin-bottom: 0.5rem;
}

.footer__section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__section ul li a:hover {
    color: #f1f5f9;
}

.footer__bottom {
    border-top: 1px solid #334155;
    padding-top: 1rem;
    text-align: center;
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 768px) {
    .nav__menu {
        display: none;
    }
    
    .nav__mobile-toggle {
        display: flex;
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .hero__subtitle {
        font-size: 1rem;
    }
    
    .section-title, .page-title {
        font-size: 2rem;
    }
    
    .calculators-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .calculator-page__header,
    .calculator-page__content {
        padding: 1.5rem;
    }
    
    .page-content__header,
    .page-content__body {
        padding: 1.5rem;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero__title {
        font-size: 1.75rem;
    }
    
    .main {
        padding: 2rem 0;
    }
    
    .calculator-card__content,
    .category-card__content {
        padding: 1rem;
    }
} 