* { box-sizing: border-box; margin: 0; padding: 0; }

body {
font-family: 'Segoe UI', Tahoma, sans-serif;
background: #f5f6fa;
color: #1a1a2e;
line-height: 1.6;
}

/* === HEADER === */
.site-header {
background: linear-gradient(135deg, #1f3b73 0%, #14264d 100%);
border-bottom: 3px solid #d4af37;
position: sticky; top: 0; z-index: 100;
box-shadow: 0 4px 18px rgba(0,0,0,0.15);
}
.header-inner {
max-width: 1280px; margin: 0 auto;
display: flex; justify-content: space-between; align-items: center;
padding: 14px 30px;
}
.logo-link {
display: flex; align-items: center; gap: 12px;
text-decoration: none; color: #fff;
}
.logo-title { display: block; font-size: 20px; font-weight: 700; letter-spacing: 0.5px; }
.logo-sub { display: block; font-size: 12px; color: #d4af37; letter-spacing: 2px; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
color: #e6ebf5; text-decoration: none; font-weight: 500;
transition: color .2s;
}
.main-nav a:hover { color: #d4af37; }
.profile-btn {
width: 44px; height: 44px;
display: flex; align-items: center; justify-content: center;
background: rgba(255,255,255,0.1);
border: 1px solid #d4af37;
border-radius: 50%; color: #fff;
transition: background .2s;
}
.profile-btn:hover { background: #d4af37; color: #14264d; }

/* === HERO === */
.hero {
background: linear-gradient(120deg, #14264d 0%, #1f3b73 60%, #34548f 100%);
color: #fff;
display: grid; grid-template-columns: 1.2fr 1fr;
gap: 40px;
padding: 80px 60px;
align-items: center;
border-bottom: 4px solid #d4af37;
}
.hero h1 { font-size: 22px; letter-spacing: 3px; text-transform: uppercase; color: #d4af37; margin-bottom: 10px; }
.hero h2 { font-size: 46px; line-height: 1.15; margin-bottom: 20px; }
.hero p { font-size: 18px; max-width: 560px; margin-bottom: 30px; color: #dbe3f0; }

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
display: inline-block; padding: 14px 28px;
border-radius: 8px; font-weight: 600;
text-decoration: none; cursor: pointer;
border: none; font-size: 16px;
transition: transform .15s, box-shadow .2s, background .2s;
}
.btn-primary {
background: linear-gradient(135deg, #d4af37, #b8860b);
color: #14264d;
box-shadow: 0 6px 20px rgba(212,175,55,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(212,175,55,0.6); }
.btn-outline {
background: transparent; color: #fff;
border: 2px solid #d4af37;
}
.btn-outline:hover { background: #d4af37; color: #14264d; }
.btn.full { width: 100%; margin-top: 10px; }

.hero-portrait { display: flex; justify-content: center; }
.portrait-frame {
width: 320px; height: 380px;
border: 6px solid #d4af37;
border-radius: 12px;
background: linear-gradient(160deg, #2a4a8a, #1a2f5e);
display: flex; align-items: center; justify-content: center;
box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.portrait-placeholder { font-size: 120px; opacity: .7; }

/* === ABOUT === */
.about { max-width: 1200px; margin: 70px auto; padding: 0 30px; }
.section-title {
text-align: center; font-size: 34px; color: #14264d;
margin-bottom: 40px; position: relative;
}
.section-title::after {
content: ""; display: block;
width: 80px; height: 3px; background: #d4af37;
margin: 12px auto 0;
}
.about-grid {
display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 24px;
}
.about-card {
background: #fff; padding: 30px;
border-radius: 14px;
border-top: 4px solid #d4af37;
box-shadow: 0 8px 25px rgba(20,38,77,0.08);
transition: transform .2s, box-shadow .2s;
}
.about-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(20,38,77,0.15); }
.about-card h3 { color: #1f3b73; margin-bottom: 12px; font-size: 20px; }
.about-card p { color: #444; font-size: 15px; }

/* === FORMS === */
.page-form {
max-width: 480px; margin: 60px auto; padding: 40px;
background: #fff; border-radius: 16px;
box-shadow: 0 12px 40px rgba(20,38,77,0.1);
}
.page-form.wide { max-width: 700px; }
.page-form h1 {
text-align: center; color: #1f3b73; margin-bottom: 24px;
}
.page-form label { display: block; margin: 14px 0 6px; font-weight: 600; color: #333; }
.page-form input,
.page-form select,
.page-form textarea {
width: 100%; padding: 12px 14px;
border: 2px solid #e0e4ee; border-radius: 8px;
font-size: 15px; font-family: inherit;
transition: border-color .2s;
}
.page-form input:focus,
.page-form select:focus,
.page-form textarea:focus {
outline: none; border-color: #d4af37;
}
.error { color: #c00; background: #ffeaea; padding: 10px; border-radius: 8px; text-align: center; margin-bottom: 12px; }
.success { color: #0a7a3d; background: #e6f7ee; padding: 10px; border-radius: 8px; text-align: center; margin-bottom: 12px; }
.modal-link { text-align: center; margin-top: 12px; font-size: 14px; }
.modal-link a { color: #1f3b73; text-decoration: none; }
.modal-link a:hover { color: #d4af37; text-decoration: underline; }

/* === MODAL === */
.modal {
display: none; position: fixed; inset: 0;
background: rgba(10,20,40,0.75);
z-index: 200; align-items: center; justify-content: center;
}
.modal-content {
background: #fff; padding: 36px;
border-radius: 16px; width: 100%; max-width: 420px;
position: relative;
box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.modal-content h2 { color: #1f3b73; text-align: center; margin-bottom: 18px; }
.modal-content input {
width: 100%; padding: 12px 14px; margin-bottom: 12px;
border: 2px solid #e0e4ee; border-radius: 8px; font-size: 15px;
}
.modal-close {
position: absolute; top: 10px; right: 16px;
font-size: 28px; cursor: pointer; color: #888;
}
.modal-close:hover { color: #c00; }

/* === PROFILE === */
.profile { max-width: 1000px; margin: 60px auto; padding: 0 30px; }
.profile h1 { color: #1f3b73; margin-bottom: 24px; }
.profile h2 { color: #1f3b73; margin: 30px 0 14px; }
.profile-card {
background: #fff; padding: 28px;
border-radius: 12px; border-left: 5px solid #d4af37;
box-shadow: 0 8px 25px rgba(20,38,77,0.08);
}
.profile-card p { margin: 6px 0; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 6px 20px rgba(20,38,77,0.08); }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #eef0f5; }
.data-table th { background: #1f3b73; color: #fff; font-weight: 600; }
.data-table tr:hover { background: #f9fafc; }

/* === FOOTER === */
.site-footer {
background: #14264d; color: #c9d3e6;
padding: 50px 30px 20px; margin-top: 60px;
border-top: 4px solid #d4af37;
}
.footer-grid {
max-width: 1200px; margin: 0 auto;
display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 30px;
}
.site-footer h4 { color: #d4af37; margin-bottom: 12px; font-size: 16px; }
.site-footer p { font-size: 14px; margin-bottom: 6px; }
.site-footer a { color: #c9d3e6; text-decoration: none; }
.site-footer a:hover { color: #d4af37; }
.small { font-size: 12px; margin-top: 10px; color: #8f9bb7; }
.footer-bottom {
max-width: 1200px; margin: 30px auto 0;
padding-top: 20px; border-top: 1px solid #26396b;
text-align: center; font-size: 13px; color: #8f9bb7;
}

@media (max-width: 900px) {
.hero { grid-template-columns: 1fr; text-align: center; padding: 50px 20px; }
.hero-portrait { order: -1; }
.hero p { margin-left: auto; margin-right: auto; }
.hero-buttons { justify-content: center; }
.main-nav { gap: 14px; flex-wrap: wrap; }
.main-nav a:not(.profile-btn) { display: none; }
}