:root {
    --bg-color: #fcf9f5;
    --text-dark: #3e3835;
    --accent-warm: #d4a373;
    --accent-soft: #e9edc9;
    --memory-bg: #f4f1ea;
    --card-bg: #ffffff;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 950px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(139, 119, 103, 0.1);
    overflow: hidden;
    padding: 40px 20px;
}

header {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 10px;
}

.logo-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    display: inline-block;
    animation: pulse 2s infinite;
}

h1 {
    font-family: 'Philosopher', sans-serif;
    font-size: 2.5rem;
    color: var(--text-dark);
}

.dogs-section {
    margin-bottom: 60px;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 45px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '🐾';
    position: absolute;
    bottom: -15px;
    left: 0;
    right: 0;
    margin: 0 auto;
    font-size: 1rem;
}

.dogs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.dog-card {
    background: var(--bg-color);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(212, 163, 115, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.dog-gallery {
    width: 100%;
    max-width: 260px;
    margin-bottom: 20px;
}

.main-photo {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    margin-bottom: 10px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.main-photo:hover, .thumb-photo:hover {
    opacity: 0.9;
}

.thumb-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.thumb-photo {
    width: 100%;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: opacity 0.2s;
}

.dog-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.passport-name {
    font-size: 0.85rem;
    font-style: italic;
    color: #8c827c;
    margin-bottom: 10px;
    display: block;
}

.tag {
    display: inline-block;
    background: var(--accent-soft);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.tag.tsatsa { background-color: #e9edc9; }
.tag.filya { background-color: #fefae0; border: 1px solid #e9edc9; }

.dog-desc {
    font-size: 0.95rem;
    color: #5c534e;
    text-align: justify;
}

.memory-section {
    background-color: var(--memory-bg);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    border: 1px dashed #d1c9be;
    margin-bottom: 60px;
}

.rainbow-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

.memory-title {
    font-family: 'Philosopher', sans-serif;
    font-size: 1.8rem;
    font-style: italic;
    margin-bottom: 30px;
    color: #5c534e;
}

.memory-gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.memory-photo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    filter: grayscale(15%);
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: all 0.3s;
    cursor: pointer;
}

.memory-photo:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.memory-text-block {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.memory-text-block h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.dates {
    font-size: 0.95rem;
    font-weight: 600;
    color: #8c827c;
    margin-bottom: 15px;
    display: block;
}

.memory-quote {
    font-size: 1rem;
    color: #6e6560;
    line-height: 1.7;
    font-style: italic;
    max-width: 650px;
    margin: 0 auto;
    text-align: justify;
}

.contact-section {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-color);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(212, 163, 115, 0.2);
}

.contact-section h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #5c534e;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1c9be;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: white;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-warm);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    display: block;
    width: 100%;
    background: var(--accent-warm);
    color: white;
    border: none;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.btn-submit:hover {
    background: #be8f5e;
}

.form-success {
    display: none;
    text-align: center;
    background: #e9edc9;
    color: #4a5d4e;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 15px;
    animation: fadeIn 0.3s ease;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
}

footer {
    margin-top: 50px;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.footer-text {
    font-size: 0.9rem;
    color: #9a9089;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

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

@media (max-width: 768px) {
    .dogs-grid { grid-template-columns: 1fr; }
    .memory-gallery { gap: 10px; }
    .memory-photo { width: 100px; height: 100px; }
    .lightbox-close { right: 20px; top: 10px; }
}