/* Petika for DataLife Engine 20.0
   Responsive template inspired by the supplied pet-care reference.
*/
:root{
	--bg:#fffaf6;--paper:#fff;--ink:#292827;--muted:#6f6a67;--line:#eee4dd;
	--accent:#e66f6c;--accent2:#cb5858;--shadow:0 18px 55px rgba(82,52,37,.10);
	--lilac:#f2eafa;--green:#edf5e8;--yellow:#fff2d8;--pink:#fdebea;--blue:#e9f4fb;
	--radius:28px;--radius-sm:18px;--max:1320px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.55 Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
body.no-scroll{overflow:hidden}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
button{color:inherit}
img{max-width:100%;display:block}
.site-shell{min-height:100vh;overflow:hidden}
.topbar{max-width:var(--max);margin:18px auto 0;padding:12px 18px 12px 20px;min-height:72px;display:flex;align-items:center;gap:30px;background:rgba(255,255,255,.84);border:1px solid rgba(231,220,212,.8);border-radius:25px;box-shadow:0 10px 35px rgba(80,50,35,.06);backdrop-filter:blur(16px);position:relative;z-index:50}
.brand{display:flex;align-items:center;flex:0 0 auto}.brand img{width:156px;height:45px;object-fit:contain}
.topnav{display:flex;align-items:center;justify-content:center;gap:6px;flex:1}
.topnav a,.nav-link{border:0;background:transparent;border-radius:14px;padding:12px 14px;display:flex;align-items:center;gap:8px;cursor:pointer;white-space:nowrap;transition:.2s}
.topnav a:hover,.nav-link:hover{background:#f8f1ec}
.nav-ico{font-size:21px;line-height:1;color:#6d6864}
.top-actions{display:flex;gap:8px}.icon-btn,.burger{width:46px;height:46px;border:0;border-radius:14px;background:#f5ede7;cursor:pointer}
.burger{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}.burger span{width:20px;height:2px;background:#57514d;border-radius:2px}
.home,.inner-page{max-width:var(--max);margin:0 auto}
.hero{display:grid;grid-template-columns: .86fr 1.14fr;align-items:center;min-height:535px;padding:54px 18px 30px}
.hero-copy{padding:15px 0 15px 16px;position:relative;z-index:3}
.eyebrow,.section-kicker{font-size:13px;text-transform:uppercase;letter-spacing:.13em;color:var(--accent2);font-weight:800}
.hero h1{font-size:clamp(42px,5vw,72px);line-height:1.05;letter-spacing:-.045em;margin:16px 0 22px;max-width:650px}
.hero h1 i{font-style:normal;color:var(--accent);font-weight:400}
.hero-copy p{max-width:520px;color:var(--muted);font-size:17px;margin:0 0 28px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:0;border-radius:15px;padding:14px 21px;font-weight:750;cursor:pointer;transition:.2s}
.btn-primary{background:linear-gradient(135deg,var(--accent),#e98d7f);color:#fff;box-shadow:0 10px 25px rgba(222,103,100,.22)}
.btn-primary:hover{transform:translateY(-1px);box-shadow:0 13px 30px rgba(222,103,100,.28)}
.btn-wide{width:100%}
.hero-visual{height:480px;position:relative;display:flex;justify-content:center;align-items:end}
.hero-visual img{height:440px;width:60%;object-fit:cover;object-position:center top;border-radius:42% 42% 12% 20% / 28% 26% 11% 12%;position:relative;z-index:2;box-shadow:var(--shadow)}
.hero-blob{position:absolute;inset:28px 6% 12px 3%;border-radius:48% 52% 45% 55% / 35% 42% 58% 65%;background:linear-gradient(145deg,#f3eeec,#f7dfc9 58%,#eaf2e4);transform:rotate(-3deg)}
.paw{position:absolute;font-size:54px;opacity:.14;z-index:1}.paw-one{top:40px;left:23%;transform:rotate(-12deg)}.paw-two{right:9%;bottom:25px;color:#d79e85}
.feature-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:18px;padding:0 18px 42px}
.feature-card{min-height:390px;border:0;text-align:left;border-radius:24px;padding:18px 16px;display:flex;flex-direction:column;position:relative;overflow:hidden;cursor:pointer;transition:.2s;box-shadow:inset 0 0 0 1px rgba(255,255,255,.45)}
.feature-card:hover{transform:translateY(-4px);box-shadow:0 16px 30px rgba(71,49,36,.08)}
.feature-card.lilac{background:var(--lilac)}.feature-card.green{background:var(--green)}.feature-card.yellow{background:var(--yellow)}.feature-card.pink{background:var(--pink)}.feature-card.blue{background:var(--blue)}
.feature-title{font-size:17px;display:flex;gap:8px;align-items:center;min-height:34px}.feature-title:first-letter{color:var(--accent)}
.feature-card img{height:170px;width:calc(100% + 32px);margin:14px -16px 12px;object-fit:cover;object-position:center}
.feature-card p{font-size:13px;line-height:1.55;margin:0 0 30px;color:#514d49}
.round-arrow{margin-top:auto;width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.55);display:grid;place-items:center;font-size:18px}
.home-bottom{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:22px;padding:0 18px 55px}
.feed-panel,.contact-card,.system-card,.article-full{background:rgba(255,255,255,.74);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 12px 40px rgba(60,42,32,.04)}
.feed-panel{padding:26px}.section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:22px}.section-head h2{margin:3px 0 0;font-size:27px}.section-head>a{font-size:14px;background:#fff;border:1px solid var(--line);padding:10px 14px;border-radius:12px}
.posts-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.post-card{background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;position:relative;min-width:0}
.post-cover{height:170px;background:linear-gradient(135deg,#f9eee7,#eef2e9);position:relative;overflow:hidden;display:block}.post-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:2}.post-cover-placeholder{position:absolute;inset:0;display:grid;place-items:center;font-size:50px;opacity:.25}
.post-body{padding:16px}.post-meta,.article-meta{display:flex;flex-wrap:wrap;gap:8px 12px;color:#8a827d;font-size:12px}.post-body h3{font-size:18px;line-height:1.25;margin:10px 0}.post-excerpt{font-size:13px;color:#645e5a;max-height:64px;overflow:hidden}.post-foot{display:flex;justify-content:space-between;gap:8px;margin-top:14px;font-size:12px;color:#8a827d}.readmore{font-weight:750;color:#444}.post-edit{position:absolute;right:8px;top:8px;background:#fff;padding:5px 8px;border-radius:8px;font-size:11px;z-index:3}
.contact-card{padding:28px;position:relative;background:linear-gradient(155deg,#fff8f1,#fff4ed)}.contact-icon{width:50px;height:50px;border-radius:16px;border:1px solid #f2d9cd;display:grid;place-items:center;color:var(--accent);font-size:23px}.contact-card h2{font-size:28px;margin:20px 0 8px}.contact-card p{color:var(--muted);margin:0 0 22px}.contact-lines{display:flex;flex-direction:column;gap:13px;margin-top:28px;font-size:14px}.contact-paw{position:absolute;right:22px;bottom:18px;font-size:64px;opacity:.12}
.inner-page{padding:30px 18px 60px}.speedbar{font-size:13px;color:#817973;margin:0 0 14px}.speedbar a{color:#5e5854}.content-frame{min-width:0}
.article-full,.system-card{padding:clamp(22px,4vw,46px);max-width:980px;margin:0 auto}.article-head h1,.system-card h1{font-size:clamp(32px,4vw,54px);line-height:1.1;letter-spacing:-.03em;margin:8px 0 14px}.article-category{color:var(--accent2);font-weight:750}.article-content{font-size:17px;color:#3e3a37}.article-content img{border-radius:18px;height:auto}.article-content h2{font-size:30px;margin-top:42px}.article-content h3{font-size:23px;margin-top:30px}.article-content a{color:#c55757;text-decoration:underline}.article-content blockquote{margin:25px 0;padding:18px 22px;background:#fff4ef;border-left:4px solid var(--accent);border-radius:0 14px 14px 0}.article-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:30px;padding-top:20px;border-top:1px solid var(--line)}.action-link,.profile-actions a,.profile-actions span{padding:9px 12px;border:1px solid var(--line);border-radius:11px;background:#fff}.article-tags{margin-top:20px;padding:15px;background:#faf4f0;border-radius:14px}
.related{margin-top:38px}.related-list{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.related-item a{display:block;padding:14px;background:#faf6f3;border-radius:12px}
.comments-section,.add-comment{margin-top:38px}.comment{display:flex;gap:14px;padding:18px 0;border-top:1px solid var(--line)}.comment-avatar img{width:48px;height:48px;border-radius:50%;object-fit:cover}.comment-main{flex:1;min-width:0}.comment-head{display:flex;gap:10px;align-items:center;font-size:13px}.comment-head time,.comment-head span{color:#999}.comment-text{margin-top:7px}.comment-actions{display:flex;gap:10px;flex-wrap:wrap;font-size:12px;margin-top:10px;color:#8a6d64}.comment-signature{font-size:12px;color:#999;margin-top:12px}
label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:700;color:#5b5551}input,select,textarea{width:100%;border:1px solid #e4d9d2;border-radius:13px;background:#fff;padding:12px 14px;color:#2f2c2a;outline:none}input:focus,select:focus,textarea:focus{border-color:#e69a90;box-shadow:0 0 0 4px rgba(230,111,108,.10)}textarea{resize:vertical}.form-row,.form-grid,.calc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.span-2{grid-column:1/-1}.editor-wrap{margin:14px 0}.captcha-row{display:flex;align-items:center;gap:10px;margin:14px 0}.captcha-row input{max-width:220px}.muted{color:var(--muted)}.native-form,.search-native{margin-top:18px}
.dle-info{padding:14px 16px;margin:0 0 16px;border-radius:14px;background:#fff2d8;border:1px solid #f0dfb9}
.pagination{display:flex;align-items:center;justify-content:center;gap:12px;margin:30px 0}.page-btn,.page-numbers a,.page-numbers span{display:inline-flex;padding:9px 12px;border-radius:10px;border:1px solid var(--line);background:#fff;margin:2px}.page-numbers span{background:#f6e8e3}
.profile-top{display:flex;gap:18px;align-items:center}.profile-avatar{width:100px;height:100px;border-radius:50%;object-fit:cover}.profile-top h1{margin:4px 0}.profile-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:25px 0}.profile-stats div{background:#faf5f1;border-radius:15px;padding:15px}.profile-stats b,.profile-stats span{display:block}.profile-stats span{font-size:12px;color:#8a817b}.profile-actions{display:flex;gap:10px;margin-top:20px}
.auth-box h3{margin:0 0 4px}.auth-box p{font-size:13px;color:var(--muted)}.auth-box form{display:flex;flex-direction:column;gap:10px}.auth-links{display:flex;justify-content:space-between;font-size:12px;margin-top:10px}.user-chip{display:flex;gap:10px;align-items:center}.user-chip img{width:45px;height:45px;border-radius:50%;object-fit:cover}.user-chip small{display:block;color:#8a817b}.account-links{display:flex;flex-direction:column;margin-top:12px}.account-links a{padding:9px 0;border-top:1px solid var(--line)}
.drawer{position:fixed;right:22px;top:22px;width:min(360px,calc(100vw - 32px));max-height:calc(100vh - 44px);overflow:auto;background:#fffaf7;border:1px solid var(--line);border-radius:24px;box-shadow:0 30px 80px rgba(54,38,29,.18);padding:18px;z-index:100;transform:translateX(calc(100% + 50px));opacity:0;pointer-events:none;transition:.26s}.drawer.is-open{transform:none;opacity:1;pointer-events:auto}.drawer-head{display:flex;justify-content:space-between;align-items:center;padding:4px 5px 12px}.drawer-close,.modal-x,.search-close{border:0;background:transparent;font-size:30px;cursor:pointer;line-height:1}.drawer-nav{display:flex;flex-direction:column}.drawer-nav a,.drawer-nav button{display:flex;gap:13px;align-items:center;padding:14px 10px;border:0;border-bottom:1px solid #f0e7e1;background:transparent;text-align:left;cursor:pointer}.drawer-auth{margin-top:16px;background:#fff;border:1px solid var(--line);padding:15px;border-radius:16px}.drawer-backdrop{position:fixed;inset:0;background:rgba(55,40,32,.12);backdrop-filter:blur(2px);z-index:90;opacity:0;pointer-events:none;transition:.2s}.drawer.is-open~.drawer-backdrop{opacity:1;pointer-events:auto}
.modal{position:fixed;inset:0;z-index:120;display:grid;place-items:center;padding:20px;opacity:0;pointer-events:none;transition:.2s}.modal.is-open{opacity:1;pointer-events:auto}.modal-backdrop{position:absolute;inset:0;background:rgba(48,34,28,.22);backdrop-filter:blur(4px)}.modal-card{position:relative;width:min(580px,100%);max-height:calc(100vh - 40px);overflow:auto;background:#fffaf7;border:1px solid var(--line);border-radius:24px;padding:30px;box-shadow:0 30px 80px rgba(58,39,30,.22)}.modal-x{position:absolute;right:18px;top:14px}.modal-card h2{font-size:32px;margin:6px 0 8px}.calc-grid{margin:20px 0}.calc-result{margin-top:16px;padding:15px;border-radius:14px;background:#f6eee9;color:#5b5551}
.search-panel{position:fixed;inset:0;z-index:130;background:rgba(255,250,247,.98);display:grid;place-items:center;padding:30px;opacity:0;pointer-events:none;transition:.2s}.search-panel.is-open{opacity:1;pointer-events:auto}.search-panel form{width:min(680px,100%);display:flex;gap:10px;align-items:end}.search-panel form label{flex:1;font-size:18px}.search-panel input{font-size:26px;padding:16px}.search-close{position:absolute;right:30px;top:25px}
.footer{position:relative;background:linear-gradient(110deg,#eee6ff,#ffe9e3 48%,#edf4df);min-height:220px;margin-top:15px}.footer-wave{position:absolute;left:-5%;right:-5%;top:-38px;height:85px;background:var(--bg);border-radius:50%}.footer-inner{position:relative;z-index:2;max-width:var(--max);margin:auto;padding:58px 18px 30px;display:grid;grid-template-columns:170px 1fr auto;align-items:center;gap:25px}.footer-inner img{width:150px}.footer-inner p{color:#68625e}.footer-inner nav{display:flex;gap:16px;flex-wrap:wrap}.footer-inner small{grid-column:1/-1;color:#817a76}
@media(max-width:1100px){
	.topnav{display:none}.topbar{margin-left:14px;margin-right:14px}.search-toggle{display:inline-grid;place-items:center}
	.hero{grid-template-columns:1fr 1fr}.hero h1{font-size:52px}.hero-visual img{width:78%}
	.feature-grid{grid-template-columns:repeat(3,1fr)}.feature-card{min-height:360px}
	.home-bottom{grid-template-columns:1fr}.contact-card{min-height:260px}.posts-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:760px){
	:root{--radius:22px}.topbar{min-height:64px;padding:8px 10px 8px 14px;border-radius:19px}.brand img{width:128px}.icon-btn,.burger{width:42px;height:42px}
	.hero{grid-template-columns:1fr;padding-top:35px}.hero-copy{padding-left:0}.hero h1{font-size:43px}.hero-visual{height:370px;margin-top:0}.hero-visual img{height:350px;width:74%}
	.feature-grid{grid-template-columns:repeat(2,1fr);gap:12px}.feature-card{min-height:330px}.feature-card img{height:145px}
	.posts-grid{grid-template-columns:1fr}.feed-panel{padding:18px}.section-head{align-items:start}.section-head>a{display:none}
	.article-full,.system-card{padding:22px}.article-head h1,.system-card h1{font-size:36px}.form-row,.form-grid,.calc-grid{grid-template-columns:1fr}.span-2{grid-column:auto}.profile-stats{grid-template-columns:repeat(2,1fr)}
	.search-panel form{flex-direction:column;align-items:stretch}.search-panel input{font-size:20px}.search-panel .btn{width:100%}
	.footer-inner{grid-template-columns:1fr}.footer-inner small{grid-column:auto}
}
@media(max-width:520px){
	.search-toggle{display:none}.hero h1{font-size:38px}.hero-copy p{font-size:15px}.hero-visual img{width:88%}.feature-grid{grid-template-columns:1fr}.feature-card{min-height:290px;display:grid;grid-template-columns:1fr 110px;grid-template-rows:auto 1fr auto;gap:10px}.feature-title{grid-column:1/-1}.feature-card img{grid-column:2;grid-row:2/4;width:110px;height:130px;margin:0;border-radius:16px}.feature-card p{margin:0}.round-arrow{grid-column:1}
	.home-bottom{padding-left:12px;padding-right:12px}.inner-page{padding-left:12px;padding-right:12px}.drawer{right:8px;top:8px;max-height:calc(100vh - 16px)}
}
.pm-entry{padding:18px 0;border-top:1px solid var(--line)}.pm-entry h3{margin:8px 0}.pm-text{color:#4e4945}.pm-compose{margin-bottom:24px}
/* =========================================================
   PETIKA — ДОПОЛНИТЕЛЬНЫЕ КАЛЬКУЛЯТОРЫ
========================================================= */

.calculator-modal {
	max-width: 900px;
}

.calc-tabs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	margin: 28px 0;
}

.calc-tab {
	border: 1px solid #eadbd5;
	background: #fffaf8;
	color: #5f5855;
	border-radius: 14px;
	padding: 13px 10px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: all .2s ease;

	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
}

.calc-tab:hover {
	border-color: #ef8d91;
	color: #ef6f74;
	background: #fff3f2;
}

.calc-tab.is-active {
	background: #ef8d91;
	border-color: #ef8d91;
	color: #fff;
	box-shadow: 0 8px 20px rgba(239,141,145,.22);
}

.calc-panel {
	display: none;
}

.calc-panel.is-active {
	display: block;
	animation: petikaCalcFade .2s ease;
}

@keyframes petikaCalcFade {
	from {
		opacity: 0;
		transform: translateY(5px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.calc-note {
	margin-top: 18px;
	padding: 15px 18px;
	border-radius: 14px;
	background: #fff5ef;
	color: #756f6f;
	font-size: 13px;
	line-height: 1.55;
}

.calc-result strong {
	color: #ef6f74;
}

.calc-result .result-big {
	display: block;
	font-size: 28px;
	font-weight: 800;
	color: #292424;
	margin-bottom: 5px;
}

.calc-result .result-label {
	display: block;
	font-size: 14px;
	color: #756f6f;
}

.calc-result .result-line {
	margin-top: 8px;
}

@media (max-width: 700px) {

	.calculator-modal {
		width: calc(100% - 24px);
	}

	.calc-tabs {
		grid-template-columns: repeat(2, 1fr);
	}

	.calc-tab {
		min-height: 50px;
	}

}

@media (max-width: 430px) {

	.calc-tabs {
		gap: 7px;
	}

	.calc-tab {
		font-size: 12px;
		padding: 11px 7px;
	}

}
/* =========================================================
   PETIKA — МОЙ ПИТОМЕЦ
========================================================= */

.pet-modal{
    position:fixed;
    inset:0;
    z-index:200;
    display:grid;
    place-items:center;
    padding:20px;
    opacity:0;
    pointer-events:none;
    transition:.25s ease;
}

.pet-modal.is-open{
    opacity:1;
    pointer-events:auto;
}

.pet-modal-backdrop{
    position:absolute;
    inset:0;
    background:rgba(48,34,28,.30);
    backdrop-filter:blur(7px);
}

.pet-modal-window{
    position:relative;
    width:min(1180px,100%);
    height:min(850px,calc(100vh - 40px));
    overflow:hidden;
    background:#fffaf7;
    border:1px solid var(--line);
    border-radius:30px;
    box-shadow:0 35px 100px rgba(50,35,28,.25);
    z-index:2;
}

.pet-modal-close{
    position:absolute;
    right:18px;
    top:15px;
    z-index:20;
    width:40px;
    height:40px;
    border:0;
    border-radius:50%;
    background:rgba(255,255,255,.8);
    font-size:25px;
    cursor:pointer;
}

.pet-auth-screen{
    width:min(430px,100%);
    margin:auto;
    height:100%;
    padding:65px 30px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    text-align:center;
}

.pet-auth-emoji{
    width:76px;
    height:76px;
    margin:0 auto 20px;
    display:grid;
    place-items:center;
    border-radius:25px;
    background:var(--pink);
    font-size:38px;
}

.pet-auth-screen h2{
    font-size:42px;
    letter-spacing:-.04em;
    margin:8px 0;
}

.pet-auth-screen>p{
    color:var(--muted);
}

.pet-auth-form{
    margin-top:25px;
    display:flex;
    flex-direction:column;
    gap:14px;
    text-align:left;
}

.pet-register-button{
    border:0;
    background:transparent;
    color:var(--accent2);
    font-weight:750;
    cursor:pointer;
    padding:8px;
}

.pet-auth-note{
    font-size:12px!important;
    color:#9a918b!important;
    margin-top:22px;
}


/* =========================================================
   DASHBOARD
========================================================= */

.pet-profile-screen{
    width:100%;
    height:100%;
}

.pet-dashboard{
    display:grid;
    grid-template-columns:225px minmax(0,1fr);
    height:100%;
}

.pet-sidebar{
    padding:30px 16px;
    background:linear-gradient(180deg,#fff4ef,#fffaf7);
    border-right:1px solid var(--line);
}

.pet-sidebar-title{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:21px;
    padding:0 12px 30px;
}

.pet-sidebar-title span{
    width:38px;
    height:38px;
    display:grid;
    place-items:center;
    background:var(--pink);
    border-radius:13px;
}

.pet-sidebar-nav{
    display:flex;
    flex-direction:column;
    gap:5px;
}

.pet-sidebar-nav button{
    width:100%;
    display:flex;
    align-items:center;
    gap:12px;
    border:0;
    background:transparent;
    padding:12px 13px;
    border-radius:13px;
    color:#655d58;
    cursor:pointer;
    text-align:left;
    transition:.2s;
}

.pet-sidebar-nav button:hover{
    background:#fff;
}

.pet-sidebar-nav button.is-active{
    background:#fff;
    color:var(--accent2);
    font-weight:750;
    box-shadow:0 7px 20px rgba(80,50,35,.06);
}

.pet-dashboard-main{
    min-width:0;
    overflow:auto;
    padding:40px;
}

.pet-dashboard-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-bottom:25px;
}

.pet-dashboard-head h2{
    font-size:36px;
    margin:4px 0 0;
    letter-spacing:-.035em;
}

.pet-edit-button{
    border:1px solid var(--line);
    background:#fff;
    border-radius:12px;
    padding:10px 14px;
    cursor:pointer;
    font-weight:700;
}


/* =========================================================
   PET HERO
========================================================= */

.pet-hero-card{
    display:grid;
    grid-template-columns:190px 1fr;
    gap:28px;
    align-items:center;
    padding:25px;
    border-radius:25px;
    background:linear-gradient(135deg,#fdebea,#fff7ef);
    border:1px solid #f3dfd7;
    margin-bottom:18px;
}

.pet-photo-wrapper{
    position:relative;
    width:170px;
    height:170px;
}

.pet-photo{
    width:170px;
    height:170px;
    display:grid;
    place-items:center;
    overflow:hidden;
    border-radius:35px;
    background:#fff;
    font-size:65px;
    box-shadow:0 15px 35px rgba(80,50,35,.10);
}

.pet-photo img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.pet-photo-upload{
    position:absolute;
    right:-8px;
    bottom:-8px;
    width:44px;
    height:44px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:#fff;
    box-shadow:0 8px 20px rgba(50,35,28,.15);
    cursor:pointer;
}

.pet-photo-upload input{
    display:none;
}

.pet-welcome h3{
    font-size:30px;
    margin:8px 0;
    letter-spacing:-.03em;
}

.pet-welcome p{
    color:var(--muted);
    max-width:600px;
}

.pet-mini-tags{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:18px;
}

.pet-mini-tags span{
    padding:8px 12px;
    border-radius:20px;
    background:rgba(255,255,255,.75);
    font-size:12px;
    font-weight:700;
}


/* =========================================================
   INFORMATION CARDS
========================================================= */

.pet-section-card{
    background:#fff;
    border:1px solid var(--line);
    border-radius:23px;
    padding:25px;
    margin-bottom:18px;
    box-shadow:0 10px 35px rgba(60,42,32,.035);
}

.pet-section-heading{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-bottom:20px;
}

.pet-section-heading h3{
    font-size:23px;
    margin:4px 0 0;
}

.pet-info-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
}

.pet-info-grid>div{
    background:#faf6f3;
    border-radius:16px;
    padding:15px;
}

.pet-info-grid span{
    display:block;
    font-size:12px;
    color:#918781;
    margin-bottom:5px;
}

.pet-info-grid strong{
    font-size:15px;
}


/* =========================================================
   HEALTH
========================================================= */

.pet-health-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:15px;
    margin-bottom:18px;
}

.pet-health-card{
    min-height:145px;
    border-radius:21px;
    padding:20px;
    display:flex;
    flex-direction:column;
    gap:15px;
}

.pet-health-pink{
    background:var(--pink);
}

.pet-health-green{
    background:var(--green);
}

.pet-health-yellow{
    background:var(--yellow);
}

.pet-card-icon{
    font-size:27px;
}

.pet-health-card span{
    display:block;
    font-size:12px;
    color:#766e68;
}

.pet-health-card strong{
    display:block;
    margin-top:4px;
}

.pet-health-card button{
    margin-top:auto;
    align-self:flex-start;
    border:0;
    background:transparent;
    font-weight:750;
    cursor:pointer;
}

.pet-status{
    padding:8px 12px;
    border-radius:20px;
    background:#f4eee9;
    color:#756b65;
    font-size:12px;
}

.pet-empty-text{
    color:var(--muted);
    margin:0;
}

.pet-clinic-card{
    display:flex;
    align-items:center;
    gap:20px;
}

.pet-clinic-icon{
    width:62px;
    height:62px;
    flex:0 0 62px;
    display:grid;
    place-items:center;
    border-radius:20px;
    background:var(--green);
    font-size:30px;
}

.pet-clinic-card h3{
    margin:5px 0;
}

.pet-clinic-card p{
    color:var(--muted);
    margin:0;
}


/* =========================================================
   TABS
========================================================= */

.pet-tab-panel{
    display:none;
}

.pet-tab-panel.is-active{
    display:block;
    animation:petikaPetFade .2s ease;
}

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


/* =========================================================
   EMPTY STATES
========================================================= */

.pet-empty{
    padding:55px 20px;
    text-align:center;
    color:#8a817b;
    background:#faf6f3;
    border-radius:18px;
}

.pet-empty:first-letter{
    font-size:35px;
}

.pet-empty h4{
    color:#514b47;
    margin:10px 0 5px;
    font-size:18px;
}

.pet-empty p{
    max-width:420px;
    margin:auto;
    font-size:13px;
}


/* =========================================================
   RECORDS
========================================================= */

.pet-record{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    padding:15px 0;
    border-top:1px solid var(--line);
}

.pet-record:first-child{
    border-top:0;
}

.pet-record-title{
    font-weight:750;
}

.pet-record-meta{
    color:#8b817b;
    font-size:12px;
    margin-top:3px;
}

.pet-record-delete{
    border:0;
    background:#fff1ee;
    color:#c75e5c;
    width:32px;
    height:32px;
    border-radius:10px;
    cursor:pointer;
}


/* =========================================================
   DOCUMENTS
========================================================= */

.pet-document{
    display:flex;
    align-items:center;
    gap:15px;
    padding:15px;
    border:1px solid var(--line);
    border-radius:15px;
    margin-bottom:10px;
}

.pet-document-icon{
    width:45px;
    height:45px;
    display:grid;
    place-items:center;
    border-radius:13px;
    background:var(--blue);
}

.pet-document-name{
    font-weight:750;
}

.pet-document-size{
    color:#958b85;
    font-size:12px;
}


/* =========================================================
   MOBILE
========================================================= */

@media(max-width:850px){

    .pet-modal{
        padding:8px;
    }

    .pet-modal-window{
        height:calc(100vh - 16px);
        border-radius:23px;
    }

    .pet-dashboard{
        grid-template-columns:1fr;
    }

    .pet-sidebar{
        padding:12px;
        border-right:0;
        border-bottom:1px solid var(--line);
    }

    .pet-sidebar-title{
        display:none;
    }

    .pet-sidebar-nav{
        display:grid;
        grid-template-columns:repeat(4,1fr);
        gap:5px;
    }

    .pet-sidebar-nav button{
        justify-content:center;
        padding:10px 5px;
        font-size:11px;
    }

    .pet-sidebar-nav button span{
        display:none;
    }

    .pet-dashboard-main{
        padding:20px 15px 30px;
    }

    .pet-dashboard-head h2{
        font-size:27px;
    }

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

    .pet-photo-wrapper{
        margin:auto;
    }

    .pet-mini-tags{
        justify-content:center;
    }

    .pet-info-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .pet-health-grid{
        grid-template-columns:1fr;
    }

}

@media(max-width:500px){

    .pet-dashboard-head{
        align-items:flex-start;
    }

    .pet-edit-button{
        font-size:11px;
        padding:8px;
    }

    .pet-info-grid{
        grid-template-columns:1fr;
    }

    .pet-section-card{
        padding:18px;
    }

    .pet-welcome h3{
        font-size:25px;
    }

}
/* =========================================================
   PETIKA 1.3 — ДОРАБОТКИ ПО МАКЕТУ/ТЗ
========================================================= */
.petika-view[hidden]{display:none!important}
.petika-view{animation:petikaViewIn .22s ease}
@keyframes petikaViewIn{from{opacity:.55;transform:translateY(7px)}to{opacity:1;transform:none}}

/* Шапка: отдельная Главная + увеличенная лапа/логотип */
.topbar{gap:15px}
.brand img{width:188px;height:54px}
.topnav{gap:2px}
.topnav a,.nav-link{padding:10px 9px;font-size:13.5px;gap:6px}
.topnav a.is-current,.nav-link.is-current{background:#f9efea;color:var(--accent2)}
.topnav a.is-current .nav-ico{color:var(--accent)}
.nav-ico{font-size:19px}

/* Более четкие изображения на главной */
.hero-visual img{width:72%;height:450px;object-position:center 48%;border-radius:38% 38% 11% 16% / 25% 25% 10% 12%;image-rendering:auto}
.feature-card img{height:185px;object-position:center 48%;image-rendering:auto}
.feature-card{min-height:400px}

/* Форум на главной */
.forum-preview{background:rgba(255,255,255,.74);border:1px solid var(--line);border-radius:var(--radius);padding:28px;box-shadow:0 12px 40px rgba(60,42,32,.04)}
.forum-preview-lead{margin:-8px 0 22px;color:var(--muted);max-width:710px}
.forum-preview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.forum-preview-grid>a{min-width:0;background:#fff;border:1px solid var(--line);border-radius:17px;padding:14px;display:flex;gap:11px;align-items:flex-start;transition:.2s}
.forum-preview-grid>a:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(70,50,40,.07)}
.forum-avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;flex:0 0 auto;background:linear-gradient(135deg,#f4d5cf,#f3ebe4);font-weight:800;color:#9b5c58}
.forum-preview-grid b,.forum-preview-grid small{display:block}
.forum-preview-grid small{font-size:10px;color:#999;margin-top:1px}
.forum-preview-grid p{font-size:12px;line-height:1.45;margin:7px 0 0;color:#45413e}
.home-materials{margin:0 18px 46px}

/* Страницы внутри главной */
.service-page{padding:42px 18px 65px}
.service-hero{position:relative;overflow:hidden;border:1px solid var(--line);border-radius:32px;padding:42px 44px;background:linear-gradient(135deg,#fff6f0,#f7f0ff 52%,#eef7e7);box-shadow:0 14px 42px rgba(67,48,39,.05);margin-bottom:22px}
.service-hero:after{content:'🐾';position:absolute;right:44px;bottom:-18px;font-size:145px;opacity:.07;transform:rotate(-14deg);pointer-events:none}
.service-hero h1{font-size:clamp(40px,5vw,65px);line-height:1.04;letter-spacing:-.04em;margin:10px 0 14px;max-width:820px}
.service-hero p{max-width:760px;color:var(--muted);font-size:17px;margin:0 0 22px}
.back-home{display:inline-flex;align-items:center;gap:7px;margin-bottom:20px;font-size:13px;font-weight:750;color:#766b65}
.back-home:hover{color:var(--accent2)}

/* Места рядом */
.places-shell{background:#fff;border:1px solid var(--line);border-radius:28px;padding:24px;box-shadow:0 12px 40px rgba(60,42,32,.04)}
.places-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:6px;background:#faf5f1;border-radius:18px;margin-bottom:20px}
.places-tab{min-height:58px;border:0;border-radius:14px;background:transparent;font-weight:800;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:9px;color:#68605b;transition:.2s}
.places-tab.is-active{background:#fff;color:var(--accent2);box-shadow:0 6px 18px rgba(80,54,42,.08)}
.places-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:8px 2px 18px}
.places-toolbar b,.places-toolbar small{display:block}.places-toolbar b{font-size:21px}.places-toolbar small{color:var(--muted);margin-top:4px}
.places-status{padding:12px 15px;border-radius:13px;background:#fff7ef;color:#776b64;font-size:13px;margin-bottom:15px}
.places-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;min-height:190px}
.place-placeholder{grid-column:1/-1;display:grid;place-items:center;text-align:center;padding:44px 20px;border:1px dashed #e5d8cf;border-radius:20px;background:#fffaf7}
.place-placeholder span{font-size:42px}.place-placeholder h3{margin:8px 0 2px}.place-placeholder p{margin:0;color:var(--muted)}
.place-card{background:#fffaf8;border:1px solid var(--line);border-radius:19px;padding:17px;display:flex;flex-direction:column;gap:9px;min-width:0}
.place-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.place-card h3{font-size:17px;line-height:1.25;margin:0}.place-distance{white-space:nowrap;font-size:11px;padding:5px 8px;border-radius:999px;background:#edf5e8;color:#53704d;font-weight:800}
.place-address,.place-meta{font-size:12px;color:#756e69}.place-card-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto;padding-top:4px}.place-card-actions a{font-size:12px;font-weight:800;padding:8px 10px;border-radius:10px;background:#fff;border:1px solid var(--line)}
.places-info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:18px}
.places-info-grid>div{border-radius:21px;padding:21px;border:1px solid var(--line);background:rgba(255,255,255,.67)}
.places-info-grid>div>span{font-size:29px}.places-info-grid h3{font-size:17px;margin:8px 0 6px}.places-info-grid p{font-size:13px;color:var(--muted);margin:0}

/* Форум */
.forum-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:18px;align-items:start}
.forum-categories,.forum-main{background:#fff;border:1px solid var(--line);border-radius:27px;box-shadow:0 12px 40px rgba(60,42,32,.04)}
.forum-categories{padding:18px;position:sticky;top:18px}.forum-categories h3{font-size:18px;margin:3px 6px 12px}
.forum-categories button{width:100%;border:0;background:transparent;border-radius:14px;padding:12px 10px;display:flex;align-items:center;gap:10px;text-align:left;cursor:pointer;margin:3px 0}
.forum-categories button>span{width:34px;height:34px;border-radius:11px;background:#faf3ee;display:grid;place-items:center;flex:0 0 auto}
.forum-categories button b,.forum-categories button small{display:block}.forum-categories button b{font-size:13px}.forum-categories button small{font-size:10px;color:#999;margin-top:2px}
.forum-categories button.is-active{background:#fff1ed;color:var(--accent2)}
.forum-main{padding:24px}.forum-toolbar{display:flex;align-items:end;justify-content:space-between;gap:18px;border-bottom:1px solid var(--line);padding-bottom:17px;margin-bottom:4px}.forum-toolbar h2{margin:3px 0 0;font-size:28px}
.forum-search{position:relative;width:min(310px,100%);font-size:18px;color:#7b726d}.forum-search input{padding-left:14px;font-size:13px}
.forum-topic{display:grid;grid-template-columns:50px minmax(0,1fr) auto;gap:15px;align-items:center;padding:19px 4px;border-bottom:1px solid var(--line)}
.forum-topic[hidden]{display:none!important}.forum-topic-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:15px;background:#faf2ed;font-size:22px}.forum-topic-body{min-width:0}.forum-topic-meta{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.forum-topic-meta span{font-size:11px;font-weight:800;color:var(--accent2)}.forum-topic-meta small{font-size:10px;color:#999}.forum-topic h3{font-size:17px;margin:5px 0 3px;line-height:1.3}.forum-topic p{font-size:12px;color:var(--muted);margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.forum-topic-stats{font-size:11px;color:#948983;margin-top:8px}.forum-open{border:1px solid var(--line);background:#fff;border-radius:11px;padding:9px 11px;font-size:12px;font-weight:800;cursor:pointer}
.forum-empty{padding:50px 20px;text-align:center;color:var(--muted)}
.forum-compose-card{width:min(680px,100%)}.forum-compose-card label{margin-top:13px}.forum-local-note{font-size:11px;margin:13px 0 0}
.forum-topic-modal-card{width:min(760px,100%)}.forum-topic-detail h2{font-size:30px;line-height:1.15;margin:8px 0}.forum-topic-message{padding:16px;background:#fff;border:1px solid var(--line);border-radius:15px;margin:15px 0}.forum-replies{display:flex;flex-direction:column;gap:9px;margin:15px 0}.forum-reply{padding:13px 15px;border-radius:14px;background:#faf5f1}.forum-reply b,.forum-reply small{display:block}.forum-reply small{color:#999;font-size:10px}.forum-reply p{margin:6px 0 0}.forum-reply-form{border-top:1px solid var(--line);padding-top:16px;margin-top:18px}.forum-reply-form .btn{margin-top:10px}

/* Регистрация и создание профиля питомца */
.pet-auth-form{display:flex;flex-direction:column;gap:11px;margin-top:18px;text-align:left}
.pet-register-button{width:100%;border:1px solid #efb8b3;background:#fff6f3;color:var(--accent2);border-radius:14px;padding:13px;font-weight:800;cursor:pointer;transition:.2s}
.pet-register-button:hover{background:#ffece8;border-color:#e9948e}
.pet-forgot{text-align:center;font-size:12px;color:#8c817b}
.pet-auth-note{font-size:11px!important;color:#999!important;margin-top:18px!important}
.pet-register-screen{width:min(660px,100%);margin:auto;height:100%;overflow:auto;padding:55px 34px 38px;text-align:center}
.pet-register-screen h2{font-size:38px;letter-spacing:-.035em;margin:8px 0}.pet-register-screen>p{color:var(--muted);max-width:560px;margin:0 auto}.pet-register-screen .pet-auth-form{margin:22px auto 0;max-width:590px}
.pet-register-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.pet-consent{flex-direction:row;align-items:flex-start;font-weight:500;text-align:left}.pet-consent input{width:auto;margin-top:4px}.pet-form-error{padding:11px 13px;border-radius:12px;background:#fff0ef;border:1px solid #f0cbc8;color:#a54a48;font-size:12px;text-align:left}.pet-back-auth{border:0;background:transparent;color:#746a65;font-weight:750;cursor:pointer;display:block;margin-bottom:12px}
.pet-editor{position:absolute;inset:0;z-index:30;display:grid;place-items:center;padding:18px}.pet-editor[hidden]{display:none!important}.pet-editor-backdrop{position:absolute;inset:0;background:rgba(48,34,28,.28);backdrop-filter:blur(5px)}.pet-editor-card{position:relative;z-index:2;width:min(700px,100%);max-height:calc(100% - 10px);overflow:auto;background:#fffaf7;border:1px solid var(--line);border-radius:25px;padding:28px;box-shadow:0 25px 70px rgba(50,35,28,.2)}.pet-editor-card h3{font-size:30px;margin:7px 0 20px}.pet-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:17px}
.pet-photo img{width:100%;height:100%;object-fit:cover}

@media(max-width:1220px) and (min-width:1101px){
  .brand img{width:160px}.topnav a,.nav-link{padding:9px 7px;font-size:12.5px}.nav-ico{font-size:17px}
}
@media(max-width:900px){
  .forum-layout{grid-template-columns:1fr}.forum-categories{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.forum-categories h3{grid-column:1/-1}.places-results{grid-template-columns:repeat(2,minmax(0,1fr))}.places-info-grid{grid-template-columns:1fr}.forum-preview-grid{grid-template-columns:1fr}
}
@media(max-width:760px){
  .brand img{width:150px;height:45px}.hero-visual img{width:82%;height:355px}.service-page{padding:26px 12px 45px}.service-hero{padding:30px 22px;border-radius:24px}.service-hero h1{font-size:42px}.service-hero:after{font-size:95px;right:8px}.places-shell,.forum-main{padding:16px;border-radius:22px}.places-toolbar,.forum-toolbar{align-items:stretch;flex-direction:column}.places-toolbar .btn{width:100%}.forum-search{width:100%}.forum-topic{grid-template-columns:42px minmax(0,1fr)}.forum-topic-icon{width:40px;height:40px}.forum-open{grid-column:2;justify-self:start}.places-results{grid-template-columns:1fr}.pet-register-grid,.pet-editor-grid{grid-template-columns:1fr}.pet-editor-grid .span-2{grid-column:auto}.pet-register-screen{padding:45px 20px 25px}.pet-register-screen h2{font-size:31px}.home-materials{margin-left:12px;margin-right:12px}
}
@media(max-width:520px){
  .brand img{width:142px}.hero-visual img{width:92%}.feature-card img{height:130px}.places-tabs{grid-template-columns:1fr}.forum-categories{grid-template-columns:1fr}.service-hero h1{font-size:36px}.forum-main{padding:14px}.forum-topic{padding:15px 0}.forum-topic p{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.pet-editor{padding:7px}.pet-editor-card{padding:22px 16px;border-radius:20px}
}
/* 1.3.1 — соответствие разметке результатов и тем форума */
.place-card{display:grid;grid-template-columns:38px minmax(0,1fr);align-items:start}
.place-number{width:34px;height:34px;border-radius:12px;background:#fff1eb;color:var(--accent2);display:grid;place-items:center;font-size:12px;font-weight:900}
.place-card-main{min-width:0}.place-card-main h3{margin:0 0 5px}.place-card-main p{font-size:12px;color:#756e69;margin:0}
.place-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}.place-tags span{font-size:10px;padding:5px 7px;border-radius:999px;background:#edf5e8;color:#5d7259}
.place-card .place-card-actions{grid-column:2;display:flex;gap:7px;flex-wrap:wrap;margin-top:2px}
.btn-soft{background:#fff;border:1px solid var(--line);color:#514a46;box-shadow:none}
.forum-author-line{display:flex;align-items:center;gap:10px;margin:14px 0}.forum-author-line b,.forum-author-line small{display:block}.forum-author-line small{font-size:10px;color:#999}
.forum-replies-title{display:flex;gap:7px;align-items:center}.forum-replies-title span{font-size:11px;padding:4px 7px;border-radius:999px;background:#f5ece6;color:#806b60}
.forum-reply{display:flex;gap:10px;align-items:flex-start}.forum-reply .forum-avatar{width:34px;height:34px;font-size:12px}.forum-reply p{font-size:13px}
@media(max-width:520px){.place-card{grid-template-columns:32px minmax(0,1fr);padding:14px}.place-number{width:30px;height:30px}.place-card .place-card-actions{grid-column:1/-1}}

/* =========================================================
   PETIKA 1.6 — logo, search, pet account and real forum fixes
========================================================= */

/* New selected Petika logo */
.brand img{
    width:126px;
    height:72px;
    object-fit:contain;
    object-position:left center;
}
.footer-inner img{
    width:180px;
    height:auto;
    max-height:105px;
    object-fit:contain;
    object-position:left center;
}

/* Larger, crisp search icon */
.icon-btn.search-toggle{
    width:52px;
    height:52px;
    display:grid;
    place-items:center;
    flex:0 0 52px;
}
.search-toggle svg{
    width:27px;
    height:27px;
    fill:none;
    stroke:#554e49;
    stroke-width:1.9;
    stroke-linecap:round;
    stroke-linejoin:round;
}
.search-toggle:hover{background:#f1e5dd}
.search-toggle:hover svg{stroke:var(--accent2)}

/* Keep account block compact inside the drawer */
.drawer-auth .auth-box{padding:0;margin:0;background:transparent;border:0;box-shadow:none}
.drawer-auth .user-chip{padding:2px 0 10px}
.drawer-auth .account-links{margin-top:6px}
.drawer-auth .account-links a{padding:11px 4px;border-top:1px solid var(--line);font-size:13px}
.drawer-auth .auth-box form input{background:#fffaf8}

/* Pet modal: restore the designed card instead of an unstyled white panel */
.pet-modal-window{
    background:linear-gradient(180deg,#fffaf7 0%,#fff 100%);
    border:1px solid #eadfd7;
    box-shadow:0 36px 110px rgba(52,37,30,.26);
}
.pet-auth-screen{
    width:min(490px,100%);
    padding:55px 42px 42px;
}
.pet-auth-screen:before{
    content:"";
    position:absolute;
    width:330px;
    height:330px;
    border-radius:50%;
    background:radial-gradient(circle,rgba(253,235,234,.88),rgba(253,235,234,0) 70%);
    pointer-events:none;
    transform:translate(-28%,-36%);
    z-index:-1;
}
.pet-auth-emoji{
    width:82px;
    height:82px;
    border-radius:28px;
    background:linear-gradient(145deg,#fdebea,#fff5ee);
    border:1px solid #f1d9d3;
    box-shadow:0 12px 28px rgba(100,66,50,.08);
}
.pet-auth-screen h2{font-size:44px;line-height:1.04;margin:10px 0 12px}
.pet-auth-screen>p{font-size:14px;line-height:1.6;margin:0 auto;max-width:390px}
.pet-auth-form{width:100%;margin-top:24px;gap:13px}
.pet-auth-form label{font-size:12px;color:#665e59}
.pet-auth-form input{height:50px;border-radius:15px;background:#fff;border-color:#e8dcd4;padding:0 15px}
.pet-auth-form .btn{min-height:50px;border-radius:15px}
.pet-register-button{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:48px;
    width:100%;
    border:1px solid #ebb5ae;
    background:#fff7f3;
    color:#b95150;
    border-radius:15px;
    padding:12px 16px;
    font-weight:800;
    text-align:center;
    transition:.2s;
}
.pet-register-button:hover{background:#ffebe7;border-color:#e69088;transform:translateY(-1px)}
.pet-forgot{display:block;text-align:center;margin-top:1px;font-size:12px;color:#887d77}
.pet-auth-note{max-width:390px;margin-left:auto!important;margin-right:auto!important;line-height:1.55}

/* Profile dashboard restoration */
.pet-profile-screen{background:#fffaf7}
.pet-sidebar{background:linear-gradient(180deg,#fff1ec 0%,#fff9f5 58%,#f9f3ee 100%)}
.pet-sidebar-title span{background:#fff;border:1px solid #efdcd5;box-shadow:0 7px 18px rgba(70,49,39,.05)}
.pet-dashboard-main{background:linear-gradient(180deg,#fffdfb,#fffaf7);scrollbar-gutter:stable}
.pet-dashboard-head{position:sticky;top:-40px;z-index:8;padding:14px 0 12px;background:linear-gradient(180deg,#fffdfb 70%,rgba(255,253,251,0));backdrop-filter:blur(8px)}
.pet-edit-button{background:#fff8f4;border-color:#ead8d0;color:#9d5552}
.pet-edit-button:hover{background:#fff0eb}

/* Real forum states */
.forum-loading,
.forum-empty{
    min-height:245px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:7px;
    text-align:center;
    color:var(--muted);
    border-radius:20px;
}
.forum-loading span,.forum-empty>span{font-size:38px;line-height:1}
.forum-loading b,.forum-empty h3{font-size:18px;color:#4b4541;margin:5px 0 0}
.forum-loading small,.forum-empty p{font-size:12px;margin:0;max-width:420px}
.forum-empty .btn{margin-top:12px}
.forum-empty.is-error>span{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#fff0ee;color:#b64f4d;font-weight:900;font-size:20px}
.forum-badge{font-size:9px!important;line-height:1;padding:5px 7px;border-radius:999px;background:#fff0eb;color:#b95a55!important;font-weight:800}
.forum-badge.is-muted{background:#f1efed;color:#817973!important}
.forum-topic-detail-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding-right:38px}
.forum-owner-actions{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 20px}
.btn-soft.is-danger{color:#b34745;border-color:#ecc8c5;background:#fff7f6}
.forum-form-status{padding:10px 12px;border-radius:12px;background:#edf5e8;border:1px solid #d8e7d1;color:#526c4e;font-size:12px;margin:10px 0}
.forum-form-status.is-error{background:#fff0ef;border-color:#f0cbc8;color:#a54a48}
.forum-login-note{padding:18px;border-top:1px solid var(--line);text-align:center}
.forum-login-note p{margin:0 0 12px;color:var(--muted);font-size:13px}
.forum-reply-content{flex:1;min-width:0}
.forum-reply-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.forum-delete{width:30px;height:30px;display:grid;place-items:center;border:0;border-radius:9px;background:#fff1ef;color:#bf5b57;cursor:pointer;font-size:18px}
.forum-no-replies{padding:22px;border-radius:15px;background:#faf5f1;color:#8c827c;text-align:center;font-size:13px}
.forum-topic-message{white-space:normal;word-break:break-word;line-height:1.65}
.forum-reply p{white-space:normal;word-break:break-word;line-height:1.55}
.forum-compose-card .btn-primary,.forum-reply-form .btn-primary{min-width:150px}
.forum-compose-card button:disabled,.forum-reply-form button:disabled{opacity:.6;cursor:wait;transform:none}

@media(max-width:1100px){
    .brand img{width:116px;height:66px}
    .icon-btn.search-toggle{width:48px;height:48px;flex-basis:48px}
    .search-toggle svg{width:25px;height:25px}
}
@media(max-width:760px){
    .brand img{width:111px;height:64px}
    .pet-auth-screen{padding:52px 24px 34px}
    .pet-auth-screen h2{font-size:36px}
    .pet-modal-close{right:11px;top:10px}
    .pet-dashboard-head{top:-20px}
}
@media(max-width:520px){
    .search-toggle{display:grid!important}
    .icon-btn.search-toggle{width:42px;height:42px;flex-basis:42px}
    .search-toggle svg{width:23px;height:23px}
    .brand img{width:105px;height:60px}
    .pet-auth-screen{padding:44px 18px 26px}
    .pet-auth-screen h2{font-size:32px}
    .pet-auth-emoji{width:68px;height:68px;font-size:31px;border-radius:22px}
    .pet-modal-window{height:min(720px,calc(100vh - 16px))}
    .forum-topic-modal-card{padding:22px 17px}
    .forum-topic-detail h2{font-size:25px;padding-right:22px}
}

/* =========================================================
   PETIKA v1.7 — НОВЫЙ ЛИЧНЫЙ КАБИНЕТ
   Layout inspired by the supplied Petika dashboard reference.
========================================================= */
.drawer-auth{padding:12px!important;overflow:hidden!important}
.drawer-auth .auth-box-v17{width:100%!important;max-width:100%!important;min-height:0!important;padding:0!important;margin:0!important;background:transparent!important;border:0!important;box-shadow:none!important;position:static!important;transform:none!important}
.drawer-auth .user-chip{display:flex;align-items:center;gap:10px;padding:0 0 10px!important}
.drawer-auth .user-chip img{width:42px;height:42px;border-radius:50%;object-fit:cover;background:#f4ebe6}
.drawer-auth .user-chip b{display:block;font-size:14px;color:#292724}
.drawer-auth .user-chip small{display:block;margin-top:2px;font-size:11px;color:#978d87}
.drawer-account-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.drawer-account-icon{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:#fbe9e6}
.drawer-account-head b{display:block;font-size:14px}.drawer-account-head small{display:block;margin-top:2px;color:#948a84;font-size:11px}
.drawer-account-open{width:100%;min-height:42px;border:0;border-radius:12px;background:#ef7774;color:#fff;font-weight:800;cursor:pointer;transition:.2s}
.drawer-account-open:hover{background:#e76562;transform:translateY(-1px)}
.drawer-auth .account-links-v17{display:grid;grid-template-columns:1fr;margin-top:8px!important}
.drawer-auth .account-links-v17 a{display:block!important;padding:9px 4px!important;border-top:1px solid #f1e7e1!important;font-size:12px!important;color:#6e6661!important}

.pet-modal-window{width:min(1320px,calc(100vw - 36px));height:min(860px,calc(100vh - 36px));border-radius:24px;background:#fff;box-shadow:0 36px 100px rgba(43,48,52,.22)}
.pet-profile-screen{height:100%;background:#fff}
.pet-dashboard-v17{grid-template-columns:210px minmax(0,1fr);height:100%;background:#fff}
.pet-sidebar-v17{display:flex;flex-direction:column;padding:24px 14px 18px;background:#fbfefd;border-right:1px solid #e7efee}
.pet-sidebar-brand{padding:0 13px 28px;color:#4ebfbd;font-size:25px;font-weight:900;letter-spacing:-.04em}
.pet-sidebar-nav-v17{gap:4px}
.pet-sidebar-nav-v17 button{position:relative;min-height:44px;padding:0 13px;border-radius:9px;color:#606b6b;font-size:13px;gap:10px;box-shadow:none}
.pet-sidebar-nav-v17 button:hover{background:#f2f9f8}
.pet-sidebar-nav-v17 button.is-active{background:#e9f8f7;color:#46aaa8;font-weight:800;box-shadow:none}
.pet-side-ico{width:20px;text-align:center;font-size:15px;color:#6f7d7d}
.pet-sidebar-nav-v17 button.is-active .pet-side-ico{color:#4ebfbd}
.pet-side-badge{margin-left:auto;min-width:20px;height:20px;padding:0 5px;display:grid;place-items:center;border-radius:50%;background:#f7c9cd;color:#c85e66;font-size:10px;font-weight:800}
.pet-add-animal{margin-top:auto;width:100%;min-height:42px;border:1px solid #83d4d2;border-radius:8px;background:#fff;color:#4baead;font-weight:750;font-size:12px;cursor:pointer}
.pet-add-animal:hover{background:#effafa}

.pet-dashboard-main-v17{padding:0;background:#fff;overflow:auto}
.pet-appbar{position:sticky;top:0;z-index:10;height:70px;padding:0 26px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf2f1;background:rgba(255,255,255,.96);backdrop-filter:blur(10px)}
.pet-appbar-title{font-weight:850;font-size:16px;color:#303736}
.pet-appbar-actions{display:flex;align-items:center;gap:16px}
.pet-bell{width:36px;height:36px;border:0;border-radius:50%;background:#f7fbfb;color:#576565;cursor:pointer;font-size:18px}
.pet-account-chip{display:flex;align-items:center;gap:8px;min-width:116px}
.pet-account-avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#f3ebe5;font-size:14px}
.pet-account-chip b{display:block;font-size:11px;color:#464e4e}.pet-account-chip small{display:block;font-size:9px;color:#a1aaaa;margin-top:1px}
.pet-tab-panel{padding:24px 28px 34px}

.pet-profile-hero-v17{display:grid;grid-template-columns:96px minmax(0,1fr) auto;align-items:center;gap:20px;padding:4px 0 20px;border-bottom:1px solid #edf2f1}
.pet-photo-wrapper-v17{width:88px;height:88px}
.pet-photo-wrapper-v17 .pet-photo{width:88px;height:88px;border-radius:50%;background:#f6f2ed;overflow:hidden;font-size:40px;display:grid;place-items:center}
.pet-photo-wrapper-v17 .pet-photo img{width:100%;height:100%;object-fit:cover}
.pet-photo-upload-v17{right:-2px;bottom:0;width:27px;height:27px;border-radius:50%;background:#53c2c0;border:2px solid #fff;color:#fff;font-size:12px}
.pet-profile-greeting h2{margin:0 0 6px;font-size:22px;line-height:1.2;color:#2f3635;letter-spacing:-.02em}.pet-profile-greeting p{margin:0;color:#84908f;font-size:12px}
.pet-outline-button{min-height:38px;padding:0 16px;border:1px solid #8ad5d3;border-radius:7px;background:#fff;color:#4aaead;font-weight:750;font-size:11px;cursor:pointer}
.pet-outline-button:hover{background:#effafa}
.pet-stats-row-v17{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;padding:18px 0 20px;border-bottom:1px solid #edf2f1}
.pet-stats-row-v17>div{padding-right:14px}.pet-stats-row-v17 span{display:block;color:#9aa3a2;font-size:10px;margin-bottom:5px}.pet-stats-row-v17 strong{display:block;color:#394241;font-size:12px;font-weight:750}.pet-hidden-field{display:none!important}

.pet-overview-grid-v17{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding-top:18px}
.pet-dashboard-card-v17{min-height:166px;padding:17px;border:1px solid #edf1f0;border-radius:12px;background:#fff;display:flex;flex-direction:column;box-shadow:0 2px 8px rgba(44,70,69,.025)}
.pet-card-mint{background:#fbfefd}.pet-card-cream{background:#fffdf8}.pet-card-blue{background:#fbfdff}.pet-card-white{background:#fff}
.pet-card-v17-head{display:flex;align-items:center;gap:8px;margin-bottom:14px}.pet-card-v17-head h3{margin:0;font-size:13px;color:#35403f}.pet-card-v17-icon{width:27px;height:27px;border-radius:8px;display:grid;place-items:center;background:#e9f8f7;color:#48b2b0;font-size:14px;font-weight:800}
.pet-card-v17-big{margin:0 0 auto;color:#7c8988;font-size:11px}.pet-card-v17-big span{font-size:22px;color:#3d4847;font-weight:850;margin-right:2px}.pet-dashboard-card-v17>b{font-size:12px;color:#4a5554;margin-bottom:7px}.pet-dashboard-card-v17>p:not(.pet-card-v17-big){margin:0 0 auto;color:#899493;font-size:10px;line-height:1.5}.pet-dashboard-card-v17 button{align-self:flex-start;margin-top:14px;padding:7px 12px;border:1px solid #a6dcda;border-radius:6px;background:#fff;color:#4caaa8;font-size:10px;font-weight:750;cursor:pointer}.pet-dashboard-card-v17 button:hover{background:#effafa}.pet-inline-status{font-size:12px}

.pet-reminders-overview-v17{margin-top:12px;padding:16px 17px;border:1px solid #edf1f0;border-radius:12px;background:#fff}
.pet-reminders-overview-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.pet-reminders-overview-head>div{display:flex;align-items:center;gap:8px}.pet-reminders-overview-head h3{margin:0;font-size:13px;color:#35403f}.pet-reminders-overview-head button{border:1px solid #efc6c7;border-radius:6px;background:#fff;color:#c56c70;font-size:10px;padding:7px 11px;cursor:pointer}
.pet-overview-reminder-list{display:grid;gap:0}.pet-overview-reminder{display:grid;grid-template-columns:minmax(0,1fr) 110px 120px;gap:12px;padding:8px 0;border-top:1px solid #f1f4f4;font-size:10px;color:#768180}.pet-overview-reminder:first-child{border-top:0}.pet-overview-reminder b{color:#45504f;font-size:10px}.pet-overview-reminder-empty{padding:14px 0;color:#9aa3a2;font-size:11px}

.pet-section-card-v17{border:1px solid #e9efee;border-radius:12px;box-shadow:none;background:#fff}
.pet-section-card-v17 .pet-section-heading h3{font-size:18px}.pet-section-card-v17 .btn{background:#53c2c0;border-color:#53c2c0}.pet-section-card-v17 .btn:hover{background:#43b2b0}
.pet-record,.pet-document{border-color:#edf1f0;background:#fbfefd}.pet-record-title,.pet-document-name{color:#3f4a49}.pet-record-delete{background:#fff;color:#b66f71}
.pet-calendar-v17{display:grid;grid-template-columns:1fr 300px;gap:20px}.pet-calendar-month{display:grid;grid-template-columns:repeat(7,1fr);gap:7px}.pet-calendar-day{min-height:70px;border:1px solid #e8eeee;border-radius:9px;padding:8px;background:#fff;font-size:11px;color:#6f7978}.pet-calendar-day.is-today{border-color:#72cfcd;background:#f1fbfa}.pet-calendar-day.has-event:after{content:"";display:block;width:6px;height:6px;margin-top:8px;border-radius:50%;background:#ef8a87}.pet-calendar-events{padding:14px;border:1px solid #edf1f0;border-radius:10px}.pet-calendar-events h4{margin:0 0 10px;font-size:13px}.pet-calendar-event{padding:9px 0;border-top:1px solid #edf1f0;font-size:10px}.pet-calendar-event:first-of-type{border-top:0}.pet-calendar-event b{display:block;color:#465150;margin-bottom:2px}.pet-calendar-event span{color:#98a1a0}

.pet-editor-card{border-radius:16px;border:1px solid #e4eceb;box-shadow:0 25px 80px rgba(37,57,56,.2)}.pet-editor-card .eyebrow{color:#4ebfbd}.pet-editor-card .btn{background:#53c2c0;border-color:#53c2c0}.pet-editor-card input,.pet-editor-card select,.pet-editor-card textarea{border-color:#dfe9e8;background:#fff}

@media(max-width:900px){
  .pet-modal{padding:8px}.pet-modal-window{width:100%;height:calc(100vh - 16px);border-radius:18px}
  .pet-dashboard-v17{grid-template-columns:72px minmax(0,1fr)}
  .pet-sidebar-v17{padding:18px 9px}.pet-sidebar-brand{font-size:0;padding:0 0 20px;text-align:center}.pet-sidebar-brand:before{content:"P";font-size:24px;color:#4ebfbd;font-weight:900}
  .pet-sidebar-nav-v17 button{justify-content:center;padding:0}.pet-sidebar-nav-v17 button span:not(.pet-side-ico):not(.pet-side-badge){display:none}.pet-side-badge{position:absolute;right:4px;top:5px}
  .pet-add-animal{font-size:0}.pet-add-animal:before{content:"＋";font-size:18px}
  .pet-appbar{height:60px;padding:0 18px}.pet-appbar-title{font-size:14px}.pet-account-chip div:not(.pet-account-avatar){display:none}.pet-account-chip{min-width:0}
  .pet-tab-panel{padding:18px}
  .pet-profile-hero-v17{grid-template-columns:72px minmax(0,1fr)}.pet-profile-hero-v17 .pet-outline-button{grid-column:1/-1;justify-self:start}.pet-photo-wrapper-v17,.pet-photo-wrapper-v17 .pet-photo{width:70px;height:70px}
  .pet-profile-greeting h2{font-size:18px}.pet-stats-row-v17{grid-template-columns:repeat(2,1fr);gap:12px}.pet-overview-grid-v17{grid-template-columns:1fr 1fr}.pet-overview-reminder{grid-template-columns:1fr 90px}.pet-overview-reminder span:last-child{display:none}.pet-calendar-v17{grid-template-columns:1fr}
}
@media(max-width:560px){
  .pet-dashboard-v17{grid-template-columns:1fr}.pet-sidebar-v17{position:absolute;left:0;right:0;bottom:0;top:auto;z-index:30;height:64px;padding:7px 10px;border-right:0;border-top:1px solid #e7efee;display:block}.pet-sidebar-brand,.pet-add-animal{display:none}.pet-sidebar-nav-v17{display:grid;grid-template-columns:repeat(5,1fr);height:100%;gap:2px}.pet-sidebar-nav-v17 button:nth-child(6){display:none}.pet-sidebar-nav-v17 button{min-height:50px;flex-direction:column;gap:1px;border-radius:8px;font-size:9px}.pet-sidebar-nav-v17 button span:not(.pet-side-ico):not(.pet-side-badge){display:block;font-size:8px}.pet-side-ico{font-size:15px}.pet-side-badge{right:6px;top:2px}
  .pet-dashboard-main-v17{padding-bottom:65px}.pet-appbar{padding:0 14px}.pet-appbar-title{font-size:13px}.pet-tab-panel{padding:14px}.pet-profile-hero-v17{gap:12px}.pet-profile-greeting h2{font-size:16px}.pet-profile-greeting p{font-size:10px}.pet-overview-grid-v17{grid-template-columns:1fr}.pet-dashboard-card-v17{min-height:145px}.pet-stats-row-v17{grid-template-columns:repeat(2,1fr)}.pet-overview-reminder{grid-template-columns:1fr 80px}.pet-calendar-day{min-height:50px;padding:5px}.pet-modal-close{right:8px;top:8px;width:34px;height:34px}
}

/* =====================================================
   PETIKA v1.8 — server sync indicator
===================================================== */
.pet-sync-indicator{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid #e8e2dd;border-radius:999px;background:#fff;color:#7c746e;font-size:11px;line-height:1;white-space:nowrap;transition:.2s ease}
.pet-sync-indicator span{width:7px;height:7px;border-radius:50%;background:#73bea9;box-shadow:0 0 0 3px rgba(115,190,169,.13)}
.pet-sync-indicator b{font-weight:600}
.pet-sync-indicator[data-state="syncing"] span{background:#e5b666;box-shadow:0 0 0 3px rgba(229,182,102,.14);animation:petSyncPulse 1s ease-in-out infinite}
.pet-sync-indicator[data-state="error"]{border-color:#f0d2d0;color:#b75a56;background:#fff9f8}
.pet-sync-indicator[data-state="error"] span{background:#e77c75;box-shadow:0 0 0 3px rgba(231,124,117,.13)}
.pet-document-main{min-width:0;flex:1}
a.pet-document-name{display:inline-block;max-width:100%;color:inherit;text-decoration:none;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
a.pet-document-name:hover{text-decoration:underline}
@keyframes petSyncPulse{50%{opacity:.4;transform:scale(.85)}}
@media(max-width:760px){.pet-sync-indicator b{display:none}.pet-sync-indicator{padding:7px}.pet-sync-indicator span{width:8px;height:8px}}
