* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --accent: #ec4899;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --gradient-main: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 20px rgba(102, 126, 234, 0.3);
    --shadow-lg: 0 12px 35px rgba(102, 126, 234, 0.4);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
    overflow-x: hidden;
}

header {
    background: var(--gradient-main);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(10px);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: all 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    transform: translateY(-2px);
}

#hero {
    background: var(--gradient-main);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.5rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s backwards;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.section {
    padding: 4rem 2rem;
}

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

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark);
    animation: fadeInUp 0.6s ease;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 3rem;
}

.definition-box {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    animation: fadeInUp 0.6s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.definition-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
}

.definition-box h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    position: relative;
}

.definition-box p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--gray);
    line-height: 1.8;
    position: relative;
}

.button-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.main-btn {
    background: var(--gradient-main);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.main-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.main-btn:hover::before {
    width: 400px;
    height: 400px;
}

.main-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.main-btn:active {
    transform: translateY(-1px);
}

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

.method-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 0.6s ease;
}

.method-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.2);
}

.method-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.method-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.scientists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.scientist-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s;
    animation: fadeInUp 0.6s ease;
    position: relative;
    overflow: hidden;
}

.scientist-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.scientist-card:hover::before {
    transform: scaleX(1);
}

.scientist-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.2);
}

.scientist-photo-img {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border: 3px solid transparent;
    transition: all 0.3s;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, var(--primary), var(--accent)) border-box;
}

.scientist-card:hover .scientist-photo-img {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.scientist-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--dark);
    font-weight: 600;
}

.info-btn {
    background: var(--gradient-main);
    color: white;
    border: none;
    padding: 0.7rem 1.8rem;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.info-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.info-btn:hover::before {
    width: 200px;
    height: 200px;
}

.info-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.info-btn:active {
    transform: scale(0.98);
}

.diagram-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.method-row {
    display: grid;
    grid-template-columns: 280px 60px 1fr;
    align-items: center;
    gap: 0;
}

.method-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.8rem 1.5rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    border: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.method-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transition: transform 0.5s;
}

.method-box:hover::before {
    transform: translate(-25%, -25%);
}

.method-box:hover {
    transform: translateX(-5px) scale(1.02);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.method-box .method-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.method-box h3 {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.method-box .hint {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    position: relative;
    z-index: 1;
}

/* Линия-коннектор */
.branch-line {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.branch-line::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #ec4899);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Блок подвидов */
.subtypes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 20px;
    position: relative;
}

.subtypes::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20px;
    bottom: 20px;
    width: 3px;
    background: linear-gradient(180deg, #ec4899, #f472b6);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.3);
}

.subtype-box {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.2rem 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    font-size: 1rem;
    color: var(--dark);
    line-height: 1.4;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.subtype-box::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 3px;
    background: linear-gradient(90deg, #ec4899, #f472b6);
}

.subtype-box::after {
    content: '→';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 1.2rem;
    opacity: 0;
    transition: all 0.3s;
}

.subtype-box:hover {
    border-color: var(--accent);
    background: linear-gradient(135deg, #fff 0%, #fdf2f8 100%);
    transform: translateX(8px);
    color: var(--primary);
    box-shadow: 0 8px 20px rgba(236,72,153,0.2);
}

.subtype-box:hover::after {
    opacity: 1;
    right: 0.8rem;
}

.subtype-nested {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 25px;
    position: relative;
    margin-left: 10px;
    margin-top: 5px;
}

.subtype-nested::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15px;
    bottom: 15px;
    width: 3px;
    background: linear-gradient(180deg, #f472b6, #fbbf24);
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(244, 114, 182, 0.3);
}

.subtype-nested .subtype-box {
    background: linear-gradient(135deg, #fdf4ff 0%, #fef3c7 100%);
    border-color: #f0abfc;
    font-size: 0.95rem;
    padding: 0.9rem 1.1rem;
}

.subtype-nested .subtype-box::before {
    background: linear-gradient(90deg, #f472b6, #fbbf24);
}

.subtype-nested .subtype-box:hover {
    border-color: #e879f9;
    background: linear-gradient(135deg, #fff 0%, #fef9c3 100%);
    box-shadow: 0 8px 20px rgba(232,121,249,0.25);
}

.domestication-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.domestication-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s;
}

.domestication-card:hover {
    transform: translateY(-5px);
}

.domestication-image {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.domestication-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.domestication-card p {
    color: var(--gray);
    line-height: 1.8;
}

.subsection-title {
    font-size: 1.6rem;
    color: var(--dark);
    margin: 2rem 0 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid var(--primary);
}

.dog-evolution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.dog-evolution-grid .dog-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s;
    cursor: pointer;
}

.dog-card:hover {
    transform: translateY(-5px);
}

.dog-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

.dog-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.dog-card p {
    color: var(--gray);
    line-height: 1.8;
    text-align: left;
}

/* Доместикация - новые стили */
.domestication-definition {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease;
}

.domestication-definition h3 {
    font-size: 2.5rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
}

.domestication-definition p {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Таймлайн */
.timeline {
    position: relative;
    padding: 2rem 0;
    margin: 2rem 0 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-year {
    text-align: right;
    padding-right: 2rem;
}

.timeline-item:nth-child(even) .timeline-year {
    order: 2;
    text-align: left;
    padding-left: 2rem;
}

.timeline-item:nth-child(even) .timeline-content {
    order: 1;
    text-align: right;
}

.timeline-year {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    position: relative;
}

.timeline-year::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--primary);
}

.timeline-item:nth-child(odd) .timeline-year::after {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-year::after {
    left: -10px;
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    animation: fadeInUp 0.6s ease;
}

.timeline-content h4 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--gray);
    line-height: 1.6;
}

/* Синдром доместикации */
.syndrome-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.syndrome-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    animation: fadeInUp 0.6s ease;
}

.syndrome-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
}

.syndrome-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.syndrome-card h4 {
    font-size: 1.3rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 700;
}

.syndrome-card ul {
    list-style: none;
    padding: 0;
}

.syndrome-card li {
    color: var(--gray);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.syndrome-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Эксперимент Беляева */
.belyaev-experiment {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem;
    border-radius: 20px;
    margin: 3rem 0;
    color: white;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    animation: fadeInUp 0.6s ease;
}

.belyaev-experiment h3 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: white;
}

.experiment-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.experiment-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.experiment-text strong {
    color: #ffd700;
    font-size: 1.1rem;
}

.experiment-text ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.experiment-text li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Галерея лис */
.fox-gallery {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.fox-gallery-title {
    font-size: 1.8rem;
    color: #ffd700;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.fox-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.fox-image-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    animation: fadeInUp 0.6s ease;
}

.fox-image-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
}

.fox-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.fox-image-card:hover .fox-img {
    transform: scale(1.05);
}

.fox-caption {
    padding: 1.5rem;
    text-align: center;
    color: var(--dark);
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 500;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

/* Центры Вавилова */
.vavilov-centers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0 3rem;
}

.center-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    animation: fadeInUp 0.6s ease;
    border-left: 4px solid var(--accent);
}

.center-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.2);
}

.center-card h4 {
    font-size: 1.3rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.center-card p {
    color: var(--gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Одичание */
.rewilding-section {
    margin: 3rem 0;
}

.rewilding-section > p {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    color: var(--gray);
    line-height: 1.8;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

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

.rewilding-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    animation: fadeInUp 0.6s ease;
}

.rewilding-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.rewilding-card h4 {
    font-size: 1.4rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-weight: 700;
}

.rewilding-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* Кнопки "Узнать больше" */
.learn-more-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
}

.learn-more-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.learn-more-btn:hover::before {
    width: 300px;
    height: 300px;
}

.learn-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.learn-more-btn:active {
    transform: translateY(-1px);
}

.button-center {
    text-align: center;
    margin: 2rem 0;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.fact-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease;
    transition: transform 0.3s;
}

.fact-card:hover {
    transform: translateY(-5px);
}

.fact-number {
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 5rem;
    font-weight: bold;
    color: rgba(99, 102, 241, 0.1);
}

.fact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.fact-card p {
    color: var(--gray);
}

footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 2rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 3% auto;
    padding: 3rem 3rem 3rem 3rem;
    padding-right: 2.5rem;
    border-radius: 25px;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.4s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-content::-webkit-scrollbar {
    width: 12px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
    margin: 10px 0;
}

.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    border: 3px solid white;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
}

.close {
    position: absolute;
    right: 2rem;
    top: 1.5rem;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
}

.close:hover {
    color: white;
    background: linear-gradient(135deg, var(--accent), #f43f5e);
    transform: rotate(90deg);
}

#modal-body h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#modal-body p {
    margin-bottom: 1rem;
    color: var(--gray);
    line-height: 1.9;
    font-size: 1.05rem;
}

#modal-body strong {
    color: var(--primary);
    font-weight: 600;
}

#modal-body ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

#modal-body li {
    margin-bottom: 0.7rem;
    color: var(--gray);
    line-height: 1.7;
}

#modal-body li::marker {
    color: var(--accent);
}

.dog-modal-content {
    text-align: center;
}

.dog-modal-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 15px;
    margin: 1.5rem 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.dog-modal-text {
    text-align: left;
    line-height: 1.8;
    color: var(--gray);
}

.dog-modal-text strong {
    color: var(--primary);
    display: block;
    margin-top: 1rem;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    /* Навигация */
    nav {
        padding: 0 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    nav h1 {
        font-size: 1.5rem;
    }

    .nav-links {
        gap: 0.8rem;
        font-size: 0.85rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Герой */
    #hero {
        padding: 3rem 1rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* Секции */
    .section {
        padding: 2rem 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Определение */
    .definition-box {
        padding: 2rem 1.5rem;
    }

    .definition-box h2 {
        font-size: 1.8rem;
    }

    .definition-box p {
        font-size: 1rem;
    }

    /* Кнопки */
    .main-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
    }

    .learn-more-btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
        width: 100%;
    }
    
    /* Сетки */
    .methods-grid,
    .scientists-grid,
    .facts-grid,
    .domestication-grid,
    .dog-evolution-grid,
    .syndrome-grid,
    .vavilov-centers,
    .rewilding-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Карточки учёных */
    .scientist-card {
        padding: 1.5rem 1rem;
    }

    .scientist-photo-img {
        width: 80px;
        height: 80px;
    }

    .scientist-card h3 {
        font-size: 1rem;
    }

    .info-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Диаграмма методов */
    .diagram-container {
        padding: 1rem;
    }

    .method-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .method-box {
        margin-bottom: 0.5rem;
        padding: 1.5rem 1rem;
    }

    .method-box h3 {
        font-size: 1.1rem;
    }

    .method-box .method-icon {
        font-size: 2rem;
    }

    .branch-line {
        width: 3px;
        height: 30px;
        margin: 0 auto;
        min-height: 30px;
    }

    .branch-line::before {
        width: 3px;
        height: 100%;
        left: 50%;
        transform: translateX(-50%);
    }

    .subtypes {
        padding-left: 10px;
    }

    .subtypes::before {
        display: none;
    }

    .subtype-box {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .subtype-box::before {
        display: none;
    }

    .subtype-nested {
        padding-left: 15px;
        margin-left: 5px;
    }

    .subtype-nested .subtype-box {
        font-size: 0.85rem;
        padding: 0.7rem 0.9rem;
    }
    
    .button-group {
        flex-direction: column;
        gap: 1rem;
    }

    /* Доместикация */
    .domestication-definition {
        padding: 1.5rem;
    }

    .domestication-definition h3 {
        font-size: 1.8rem;
    }

    .domestication-definition p {
        font-size: 1rem;
    }

    /* Таймлайн на мобильных */
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        padding-left: 50px;
    }

    .timeline-item:nth-child(odd) .timeline-year,
    .timeline-item:nth-child(even) .timeline-year {
        order: -1;
        text-align: left;
        padding: 0;
        margin-bottom: 0.5rem;
        font-size: 1rem;
    }

    .timeline-item:nth-child(even) .timeline-content {
        order: 2;
        text-align: left;
    }

    .timeline-year::after {
        left: -42px !important;
        right: auto !important;
    }

    .timeline-content {
        padding: 1rem;
    }

    .timeline-content h4 {
        font-size: 1.1rem;
    }

    .timeline-content p {
        font-size: 0.9rem;
    }

    /* Синдром доместикации */
    .syndrome-card {
        padding: 1.5rem;
    }

    .syndrome-icon {
        font-size: 2.5rem;
    }

    .syndrome-card h4 {
        font-size: 1.2rem;
    }

    .syndrome-card li {
        font-size: 0.9rem;
        padding: 0.4rem 0;
    }

    /* Эксперимент Беляева */
    .belyaev-experiment {
        padding: 1.5rem 1rem;
    }

    .belyaev-experiment h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .experiment-content {
        padding: 1.5rem;
    }

    .experiment-text p {
        font-size: 0.95rem;
    }

    .experiment-text strong {
        font-size: 1rem;
    }

    /* Галерея лис */
    .fox-gallery {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .fox-gallery-title {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    .fox-images {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .fox-img {
        height: 250px;
    }

    .fox-caption {
        padding: 1rem;
        font-size: 0.9rem;
    }

    /* Карточки собак */
    .dog-card {
        padding: 1.5rem;
    }

    .dog-card img {
        height: 200px;
    }

    .dog-card h3 {
        font-size: 1.5rem;
    }

    .dog-card p {
        font-size: 0.95rem;
    }

    /* Одичание */
    .rewilding-section > p {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .rewilding-card {
        padding: 1.5rem;
    }

    .rewilding-card h4 {
        font-size: 1.2rem;
    }

    .rewilding-card p {
        font-size: 0.9rem;
    }

    /* Модальное окно */
    .modal-content {
        margin: 5% 1rem;
        padding: 2rem 1.5rem;
        max-height: 90vh;
    }

    .close {
        right: 1rem;
        top: 1rem;
        font-size: 2rem;
        width: 35px;
        height: 35px;
    }

    #modal-body h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
        padding-right: 2rem;
    }

    #modal-body p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    #modal-body ul {
        padding-left: 1.2rem;
    }

    #modal-body li {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .dog-modal-image {
        max-width: 100%;
        margin: 1rem 0;
    }

    .dog-modal-text {
        font-size: 0.95rem;
    }

    /* Подзаголовки секций */
    .subsection-title {
        font-size: 1.3rem;
        margin: 1.5rem 0 1rem;
        padding-left: 0.8rem;
    }

    /* Футер */
    footer {
        padding: 1.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Дополнительная адаптивность для очень маленьких экранов */
@media (max-width: 480px) {
    nav h1 {
        font-size: 1.3rem;
    }

    .nav-links {
        font-size: 0.75rem;
        gap: 0.5rem;
    }

    .hero-content h2 {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .definition-box h2 {
        font-size: 1.5rem;
    }

    .scientist-photo-img {
        width: 70px;
        height: 70px;
    }

    .method-box h3 {
        font-size: 1rem;
    }

    .belyaev-experiment h3 {
        font-size: 1.3rem;
    }

    .fox-gallery-title {
        font-size: 1.2rem;
    }

    .fox-img {
        height: 200px;
    }

    #modal-body h2 {
        font-size: 1.4rem;
    }
}
